|
@@ -97,6 +97,82 @@
|
|
|
<select id="selectTest" resultType="Map">
|
|
|
select * from U8_CRM_Stock
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectIsExist" resultType="Map">
|
|
|
+ select cPsn_Num from WA_GZData where cPsn_Num = #{cPsnNum} and iYear = #{iYear} and iMonth = #{iMonth}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <update id="updateU8WaGZData" parameterType="java.util.List">
|
|
|
+
|
|
|
+ <!-- <foreach collection="list" item="item" index="index" separator=",">
|
|
|
+ update WA_GZData
|
|
|
+ <set>
|
|
|
+ <if test="item.basePay != null and item.basePay != ''">
|
|
|
+ F_8 = #{item.basePay},
|
|
|
+ </if>
|
|
|
+ <if test="item.basePay_2 != null and item.basePay_2 != ''">
|
|
|
+ F_52 = #{item.basePay_2},
|
|
|
+ </if>
|
|
|
+ <if test="item.workDay != null and item.workDay != ''">
|
|
|
+ F_10 = #{item.workDay},
|
|
|
+ </if>
|
|
|
+ <if test="item.wagesBase != null and item.wagesBase != ''">
|
|
|
+ F_51 = #{item.wagesBase},
|
|
|
+ </if>
|
|
|
+ <if test="item.workDayReal != null and item.workDayReal != ''">
|
|
|
+ F_53 = #{item.workDayReal},
|
|
|
+ </if>
|
|
|
+ <if test="item.workDayReal1 != null and item.workDayReal1 != ''">
|
|
|
+ F_54 = #{item.workDayReal1},
|
|
|
+ </if>
|
|
|
+ <if test="item.duration != null and item.duration != ''">
|
|
|
+ F_55 = #{item.duration},
|
|
|
+ </if>
|
|
|
+ <if test="item.holidayTimeSj != null and item.holidayTimeSj != ''">
|
|
|
+ F_56 = #{item.holidayTimeSj},
|
|
|
+ </if>
|
|
|
+ <if test="item.syFund != null and item.syFund != ''">
|
|
|
+ F_58 = #{item.syFund}
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where cPsn_Num = #{item.personCode} and iYear = #{item.years} and iMonth = #{item.months}
|
|
|
+ </foreach>
|
|
|
+-->
|
|
|
+ <foreach collection="list" item="item" index="index" separator=",">
|
|
|
+ update WA_GZData set cPsn_Num = #{item.personCode}
|
|
|
+ <if test="item.basePay != null and item.basePay != ''">
|
|
|
+ ,F_8 = #{item.basePay} <!-- 基本工资1-->
|
|
|
+ </if>
|
|
|
+ <if test="item.basePay_2 != null and item.basePay_2 != ''">
|
|
|
+ ,F_52 = #{item.basePay_2} <!-- 基本工资2-->
|
|
|
+ </if>
|
|
|
+ <if test="item.workDay != null and item.workDay != ''">
|
|
|
+ , F_10 = #{item.workDay} <!-- 考勤天数1 -->
|
|
|
+ </if>
|
|
|
+ <if test="item.workDay_2 != null and item.workDay_2 != ''">
|
|
|
+ , F_10 = #{item.workDay_2} <!-- 考勤天数2 -->
|
|
|
+ </if>
|
|
|
+ <if test="item.workDayReal != null and item.workDayReal != ''">
|
|
|
+ , F_53 = #{item.workDayReal} <!-- 实际考勤天数1-->
|
|
|
+ </if>
|
|
|
+ <if test="item.workDayReal_2 != null and item.workDayReal_2 != ''">
|
|
|
+ ,F_54 = #{item.workDayReal_2} <!-- 实际考勤天数2-->
|
|
|
+ </if>
|
|
|
+ <if test="item.wagesBase != null and item.wagesBase != ''">
|
|
|
+ , F_51 = #{item.wagesBase} <!-- 缴交基数1-->
|
|
|
+ </if>
|
|
|
+ <if test="item.duration != null and item.duration != ''">
|
|
|
+ ,F_55 = #{item.duration} <!-- 本月加班时长-->
|
|
|
+ </if>
|
|
|
+ <if test="item.holidayTimeSj != null and item.holidayTimeSj != ''">
|
|
|
+ , F_56 = #{item.holidayTimeSj} <!-- 本月请假时长-->
|
|
|
+ </if>
|
|
|
+ <if test="item.syFund != null and item.syFund != ''">
|
|
|
+ ,F_58 = #{item.syFund} <!-- 公积金账号-->
|
|
|
+ </if>
|
|
|
+ where cPsn_Num = #{item.personCode} and iYear = #{item.years} and iMonth = #{item.months}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
|
|
|
<insert id="insertU8WaGZData" parameterType="java.util.List" useGeneratedKeys="false">
|
|
|
insert into WA_GZData
|