Commit cec4142b authored by huyuchen's avatar huyuchen

年终奖扣税计算修改

parent 446a8a47
...@@ -149,20 +149,13 @@ public class TStatisticsDeclarerServiceImpl extends ServiceImpl<TStatisticsDecla ...@@ -149,20 +149,13 @@ public class TStatisticsDeclarerServiceImpl extends ServiceImpl<TStatisticsDecla
@Override @Override
public R updateFlagById(String id, String isDeclare, String undeclareReason) { public R updateFlagById(String id, String isDeclare, String undeclareReason) {
TStatisticsDeclarer declarerInfo = baseMapper.selectById(id); TStatisticsDeclarer tStatisticsDeclarer = baseMapper.selectById(id);
//根据身份证号,姓名和申报月份查找申报人员 if (Common.isNotNull(tStatisticsDeclarer)) {
List<TStatisticsDeclarer> declarerList = baseMapper.selectList(Wrappers.<TStatisticsDeclarer>query().lambda() tStatisticsDeclarer.setIsDeclare(isDeclare);
.eq(TStatisticsDeclarer::getEmpIdcard, declarerInfo.getEmpIdcard()) if (Common.isNotNull(undeclareReason)) {
.eq(TStatisticsDeclarer::getDeclareMonth, declarerInfo.getDeclareMonth()) tStatisticsDeclarer.setUndeclareReason(undeclareReason);
.eq(TStatisticsDeclarer::getEmpName, declarerInfo.getEmpName()));
if (Common.isNotNull(declarerList)) {
for (TStatisticsDeclarer tStatisticsDeclarer: declarerList) {
tStatisticsDeclarer.setIsDeclare(isDeclare);
if (Common.isNotNull(undeclareReason)) {
tStatisticsDeclarer.setUndeclareReason(undeclareReason);
}
baseMapper.updateById(tStatisticsDeclarer);
} }
baseMapper.updateById(tStatisticsDeclarer);
return R.ok(); return R.ok();
} }
return R.failed(CommonConstants.PARAM_IS_NOT_ERROR); return R.failed(CommonConstants.PARAM_IS_NOT_ERROR);
......
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