[修改]通过excel导入工作组成员和资料网员成员的默认税率为6%

This commit is contained in:
sunzheng
2023-12-27 16:52:05 +08:00
parent 7f3d4b6bf0
commit 3c8dd59769
2 changed files with 9 additions and 0 deletions
@@ -356,6 +356,11 @@ public class PayMemberProjectSubitemController extends JeroController<PayMemberP
//复制属性
BeanUtils.copyProperties(projectSubitemExcel, projectSubitem);
// 给税率填充默认值 6%
if (Objects.isNull(projectSubitem.getTaxRate())) {
projectSubitem.setTaxRate(new BigDecimal("0.06"));
}
if (errorMessage.isEmpty()) {
try {
//ValidUtil.validate(projectSubitem);
@@ -595,6 +595,10 @@ public class PayWorkingGroupSubItemServiceImpl extends ServiceImpl<PayWorkingGro
// 校验预估到账日期
list.forEach(
p -> {
// 填充税率为默认值 6%
if (Objects.isNull(p.getTaxRate())) {
p.setTaxRate(new BigDecimal("0.06"));
}
String estimatedArrivalDate = p.getEstimatedArrivalDate();
if (Objects.isNull(estimatedArrivalDate)) {
msg.append("").append(list.indexOf(p) + 3).append("行预估到账日期不能为空,请修改。<br/>");