Pārlūkot izejas kodu

update确认支数时间

qiangxuan 1 mēnesi atpakaļ
vecāks
revīzija
1762fa8b3b

+ 1 - 0
zgztBus/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java

@@ -162,6 +162,7 @@ public class ShiroConfig {
         filterChainDefinitionMap.put("/sys/dict/getAllLicensePlate", "anon");
         filterChainDefinitionMap.put("/storageBill/updateSteelReachTime", "anon");
         filterChainDefinitionMap.put("/storageBill/queryByLicensePlate", "anon");
+        filterChainDefinitionMap.put("/storageBill/updateConfirmNumTime", "anon");
 
         //轧钢平台钢坯接收接口排除
         filterChainDefinitionMap.put("/actualControl/billetSendRecord/sendData", "anon");

+ 18 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/billet/storageBill/controller/StorageBillController.java

@@ -1617,6 +1617,24 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
 		return Result.OK("炼钢到达时间确认成功!");
 	}
 
+	@ApiOperation(value = "确认支数时间", notes = "确认支数时间")
+	@PostMapping("/updateConfirmNumTime")
+	public Result<String> confirmNumTime(@RequestBody StorageBillUpdateVo storageBillUpdateVo) {
+		// 先根据装运单id,判断装运单信息是否存在
+		StorageBill storageBill1 = storageBillService.getById(storageBillUpdateVo.getId());
+		if (storageBill1 == null) {
+			return Result.error("装运单不存在,确认支数时间失败!");
+		}
+
+		if (storageBillUpdateVo.getUpdateType() == 1){
+			storageBill1.setAmountTotal(storageBillUpdateVo.getAmountTotal());
+		}
+		storageBill1.setConfirmNumTime(new Date());
+		storageBillService.updateById(storageBill1);
+		return Result.OK("确认支数成功!");
+	}
+
+
 	/**
 	 * 通过车牌号查询装运单信息
 	 * @param licensePlate

+ 8 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/billet/storageBill/entity/StorageBill.java

@@ -188,4 +188,12 @@ public class StorageBill implements Serializable {
     @Excel(name = "新站台or旧站台", width = 15)
     @ApiModelProperty(value = "新站台or旧站台(0 新站台 1 旧站台)")
     private Integer newOldPlatform;
+
+    /**
+     * 确认支数时间
+     */
+    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "确认支数时间")
+    private Date confirmNumTime;
 }

+ 10 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/billet/storageBill/entity/StorageBillUpdateVo.java

@@ -0,0 +1,10 @@
+package org.jeecg.modules.billet.storageBill.entity;
+
+import lombok.Data;
+
+@Data
+public class StorageBillUpdateVo {
+    private String id;
+    private Integer amountTotal;
+    private Integer updateType;
+}