src/main/java/zy/cloud/wms/manager/controller/ItemController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/zy/cloud/wms/manager/entity/Cstmr.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/zy/cloud/wms/manager/entity/Item.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/zy/cloud/wms/manager/service/impl/ItemServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/CstmrMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/static/js/item/item.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/views/itemManager/itemManager.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/zy/cloud/wms/manager/controller/ItemController.java
@@ -30,6 +30,8 @@ private ProjectPlanService planService; @Autowired private FlowStatusService flowStatusService; @Autowired private CstmrService cstmrService; @RequestMapping(value = "/item/{id}/auth") @ManagerAuth @@ -106,10 +108,13 @@ @RequestMapping(value = "/item/add/auth") @ManagerAuth public R add(Item item) { /** * 控管 */ if (Cools.isEmpty(item)) { return R.error("参数为空,请联系管理员"); } //item.setType("1"); // if (!item.getType().equals("1")) { // throw new CoolException("目前仅支持集成项目"); @@ -122,7 +127,18 @@ if (item.getRealMonth() < 0){ throw new CoolException("实施周期不可为负数"); } if (Cools.isEmpty(item.getCstmrUuid())) { throw new CoolException("请选择客户"); } Cstmr cstmr = cstmrService.selectOne(new EntityWrapper<Cstmr>() .eq("id",Long.parseLong(item.getUuid()))); if (Cools.isEmpty(cstmr)) { throw new CoolException("找不到该客户,请检查"); } item.setCustMan(cstmr.getName()); item.setCustMobile(cstmr.getTel()); item.setCustAdress(cstmr.getAddr()); item.setHostId(getHostId()); item.setCreateBy(getUserId()); item.setCreateTime(new Date()); src/main/java/zy/cloud/wms/manager/entity/Cstmr.java
@@ -128,21 +128,7 @@ // null // 备注 // ); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getHostId() { return hostId; } public void setHostId(Long hostId) { this.hostId = hostId; } public String getHostId$(){ HostService service = SpringUtils.getBean(HostService.class); @@ -153,49 +139,6 @@ return null; } public String getUuid() { return uuid; } public void setUuid(String uuid) { this.uuid = uuid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getContacts() { return contacts; } public void setContacts(String contacts) { this.contacts = contacts; } public String getTel() { return tel; } public void setTel(String tel) { this.tel = tel; } public String getAddr() { return addr; } public void setAddr(String addr) { this.addr = addr; } public Integer getStatus() { return status; } public String getStatus$(){ if (null == this.status){ return null; } @@ -209,13 +152,6 @@ } } public void setStatus(Integer status) { this.status = status; } public Long getCreateBy() { return createBy; } public String getCreateBy$(){ UserService service = SpringUtils.getBean(UserService.class); @@ -226,14 +162,6 @@ return null; } public void setCreateBy(Long createBy) { this.createBy = createBy; } public Date getCreateTime() { return createTime; } public String getCreateTime$(){ if (Cools.isEmpty(this.createTime)){ return ""; @@ -241,13 +169,7 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Long getUpdateBy() { return updateBy; } public String getUpdateBy$(){ UserService service = SpringUtils.getBean(UserService.class); @@ -258,13 +180,7 @@ return null; } public void setUpdateBy(Long updateBy) { this.updateBy = updateBy; } public Date getUpdateTime() { return updateTime; } public String getUpdateTime$(){ if (Cools.isEmpty(this.updateTime)){ @@ -272,18 +188,5 @@ } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public String getMemo() { return memo; } public void setMemo(String memo) { this.memo = memo; } } src/main/java/zy/cloud/wms/manager/entity/Item.java
@@ -364,7 +364,7 @@ */ @ApiModelProperty(value= "预计车辆数量") @TableField("planCarnumber") private Integer planCarnumber; private String planCarnumber; /** * 超出金额 src/main/java/zy/cloud/wms/manager/service/impl/ItemServiceImpl.java
@@ -47,6 +47,7 @@ @Transactional @Override public void insertAll(Item item) { this.insert(item); List<FlowStatus> allTypes = flowStatusService.selectList(new EntityWrapper<FlowStatus>() .eq("type", item.getType()) src/main/resources/mapper/CstmrMapper.xml
@@ -17,6 +17,7 @@ <result column="update_by" property="updateBy" /> <result column="update_time" property="updateTime" /> <result column="memo" property="memo" /> <result column="user_code" property="userCode" /> </resultMap> src/main/webapp/static/js/item/item.js
@@ -39,7 +39,7 @@ ,{field: 'realEndTime0$', align: 'center', title: '实际结束时间'} ,{field: 'type$', align: 'center', title: '项目类型'} ,{field: 'originArea', align: 'center', title: '生产地'} ,{field: 'realMonth', align: 'center', title: '时间跨度(月)'} ,{field: 'realMonth', align: 'center', title: '时间跨度(天)'} ,{field: 'dutyMan', align: 'center', title: '责任人'} ,{field: 'dutyDepartment', align: 'center', title: '责任部门'} ,{field: 'status$', align: 'center',title: '状态'} src/main/webapp/views/itemManager/itemManager.html
@@ -114,7 +114,8 @@ <div class="layui-form-item"> <label class="layui-form-label">预计车辆数量: </label> <div class="layui-input-block"> <input class="layui-input" name="planCarnumber" onkeyup="value=value.replace(/[^\d]/g,'').replace(/^0{1,}/g,'')" placeholder="请输入预计车辆大小"> <!-- <input class="layui-input" name="planCarnumber" onkeyup="value=value.replace(/[^\d]/g,'').replace(/^0{1,}/g,'')" placeholder="请输入预计车辆大小">--> <input class="layui-input" name="planCarnumber" placeholder="请输入预计车辆大小"> </div> </div> </div>