#
wang..123
2022-03-28 8e9dd1cfcbf994850268c3b575ff3c7105d66e9d
#
4个文件已修改
24 ■■■■■ 已修改文件
src/main/java/zy/cloud/wms/manager/controller/ItemController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/zy/cloud/wms/manager/entity/Item.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/chaoPrice/chaoPrice.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/chaoTime/chaoTime.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/zy/cloud/wms/manager/controller/ItemController.java
@@ -24,6 +24,7 @@
import zy.cloud.wms.manager.service.ProjectPlanService;
import zy.cloud.wms.manager.service.ProjectTypeService;
import java.text.SimpleDateFormat;
import java.util.*;
@RestController
@@ -132,6 +133,14 @@
        item.setStatus(1);
        item.setUpdateBy(getUserId());
        item.setUpdateTime(new Date());
        if(item.getPlandeAmt()!=null && item.getRealdeAmt()!=null){
            item.setExcessAmount(item.getRealdeAmt()-item.getPlandeAmt());
        }
        if(item.getPlandeDate()!=null && item.getRealinDate()!=null){
            Integer days = (int) ((item.getRealinDate().getTime() - item.getPlandeDate().getTime()) / (1000*3600*24));
            item.setExcessTime(days);
        }
        itemService.insertAll(item);
        return R.ok();
    }
src/main/java/zy/cloud/wms/manager/entity/Item.java
@@ -368,6 +368,19 @@
    @TableField("planCarnumber")
    private Integer planCarnumber;
    /**
     * 预计车辆数量
     */
    @ApiModelProperty(value= "超出金额")
    @TableField("Excess_amount")
    private Double ExcessAmount;
    /**
     * 预计车辆数量
     */
    @ApiModelProperty(value= "超出天数")
    @TableField("Excess_time")
    private Integer ExcessTime;
    public Item() {}
src/main/webapp/static/js/chaoPrice/chaoPrice.js
@@ -30,6 +30,7 @@
            ,{field: 'cstmrUuid$', align: 'center',title: '客户名称'}
            ,{field: 'plandeAmt', align: 'center',title: '预计运费'}
            ,{field: 'realdeAmt', align: 'center',title: '实际运费'}
            ,{field: 'ExcessAmount', align: 'center',title: '超出运费'}
            ,{field: 'dutyMan', align: 'center', title: '责任人'}
            ,{field: 'dutyDepartment', align: 'center', title: '责任部门'}
            ,{field: 'status$', align: 'center',title: '状态'}
src/main/webapp/static/js/chaoTime/chaoTime.js
@@ -30,6 +30,7 @@
            ,{field: 'cstmrUuid$', align: 'center',title: '客户名称'}
            ,{field: 'planinDate$', align: 'center',title: '预计安装日期'}
            ,{field: 'realinDate$', align: 'center',title: '实际安装日期'}
            ,{field: 'ExcessTime', align: 'center',title: '超出天数'}
            ,{field: 'dutyMan', align: 'center', title: '责任人'}
            ,{field: 'dutyDepartment', align: 'center', title: '责任部门'}
            ,{field: 'status$', align: 'center',title: '状态'}