Commit 8d4cf0e5a851d2fa768f2a8cbb5b92332f6bda9b

Authored by mahuandong
1 parent f1031518

修改容器新增时容器enable状态

src/main/java/com/huaheng/pc/receipt/receiptContainerHeader/service/ReceiptContainerHeaderServiceImpl.java
@@ -375,6 +375,7 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai @@ -375,6 +375,7 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai
375 * 自动生成容器编码 375 * 自动生成容器编码
376 * @return 容器编码 376 * @return 容器编码
377 */ 377 */
  378 + @Transactional
378 public String createContainer(){ 379 public String createContainer(){
379 String code = MessageFormat.format("{0}{1}", 380 String code = MessageFormat.format("{0}{1}",
380 "LS", 381 "LS",
@@ -387,6 +388,7 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai @@ -387,6 +388,7 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai
387 container.setCreatedBy(ShiroUtils.getLoginName()); 388 container.setCreatedBy(ShiroUtils.getLoginName());
388 container.setLastUpdated(new Date()); 389 container.setLastUpdated(new Date());
389 container.setLastUpdatedBy(ShiroUtils.getLoginName()); 390 container.setLastUpdatedBy(ShiroUtils.getLoginName());
  391 + container.setEnable(true);
390 container.setStatus("empty"); 392 container.setStatus("empty");
391 if (!containerService.save(container)){ 393 if (!containerService.save(container)){
392 throw new ServiceException("新增容器失败"); 394 throw new ServiceException("新增容器失败");
src/main/resources/templates/receipt/receiving/add.html
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 <div class="form-group"> 70 <div class="form-group">
71 <label class="col-sm-3 control-label">定位规则:</label> 71 <label class="col-sm-3 control-label">定位规则:</label>
72 <div class="col-sm-8"> 72 <div class="col-sm-8">
73 - <select id="locatingRule" name="locatingRule" class="form-control" th:with="list=${@FilterConfigDetailService.queryFilterConfigDetail('入库')}"> 73 + <select id="locatingRule" name="locatingRule" class="form-control" th:with="list=${@FilterConfigDetailService.queryFilterConfigDetail('locationRule')}">
74 <option value="">请选择</option> 74 <option value="">请选择</option>
75 <option th:each="item : ${list}" th:text="${item['description']}" th:value="${item['code']}"></option> 75 <option th:each="item : ${list}" th:text="${item['description']}" th:value="${item['code']}"></option>
76 </select> 76 </select>