Commit cec4142b authored by huyuchen's avatar huyuchen

年终奖扣税计算修改

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