Commit 0133835f authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent f8f50a22
...@@ -89,6 +89,8 @@ ...@@ -89,6 +89,8 @@
<result property="configHouseId" column="CONFIG_HOUSE_ID"/> <result property="configHouseId" column="CONFIG_HOUSE_ID"/>
<result property="fundStartDate" column="FUND_START_DATE"/>
</resultMap> </resultMap>
...@@ -441,7 +443,7 @@ ...@@ -441,7 +443,7 @@
<select id="getTDispatchInfoPrePage" resultMap="tDispatchInfoPreMap"> <select id="getTDispatchInfoPrePage" resultMap="tDispatchInfoPreMap">
SELECT SELECT
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
,if(b.id is not null,'0','1') as CONTRACT_STATUS ,if(b.id is not null,'0','1') as CONTRACT_STATUS,a.FUND_START_DATE
FROM t_dispatch_info_pre a FROM t_dispatch_info_pre a
left join view_contract b on a.EMP_IDCARD = b.EMP_IDCARD and a.DEPT_NO = b.DEPT_NO left join view_contract b on a.EMP_IDCARD = b.EMP_IDCARD and a.DEPT_NO = b.DEPT_NO
<where> <where>
...@@ -569,7 +571,7 @@ ...@@ -569,7 +571,7 @@
<select id="geNoPageList" resultMap="tDispatchInfoPreMap"> <select id="geNoPageList" resultMap="tDispatchInfoPreMap">
SELECT SELECT
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
,if(b.id is not null,'0','1') as CONTRACT_STATUS ,if(b.id is not null,'0','1') as CONTRACT_STATUS,a.FUND_START_DATE
FROM t_dispatch_info_pre a FROM t_dispatch_info_pre a
left join view_contract b on a.EMP_IDCARD = b.EMP_IDCARD and a.DEPT_NO = b.DEPT_NO left join view_contract b on a.EMP_IDCARD = b.EMP_IDCARD and a.DEPT_NO = b.DEPT_NO
<where> <where>
...@@ -661,7 +663,7 @@ ...@@ -661,7 +663,7 @@
</select> </select>
<select id="getAllUnDisSocialData" resultMap="tDispatchInfoPreMap"> <select id="getAllUnDisSocialData" resultMap="tDispatchInfoPreMap">
SELECT SELECT
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>,a.FUND_START_DATE
FROM t_dispatch_info_pre a FROM t_dispatch_info_pre a
where where
a.expected_collection_time is not null and type_sub = '0' a.expected_collection_time is not null and type_sub = '0'
...@@ -672,7 +674,7 @@ ...@@ -672,7 +674,7 @@
<select id="getAllUnDisFundData" resultMap="tDispatchInfoPreMap"> <select id="getAllUnDisFundData" resultMap="tDispatchInfoPreMap">
SELECT SELECT
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>,a.FUND_START_DATE
FROM t_dispatch_info_pre a FROM t_dispatch_info_pre a
where where
a.expected_collection_time is not null and type_sub = '1' a.expected_collection_time is not null and type_sub = '1'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment