Commit fa4f5213 authored by hongguangwu's avatar hongguangwu

MVP1.7.5-薪资提交校验

parent 661248e8
......@@ -39,8 +39,8 @@ public class TInsuranceUnpurchasePersonSalaryServiceImpl extends ServiceImpl<TIn
**/
@Override
public void deletePersonSalaryBySalaryId(String salaryId) {
baseMapper.deletePersonSalaryBySalaryId(salaryId);
baseMapper.updatePersonSalaryNumBySalaryId(salaryId);
baseMapper.deletePersonSalaryBySalaryId(salaryId);
}
}
......@@ -70,7 +70,7 @@
update t_insurance_unpurchase_person a
left join t_insurance_unpurchase_person_salary b on a.id=b.PARENT_ID
set a.SALARY_NUM = (if(a.SALARY_NUM is null or a.SALARY_NUM = 0,1,a.SALARY_NUM) - 1)
where b.SALARY_ID = #{salaryId}
where b.DELETE_FLAG = 0 and b.SALARY_ID = #{salaryId}
</update>
</mapper>
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