| | |
| | | import zy.cloud.wms.manager.service.ProjectPlanService; |
| | | import zy.cloud.wms.manager.service.ProjectTypeService; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | 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(); |
| | | } |
| | |
| | | @TableField("planCarnumber") |
| | | private Integer planCarnumber; |
| | | |
| | | /** |
| | | * 预计车辆数量 |
| | | */ |
| | | @ApiModelProperty(value= "超出金额") |
| | | @TableField("Excess_amount") |
| | | private Double ExcessAmount; |
| | | |
| | | /** |
| | | * 预计车辆数量 |
| | | */ |
| | | @ApiModelProperty(value= "超出天数") |
| | | @TableField("Excess_time") |
| | | private Integer ExcessTime; |
| | | |
| | | public Item() {} |
| | | |
| | |
| | | ,{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: '状态'} |
| | |
| | | ,{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: '状态'} |