diff --git a/api-admin/src/main/java/com/glxp/api/admin/entity/inventory/InvCountOrder.java b/api-admin/src/main/java/com/glxp/api/admin/entity/inventory/InvCountOrder.java
index 0a1ac4c7..b134f2b4 100644
--- a/api-admin/src/main/java/com/glxp/api/admin/entity/inventory/InvCountOrder.java
+++ b/api-admin/src/main/java/com/glxp/api/admin/entity/inventory/InvCountOrder.java
@@ -15,47 +15,47 @@ public class InvCountOrder {
/**
* 盘点单号
*/
- private String orderid;
+ private String orderId;
/**
* 仓库号
*/
- private String invstoragecode;
+ private String invStorageCode;
/**
* 分库号
*/
- private String invwarehousecode;
+ private String invWarehouseCode;
/**
* 货位号
*/
- private String invspacecode;
+ private String invSpaceCode;
/**
* 盘点用户ID
*/
- private String createuser;
+ private String createUser;
/**
* 创建时间
*/
- private Date createtime;
+ private Date createTime;
/**
* 更新时间
*/
- private Date updatetime;
+ private Date updateTime;
/**
* 审核用户ID
*/
- private String audituser;
+ private String auditUser;
/**
* 审核时间
*/
- private Date audittime;
+ private Date auditTime;
/**
* 状态
diff --git a/api-admin/src/main/java/com/glxp/api/admin/entity/inventory/InvCountOrderDetail.java b/api-admin/src/main/java/com/glxp/api/admin/entity/inventory/InvCountOrderDetail.java
index 2d969151..d0d20ac3 100644
--- a/api-admin/src/main/java/com/glxp/api/admin/entity/inventory/InvCountOrderDetail.java
+++ b/api-admin/src/main/java/com/glxp/api/admin/entity/inventory/InvCountOrderDetail.java
@@ -15,52 +15,52 @@ public class InvCountOrderDetail {
/**
* 盘点单号
*/
- private String orderidfk;
+ private String orderIdFk;
/**
* 产品ID
*/
- private String productid;
+ private String productId;
/**
* 批次号
*/
- private String batchno;
+ private String batchNo;
/**
* 生产日期
*/
- private Date producedate;
+ private Date produceDate;
/**
* 失效日期
*/
- private Date expiredate;
+ private Date expireDate;
/**
* 序列号
*/
- private String serialno;
+ private String serialNo;
/**
* 盘点数量
*/
- private Integer countnum;
+ private Integer countNum;
/**
* 账面数量
*/
- private Integer booknum;
+ private Integer bookNum;
/**
* 盘盈数量
*/
- private Integer profitnum;
+ private Integer profitNum;
/**
* 盘亏数量
*/
- private Integer lossnum;
+ private Integer lossNum;
/**
* 盈亏状态 0:亏损 1:盈利
diff --git a/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountCodesDao.xml b/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountCodesDao.xml
index 46465fd5..073c5459 100644
--- a/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountCodesDao.xml
+++ b/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountCodesDao.xml
@@ -1,136 +1,141 @@
-
-
-
-
-
-
-
-
-
-
-
-
- id, orderIdFk, productId, code, `status`
-
-
-
-
- delete from inv_count_codes
- where id = #{id,jdbcType=INTEGER}
-
-
-
- insert into inv_count_codes (orderIdFk, productId, code,
- `status`)
- values (#{orderidfk,jdbcType=VARCHAR}, #{productid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
- #{status,jdbcType=BOOLEAN})
-
-
-
- insert into inv_count_codes
-
-
+
+
+
+
+
+
+
+
+
+
+ id,
orderIdFk,
-
-
productId,
-
-
code,
-
-
- `status`,
-
-
-
-
- #{orderidfk,jdbcType=VARCHAR},
-
-
- #{productid,jdbcType=VARCHAR},
-
-
- #{code,jdbcType=VARCHAR},
-
-
- #{status,jdbcType=BOOLEAN},
-
-
-
-
-
- update inv_count_codes
-
-
- orderIdFk = #{orderidfk,jdbcType=VARCHAR},
-
-
- productId = #{productid,jdbcType=VARCHAR},
-
-
- code = #{code,jdbcType=VARCHAR},
-
-
- `status` = #{status,jdbcType=BOOLEAN},
-
-
- where id = #{id,jdbcType=INTEGER}
-
-
-
- update inv_count_codes
- set orderIdFk = #{orderidfk,jdbcType=VARCHAR},
- productId = #{productid,jdbcType=VARCHAR},
- code = #{code,jdbcType=VARCHAR},
- `status` = #{status,jdbcType=BOOLEAN}
- where id = #{id,jdbcType=INTEGER}
-
-
-
- update inv_count_codes
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.orderidfk,jdbcType=VARCHAR}
+ `status`
+
+
+
+
+
+ delete
+ from inv_count_codes
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ insert into inv_count_codes (orderIdFk, productId, code,
+ `status`)
+ values (#{orderIdFk,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
+ #{status,jdbcType=BOOLEAN})
+
+
+
+ insert into inv_count_codes
+
+
+ orderIdFk,
+
+
+ productId,
+
+
+ code,
+
+
+ `status`,
+
+
+
+
+ #{orderIdFk,jdbcType=VARCHAR},
+
+
+ #{productId,jdbcType=VARCHAR},
+
+
+ #{code,jdbcType=VARCHAR},
+
+
+ #{status,jdbcType=BOOLEAN},
+
+
+
+
+
+ update inv_count_codes
+
+
+ orderIdFk = #{orderIdFk,jdbcType=VARCHAR},
+
+
+ productId = #{productId,jdbcType=VARCHAR},
+
+
+ code = #{code,jdbcType=VARCHAR},
+
+
+ `status` = #{status,jdbcType=BOOLEAN},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update inv_count_codes
+ set orderIdFk = #{orderIdFk,jdbcType=VARCHAR},
+ productId = #{productId,jdbcType=VARCHAR},
+ code = #{code,jdbcType=VARCHAR},
+ `status` = #{status,jdbcType=BOOLEAN}
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update inv_count_codes
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.orderIdFk,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.productId,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=BOOLEAN}
+
+
+
+ where id in
+
+ #{item.id,jdbcType=INTEGER}
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.productid,jdbcType=VARCHAR}
+
+
+
+ insert into inv_count_codes
+ (orderIdFk, productId, code, `status`)
+ values
+
+ (#{item.orderIdFk,jdbcType=VARCHAR}, #{item.productId,jdbcType=VARCHAR}, #{item.code,jdbcType=VARCHAR},
+ #{item.status,jdbcType=BOOLEAN})
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=BOOLEAN}
-
-
-
- where id in
-
- #{item.id,jdbcType=INTEGER}
-
-
-
-
- insert into inv_count_codes
- (orderIdFk, productId, code, `status`)
- values
-
- (#{item.orderidfk,jdbcType=VARCHAR}, #{item.productid,jdbcType=VARCHAR}, #{item.code,jdbcType=VARCHAR},
- #{item.status,jdbcType=BOOLEAN})
-
-
+
\ No newline at end of file
diff --git a/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountOrderDao.xml b/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountOrderDao.xml
index b7e9d0a3..af37d99a 100644
--- a/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountOrderDao.xml
+++ b/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountOrderDao.xml
@@ -1,265 +1,273 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- id, orderId, invStorageCode, invWarehouseCode, invSpaceCode, `createUser`, createTime,
- updateTime, auditUser, auditTime, `status`, remark
-
-
-
-
- delete from inv_count_order
- where id = #{id,jdbcType=INTEGER}
-
-
-
- insert into inv_count_order (id, orderId, invStorageCode,
- invWarehouseCode, invSpaceCode, `createUser`,
- createTime, updateTime, auditUser,
- auditTime, `status`, remark
- )
- values (#{id,jdbcType=INTEGER}, #{orderid,jdbcType=VARCHAR}, #{invstoragecode,jdbcType=VARCHAR},
- #{invwarehousecode,jdbcType=VARCHAR}, #{invspacecode,jdbcType=VARCHAR}, #{createuser,jdbcType=VARCHAR},
- #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, #{audituser,jdbcType=VARCHAR},
- #{audittime,jdbcType=TIMESTAMP}, #{status,jdbcType=BOOLEAN}, #{remark,jdbcType=VARCHAR}
- )
-
-
-
- insert into inv_count_order
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
id,
-
-
orderId,
-
-
invStorageCode,
-
-
invWarehouseCode,
-
-
invSpaceCode,
-
-
`createUser`,
-
-
createTime,
-
-
updateTime,
-
-
auditUser,
-
-
auditTime,
-
-
`status`,
-
-
- remark,
-
-
-
-
- #{id,jdbcType=INTEGER},
-
-
- #{orderid,jdbcType=VARCHAR},
-
-
- #{invstoragecode,jdbcType=VARCHAR},
-
-
- #{invwarehousecode,jdbcType=VARCHAR},
-
-
- #{invspacecode,jdbcType=VARCHAR},
-
-
- #{createuser,jdbcType=VARCHAR},
-
-
- #{createtime,jdbcType=TIMESTAMP},
-
-
- #{updatetime,jdbcType=TIMESTAMP},
-
-
- #{audituser,jdbcType=VARCHAR},
-
-
- #{audittime,jdbcType=TIMESTAMP},
-
-
- #{status,jdbcType=BOOLEAN},
-
-
- #{remark,jdbcType=VARCHAR},
-
-
-
-
-
- update inv_count_order
-
-
- orderId = #{orderid,jdbcType=VARCHAR},
-
-
- invStorageCode = #{invstoragecode,jdbcType=VARCHAR},
-
-
- invWarehouseCode = #{invwarehousecode,jdbcType=VARCHAR},
-
-
- invSpaceCode = #{invspacecode,jdbcType=VARCHAR},
-
-
- `createUser` = #{createuser,jdbcType=VARCHAR},
-
-
- createTime = #{createtime,jdbcType=TIMESTAMP},
-
-
- updateTime = #{updatetime,jdbcType=TIMESTAMP},
-
-
- auditUser = #{audituser,jdbcType=VARCHAR},
-
-
- auditTime = #{audittime,jdbcType=TIMESTAMP},
-
-
- `status` = #{status,jdbcType=BOOLEAN},
-
-
- remark = #{remark,jdbcType=VARCHAR},
-
-
- where id = #{id,jdbcType=INTEGER}
-
-
-
- update inv_count_order
- set orderId = #{orderid,jdbcType=VARCHAR},
- invStorageCode = #{invstoragecode,jdbcType=VARCHAR},
- invWarehouseCode = #{invwarehousecode,jdbcType=VARCHAR},
- invSpaceCode = #{invspacecode,jdbcType=VARCHAR},
- `createUser` = #{createuser,jdbcType=VARCHAR},
- createTime = #{createtime,jdbcType=TIMESTAMP},
- updateTime = #{updatetime,jdbcType=TIMESTAMP},
- auditUser = #{audituser,jdbcType=VARCHAR},
- auditTime = #{audittime,jdbcType=TIMESTAMP},
- `status` = #{status,jdbcType=BOOLEAN},
- remark = #{remark,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
-
-
-
- update inv_count_order
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.orderid,jdbcType=VARCHAR}
+ remark
+
+
+
+
+
+ delete
+ from inv_count_order
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ insert into inv_count_order (id, orderId, invStorageCode,
+ invWarehouseCode, invSpaceCode, `createUser`,
+ createTime, updateTime, auditUser,
+ auditTime, `status`, remark)
+ values (#{id,jdbcType=INTEGER}, #{orderId,jdbcType=VARCHAR}, #{invStorageCode,jdbcType=VARCHAR},
+ #{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{auditUser,jdbcType=VARCHAR},
+ #{auditTime,jdbcType=TIMESTAMP}, #{status,jdbcType=BOOLEAN}, #{remark,jdbcType=VARCHAR})
+
+
+
+ insert into inv_count_order
+
+
+ id,
+
+
+ orderId,
+
+
+ invStorageCode,
+
+
+ invWarehouseCode,
+
+
+ invSpaceCode,
+
+
+ `createUser`,
+
+
+ createTime,
+
+
+ updateTime,
+
+
+ auditUser,
+
+
+ auditTime,
+
+
+ `status`,
+
+
+ remark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{orderId,jdbcType=VARCHAR},
+
+
+ #{invStorageCode,jdbcType=VARCHAR},
+
+
+ #{invWarehouseCode,jdbcType=VARCHAR},
+
+
+ #{invSpaceCode,jdbcType=VARCHAR},
+
+
+ #{createUser,jdbcType=VARCHAR},
+
+
+ #{createTime,jdbcType=TIMESTAMP},
+
+
+ #{updateTime,jdbcType=TIMESTAMP},
+
+
+ #{auditUser,jdbcType=VARCHAR},
+
+
+ #{auditTime,jdbcType=TIMESTAMP},
+
+
+ #{status,jdbcType=BOOLEAN},
+
+
+ #{remark,jdbcType=VARCHAR},
+
+
+
+
+
+ update inv_count_order
+
+
+ orderId = #{orderId,jdbcType=VARCHAR},
+
+
+ invStorageCode = #{invStorageCode,jdbcType=VARCHAR},
+
+
+ invWarehouseCode = #{invWarehouseCode,jdbcType=VARCHAR},
+
+
+ invSpaceCode = #{invSpaceCode,jdbcType=VARCHAR},
+
+
+ `createUser` = #{createUser,jdbcType=VARCHAR},
+
+
+ createTime = #{createTime,jdbcType=TIMESTAMP},
+
+
+ updateTime = #{updateTime,jdbcType=TIMESTAMP},
+
+
+ auditUser = #{auditUser,jdbcType=VARCHAR},
+
+
+ auditTime = #{auditTime,jdbcType=TIMESTAMP},
+
+
+ `status` = #{status,jdbcType=BOOLEAN},
+
+
+ remark = #{remark,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update inv_count_order
+ set orderId = #{orderId,jdbcType=VARCHAR},
+ invStorageCode = #{invStorageCode,jdbcType=VARCHAR},
+ invWarehouseCode = #{invWarehouseCode,jdbcType=VARCHAR},
+ invSpaceCode = #{invSpaceCode,jdbcType=VARCHAR},
+ `createUser` = #{createUser,jdbcType=VARCHAR},
+ createTime = #{createTime,jdbcType=TIMESTAMP},
+ updateTime = #{updateTime,jdbcType=TIMESTAMP},
+ auditUser = #{auditUser,jdbcType=VARCHAR},
+ auditTime = #{auditTime,jdbcType=TIMESTAMP},
+ `status` = #{status,jdbcType=BOOLEAN},
+ remark = #{remark,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update inv_count_order
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.orderId,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.invStorageCode,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.invWarehouseCode,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.invSpaceCode,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.createUser,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.auditUser,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.auditTime,jdbcType=TIMESTAMP}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=BOOLEAN}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
+
+
+
+ where id in
+
+ #{item.id,jdbcType=INTEGER}
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.invstoragecode,jdbcType=VARCHAR}
+
+
+
+ insert into inv_count_order
+ (id, orderId, invStorageCode, invWarehouseCode, invSpaceCode, `createUser`, createTime,
+ updateTime, auditUser, auditTime, `status`, remark)
+ values
+
+ (#{item.id,jdbcType=INTEGER}, #{item.orderid,jdbcType=VARCHAR}, #{item.invstoragecode,jdbcType=VARCHAR},
+ #{item.invwarehousecode,jdbcType=VARCHAR}, #{item.invspacecode,jdbcType=VARCHAR},
+ #{item.createuser,jdbcType=VARCHAR}, #{item.createtime,jdbcType=TIMESTAMP},
+ #{item.updatetime,jdbcType=TIMESTAMP},
+ #{item.audituser,jdbcType=VARCHAR}, #{item.audittime,jdbcType=TIMESTAMP}, #{item.status,jdbcType=BOOLEAN},
+ #{item.remark,jdbcType=VARCHAR})
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.invwarehousecode,jdbcType=VARCHAR}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.invspacecode,jdbcType=VARCHAR}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.createuser,jdbcType=VARCHAR}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.createtime,jdbcType=TIMESTAMP}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.updatetime,jdbcType=TIMESTAMP}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.audituser,jdbcType=VARCHAR}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.audittime,jdbcType=TIMESTAMP}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=BOOLEAN}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
-
-
-
- where id in
-
- #{item.id,jdbcType=INTEGER}
-
-
-
-
- insert into inv_count_order
- (id, orderId, invStorageCode, invWarehouseCode, invSpaceCode, `createUser`, createTime,
- updateTime, auditUser, auditTime, `status`, remark)
- values
-
- (#{item.id,jdbcType=INTEGER}, #{item.orderid,jdbcType=VARCHAR}, #{item.invstoragecode,jdbcType=VARCHAR},
- #{item.invwarehousecode,jdbcType=VARCHAR}, #{item.invspacecode,jdbcType=VARCHAR},
- #{item.createuser,jdbcType=VARCHAR}, #{item.createtime,jdbcType=TIMESTAMP}, #{item.updatetime,jdbcType=TIMESTAMP},
- #{item.audituser,jdbcType=VARCHAR}, #{item.audittime,jdbcType=TIMESTAMP}, #{item.status,jdbcType=BOOLEAN},
- #{item.remark,jdbcType=VARCHAR})
-
-
+
\ No newline at end of file
diff --git a/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountOrderDetailDao.xml b/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountOrderDetailDao.xml
index 3fddb9b7..b0819d7d 100644
--- a/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountOrderDetailDao.xml
+++ b/api-admin/src/main/resources/mybatis/mapper/inventory/InvCountOrderDetailDao.xml
@@ -1,257 +1,267 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- id, orderIdFk, productId, batchNo, produceDate, expireDate, serialNo, countNum, bookNum,
- profitNum, lossNum, `status`
-
-
-
-
- delete from inv_count_order_detail
- where id = #{id,jdbcType=INTEGER}
-
-
-
- insert into inv_count_order_detail (orderIdFk, productId, batchNo,
- produceDate, expireDate, serialNo,
- countNum, bookNum, profitNum,
- lossNum, `status`)
- values (#{orderidfk,jdbcType=VARCHAR}, #{productid,jdbcType=VARCHAR}, #{batchno,jdbcType=VARCHAR},
- #{producedate,jdbcType=TIMESTAMP}, #{expiredate,jdbcType=TIMESTAMP}, #{serialno,jdbcType=VARCHAR},
- #{countnum,jdbcType=INTEGER}, #{booknum,jdbcType=INTEGER}, #{profitnum,jdbcType=INTEGER},
- #{lossnum,jdbcType=INTEGER}, #{status,jdbcType=BOOLEAN})
-
-
-
- insert into inv_count_order_detail
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,
orderIdFk,
-
-
productId,
-
-
batchNo,
-
-
produceDate,
-
-
expireDate,
-
-
serialNo,
-
-
countNum,
-
-
bookNum,
-
-
profitNum,
-
-
lossNum,
-
-
- `status`,
-
-
-
-
- #{orderidfk,jdbcType=VARCHAR},
-
-
- #{productid,jdbcType=VARCHAR},
-
-
- #{batchno,jdbcType=VARCHAR},
-
-
- #{producedate,jdbcType=TIMESTAMP},
-
-
- #{expiredate,jdbcType=TIMESTAMP},
-
-
- #{serialno,jdbcType=VARCHAR},
-
-
- #{countnum,jdbcType=INTEGER},
-
-
- #{booknum,jdbcType=INTEGER},
-
-
- #{profitnum,jdbcType=INTEGER},
-
-
- #{lossnum,jdbcType=INTEGER},
-
-
- #{status,jdbcType=BOOLEAN},
-
-
-
-
-
- update inv_count_order_detail
-
-
- orderIdFk = #{orderidfk,jdbcType=VARCHAR},
-
-
- productId = #{productid,jdbcType=VARCHAR},
-
-
- batchNo = #{batchno,jdbcType=VARCHAR},
-
-
- produceDate = #{producedate,jdbcType=TIMESTAMP},
-
-
- expireDate = #{expiredate,jdbcType=TIMESTAMP},
-
-
- serialNo = #{serialno,jdbcType=VARCHAR},
-
-
- countNum = #{countnum,jdbcType=INTEGER},
-
-
- bookNum = #{booknum,jdbcType=INTEGER},
-
-
- profitNum = #{profitnum,jdbcType=INTEGER},
-
-
- lossNum = #{lossnum,jdbcType=INTEGER},
-
-
- `status` = #{status,jdbcType=BOOLEAN},
-
-
- where id = #{id,jdbcType=INTEGER}
-
-
-
- update inv_count_order_detail
- set orderIdFk = #{orderidfk,jdbcType=VARCHAR},
- productId = #{productid,jdbcType=VARCHAR},
- batchNo = #{batchno,jdbcType=VARCHAR},
- produceDate = #{producedate,jdbcType=TIMESTAMP},
- expireDate = #{expiredate,jdbcType=TIMESTAMP},
- serialNo = #{serialno,jdbcType=VARCHAR},
- countNum = #{countnum,jdbcType=INTEGER},
- bookNum = #{booknum,jdbcType=INTEGER},
- profitNum = #{profitnum,jdbcType=INTEGER},
- lossNum = #{lossnum,jdbcType=INTEGER},
- `status` = #{status,jdbcType=BOOLEAN}
- where id = #{id,jdbcType=INTEGER}
-
-
-
- update inv_count_order_detail
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.orderidfk,jdbcType=VARCHAR}
+ `status`
+
+
+
+
+
+ delete
+ from inv_count_order_detail
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ insert into inv_count_order_detail (orderIdFk, productId, batchNo,
+ produceDate, expireDate, serialNo,
+ countNum, bookNum, profitNum,
+ lossNum, `status`)
+ values (#{orderIdFk,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR},
+ #{produceDate,jdbcType=TIMESTAMP}, #{expireDate,jdbcType=TIMESTAMP}, #{serialNo,jdbcType=VARCHAR},
+ #{countNum,jdbcType=INTEGER}, #{bookNum,jdbcType=INTEGER}, #{profitNum,jdbcType=INTEGER},
+ #{lossNum,jdbcType=INTEGER}, #{status,jdbcType=BOOLEAN})
+
+
+
+ insert into inv_count_order_detail
+
+
+ orderIdFk,
+
+
+ productId,
+
+
+ batchNo,
+
+
+ produceDate,
+
+
+ expireDate,
+
+
+ serialNo,
+
+
+ countNum,
+
+
+ bookNum,
+
+
+ profitNum,
+
+
+ lossNum,
+
+
+ `status`,
+
+
+
+
+ #{orderIdFk,jdbcType=VARCHAR},
+
+
+ #{productId,jdbcType=VARCHAR},
+
+
+ #{batchNo,jdbcType=VARCHAR},
+
+
+ #{produceDate,jdbcType=TIMESTAMP},
+
+
+ #{expireDate,jdbcType=TIMESTAMP},
+
+
+ #{serialNo,jdbcType=VARCHAR},
+
+
+ #{countNum,jdbcType=INTEGER},
+
+
+ #{bookNum,jdbcType=INTEGER},
+
+
+ #{profitNum,jdbcType=INTEGER},
+
+
+ #{lossNum,jdbcType=INTEGER},
+
+
+ #{status,jdbcType=BOOLEAN},
+
+
+
+
+
+ update inv_count_order_detail
+
+
+ orderIdFk = #{orderIdFk,jdbcType=VARCHAR},
+
+
+ productId = #{productId,jdbcType=VARCHAR},
+
+
+ batchNo = #{batchNo,jdbcType=VARCHAR},
+
+
+ produceDate = #{produceDate,jdbcType=TIMESTAMP},
+
+
+ expireDate = #{expireDate,jdbcType=TIMESTAMP},
+
+
+ serialNo = #{serialNo,jdbcType=VARCHAR},
+
+
+ countNum = #{countNum,jdbcType=INTEGER},
+
+
+ bookNum = #{bookNum,jdbcType=INTEGER},
+
+
+ profitNum = #{profitNum,jdbcType=INTEGER},
+
+
+ lossNum = #{lossNum,jdbcType=INTEGER},
+
+
+ `status` = #{status,jdbcType=BOOLEAN},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update inv_count_order_detail
+ set orderIdFk = #{orderIdFk,jdbcType=VARCHAR},
+ productId = #{productId,jdbcType=VARCHAR},
+ batchNo = #{batchNo,jdbcType=VARCHAR},
+ produceDate = #{produceDate,jdbcType=TIMESTAMP},
+ expireDate = #{expireDate,jdbcType=TIMESTAMP},
+ serialNo = #{serialNo,jdbcType=VARCHAR},
+ countNum = #{countNum,jdbcType=INTEGER},
+ bookNum = #{bookNum,jdbcType=INTEGER},
+ profitNum = #{productId,jdbcType=INTEGER},
+ lossNum = #{lossNum,jdbcType=INTEGER},
+ `status` = #{status,jdbcType=BOOLEAN}
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update inv_count_order_detail
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.orderIdFk,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.productId,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.batchNo,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.produceDate,jdbcType=TIMESTAMP}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.expireDate,jdbcType=TIMESTAMP}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.serialNo,jdbcType=VARCHAR}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.countNum,jdbcType=INTEGER}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.bookNum,jdbcType=INTEGER}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.profitNum,jdbcType=INTEGER}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.lossNum,jdbcType=INTEGER}
+
+
+
+
+ when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=BOOLEAN}
+
+
+
+ where id in
+
+ #{item.id,jdbcType=INTEGER}
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.productid,jdbcType=VARCHAR}
+
+
+
+ insert into inv_count_order_detail
+ (orderIdFk, productId, batchNo, produceDate, expireDate, serialNo, countNum, bookNum,
+ profitNum, lossNum, `status`)
+ values
+
+ (#{item.orderIdFk,jdbcType=VARCHAR}, #{item.productId,jdbcType=VARCHAR}, #{item.batchNo,jdbcType=VARCHAR},
+ #{item.produceDate,jdbcType=TIMESTAMP}, #{item.expireDate,jdbcType=TIMESTAMP},
+ #{item.serialNo,jdbcType=VARCHAR}, #{item.countNum,jdbcType=INTEGER}, #{item.bookNum,jdbcType=INTEGER},
+ #{item.profitNum,jdbcType=INTEGER}, #{item.lossNum,jdbcType=INTEGER}, #{item.status,jdbcType=BOOLEAN})
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.batchno,jdbcType=VARCHAR}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.producedate,jdbcType=TIMESTAMP}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.expiredate,jdbcType=TIMESTAMP}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.serialno,jdbcType=VARCHAR}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.countnum,jdbcType=INTEGER}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.booknum,jdbcType=INTEGER}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.profitnum,jdbcType=INTEGER}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.lossnum,jdbcType=INTEGER}
-
-
-
-
- when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=BOOLEAN}
-
-
-
- where id in
-
- #{item.id,jdbcType=INTEGER}
-
-
-
-
- insert into inv_count_order_detail
- (orderIdFk, productId, batchNo, produceDate, expireDate, serialNo, countNum, bookNum,
- profitNum, lossNum, `status`)
- values
-
- (#{item.orderidfk,jdbcType=VARCHAR}, #{item.productid,jdbcType=VARCHAR}, #{item.batchno,jdbcType=VARCHAR},
- #{item.producedate,jdbcType=TIMESTAMP}, #{item.expiredate,jdbcType=TIMESTAMP},
- #{item.serialno,jdbcType=VARCHAR}, #{item.countnum,jdbcType=INTEGER}, #{item.booknum,jdbcType=INTEGER},
- #{item.profitnum,jdbcType=INTEGER}, #{item.lossnum,jdbcType=INTEGER}, #{item.status,jdbcType=BOOLEAN}
- )
-
-
+
\ No newline at end of file