[修改]通过excel导入工作组成员和资料网员成员的默认税率为6%
This commit is contained in:
+5
@@ -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);
|
||||
|
||||
+4
@@ -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/>");
|
||||
|
||||
Reference in New Issue
Block a user