a.ID,
a.EMP_NAME,
a.EMP_IDCARD,
a.UNIT_ID,
a.UNIT_NAME,
a.UNIT_NO,
a.DEPT_ID,
a.DEPT_NAME,
a.DEPT_NO,
a.FEE_TYPE,
a.FEE_MODE,
a.CHARGES,
a.SOURCE_TYPE,
a.MONEY,
a.CREATE_MONTH,
a.PAY_MONTH,
a.CREATE_TIME,
a.DATA_CREATE_MONTH,
a.RED_DATA,
a.SEND_STATUS,
a.SEND_TIME,
a.SEND_MONTH,
a.APPLY_NO
AND a.ID = #{tIncome.id}
AND a.EMP_NAME = #{tIncome.empName}
AND a.EMP_IDCARD = #{tIncome.empIdcard}
AND a.UNIT_ID = #{tIncome.unitId}
AND a.UNIT_NAME = #{tIncome.unitName}
AND a.UNIT_NO = #{tIncome.unitNo}
AND a.DEPT_ID = #{tIncome.deptId}
AND a.DEPT_NAME = #{tIncome.deptName}
AND a.DEPT_NO = #{tIncome.deptNo}
AND a.FEE_TYPE = #{tIncome.feeType}
AND a.FEE_MODE = #{tIncome.feeMode}
AND a.CHARGES = #{tIncome.charges}
AND a.SOURCE_TYPE = #{tIncome.sourceType}
AND a.MONEY = #{tIncome.money}
AND a.CREATE_MONTH = #{tIncome.createMonth}
AND a.PAY_MONTH = #{tIncome.payMonth}
AND a.DATA_CREATE_MONTH = #{tIncome.dataCreateMonth}
AND a.SEND_STATUS = #{tIncome.sendStatus}
AND a.RED_DATA = #{tIncome.redData}
AND a.APPLY_NO = #{tIncome.applyNo}
${tIncome.authSql}
AND a.ID in
#{items}
update t_income
when ID=#{i.id} then #{i.sendStatus}
when ID=#{i.id} then #{i.sendTime}
when ID=#{i.id} then #{i.sendMonth}
when ID=#{i.id} then #{i.ekpId}
where
ID=#{i.id}
delete from t_income_detail where APPLY_NO = #{applyNo}
delete from t_income where APPLY_NO = #{applyNo}
update t_income p
set p.DEPT_ID = #{dept.id}
,p.DEPT_NAME = #{dept.departName}
,p.DEPT_NO = #{dept.departNo}
,p.UNIT_ID = #{dept.customerId}
,p.UNIT_NAME = #{dept.customerName}
,p.UNIT_NO = #{dept.customerCode}
where p.id in
#{item}
update t_income_detail p
set p.DEPT_ID = #{dept.id}
,p.DEPT_NAME = #{dept.departName}
,p.DEPT_NO = #{dept.departNo}
,p.UNIT_ID = #{dept.customerId}
,p.UNIT_NAME = #{dept.customerName}
,p.UNIT_NO = #{dept.customerCode}
where p.id in
#{item}