| | |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.entity.component.ComponentValidateResult; |
| | | import com.java110.dto.system.ComponentValidateResult; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.Base64Convert; |
| | | import com.java110.utils.util.DateUtil; |
| | |
| | | endTime = feeObj.getString("deadlineTime").length() > 10 ? feeObj.getString("deadlineTime").substring(0, 10) : feeObj.getString("deadlineTime"); |
| | | //如果费用是周期性费用 则 结束时间减一天 |
| | | try { |
| | | if (feeObj.containsKey("feeFlag") && FeeDto.FEE_FLAG_CYCLE.equals(feeObj.getString("feeFlag"))) { |
| | | if (feeObj.containsKey("feeFlag") && (FeeDto.FEE_FLAG_CYCLE.equals(feeObj.getString("feeFlag")) || FeeDto.FEE_FLAG_CYCLE_ONCE.equals(feeObj.getString("feeFlag")))) { |
| | | endTime = DateUtil.getFormatTimeString(DateUtil.stepDay(DateUtil.getDateFromString(endTime, DateUtil.DATE_FORMATE_STRING_B), -1), |
| | | DateUtil.DATE_FORMATE_STRING_B); |
| | | } |
| | |
| | | } |
| | | cell3.setCellStyle(cellStyle); |
| | | cell4 = row.createCell(4); |
| | | cell4.setCellValue(feeObj.getString("feePrice")); |
| | | cell4.setCellValue(feeObj.getString("feeTotalPrice")); |
| | | cell4.setCellStyle(cellStyle); |
| | | cell5 = row.createCell(5); |
| | | cell5.setCellValue("0"); |
| | |
| | | cell6.setCellValue(""); |
| | | cell6.setCellStyle(cellStyle); |
| | | row.setHeight((short) (defaultRowHeight)); |
| | | totalPrice = totalPrice.add(new BigDecimal(feeObj.getString("feePrice"))); |
| | | totalPrice = totalPrice.add(new BigDecimal(feeObj.getString("feeTotalPrice"))); |
| | | } |
| | | |
| | | row = sheet.createRow(line + fees.size() + 3); |