|
@@ -28,13 +28,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateUnit" column="update_unit" />
|
|
<result property="updateUnit" column="update_unit" />
|
|
<result property="updateUnitName" column="update_unit_name" />
|
|
<result property="updateUnitName" column="update_unit_name" />
|
|
- <result property="isJc" column="is_jc" />
|
|
|
|
|
|
+ <result property="isCl" column="is_cl" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<select id="selectYljgJzxxList" parameterType="YljgJzxx" resultMap="YljgJzxxResult">
|
|
<select id="selectYljgJzxxList" parameterType="YljgJzxx" resultMap="YljgJzxxResult">
|
|
select
|
|
select
|
|
- ( SELECT COUNT(0) FROM zwyw_jg_hcjl where jzxx_id = a.id ) as is_jc,
|
|
|
|
|
|
+ ( SELECT COUNT(0) FROM zwyw_jg_hcjl where jzxx_id = a.id ) as is_cl,
|
|
b.jgmc, b.tyshxydm, getxzqhmcbycode(b.szxzqh) szxzqh_name, b.txdz, a.*
|
|
b.jgmc, b.tyshxydm, getxzqhmcbycode(b.szxzqh) szxzqh_name, b.txdz, a.*
|
|
from yljg_jzxx a
|
|
from yljg_jzxx a
|
|
LEFT JOIN yljg_jcxx b ON a.jg_id = b.id
|
|
LEFT JOIN yljg_jcxx b ON a.jg_id = b.id
|