|
@@ -21,10 +21,11 @@
|
|
|
<result property="updateBy" column="update_by"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="remark" column="remark"/>
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
+ <result property="fOpctnstatus" column="f_opctnstatus"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectTCntrnoVo">
|
|
<sql id="selectTCntrnoVo">
|
|
|
- select f_id, f_no, f_typeid, f_owner, f_source, f_rent, f_updatetime, f_updateaddress, f_updateEF, f_cntrstatus, case when f_status = 'T' then '正常' else '停用' end as f_status, create_by, create_time, update_by, update_time, remark from t_cntrno
|
|
|
|
|
|
|
+ select f_id, f_no, f_typeid, f_owner, f_source, f_rent, f_updatetime, f_updateaddress, f_updateEF, f_cntrstatus, case when f_status = 'T' then '正常' else '停用' end as f_status,f_opctnstatus,create_by, create_time, update_by, update_time, remark from t_cntrno
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectTCntrnoList" parameterType="TCntrno" resultMap="TCntrnoResult">
|
|
<select id="selectTCntrnoList" parameterType="TCntrno" resultMap="TCntrnoResult">
|
|
@@ -40,6 +41,7 @@
|
|
|
<if test="fUpdateef != null and fUpdateef != ''">and f_updateEF = #{fUpdateef}</if>
|
|
<if test="fUpdateef != null and fUpdateef != ''">and f_updateEF = #{fUpdateef}</if>
|
|
|
<if test="fCntrstatus != null and fCntrstatus != ''">and f_cntrstatus = #{fCntrstatus}</if>
|
|
<if test="fCntrstatus != null and fCntrstatus != ''">and f_cntrstatus = #{fCntrstatus}</if>
|
|
|
<if test="fStatus != null and fStatus != ''">and f_status = #{fStatus}</if>
|
|
<if test="fStatus != null and fStatus != ''">and f_status = #{fStatus}</if>
|
|
|
|
|
+ <if test="fOpctnstatus != null and fOpctnstatus != ''">and f_opctnstatus = #{fOpctnstatus}</if>
|
|
|
<if test='cLoadDate != null and cLoadDate[0] != null and cLoadDate[0]!= ""'>
|
|
<if test='cLoadDate != null and cLoadDate[0] != null and cLoadDate[0]!= ""'>
|
|
|
and create_time >= #{cLoadDate[0]}
|
|
and create_time >= #{cLoadDate[0]}
|
|
|
</if>
|
|
</if>
|
|
@@ -70,6 +72,7 @@
|
|
|
tc.f_cntrstatus,
|
|
tc.f_cntrstatus,
|
|
|
pr.dict_label cntrstatusName,
|
|
pr.dict_label cntrstatusName,
|
|
|
case when tc.f_status = 'T' then '正常' else '停用' end as f_status,
|
|
case when tc.f_status = 'T' then '正常' else '停用' end as f_status,
|
|
|
|
|
+ tc.f_opctnstatus,
|
|
|
tc.create_by,
|
|
tc.create_by,
|
|
|
tc.create_time,
|
|
tc.create_time,
|
|
|
tc.update_by,
|
|
tc.update_by,
|
|
@@ -103,6 +106,7 @@
|
|
|
<if test="tc.fUpdateef != null and tc.fUpdateef != ''">and tc.f_updateEF = #{tc.fUpdateef}</if>
|
|
<if test="tc.fUpdateef != null and tc.fUpdateef != ''">and tc.f_updateEF = #{tc.fUpdateef}</if>
|
|
|
<if test="tc.fCntrstatus != null and tc.fCntrstatus != ''">and tc.f_cntrstatus = #{tc.fCntrstatus}</if>
|
|
<if test="tc.fCntrstatus != null and tc.fCntrstatus != ''">and tc.f_cntrstatus = #{tc.fCntrstatus}</if>
|
|
|
<if test="tc.fStatus != null and tc.fStatus != ''">and tc.f_status = #{tc.fStatus}</if>
|
|
<if test="tc.fStatus != null and tc.fStatus != ''">and tc.f_status = #{tc.fStatus}</if>
|
|
|
|
|
+ <if test="tc.fOpctnstatus != null and tc.fOpctnstatus != ''">and tc.f_opctnstatus = #{tc.fOpctnstatus}</if>
|
|
|
<if test='tc.cLoadDate != null and tc.cLoadDate[0] != null and tc.cLoadDate[0]!= ""'>
|
|
<if test='tc.cLoadDate != null and tc.cLoadDate[0] != null and tc.cLoadDate[0]!= ""'>
|
|
|
and tc.create_time >= #{tc.cLoadDate[0]}
|
|
and tc.create_time >= #{tc.cLoadDate[0]}
|
|
|
</if>
|
|
</if>
|
|
@@ -113,6 +117,7 @@
|
|
|
<if test="typeidName != null and typeidName != ''">and t.f_name = #{typeidName}</if>
|
|
<if test="typeidName != null and typeidName != ''">and t.f_name = #{typeidName}</if>
|
|
|
<if test="cntrstatusName != null and cntrstatusName != ''">and pr.dict_label = #{cntrstatusName}</if>
|
|
<if test="cntrstatusName != null and cntrstatusName != ''">and pr.dict_label = #{cntrstatusName}</if>
|
|
|
<if test="updateEFName != null and updateEFName != ''">and sdda.dict_label = #{updateEFName}</if>
|
|
<if test="updateEFName != null and updateEFName != ''">and sdda.dict_label = #{updateEFName}</if>
|
|
|
|
|
+ <if test="cntrsize != null ">and t.f_cntrsize = #{cntrsize}</if>
|
|
|
</where>
|
|
</where>
|
|
|
ORDER BY tc.f_no,CONVERT(tc.f_updateaddress USING gbk),CONVERT(t.f_no USING gbk),
|
|
ORDER BY tc.f_no,CONVERT(tc.f_updateaddress USING gbk),CONVERT(t.f_no USING gbk),
|
|
|
tc.f_updateEF,tc.f_cntrstatus,tc.f_owner
|
|
tc.f_updateEF,tc.f_cntrstatus,tc.f_owner
|
|
@@ -140,6 +145,7 @@
|
|
|
tc.f_cntrstatus,
|
|
tc.f_cntrstatus,
|
|
|
pr.dict_label cntrstatusName,
|
|
pr.dict_label cntrstatusName,
|
|
|
case when tc.f_status = 'T' then '正常' else '停用' end as f_status,
|
|
case when tc.f_status = 'T' then '正常' else '停用' end as f_status,
|
|
|
|
|
+ tc.f_opctnstatus,
|
|
|
tc.create_by,
|
|
tc.create_by,
|
|
|
tc.create_time,
|
|
tc.create_time,
|
|
|
tc.update_by,
|
|
tc.update_by,
|
|
@@ -178,6 +184,7 @@
|
|
|
<if test="fUpdateef != null and fUpdateef != ''">f_updateEF,</if>
|
|
<if test="fUpdateef != null and fUpdateef != ''">f_updateEF,</if>
|
|
|
<if test="fCntrstatus != null and fCntrstatus != ''">f_cntrstatus,</if>
|
|
<if test="fCntrstatus != null and fCntrstatus != ''">f_cntrstatus,</if>
|
|
|
<if test="fStatus != null">f_status,</if>
|
|
<if test="fStatus != null">f_status,</if>
|
|
|
|
|
+ <if test="fOpctnstatus != null and fOpctnstatus != ''">f_opctnstatus,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -195,6 +202,7 @@
|
|
|
<if test="fUpdateaddress != null and fUpdateaddress != ''">#{fUpdateaddress},</if>
|
|
<if test="fUpdateaddress != null and fUpdateaddress != ''">#{fUpdateaddress},</if>
|
|
|
<if test="fUpdateef != null and fUpdateef != ''">#{fUpdateef},</if>
|
|
<if test="fUpdateef != null and fUpdateef != ''">#{fUpdateef},</if>
|
|
|
<if test="fCntrstatus != null and fCntrstatus != ''">#{fCntrstatus},</if>
|
|
<if test="fCntrstatus != null and fCntrstatus != ''">#{fCntrstatus},</if>
|
|
|
|
|
+ <if test="fOpctnstatus != null and fOpctnstatus != ''">#{fOpctnstatus},</if>
|
|
|
<if test="fStatus != null">#{fStatus},</if>
|
|
<if test="fStatus != null">#{fStatus},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
@@ -217,6 +225,7 @@
|
|
|
<if test="fUpdateef != null and fUpdateef != ''">f_updateEF = #{fUpdateef},</if>
|
|
<if test="fUpdateef != null and fUpdateef != ''">f_updateEF = #{fUpdateef},</if>
|
|
|
<if test="fCntrstatus != null and fCntrstatus != ''">f_cntrstatus = #{fCntrstatus},</if>
|
|
<if test="fCntrstatus != null and fCntrstatus != ''">f_cntrstatus = #{fCntrstatus},</if>
|
|
|
<if test="fStatus != null">f_status = #{fStatus},</if>
|
|
<if test="fStatus != null">f_status = #{fStatus},</if>
|
|
|
|
|
+ <if test="fOpctnstatus != null and fOpctnstatus != ''">f_opctnstatus = #{fOpctnstatus},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|