|
@@ -335,12 +335,13 @@ public class CostIncomeGroupServiceImpl extends ServiceImpl<CostIncomeGroupMappe
|
|
|
String startDepartmentName = data.get(4).toString();
|
|
|
String startDepartmentCode = data.get(5).toString();
|
|
|
BigDecimal beforeMoney = BigDecimal.valueOf(Double.parseDouble(("0".equals(data.get(15).toString()) || StrUtil.isBlank(data.get(15).toString())) ?"0.00":data.get(15).toString()));
|
|
|
- boolean checkNull = StrUtil.isBlank(data.get(15).toString());
|
|
|
+ boolean checkNull = StrUtil.isNotBlank(data.get(15).toString());
|
|
|
boolean checkOne = "0".equals(data.get(15).toString());
|
|
|
- if (checkNull || checkOne) {
|
|
|
- // 要求这一行的数据必须全部填写
|
|
|
+ // TODO 为0的时候这一行是否可以输入空的
|
|
|
+ if (checkNull) {
|
|
|
+ // 不为空要求这一行全部输入
|
|
|
for (int j = 0; j < data.size(); j++) {
|
|
|
- if (Objects.isNull(data.get(j))) {
|
|
|
+ if (StrUtil.isBlank(data.get(j).toString())) {
|
|
|
IncomeErrorMessage incomeErrorMessage = new IncomeErrorMessage();
|
|
|
incomeErrorMessage.setTotal(i);
|
|
|
int column = j + 1;
|