futian.liu
2023-11-30 33f4541719f5bf8f98616e3bcfcae1c416c69551
consum-base/src/main/java/com/consum/base/service/LWhFormProcureService.java
@@ -124,6 +124,8 @@
        String sql = "SELECT\n"
            + "\tfp.BUSINESS_FORM_CODE,\n"
            + "\tfp.AGENCY_NAME tenantName,\n"
            + "\tfp.INCOME_TIME createTime,\n"
            + "\tfp.INCOME_NAME operatorName,\n"
            + "\tGOODS_NAME goodsName,\n"
            + "\tpm.BASE_GOODS_MODELS_NAME goodsModeName,\n"
            + "\tcounts num,\n"
@@ -159,12 +161,13 @@
        Optional<TemplateExcelExport> first = list.stream().findFirst();
        TemplateExcelExport templateExcelExport = first.get();
        String businessFormCode = templateExcelExport.getBusinessFormCode();
        Long createTime = templateExcelExport.getCreateTime();
        String operatorName = templateExcelExport.getOperatorName();
        String dateForHuman = DateUtils.getDateForHuman(System.currentTimeMillis());
        Map<String, Object> map = new HashMap<>();
        map.put("code", businessFormCode);
        map.put("date", dateForHuman);
        map.put("name", userName);
        map.put("date", DateUtils.toShowDate(createTime));
        map.put("name", operatorName);
        map.put("sum", sum);
        map.put("totalAmount", totalAmount);
        map.put("data", list);