This commit is contained in:
方亮 2025-10-24 09:46:59 +08:00
parent 241c070c3c
commit 857af6e4cd
2 changed files with 12 additions and 7 deletions

View File

@ -293,6 +293,7 @@ public class PmProjectServiceImpl implements PmProjectService {
@Override @Override
public int updateSalary(List<UserWagePayVo> userWagePay) { public int updateSalary(List<UserWagePayVo> userWagePay) {
if(userWagePay != null && !userWagePay.isEmpty()){
int i = pmProjectMapper.updateSalary(userWagePay); int i = pmProjectMapper.updateSalary(userWagePay);
if(i>0){ if(i>0){
BigDecimal sum = userWagePay.stream() BigDecimal sum = userWagePay.stream()
@ -301,6 +302,9 @@ public class PmProjectServiceImpl implements PmProjectService {
pmProjectMapper.updateMonthSalary(sum, userWagePay.get(0).getMonthId()); pmProjectMapper.updateMonthSalary(sum, userWagePay.get(0).getMonthId());
} }
return i; return i;
}else{
return 0;
}
} }
@Override @Override

View File

@ -278,6 +278,7 @@
<select id="getProAttMsg" resultType="com.bonus.bmw.domain.vo.HomePageSubProVo"> <select id="getProAttMsg" resultType="com.bonus.bmw.domain.vo.HomePageSubProVo">
SELECT SELECT
pw.`name` as workerName, pw.`name` as workerName,
pw.id as workerId,
pw.id_number, pw.id_number,
pw.phone, pw.phone,
bap.sub_id, bap.sub_id,