From e7c9fc40786f387f2c0d65e10294317480b0f621 Mon Sep 17 00:00:00 2001
From: 杨凯 <398860375@qq.com>
Date: 星期二, 17 十月 2023 22:05:06 +0800
Subject: [PATCH] 上传核心业务服务
---
consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcure_mapper.java | 405 ++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferModel.java | 238 +
consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferGoods_mapper.java | 325 ++
consum-base/src/main/java/com/consum/base/core/WarehouseBusinessService.java | 87
consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferGoods.java | 260 +
consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransfer.java | 590 ++++
consum-base/src/main/java/com/consum/base/core/UnifyBusinessService.java | 1
consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventory.java | 524 +++
consum-base/src/main/java/com/consum/base/core/WarehouseCoreService.java | 94
consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryGoods_mapper.java | 357 ++
consum-base/doc/项目资料/河南邮政低值易耗品V20231011.pdm | 32
consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryModel_mapper.java | 317 ++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransfer_mapper.java | 529 +++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcureGoods_mapper.java | 293 ++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedGoods.java | 304 ++
consum-base/src/main/java/com/consum/base/core/data/Base_CategoryService.java | 88
consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedModel_mapper.java | 325 ++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventory_mapper.java | 493 +++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcureModel_mapper.java | 397 ++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryGoods.java | 304 ++
consum-base/src/main/java/com/consum/base/core/CheckWarehouseResult.java | 2
/dev/null | 16
consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedGoods_mapper.java | 345 ++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedModel.java | 260 +
consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryModel.java | 238 +
consum-base/doc/项目资料/河南邮政低值易耗品V20231011.pdb | 56
consum-base/src/main/java/com/consum/base/core/util/DateUtil.java | 25
deploy-jar-single/src/main/java/com/consum/test/base/Base_Category.java | 37
consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrapped.java | 502 +++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrapped_mapper.java | 477 +++
consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferModel_mapper.java | 321 ++
31 files changed, 8,132 insertions(+), 110 deletions(-)
diff --git "a/consum-base/doc/\351\241\271\347\233\256\350\265\204\346\226\231/\346\262\263\345\215\227\351\202\256\346\224\277\344\275\216\345\200\274\346\230\223\350\200\227\345\223\201V20231011.pdb" "b/consum-base/doc/\351\241\271\347\233\256\350\265\204\346\226\231/\346\262\263\345\215\227\351\202\256\346\224\277\344\275\216\345\200\274\346\230\223\350\200\227\345\223\201V20231011.pdb"
index 1eb7dd3..cce1ba3 100644
--- "a/consum-base/doc/\351\241\271\347\233\256\350\265\204\346\226\231/\346\262\263\345\215\227\351\202\256\346\224\277\344\275\216\345\200\274\346\230\223\350\200\227\345\223\201V20231011.pdb"
+++ "b/consum-base/doc/\351\241\271\347\233\256\350\265\204\346\226\231/\346\262\263\345\215\227\351\202\256\346\224\277\344\275\216\345\200\274\346\230\223\350\200\227\345\223\201V20231011.pdb"
@@ -1213,7 +1213,7 @@
[ModelOptions\Default Opts\JIDX]
PhysOpts=</a:ModelOptionsText>
<a:GlobalObjectID/>
-<a:RepositoryFilename>E:\doc\璁烘枃\proposal-document\娌冲崡閭斂浣庡�兼槗鑰楀搧\娌冲崡閭斂浣庡�兼槗鑰楀搧V20231011.pdm</a:RepositoryFilename>
+<a:RepositoryFilename>C:\project\low-consum-manage\consum-base\doc\椤圭洰璧勬枡\娌冲崡閭斂浣庡�兼槗鑰楀搧V20231011.pdm</a:RepositoryFilename>
<a:ExtendedAttributesText>{F4F16ECD-F2F1-4006-AF6F-638D5C65F35E},MYSQL50,75={C6E0B27F-F765-4DDD-87DA-84EB4CD5A1BC},AutoFixMaterializedViewDone,4=true
</a:ExtendedAttributesText>
@@ -5158,9 +5158,9 @@
<c:Symbols>
<o:ReferenceSymbol Id="o121">
<a:CreationDate>1697267670</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
-<a:Rect>((30704,51583), (31954,56389))</a:Rect>
-<a:ListOfPoints>((31329,55989),(31329,51983))</a:ListOfPoints>
+<a:ModificationDate>1697546637</a:ModificationDate>
+<a:Rect>((39450,50879), (40700,56917))</a:Rect>
+<a:ListOfPoints>((40075,56517),(40075,51279))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5180,9 +5180,9 @@
</o:ReferenceSymbol>
<o:ReferenceSymbol Id="o125">
<a:CreationDate>1697267671</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
-<a:Rect>((18548,49422), (20348,50672))</a:Rect>
-<a:ListOfPoints>((19126,50047),(18948,50047))</a:ListOfPoints>
+<a:ModificationDate>1697546637</a:ModificationDate>
+<a:Rect>((18548,49464), (28326,50714))</a:Rect>
+<a:ListOfPoints>((27926,50089),(18948,50089))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5239,9 +5239,9 @@
<c:SubSymbols>
<o:TableSymbol Id="o131">
<a:CreationDate>1696994977</a:CreationDate>
-<a:ModificationDate>1697268532</a:ModificationDate>
+<a:ModificationDate>1697464925</a:ModificationDate>
<a:IconMode>-1</a:IconMode>
-<a:Rect>((-112377,84708), (-88755,104506))</a:Rect>
+<a:Rect>((-111039,86204), (-87417,106002))</a:Rect>
<a:LineColor>12615680</a:LineColor>
<a:FillColor>4194368</a:FillColor>
<a:ShadowColor>12632256</a:ShadowColor>
@@ -5264,9 +5264,9 @@
</o:TableSymbol>
<o:TableSymbol Id="o133">
<a:CreationDate>1696994977</a:CreationDate>
-<a:ModificationDate>1697268532</a:ModificationDate>
+<a:ModificationDate>1697464922</a:ModificationDate>
<a:IconMode>-1</a:IconMode>
-<a:Rect>((-148266,82635), (-129394,107233))</a:Rect>
+<a:Rect>((-147008,83108), (-128136,107706))</a:Rect>
<a:LineColor>12615680</a:LineColor>
<a:FillColor>4194368</a:FillColor>
<a:ShadowColor>12632256</a:ShadowColor>
@@ -5295,8 +5295,8 @@
<o:ReferenceSymbol Id="o136">
<a:CreationDate>1696479126</a:CreationDate>
<a:ModificationDate>1697264398</a:ModificationDate>
-<a:Rect>((-116072,59629), (-110517,60879))</a:Rect>
-<a:ListOfPoints>((-110917,60254),(-115672,60254))</a:ListOfPoints>
+<a:Rect>((-116072,59549), (-110517,60799))</a:Rect>
+<a:ListOfPoints>((-110917,60174),(-115672,60174))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5316,9 +5316,9 @@
</o:ReferenceSymbol>
<o:ReferenceSymbol Id="o140">
<a:CreationDate>1696558477</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
-<a:Rect>((17548,61176), (19348,62426))</a:Rect>
-<a:ListOfPoints>((18921,61801),(18948,61801))</a:ListOfPoints>
+<a:ModificationDate>1697546631</a:ModificationDate>
+<a:Rect>((18548,61591), (26889,62841))</a:Rect>
+<a:ListOfPoints>((26489,62216),(18948,62216))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5339,8 +5339,8 @@
<o:ReferenceSymbol Id="o142">
<a:CreationDate>1696565481</a:CreationDate>
<a:ModificationDate>1696995209</a:ModificationDate>
-<a:Rect>((-113681,28677), (-110144,29927))</a:Rect>
-<a:ListOfPoints>((-110544,29302),(-113281,29302))</a:ListOfPoints>
+<a:Rect>((-113681,28631), (-110144,29881))</a:Rect>
+<a:ListOfPoints>((-110544,29256),(-113281,29256))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5361,8 +5361,8 @@
<o:ReferenceSymbol Id="o146">
<a:CreationDate>1696836074</a:CreationDate>
<a:ModificationDate>1697264398</a:ModificationDate>
-<a:Rect>((-100120,54164), (-98870,57694))</a:Rect>
-<a:ListOfPoints>((-99495,54564),(-99495,57294))</a:ListOfPoints>
+<a:Rect>((-100118,54164), (-98868,57694))</a:Rect>
+<a:ListOfPoints>((-99493,54564),(-99493,57294))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5383,8 +5383,8 @@
<o:ReferenceSymbol Id="o149">
<a:CreationDate>1696850446</a:CreationDate>
<a:ModificationDate>1696995211</a:ModificationDate>
-<a:Rect>((-100388,21589), (-99138,25157))</a:Rect>
-<a:ListOfPoints>((-99763,21989),(-99763,24757))</a:ListOfPoints>
+<a:Rect>((-100709,21589), (-99459,25157))</a:Rect>
+<a:ListOfPoints>((-100084,21989),(-100084,24757))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5702,9 +5702,9 @@
</o:TableSymbol>
<o:TableSymbol Id="o122">
<a:CreationDate>1696558477</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
+<a:ModificationDate>1697546631</a:ModificationDate>
<a:IconMode>-1</a:IconMode>
-<a:Rect>((18921,55989), (43069,67387))</a:Rect>
+<a:Rect>((26489,56517), (50637,67915))</a:Rect>
<a:LineColor>12615680</a:LineColor>
<a:FillColor>12615935</a:FillColor>
<a:ShadowColor>12632256</a:ShadowColor>
@@ -5966,8 +5966,8 @@
<o:NoteSymbol Id="o194">
<a:Text>褰撳簱瀛樹负0鏃讹紝姝ゆ潯璁板綍灏嗕細琚繚鐣欙紝浣嗙姸鎬佷細澶勪簬宸插垹闄�</a:Text>
<a:CreationDate>1696994977</a:CreationDate>
-<a:ModificationDate>1697018503</a:ModificationDate>
-<a:Rect>((-127493,90296), (-112743,96196))</a:Rect>
+<a:ModificationDate>1697464927</a:ModificationDate>
+<a:Rect>((-127257,91477), (-112507,97377))</a:Rect>
<a:FontColor>16777215</a:FontColor>
<a:TextStyle>4130</a:TextStyle>
<a:LineColor>16711680</a:LineColor>
@@ -6076,9 +6076,9 @@
</o:TextSymbol>
<o:TableSymbol Id="o123">
<a:CreationDate>1697267525</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
+<a:ModificationDate>1697546637</a:ModificationDate>
<a:IconMode>-1</a:IconMode>
-<a:Rect>((19126,36985), (43424,51983))</a:Rect>
+<a:Rect>((27926,36281), (52224,51279))</a:Rect>
<a:LineColor>12615680</a:LineColor>
<a:FillColor>16570034</a:FillColor>
<a:ShadowColor>12632256</a:ShadowColor>
diff --git "a/consum-base/doc/\351\241\271\347\233\256\350\265\204\346\226\231/\346\262\263\345\215\227\351\202\256\346\224\277\344\275\216\345\200\274\346\230\223\350\200\227\345\223\201V20231011.pdm" "b/consum-base/doc/\351\241\271\347\233\256\350\265\204\346\226\231/\346\262\263\345\215\227\351\202\256\346\224\277\344\275\216\345\200\274\346\230\223\350\200\227\345\223\201V20231011.pdm"
index 2aa1cc0..d1ab537 100644
--- "a/consum-base/doc/\351\241\271\347\233\256\350\265\204\346\226\231/\346\262\263\345\215\227\351\202\256\346\224\277\344\275\216\345\200\274\346\230\223\350\200\227\345\223\201V20231011.pdm"
+++ "b/consum-base/doc/\351\241\271\347\233\256\350\265\204\346\226\231/\346\262\263\345\215\227\351\202\256\346\224\277\344\275\216\345\200\274\346\230\223\350\200\227\345\223\201V20231011.pdm"
@@ -1213,7 +1213,7 @@
[ModelOptions\Default Opts\JIDX]
PhysOpts=</a:ModelOptionsText>
<a:GlobalObjectID/>
-<a:RepositoryFilename>E:\doc\璁烘枃\proposal-document\娌冲崡閭斂浣庡�兼槗鑰楀搧\娌冲崡閭斂浣庡�兼槗鑰楀搧V20231011.pdm</a:RepositoryFilename>
+<a:RepositoryFilename>C:\project\low-consum-manage\consum-base\doc\椤圭洰璧勬枡\娌冲崡閭斂浣庡�兼槗鑰楀搧V20231011.pdm</a:RepositoryFilename>
<a:ExtendedAttributesText>{F4F16ECD-F2F1-4006-AF6F-638D5C65F35E},MYSQL50,75={C6E0B27F-F765-4DDD-87DA-84EB4CD5A1BC},AutoFixMaterializedViewDone,4=true
</a:ExtendedAttributesText>
@@ -5158,9 +5158,9 @@
<c:Symbols>
<o:ReferenceSymbol Id="o121">
<a:CreationDate>1697267670</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
-<a:Rect>((30704,51583), (31954,56389))</a:Rect>
-<a:ListOfPoints>((31329,55989),(31329,51983))</a:ListOfPoints>
+<a:ModificationDate>1697546637</a:ModificationDate>
+<a:Rect>((39450,50879), (40700,56917))</a:Rect>
+<a:ListOfPoints>((40075,56517),(40075,51279))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5180,9 +5180,9 @@
</o:ReferenceSymbol>
<o:ReferenceSymbol Id="o125">
<a:CreationDate>1697267671</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
-<a:Rect>((18548,49422), (20348,50672))</a:Rect>
-<a:ListOfPoints>((19126,50047),(18948,50047))</a:ListOfPoints>
+<a:ModificationDate>1697546637</a:ModificationDate>
+<a:Rect>((18548,49464), (28326,50714))</a:Rect>
+<a:ListOfPoints>((27926,50089),(18948,50089))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5316,9 +5316,9 @@
</o:ReferenceSymbol>
<o:ReferenceSymbol Id="o140">
<a:CreationDate>1696558477</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
-<a:Rect>((17548,61176), (19348,62426))</a:Rect>
-<a:ListOfPoints>((18921,61801),(18948,61801))</a:ListOfPoints>
+<a:ModificationDate>1697546631</a:ModificationDate>
+<a:Rect>((18548,61591), (26889,62841))</a:Rect>
+<a:ListOfPoints>((26489,62216),(18948,62216))</a:ListOfPoints>
<a:CornerStyle>1</a:CornerStyle>
<a:ArrowStyle>1</a:ArrowStyle>
<a:LineColor>12615680</a:LineColor>
@@ -5702,9 +5702,9 @@
</o:TableSymbol>
<o:TableSymbol Id="o122">
<a:CreationDate>1696558477</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
+<a:ModificationDate>1697546631</a:ModificationDate>
<a:IconMode>-1</a:IconMode>
-<a:Rect>((18921,55989), (43069,67387))</a:Rect>
+<a:Rect>((26489,56517), (50637,67915))</a:Rect>
<a:LineColor>12615680</a:LineColor>
<a:FillColor>12615935</a:FillColor>
<a:ShadowColor>12632256</a:ShadowColor>
@@ -6076,9 +6076,9 @@
</o:TextSymbol>
<o:TableSymbol Id="o123">
<a:CreationDate>1697267525</a:CreationDate>
-<a:ModificationDate>1697267780</a:ModificationDate>
+<a:ModificationDate>1697546637</a:ModificationDate>
<a:IconMode>-1</a:IconMode>
-<a:Rect>((19126,36985), (43424,51983))</a:Rect>
+<a:Rect>((27926,36281), (52224,51279))</a:Rect>
<a:LineColor>12615680</a:LineColor>
<a:FillColor>16570034</a:FillColor>
<a:ShadowColor>12632256</a:ShadowColor>
@@ -8938,8 +8938,8 @@
<a:Code>PROCURE_DATE</a:Code>
<a:CreationDate>1696994977</a:CreationDate>
<a:Creator>asus</a:Creator>
-<a:ModificationDate>1697266604</a:ModificationDate>
-<a:Modifier>39886</a:Modifier>
+<a:ModificationDate>1697547773</a:ModificationDate>
+<a:Modifier>Administrator</a:Modifier>
<a:Comment>棣栨鍏ュ簱鏃堕棿锛堟寚绗竴娆″叆搴撴椂闂达紝璇ュ瓧娈电敓鎴愪箣鍚庝笉浼氭敼鍙橈級</a:Comment>
<a:DataType>bigint</a:DataType>
<a:GlobalObjectID/>
diff --git a/consum-base/src/main/java/com/consum/base/core/CheckWarehouseResult.java b/consum-base/src/main/java/com/consum/base/core/CheckWarehouseResult.java
index 43aa245..d215bfe 100644
--- a/consum-base/src/main/java/com/consum/base/core/CheckWarehouseResult.java
+++ b/consum-base/src/main/java/com/consum/base/core/CheckWarehouseResult.java
@@ -18,7 +18,7 @@
/**
* 鎿嶄綔鏇存柊鎴栨柊澧炵殑WH_GOODS搴撳瓨鐗╁搧ID
*/
- private WhGoods goods;
+ private WhGoods whGoods;
/**
* 鎵ц鎿嶄綔鏃剁殑鏈熷垵鏁伴噺
diff --git a/consum-base/src/main/java/com/consum/base/core/UnifyBusinessService.java b/consum-base/src/main/java/com/consum/base/core/UnifyBusinessService.java
index 4400df0..b6e34fb 100644
--- a/consum-base/src/main/java/com/consum/base/core/UnifyBusinessService.java
+++ b/consum-base/src/main/java/com/consum/base/core/UnifyBusinessService.java
@@ -2,7 +2,6 @@
import com.consum.base.core.po.WhFormProcure;
-import com.consum.base.core.po.WhFormTransfer;
import org.springframework.stereotype.Service;
/**
diff --git a/consum-base/src/main/java/com/consum/base/core/WarehouseBusinessService.java b/consum-base/src/main/java/com/consum/base/core/WarehouseBusinessService.java
index f8091e5..d39badc 100644
--- a/consum-base/src/main/java/com/consum/base/core/WarehouseBusinessService.java
+++ b/consum-base/src/main/java/com/consum/base/core/WarehouseBusinessService.java
@@ -1,17 +1,13 @@
package com.consum.base.core;
import com.consum.base.core.po.WhFormInventory;
-import com.consum.base.core.po.WhFormProcure;
-import com.consum.base.core.po.WhFormTransfer;
import com.consum.base.core.tools.SqlParameter;
-import com.consum.base.core.tools.SuperMap;
-import com.consum.model.po.WhFormProcureModel;
+import com.consum.model.po.*;
import com.walker.infrastructure.utils.NumberGenerator;
import com.walker.jdbc.service.BaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
-import java.util.Map;
/**
* 杩涘嚭搴� 涓氬姟澶� 绫�
@@ -49,14 +45,34 @@
param.setFirstInputCode(model.getId().toString());
param.setFirst_input_type(1);
param.setModelId(model.getBaseGoodsModelsId());
- CheckWarehouseResult result = coreService.unifyCheck(param);
+ CheckWarehouseResult result = coreService.unifyCheck(param)[0];
+ WhGoodsDetails details = new WhGoodsDetails();
+ details.setId(result.getWhGoods().getFirstInputHisId());
+ details.setBusinessFormId(procure.getId());
+ details.setBusinessFormCode(procure.getBusinessFormCode());
+ details.setBusinessFormName(procure.getWarehouseName() + "閲囪喘鍏ュ簱鍗�:" + details.getBusinessFormCode());
+ details.setInitialCount(result.getInitial_count());
+ details.setThisType(1);
+ details.setEndCount(result.getEnd_count());
+ details.setWarehouseId(param.getWarehouseId());
+ details.setWarehouseName(procure.getWarehouseName());
+ details.setClassification(1);
+ details.setOperatorId(procure.getOperatorId2());
+ details.setOperatorName(procure.getOperatorName2());
+ details.setDealTime(procure.getIncomeTime());
+ details.setWhGoodsId(result.getWhGoods().getId());
+ this.insert(details);
+
+
+ model.setInWhGoodsDetailsId(details.getId());
+ update(model);
+
+ procure.setStates(2);
+ update(procure);
}
-
-
-
}
/**
@@ -68,7 +84,50 @@
* @param transfer
*/
public void doTransferOutPut(WhFormTransfer transfer){
+ String sql = "SELECT\n" +
+ " * \n" +
+ "FROM\n" +
+ " WH_FORM_TRANSFER_GOODS A \n" +
+ "WHERE\n" +
+ " A.WH_FORM_TRANSFER_ID = : TRANSFER_ID";
+ List<WhFormTransferGoods> goodsList = this.select(sql,new SqlParameter()
+ .put("TRANSFER_ID",transfer.getId()),new WhFormTransferGoods());
+
+ for (WhFormTransferGoods goods : goodsList){
+ CheckWarehouseParam param = new CheckWarehouseParam();
+ param.setIsCheckIn(false);
+ param.setWarehouseId(transfer.getOutWarehouseId());
+ param.setCount(goods.getCounts());
+ CheckWarehouseResult[] results = coreService.unifyCheck(param);
+ for (CheckWarehouseResult result : results){
+ WhFormTransferModel model = new WhFormTransferModel();
+ model.setId(NumberGenerator.getLongSequenceNumber());
+ model.setWhFormTransferId(transfer.getId());
+ model.setWorehouseCount(result.getInitial_count());
+ model.setCounts(result.getInitial_count() - result.getInitial_count());
+ model.setOutWhGoodsDetailsId(result.getWhGoods().getId());
+ model.setWhFormTransferGoodsId(goods.getId());
+ insert(model);
+
+ WhGoodsDetails details = new WhGoodsDetails();
+ details.setBusinessFormId(transfer.getId());
+ details.setBusinessFormCode(transfer.getBusinessFormCode());
+ details.setBusinessFormName("璋冩嫧鍑哄簱鍗曪細" + transfer.getBusinessFormCode());
+ details.setInitialCount(result.getInitial_count());
+ details.setThisType(2);
+ details.setThisCount(result.getInitial_count() - result.getEnd_count());
+ details.setEndCount(result.getEnd_count());
+ details.setWarehouseId(result.getWhGoods().getWarehouseId());
+ details.setWarehouseName(result.getWhGoods().getWarehouseName());
+ details.setClassification(5);
+ details.setOperatorId(transfer.getOperatorId());
+ details.setOperatorName(transfer.getOperatorName());
+ details.setDealTime(transfer.getOutputTime());
+ details.setWhGoodsId(result.getWhGoods().getId());
+ this.insert(details);
+ }
+ }
}
/**
@@ -81,6 +140,16 @@
*/
public void doTransferInPut(WhFormTransfer transfer){
+ String sql = "SELECT\n" +
+ " * \n" +
+ "FROM\n" +
+ " WH_FORM_TRANSFER_GOODS A \n" +
+ "WHERE\n" +
+ " A.WH_FORM_TRANSFER_ID = : TRANSFER_ID";
+
+ List<WhFormTransferGoods> goodsList = this.select(sql,new SqlParameter()
+ .put("TRANSFER_ID",transfer.getId()),new WhFormTransferGoods());
+
}
/**
diff --git a/consum-base/src/main/java/com/consum/base/core/WarehouseCoreService.java b/consum-base/src/main/java/com/consum/base/core/WarehouseCoreService.java
index e21dd52..e321550 100644
--- a/consum-base/src/main/java/com/consum/base/core/WarehouseCoreService.java
+++ b/consum-base/src/main/java/com/consum/base/core/WarehouseCoreService.java
@@ -1,12 +1,12 @@
package com.consum.base.core;
import com.consum.base.core.tools.SqlParameter;
+import com.consum.base.core.util.DateUtil;
import com.consum.model.po.*;
import com.walker.infrastructure.utils.NumberGenerator;
import com.walker.jdbc.service.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert;
import java.util.List;
@@ -18,7 +18,6 @@
@Service
@Slf4j
public class WarehouseCoreService extends BaseServiceImpl {
-
public static void main(String[] args) {
WhGoods goods = new WhGoods();
@@ -34,15 +33,15 @@
/**
* 缁熶竴鍑哄叆搴�
*/
- public CheckWarehouseResult unifyCheck(CheckWarehouseParam param) {
+ public CheckWarehouseResult[] unifyCheck(CheckWarehouseParam param) {
// TODO: 10/10/2023 姝ゅ鍔犱簡鍞竴閿侊紝浼氬奖鍝嶆�ц兘锛屾�濊�冩槸鍚︽湁鏇村悎閫傜殑鍔炴硶
try {
Assert.notNull(param, "wareHouse param can not null !");
Assert.notNull(param.getWarehouseId(), "wareHouse id can not null");
- CheckWarehouseResult result;
+ CheckWarehouseResult[] result;
synchronized (param.getWarehouseId()) {
if (param.getIsCheckIn()) {
- result = checkin(param);
+ result = new CheckWarehouseResult[]{checkin(param)};
} else {
result = checkout(param);
}
@@ -58,25 +57,45 @@
/**
* 鍑哄簱
*/
- private CheckWarehouseResult checkout(CheckWarehouseParam param) {
- return new CheckWarehouseResult();
+ private CheckWarehouseResult[] checkout(CheckWarehouseParam param) {
+ String sql = "SELECT\n" +
+ " * \n" +
+ "FROM\n" +
+ " WH_GOODS \n" +
+ "WHERE\n" +
+ " WAREHOUSE_ID =:WAREHOUSE_ID \n" +
+ " AND BASE_GOODS_MODELS_ID =:BASE_GOODS_MODELS_ID \n" +
+ " AND STATES =1 \n" +
+ " AND WH_COUNT > 0 \n" +
+ " order by PROCURE_DATE asc PRICE DESC";
+ SqlParameter parameter = new SqlParameter();
+ parameter.add("WAREHOUSE_ID",param.getWarehouseId())
+ .add("BASE_GOODS_MODELS_ID",param.getModelId());
+ List<WhGoods> goodsList = select(sql,parameter,new WhGoods());
+
+ for (WhGoods goods : goodsList){
+
+ }
+
+
+
+ return null;
}
private BaseWarehouse getWarehouse(long id){
- BaseWarehouse w = get(new BaseWarehouse(),"ID=:ID",new Object[]{id});
+ BaseWarehouse w = get(new BaseWarehouse(),"ID=?",new Object[]{id});
return w;
}
/**
* 鍏ュ簱
*/
- private CheckWarehouseResult checkin(CheckWarehouseParam param) {
+ private CheckWarehouseResult checkin(CheckWarehouseParam param) throws RuntimeException {
//濡傛灉鏄噰璐叆搴�
if (param.getFirst_input_type() ==1){
- WhFormProcureModel procureModel = get(new WhFormProcureModel(),"ID=:ID",new Object[]{param.getFirstInputCode()});
- WhFormProcure procure = get(new WhFormProcure(),"ID=:ID",new Object[]{procureModel.getWhFormProcureId()});
-
+ WhFormProcureModel procureModel = get(new WhFormProcureModel(),"ID=?",new Object[]{param.getFirstInputCode()});
+ WhFormProcure procure = get(new WhFormProcure(),"ID=?",new Object[]{procureModel.getWhFormProcureId()});
WhGoods goods = new WhGoods();
goods.setId(NumberGenerator.getLongSequenceNumber());
@@ -101,10 +120,15 @@
insert(goods);
CheckWarehouseResult result = new CheckWarehouseResult();
- result.setGoods(goods);
+ result.setWhGoods(goods);
result.setInitial_count(0);
result.setEnd_count(goods.getAllCount());
return result;
+ //闆舵槦鍏ュ簱
+ } else if (param.getFirst_input_type() ==2){
+
+ return null;
+
}
String sql = "SELECT\n" +
@@ -114,7 +138,8 @@
"WHERE\n" +
" WAREHOUSE_ID =:WAREHOUSE_ID \n" +
" AND FIRST_INPUT_CODE =:FIRST_INPUT_CODE \n" +
- " AND BASE_GOODS_MODELS_ID =:BASE_GOODS_MODELS_ID";
+ " AND BASE_GOODS_MODELS_ID =:BASE_GOODS_MODELS_ID" +
+ " order by PROCURE_DATE desc PRICE asc";
SqlParameter parameter = new SqlParameter();
parameter.add("WAREHOUSE_ID",param.getWarehouseId())
.add("FIRST_INPUT_CODE",param.getFirstInputCode())
@@ -122,35 +147,26 @@
List<WhGoods> goodsList = select(sql,parameter,new WhGoods());
- //绗竴娆″叆搴擄細閲囪喘鍏ュ簱鎴栬�呴浂鏄熷叆搴�
if (goodsList == null || goodsList.size() == 0){
- BaseGoodsModels m = new BaseGoodsModels();
- m.setId(param.getModelId());
- BaseGoodsModels models = get(m);
+ new RuntimeException("鏌ヤ笉鍒板巻鍙插簱瀛�");
+ return null;
+ }
- BaseGoodsTemplate t = new BaseGoodsTemplate();
- t.setId(models.getGoodsTemplatesId());
- BaseGoodsTemplate template = get(t);
+ for (WhGoods goods : goodsList){
+ CheckWarehouseResult result = new CheckWarehouseResult();
+ result.setWhGoods(goods);
+ result.setInitial_count(goods.getWhCount());
+ result.setEnd_count(goods.getWhCount() + param.getCount());
- BaseWarehouse w = new BaseWarehouse();
- w.setId(param.getWarehouseId());
- BaseWarehouse warehouse = get(w);
+ WhGoods newGoods = new WhGoods();
+ newGoods.setId(goods.getId());
+ newGoods.setWhCount(result.getEnd_count());
+ newGoods.setAllCount(goods.getAllCount() + param.getCount());
+ newGoods.setStates(1);
+ newGoods.setBackDate(DateUtil.getCurrentDateFor14());
+ this.update(newGoods);
- WhGoods goods = new WhGoods();
- goods.setId(NumberGenerator.getLongSequenceNumber());
- goods.setBaseGoodsTemplateId(template.getId());
- goods.setGoodsTemplateName(template.getGoodsName());
- goods.setBaseGoodsModelsId(models.getId());
- goods.setBaseGoodsModelsName(models.getModelName());
- goods.setWhCount(param.getCount());
- goods.setTransferCount(0);
- goods.setAllCount(param.getCount());
- goods.setFirstInputCode(param.getFirstInputCode());
-// goods.setFirstInputType(); 杩欎釜鍊煎湪涓氬姟浠g爜灞傞潰娣诲姞
-// goods.setFirstInputHisId();杩欎釜鍊煎湪涓氬姟浠g爜灞傞潰娣诲姞
- goods.setWarehouseId(param.getWarehouseId());
- goods.setWarehouseName(warehouse.getWarehouseName());
-
+ return result;
}
diff --git a/consum-base/src/main/java/com/consum/base/core/data/Base_CategoryService.java b/consum-base/src/main/java/com/consum/base/core/data/Base_CategoryService.java
new file mode 100644
index 0000000..d85228b
--- /dev/null
+++ b/consum-base/src/main/java/com/consum/base/core/data/Base_CategoryService.java
@@ -0,0 +1,88 @@
+package com.consum.base.core.data;
+
+import com.consum.model.po.BaseCategory;
+import com.walker.infrastructure.utils.NumberGenerator;
+import com.walker.jdbc.service.BaseServiceImpl;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Service
+public class Base_CategoryService extends BaseServiceImpl {
+
+
+ public void addFirstCategory(long fid){
+ String[] classifications = new String[]{"A","B","C","A","B","C","A","B","C","A","B","C","A","B","C"};
+ for (int i=0;i<5;i++){
+ int j = 0;
+ j++;
+ if (j == 4) {
+ j = 0;
+ }
+ BaseCategory category = new BaseCategory();
+ category.setId(NumberGenerator.getLongSequenceNumber());
+ category.setCategoryName("鐢靛瓙浜у搧"+i);
+ category.setLevels(1);
+ category.setFatherCategoryId(fid);
+ category.setClassification(classifications[j]);
+ category.setOrderNumber(j);
+ insert(category);
+ }
+ }
+
+ public void addSecondCategory(long firstid){
+
+ String sql = "select ID from base_category where LEVELS=1";
+
+ List<Map<String,Object>> list = select(sql,new HashMap<>());
+ for (Map map : list){
+
+ String[] classifications = new String[]{"A","B","C","A","B","C","A","B","C","A","B","C","A","B","C"};
+ for (int i=0;i<50;i++){
+ int j = 0;
+ j++;
+ if (j == 4) {
+ j = 0;
+ }
+ BaseCategory category = new BaseCategory();
+ category.setId(NumberGenerator.getLongSequenceNumber());
+ category.setCategoryName("鎵嬫満"+i);
+ category.setLevels(2);
+ category.setFatherCategoryId(Long.valueOf(map.get("ID").toString()));
+ category.setClassification(classifications[j]);
+ category.setStates(1);
+ category.setOrderNumber(j);
+ insert(category);
+ }
+ }
+ }
+
+ public void addThirdCategory(long secondid){
+ String sql = "select ID from base_category where LEVELS=2";
+
+ List<Map<String,Object>> list = select(sql,new HashMap<>());
+ for (Map map : list){
+
+ String[] classifications = new String[]{"A","B","C","A","B","C","A","B","C","A","B","C","A","B","C"};
+ for (int i=0;i<50;i++){
+ int j = 0;
+ j++;
+ if (j == 4) {
+ j = 0;
+ }
+ BaseCategory category = new BaseCategory();
+ category.setId(NumberGenerator.getLongSequenceNumber());
+ category.setCategoryName("鎵嬫満"+i);
+ category.setLevels(3);
+ category.setFatherCategoryId(Long.valueOf(map.get("ID").toString()));
+ category.setClassification(classifications[j]);
+ category.setStates(1);
+ category.setOrderNumber(j);
+ insert(category);
+ }
+ }
+ }
+
+}
diff --git a/consum-base/src/main/java/com/consum/base/core/po/WhFormTransfer.java b/consum-base/src/main/java/com/consum/base/core/po/WhFormTransfer.java
deleted file mode 100644
index c71b119..0000000
--- a/consum-base/src/main/java/com/consum/base/core/po/WhFormTransfer.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.consum.base.core.po;
-
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-/**
- * 璋冩嫧鍗曘�怶H_FORM_TRANSFER銆�
- */
-@Data
-@NoArgsConstructor
-@AllArgsConstructor
-public class WhFormTransfer {
-
- private Long id;
-}
diff --git a/consum-base/src/main/java/com/consum/base/core/util/DateUtil.java b/consum-base/src/main/java/com/consum/base/core/util/DateUtil.java
new file mode 100644
index 0000000..060d6ed
--- /dev/null
+++ b/consum-base/src/main/java/com/consum/base/core/util/DateUtil.java
@@ -0,0 +1,25 @@
+package com.consum.base.core.util;
+
+import com.walker.infrastructure.utils.DateUtils;
+
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+
+public class DateUtil extends DateUtils {
+
+
+ public static void main(String[] args) {
+ System.out.println(DateUtil.getCurrentDateFor14());
+ }
+
+ /**
+ * 杩斿洖14浣嶅勾鏈堟棩鏃跺垎绉� 20230912081256
+ * @return
+ */
+ public static Long getCurrentDateFor14(){
+ Date date = new Date();
+ SimpleDateFormat dateFormat= new SimpleDateFormat("yyyyMMddHHmmss");
+ return Long.valueOf(dateFormat.format(date));
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventory.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventory.java
new file mode 100644
index 0000000..393c73c
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventory.java
@@ -0,0 +1,524 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_INVENTORY *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormInventory extends BasePo<WhFormInventory> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private String businessFormCode = null;
+ @JsonIgnore
+ protected boolean isset_businessFormCode = false;
+
+ private String businessFormName = null;
+ @JsonIgnore
+ protected boolean isset_businessFormName = false;
+
+ private Long warehouseId = null;
+ @JsonIgnore
+ protected boolean isset_warehouseId = false;
+
+ private String warehouseName = null;
+ @JsonIgnore
+ protected boolean isset_warehouseName = false;
+
+ private Long operatorId = null;
+ @JsonIgnore
+ protected boolean isset_operatorId = false;
+
+ private String operatorName = null;
+ @JsonIgnore
+ protected boolean isset_operatorName = false;
+
+ private Integer states = null;
+ @JsonIgnore
+ protected boolean isset_states = false;
+
+ private Long operatorId2 = null;
+ @JsonIgnore
+ protected boolean isset_operatorId2 = false;
+
+ private String operatorName2 = null;
+ @JsonIgnore
+ protected boolean isset_operatorName2 = false;
+
+ private Integer isMoreThanBefore = null;
+ @JsonIgnore
+ protected boolean isset_isMoreThanBefore = false;
+
+ private Integer isLessThanBefore = null;
+ @JsonIgnore
+ protected boolean isset_isLessThanBefore = false;
+
+ private String beiz1 = null;
+ @JsonIgnore
+ protected boolean isset_beiz1 = false;
+
+ private String beiz2 = null;
+ @JsonIgnore
+ protected boolean isset_beiz2 = false;
+
+ private Long agencyId = null;
+ @JsonIgnore
+ protected boolean isset_agencyId = false;
+
+ private String agencyName = null;
+ @JsonIgnore
+ protected boolean isset_agencyName = false;
+
+ private Long creatorId = null;
+ @JsonIgnore
+ protected boolean isset_creatorId = false;
+
+ private String creatorName = null;
+ @JsonIgnore
+ protected boolean isset_creatorName = false;
+
+ private Long inventoryDate = null;
+ @JsonIgnore
+ protected boolean isset_inventoryDate = false;
+
+ private Long createTime = null;
+ @JsonIgnore
+ protected boolean isset_createTime = false;
+
+ private Long stopTime = null;
+ @JsonIgnore
+ protected boolean isset_stopTime = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormInventory() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormInventory(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public String getBusinessFormCode() {
+ return this.businessFormCode;
+ }
+
+ public void setBusinessFormCode(String businessFormCode) {
+ this.businessFormCode = businessFormCode;
+ this.isset_businessFormCode = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBusinessFormCode() {
+ return this.businessFormCode == null || this.businessFormCode.length() == 0;
+ }
+
+ public String getBusinessFormName() {
+ return this.businessFormName;
+ }
+
+ public void setBusinessFormName(String businessFormName) {
+ this.businessFormName = businessFormName;
+ this.isset_businessFormName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBusinessFormName() {
+ return this.businessFormName == null || this.businessFormName.length() == 0;
+ }
+
+ public Long getWarehouseId() {
+ return this.warehouseId;
+ }
+
+ public void setWarehouseId(Long warehouseId) {
+ this.warehouseId = warehouseId;
+ this.isset_warehouseId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWarehouseId() {
+ return this.warehouseId == null;
+ }
+
+ public String getWarehouseName() {
+ return this.warehouseName;
+ }
+
+ public void setWarehouseName(String warehouseName) {
+ this.warehouseName = warehouseName;
+ this.isset_warehouseName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWarehouseName() {
+ return this.warehouseName == null || this.warehouseName.length() == 0;
+ }
+
+ public Long getOperatorId() {
+ return this.operatorId;
+ }
+
+ public void setOperatorId(Long operatorId) {
+ this.operatorId = operatorId;
+ this.isset_operatorId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorId() {
+ return this.operatorId == null;
+ }
+
+ public String getOperatorName() {
+ return this.operatorName;
+ }
+
+ public void setOperatorName(String operatorName) {
+ this.operatorName = operatorName;
+ this.isset_operatorName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorName() {
+ return this.operatorName == null || this.operatorName.length() == 0;
+ }
+
+ public Integer getStates() {
+ return this.states;
+ }
+
+ public void setStates(Integer states) {
+ this.states = states;
+ this.isset_states = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyStates() {
+ return this.states == null;
+ }
+
+ public Long getOperatorId2() {
+ return this.operatorId2;
+ }
+
+ public void setOperatorId2(Long operatorId2) {
+ this.operatorId2 = operatorId2;
+ this.isset_operatorId2 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorId2() {
+ return this.operatorId2 == null;
+ }
+
+ public String getOperatorName2() {
+ return this.operatorName2;
+ }
+
+ public void setOperatorName2(String operatorName2) {
+ this.operatorName2 = operatorName2;
+ this.isset_operatorName2 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorName2() {
+ return this.operatorName2 == null || this.operatorName2.length() == 0;
+ }
+
+ public Integer getIsMoreThanBefore() {
+ return this.isMoreThanBefore;
+ }
+
+ public void setIsMoreThanBefore(Integer isMoreThanBefore) {
+ this.isMoreThanBefore = isMoreThanBefore;
+ this.isset_isMoreThanBefore = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyIsMoreThanBefore() {
+ return this.isMoreThanBefore == null;
+ }
+
+ public Integer getIsLessThanBefore() {
+ return this.isLessThanBefore;
+ }
+
+ public void setIsLessThanBefore(Integer isLessThanBefore) {
+ this.isLessThanBefore = isLessThanBefore;
+ this.isset_isLessThanBefore = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyIsLessThanBefore() {
+ return this.isLessThanBefore == null;
+ }
+
+ public String getBeiz1() {
+ return this.beiz1;
+ }
+
+ public void setBeiz1(String beiz1) {
+ this.beiz1 = beiz1;
+ this.isset_beiz1 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz1() {
+ return this.beiz1 == null || this.beiz1.length() == 0;
+ }
+
+ public String getBeiz2() {
+ return this.beiz2;
+ }
+
+ public void setBeiz2(String beiz2) {
+ this.beiz2 = beiz2;
+ this.isset_beiz2 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz2() {
+ return this.beiz2 == null || this.beiz2.length() == 0;
+ }
+
+ public Long getAgencyId() {
+ return this.agencyId;
+ }
+
+ public void setAgencyId(Long agencyId) {
+ this.agencyId = agencyId;
+ this.isset_agencyId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyAgencyId() {
+ return this.agencyId == null;
+ }
+
+ public String getAgencyName() {
+ return this.agencyName;
+ }
+
+ public void setAgencyName(String agencyName) {
+ this.agencyName = agencyName;
+ this.isset_agencyName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyAgencyName() {
+ return this.agencyName == null || this.agencyName.length() == 0;
+ }
+
+ public Long getCreatorId() {
+ return this.creatorId;
+ }
+
+ public void setCreatorId(Long creatorId) {
+ this.creatorId = creatorId;
+ this.isset_creatorId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCreatorId() {
+ return this.creatorId == null;
+ }
+
+ public String getCreatorName() {
+ return this.creatorName;
+ }
+
+ public void setCreatorName(String creatorName) {
+ this.creatorName = creatorName;
+ this.isset_creatorName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCreatorName() {
+ return this.creatorName == null || this.creatorName.length() == 0;
+ }
+
+ public Long getInventoryDate() {
+ return this.inventoryDate;
+ }
+
+ public void setInventoryDate(Long inventoryDate) {
+ this.inventoryDate = inventoryDate;
+ this.isset_inventoryDate = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInventoryDate() {
+ return this.inventoryDate == null;
+ }
+
+ public Long getCreateTime() {
+ return this.createTime;
+ }
+
+ public void setCreateTime(Long createTime) {
+ this.createTime = createTime;
+ this.isset_createTime = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCreateTime() {
+ return this.createTime == null;
+ }
+
+ public Long getStopTime() {
+ return this.stopTime;
+ }
+
+ public void setStopTime(Long stopTime) {
+ this.stopTime = stopTime;
+ this.isset_stopTime = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyStopTime() {
+ return this.stopTime == null;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("businessFormCode=").append(this.businessFormCode)
+ .append("businessFormName=").append(this.businessFormName)
+ .append("warehouseId=").append(this.warehouseId)
+ .append("warehouseName=").append(this.warehouseName)
+ .append("operatorId=").append(this.operatorId)
+ .append("operatorName=").append(this.operatorName)
+ .append("states=").append(this.states)
+ .append("operatorId2=").append(this.operatorId2)
+ .append("operatorName2=").append(this.operatorName2)
+ .append("isMoreThanBefore=").append(this.isMoreThanBefore)
+ .append("isLessThanBefore=").append(this.isLessThanBefore)
+ .append("beiz1=").append(this.beiz1)
+ .append("beiz2=").append(this.beiz2)
+ .append("agencyId=").append(this.agencyId)
+ .append("agencyName=").append(this.agencyName)
+ .append("creatorId=").append(this.creatorId)
+ .append("creatorName=").append(this.creatorName)
+ .append("inventoryDate=").append(this.inventoryDate)
+ .append("createTime=").append(this.createTime)
+ .append("stopTime=").append(this.stopTime)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormInventory $clone() {
+ WhFormInventory wh_form_inventory = new WhFormInventory();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_inventory.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_inventory.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_businessFormCode) {
+ wh_form_inventory.setBusinessFormCode(this.getBusinessFormCode());
+ }
+ if (this.isset_businessFormName) {
+ wh_form_inventory.setBusinessFormName(this.getBusinessFormName());
+ }
+ if (this.isset_warehouseId) {
+ wh_form_inventory.setWarehouseId(this.getWarehouseId());
+ }
+ if (this.isset_warehouseName) {
+ wh_form_inventory.setWarehouseName(this.getWarehouseName());
+ }
+ if (this.isset_operatorId) {
+ wh_form_inventory.setOperatorId(this.getOperatorId());
+ }
+ if (this.isset_operatorName) {
+ wh_form_inventory.setOperatorName(this.getOperatorName());
+ }
+ if (this.isset_states) {
+ wh_form_inventory.setStates(this.getStates());
+ }
+ if (this.isset_operatorId2) {
+ wh_form_inventory.setOperatorId2(this.getOperatorId2());
+ }
+ if (this.isset_operatorName2) {
+ wh_form_inventory.setOperatorName2(this.getOperatorName2());
+ }
+ if (this.isset_isMoreThanBefore) {
+ wh_form_inventory.setIsMoreThanBefore(this.getIsMoreThanBefore());
+ }
+ if (this.isset_isLessThanBefore) {
+ wh_form_inventory.setIsLessThanBefore(this.getIsLessThanBefore());
+ }
+ if (this.isset_beiz1) {
+ wh_form_inventory.setBeiz1(this.getBeiz1());
+ }
+ if (this.isset_beiz2) {
+ wh_form_inventory.setBeiz2(this.getBeiz2());
+ }
+ if (this.isset_agencyId) {
+ wh_form_inventory.setAgencyId(this.getAgencyId());
+ }
+ if (this.isset_agencyName) {
+ wh_form_inventory.setAgencyName(this.getAgencyName());
+ }
+ if (this.isset_creatorId) {
+ wh_form_inventory.setCreatorId(this.getCreatorId());
+ }
+ if (this.isset_creatorName) {
+ wh_form_inventory.setCreatorName(this.getCreatorName());
+ }
+ if (this.isset_inventoryDate) {
+ wh_form_inventory.setInventoryDate(this.getInventoryDate());
+ }
+ if (this.isset_createTime) {
+ wh_form_inventory.setCreateTime(this.getCreateTime());
+ }
+ if (this.isset_stopTime) {
+ wh_form_inventory.setStopTime(this.getStopTime());
+ }
+ return wh_form_inventory;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryGoods.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryGoods.java
new file mode 100644
index 0000000..1959413
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryGoods.java
@@ -0,0 +1,304 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_INVENTORY_GOODS *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormInventoryGoods extends BasePo<WhFormInventoryGoods> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private Long whFormInventoryId = null;
+ @JsonIgnore
+ protected boolean isset_whFormInventoryId = false;
+
+ private Long baseGoodsTemplateId = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsTemplateId = false;
+
+ private String goodsTemplateName = null;
+ @JsonIgnore
+ protected boolean isset_goodsTemplateName = false;
+
+ private String unit = null;
+ @JsonIgnore
+ protected boolean isset_unit = false;
+
+ private Long baseGoodsModelsId = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsModelsId = false;
+
+ private String baseGoodsModelsName = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsModelsName = false;
+
+ private Integer initCounts = null;
+ @JsonIgnore
+ protected boolean isset_initCounts = false;
+
+ private Integer inventoryCounts = null;
+ @JsonIgnore
+ protected boolean isset_inventoryCounts = false;
+
+ private Integer errorCounts = null;
+ @JsonIgnore
+ protected boolean isset_errorCounts = false;
+
+ private Integer inventoryResult = null;
+ @JsonIgnore
+ protected boolean isset_inventoryResult = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormInventoryGoods() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormInventoryGoods(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public Long getWhFormInventoryId() {
+ return this.whFormInventoryId;
+ }
+
+ public void setWhFormInventoryId(Long whFormInventoryId) {
+ this.whFormInventoryId = whFormInventoryId;
+ this.isset_whFormInventoryId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhFormInventoryId() {
+ return this.whFormInventoryId == null;
+ }
+
+ public Long getBaseGoodsTemplateId() {
+ return this.baseGoodsTemplateId;
+ }
+
+ public void setBaseGoodsTemplateId(Long baseGoodsTemplateId) {
+ this.baseGoodsTemplateId = baseGoodsTemplateId;
+ this.isset_baseGoodsTemplateId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsTemplateId() {
+ return this.baseGoodsTemplateId == null;
+ }
+
+ public String getGoodsTemplateName() {
+ return this.goodsTemplateName;
+ }
+
+ public void setGoodsTemplateName(String goodsTemplateName) {
+ this.goodsTemplateName = goodsTemplateName;
+ this.isset_goodsTemplateName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyGoodsTemplateName() {
+ return this.goodsTemplateName == null || this.goodsTemplateName.length() == 0;
+ }
+
+ public String getUnit() {
+ return this.unit;
+ }
+
+ public void setUnit(String unit) {
+ this.unit = unit;
+ this.isset_unit = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyUnit() {
+ return this.unit == null || this.unit.length() == 0;
+ }
+
+ public Long getBaseGoodsModelsId() {
+ return this.baseGoodsModelsId;
+ }
+
+ public void setBaseGoodsModelsId(Long baseGoodsModelsId) {
+ this.baseGoodsModelsId = baseGoodsModelsId;
+ this.isset_baseGoodsModelsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsModelsId() {
+ return this.baseGoodsModelsId == null;
+ }
+
+ public String getBaseGoodsModelsName() {
+ return this.baseGoodsModelsName;
+ }
+
+ public void setBaseGoodsModelsName(String baseGoodsModelsName) {
+ this.baseGoodsModelsName = baseGoodsModelsName;
+ this.isset_baseGoodsModelsName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsModelsName() {
+ return this.baseGoodsModelsName == null || this.baseGoodsModelsName.length() == 0;
+ }
+
+ public Integer getInitCounts() {
+ return this.initCounts;
+ }
+
+ public void setInitCounts(Integer initCounts) {
+ this.initCounts = initCounts;
+ this.isset_initCounts = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInitCounts() {
+ return this.initCounts == null;
+ }
+
+ public Integer getInventoryCounts() {
+ return this.inventoryCounts;
+ }
+
+ public void setInventoryCounts(Integer inventoryCounts) {
+ this.inventoryCounts = inventoryCounts;
+ this.isset_inventoryCounts = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInventoryCounts() {
+ return this.inventoryCounts == null;
+ }
+
+ public Integer getErrorCounts() {
+ return this.errorCounts;
+ }
+
+ public void setErrorCounts(Integer errorCounts) {
+ this.errorCounts = errorCounts;
+ this.isset_errorCounts = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyErrorCounts() {
+ return this.errorCounts == null;
+ }
+
+ public Integer getInventoryResult() {
+ return this.inventoryResult;
+ }
+
+ public void setInventoryResult(Integer inventoryResult) {
+ this.inventoryResult = inventoryResult;
+ this.isset_inventoryResult = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInventoryResult() {
+ return this.inventoryResult == null;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("whFormInventoryId=").append(this.whFormInventoryId)
+ .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
+ .append("goodsTemplateName=").append(this.goodsTemplateName)
+ .append("unit=").append(this.unit)
+ .append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
+ .append("baseGoodsModelsName=").append(this.baseGoodsModelsName)
+ .append("initCounts=").append(this.initCounts)
+ .append("inventoryCounts=").append(this.inventoryCounts)
+ .append("errorCounts=").append(this.errorCounts)
+ .append("inventoryResult=").append(this.inventoryResult)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormInventoryGoods $clone() {
+ WhFormInventoryGoods wh_form_inventory_goods = new WhFormInventoryGoods();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_inventory_goods.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_inventory_goods.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_whFormInventoryId) {
+ wh_form_inventory_goods.setWhFormInventoryId(this.getWhFormInventoryId());
+ }
+ if (this.isset_baseGoodsTemplateId) {
+ wh_form_inventory_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
+ }
+ if (this.isset_goodsTemplateName) {
+ wh_form_inventory_goods.setGoodsTemplateName(this.getGoodsTemplateName());
+ }
+ if (this.isset_unit) {
+ wh_form_inventory_goods.setUnit(this.getUnit());
+ }
+ if (this.isset_baseGoodsModelsId) {
+ wh_form_inventory_goods.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
+ }
+ if (this.isset_baseGoodsModelsName) {
+ wh_form_inventory_goods.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
+ }
+ if (this.isset_initCounts) {
+ wh_form_inventory_goods.setInitCounts(this.getInitCounts());
+ }
+ if (this.isset_inventoryCounts) {
+ wh_form_inventory_goods.setInventoryCounts(this.getInventoryCounts());
+ }
+ if (this.isset_errorCounts) {
+ wh_form_inventory_goods.setErrorCounts(this.getErrorCounts());
+ }
+ if (this.isset_inventoryResult) {
+ wh_form_inventory_goods.setInventoryResult(this.getInventoryResult());
+ }
+ return wh_form_inventory_goods;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryGoods_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryGoods_mapper.java
new file mode 100644
index 0000000..f08fff0
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryGoods_mapper.java
@@ -0,0 +1,357 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_INVENTORY_GOODS *
+ * @author genrator
+ */
+public class WhFormInventoryGoods_mapper extends WhFormInventoryGoods implements BaseMapper<WhFormInventoryGoods> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormInventoryGoods> ROW_MAPPER = new WhFormInventoryGoodsRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String WhFormInventoryId = "wh_form_inventory_id";
+ public static final String BaseGoodsTemplateId = "base_goods_template_id";
+ public static final String GoodsTemplateName = "goods_template_name";
+ public static final String Unit = "unit";
+ public static final String BaseGoodsModelsId = "base_goods_models_id";
+ public static final String BaseGoodsModelsName = "base_goods_models_name";
+ public static final String InitCounts = "init_counts";
+ public static final String InventoryCounts = "inventory_counts";
+ public static final String ErrorCounts = "error_counts";
+ public static final String InventoryResult = "inventory_result";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormInventoryGoods_mapper(WhFormInventoryGoods whFormInventoryGoods) {
+ if (whFormInventoryGoods == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormInventoryGoods.isset_id) {
+ this.setId(whFormInventoryGoods.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormInventoryGoods.isset_whFormInventoryId) {
+ this.setWhFormInventoryId(whFormInventoryGoods.getWhFormInventoryId());
+ }
+ if (whFormInventoryGoods.isset_baseGoodsTemplateId) {
+ this.setBaseGoodsTemplateId(whFormInventoryGoods.getBaseGoodsTemplateId());
+ }
+ if (whFormInventoryGoods.isset_goodsTemplateName) {
+ this.setGoodsTemplateName(whFormInventoryGoods.getGoodsTemplateName());
+ }
+ if (whFormInventoryGoods.isset_unit) {
+ this.setUnit(whFormInventoryGoods.getUnit());
+ }
+ if (whFormInventoryGoods.isset_baseGoodsModelsId) {
+ this.setBaseGoodsModelsId(whFormInventoryGoods.getBaseGoodsModelsId());
+ }
+ if (whFormInventoryGoods.isset_baseGoodsModelsName) {
+ this.setBaseGoodsModelsName(whFormInventoryGoods.getBaseGoodsModelsName());
+ }
+ if (whFormInventoryGoods.isset_initCounts) {
+ this.setInitCounts(whFormInventoryGoods.getInitCounts());
+ }
+ if (whFormInventoryGoods.isset_inventoryCounts) {
+ this.setInventoryCounts(whFormInventoryGoods.getInventoryCounts());
+ }
+ if (whFormInventoryGoods.isset_errorCounts) {
+ this.setErrorCounts(whFormInventoryGoods.getErrorCounts());
+ }
+ if (whFormInventoryGoods.isset_inventoryResult) {
+ this.setInventoryResult(whFormInventoryGoods.getInventoryResult());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_inventory_goods.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_inventory_goods";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(WhFormInventoryId, this.getWhFormInventoryId(), this.isset_whFormInventoryId);
+ ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ib.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ib.set(Unit, this.getUnit(), this.isset_unit);
+ ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ib.set(InitCounts, this.getInitCounts(), this.isset_initCounts);
+ ib.set(InventoryCounts, this.getInventoryCounts(), this.isset_inventoryCounts);
+ ib.set(ErrorCounts, this.getErrorCounts(), this.isset_errorCounts);
+ ib.set(InventoryResult, this.getInventoryResult(), this.isset_inventoryResult);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormInventoryId, this.getWhFormInventoryId(), this.isset_whFormInventoryId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ub.set(InitCounts, this.getInitCounts(), this.isset_initCounts);
+ ub.set(InventoryCounts, this.getInventoryCounts(), this.isset_inventoryCounts);
+ ub.set(ErrorCounts, this.getErrorCounts(), this.isset_errorCounts);
+ ub.set(InventoryResult, this.getInventoryResult(), this.isset_inventoryResult);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormInventoryId, this.getWhFormInventoryId(), this.isset_whFormInventoryId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ub.set(InitCounts, this.getInitCounts(), this.isset_initCounts);
+ ub.set(InventoryCounts, this.getInventoryCounts(), this.isset_inventoryCounts);
+ ub.set(ErrorCounts, this.getErrorCounts(), this.isset_errorCounts);
+ ub.set(InventoryResult, this.getInventoryResult(), this.isset_inventoryResult);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormInventoryId, this.getWhFormInventoryId(), this.isset_whFormInventoryId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ub.set(InitCounts, this.getInitCounts(), this.isset_initCounts);
+ ub.set(InventoryCounts, this.getInventoryCounts(), this.isset_inventoryCounts);
+ ub.set(ErrorCounts, this.getErrorCounts(), this.isset_errorCounts);
+ ub.set(InventoryResult, this.getInventoryResult(), this.isset_inventoryResult);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, wh_form_inventory_id, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name, init_counts, inventory_counts, error_counts, inventory_result from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, wh_form_inventory_id, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name, init_counts, inventory_counts, error_counts, inventory_result from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormInventoryGoods mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormInventoryGoods toWhFormInventoryGoods() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_inventory_goods RowMapper
+ *
+ * @author genrator
+ */
+class WhFormInventoryGoodsRowMapper implements RowMapper<WhFormInventoryGoods> {
+
+ @Override
+ public WhFormInventoryGoods mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormInventoryGoods wh_form_inventory_goods = new WhFormInventoryGoods();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_inventory_goods.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.WhFormInventoryId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_goods.setWhFormInventoryId(null);
+ } else {
+ wh_form_inventory_goods.setWhFormInventoryId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.BaseGoodsTemplateId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_goods.setBaseGoodsTemplateId(null);
+ } else {
+ wh_form_inventory_goods.setBaseGoodsTemplateId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.GoodsTemplateName);
+ if (columnIndex > 0) {
+ wh_form_inventory_goods.setGoodsTemplateName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.Unit);
+ if (columnIndex > 0) {
+ wh_form_inventory_goods.setUnit(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.BaseGoodsModelsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_goods.setBaseGoodsModelsId(null);
+ } else {
+ wh_form_inventory_goods.setBaseGoodsModelsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.BaseGoodsModelsName);
+ if (columnIndex > 0) {
+ wh_form_inventory_goods.setBaseGoodsModelsName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.InitCounts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_goods.setInitCounts(null);
+ } else {
+ wh_form_inventory_goods.setInitCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.InventoryCounts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_goods.setInventoryCounts(null);
+ } else {
+ wh_form_inventory_goods.setInventoryCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.ErrorCounts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_goods.setErrorCounts(null);
+ } else {
+ wh_form_inventory_goods.setErrorCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryGoods_mapper.InventoryResult);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_goods.setInventoryResult(null);
+ } else {
+ wh_form_inventory_goods.setInventoryResult(rs.getInt(columnIndex));
+ }
+ }
+ return wh_form_inventory_goods;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryModel.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryModel.java
new file mode 100644
index 0000000..1f8d15c
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryModel.java
@@ -0,0 +1,238 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_INVENTORY_MODEL *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormInventoryModel extends BasePo<WhFormInventoryModel> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private Integer counts = null;
+ @JsonIgnore
+ protected boolean isset_counts = false;
+
+ private Long whFormInventoryId = null;
+ @JsonIgnore
+ protected boolean isset_whFormInventoryId = false;
+
+ private Integer inventoryResult = null;
+ @JsonIgnore
+ protected boolean isset_inventoryResult = false;
+
+ private Long whGoodsDetailsId = null;
+ @JsonIgnore
+ protected boolean isset_whGoodsDetailsId = false;
+
+ private String beiz = null;
+ @JsonIgnore
+ protected boolean isset_beiz = false;
+
+ private Long whFormInventoryGoodsId = null;
+ @JsonIgnore
+ protected boolean isset_whFormInventoryGoodsId = false;
+
+ private Long whGoodsId = null;
+ @JsonIgnore
+ protected boolean isset_whGoodsId = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormInventoryModel() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormInventoryModel(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public Integer getCounts() {
+ return this.counts;
+ }
+
+ public void setCounts(Integer counts) {
+ this.counts = counts;
+ this.isset_counts = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCounts() {
+ return this.counts == null;
+ }
+
+ public Long getWhFormInventoryId() {
+ return this.whFormInventoryId;
+ }
+
+ public void setWhFormInventoryId(Long whFormInventoryId) {
+ this.whFormInventoryId = whFormInventoryId;
+ this.isset_whFormInventoryId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhFormInventoryId() {
+ return this.whFormInventoryId == null;
+ }
+
+ public Integer getInventoryResult() {
+ return this.inventoryResult;
+ }
+
+ public void setInventoryResult(Integer inventoryResult) {
+ this.inventoryResult = inventoryResult;
+ this.isset_inventoryResult = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInventoryResult() {
+ return this.inventoryResult == null;
+ }
+
+ public Long getWhGoodsDetailsId() {
+ return this.whGoodsDetailsId;
+ }
+
+ public void setWhGoodsDetailsId(Long whGoodsDetailsId) {
+ this.whGoodsDetailsId = whGoodsDetailsId;
+ this.isset_whGoodsDetailsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhGoodsDetailsId() {
+ return this.whGoodsDetailsId == null;
+ }
+
+ public String getBeiz() {
+ return this.beiz;
+ }
+
+ public void setBeiz(String beiz) {
+ this.beiz = beiz;
+ this.isset_beiz = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz() {
+ return this.beiz == null || this.beiz.length() == 0;
+ }
+
+ public Long getWhFormInventoryGoodsId() {
+ return this.whFormInventoryGoodsId;
+ }
+
+ public void setWhFormInventoryGoodsId(Long whFormInventoryGoodsId) {
+ this.whFormInventoryGoodsId = whFormInventoryGoodsId;
+ this.isset_whFormInventoryGoodsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhFormInventoryGoodsId() {
+ return this.whFormInventoryGoodsId == null;
+ }
+
+ public Long getWhGoodsId() {
+ return this.whGoodsId;
+ }
+
+ public void setWhGoodsId(Long whGoodsId) {
+ this.whGoodsId = whGoodsId;
+ this.isset_whGoodsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhGoodsId() {
+ return this.whGoodsId == null;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("counts=").append(this.counts)
+ .append("whFormInventoryId=").append(this.whFormInventoryId)
+ .append("inventoryResult=").append(this.inventoryResult)
+ .append("whGoodsDetailsId=").append(this.whGoodsDetailsId)
+ .append("beiz=").append(this.beiz)
+ .append("whFormInventoryGoodsId=").append(this.whFormInventoryGoodsId)
+ .append("whGoodsId=").append(this.whGoodsId)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormInventoryModel $clone() {
+ WhFormInventoryModel wh_form_inventory_model = new WhFormInventoryModel();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_inventory_model.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_inventory_model.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_counts) {
+ wh_form_inventory_model.setCounts(this.getCounts());
+ }
+ if (this.isset_whFormInventoryId) {
+ wh_form_inventory_model.setWhFormInventoryId(this.getWhFormInventoryId());
+ }
+ if (this.isset_inventoryResult) {
+ wh_form_inventory_model.setInventoryResult(this.getInventoryResult());
+ }
+ if (this.isset_whGoodsDetailsId) {
+ wh_form_inventory_model.setWhGoodsDetailsId(this.getWhGoodsDetailsId());
+ }
+ if (this.isset_beiz) {
+ wh_form_inventory_model.setBeiz(this.getBeiz());
+ }
+ if (this.isset_whFormInventoryGoodsId) {
+ wh_form_inventory_model.setWhFormInventoryGoodsId(this.getWhFormInventoryGoodsId());
+ }
+ if (this.isset_whGoodsId) {
+ wh_form_inventory_model.setWhGoodsId(this.getWhGoodsId());
+ }
+ return wh_form_inventory_model;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryModel_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryModel_mapper.java
new file mode 100644
index 0000000..4260cc2
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventoryModel_mapper.java
@@ -0,0 +1,317 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_INVENTORY_MODEL *
+ * @author genrator
+ */
+public class WhFormInventoryModel_mapper extends WhFormInventoryModel implements BaseMapper<WhFormInventoryModel> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormInventoryModel> ROW_MAPPER = new WhFormInventoryModelRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String Counts = "counts";
+ public static final String WhFormInventoryId = "wh_form_inventory_id";
+ public static final String InventoryResult = "inventory_result";
+ public static final String WhGoodsDetailsId = "wh_goods_details_id";
+ public static final String Beiz = "beiz";
+ public static final String WhFormInventoryGoodsId = "wh_form_inventory_goods_id";
+ public static final String WhGoodsId = "wh_goods_id";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormInventoryModel_mapper(WhFormInventoryModel whFormInventoryModel) {
+ if (whFormInventoryModel == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormInventoryModel.isset_id) {
+ this.setId(whFormInventoryModel.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormInventoryModel.isset_counts) {
+ this.setCounts(whFormInventoryModel.getCounts());
+ }
+ if (whFormInventoryModel.isset_whFormInventoryId) {
+ this.setWhFormInventoryId(whFormInventoryModel.getWhFormInventoryId());
+ }
+ if (whFormInventoryModel.isset_inventoryResult) {
+ this.setInventoryResult(whFormInventoryModel.getInventoryResult());
+ }
+ if (whFormInventoryModel.isset_whGoodsDetailsId) {
+ this.setWhGoodsDetailsId(whFormInventoryModel.getWhGoodsDetailsId());
+ }
+ if (whFormInventoryModel.isset_beiz) {
+ this.setBeiz(whFormInventoryModel.getBeiz());
+ }
+ if (whFormInventoryModel.isset_whFormInventoryGoodsId) {
+ this.setWhFormInventoryGoodsId(whFormInventoryModel.getWhFormInventoryGoodsId());
+ }
+ if (whFormInventoryModel.isset_whGoodsId) {
+ this.setWhGoodsId(whFormInventoryModel.getWhGoodsId());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_inventory_model.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_inventory_model";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(Counts, this.getCounts(), this.isset_counts);
+ ib.set(WhFormInventoryId, this.getWhFormInventoryId(), this.isset_whFormInventoryId);
+ ib.set(InventoryResult, this.getInventoryResult(), this.isset_inventoryResult);
+ ib.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
+ ib.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ib.set(WhFormInventoryGoodsId, this.getWhFormInventoryGoodsId(), this.isset_whFormInventoryGoodsId);
+ ib.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(WhFormInventoryId, this.getWhFormInventoryId(), this.isset_whFormInventoryId);
+ ub.set(InventoryResult, this.getInventoryResult(), this.isset_inventoryResult);
+ ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(WhFormInventoryGoodsId, this.getWhFormInventoryGoodsId(), this.isset_whFormInventoryGoodsId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(WhFormInventoryId, this.getWhFormInventoryId(), this.isset_whFormInventoryId);
+ ub.set(InventoryResult, this.getInventoryResult(), this.isset_inventoryResult);
+ ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(WhFormInventoryGoodsId, this.getWhFormInventoryGoodsId(), this.isset_whFormInventoryGoodsId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(WhFormInventoryId, this.getWhFormInventoryId(), this.isset_whFormInventoryId);
+ ub.set(InventoryResult, this.getInventoryResult(), this.isset_inventoryResult);
+ ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(WhFormInventoryGoodsId, this.getWhFormInventoryGoodsId(), this.isset_whFormInventoryGoodsId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, counts, wh_form_inventory_id, inventory_result, wh_goods_details_id, beiz, wh_form_inventory_goods_id, wh_goods_id from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, counts, wh_form_inventory_id, inventory_result, wh_goods_details_id, beiz, wh_form_inventory_goods_id, wh_goods_id from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormInventoryModel mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormInventoryModel toWhFormInventoryModel() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_inventory_model RowMapper
+ *
+ * @author genrator
+ */
+class WhFormInventoryModelRowMapper implements RowMapper<WhFormInventoryModel> {
+
+ @Override
+ public WhFormInventoryModel mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormInventoryModel wh_form_inventory_model = new WhFormInventoryModel();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryModel_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_inventory_model.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryModel_mapper.Counts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_model.setCounts(null);
+ } else {
+ wh_form_inventory_model.setCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryModel_mapper.WhFormInventoryId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_model.setWhFormInventoryId(null);
+ } else {
+ wh_form_inventory_model.setWhFormInventoryId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryModel_mapper.InventoryResult);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_model.setInventoryResult(null);
+ } else {
+ wh_form_inventory_model.setInventoryResult(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryModel_mapper.WhGoodsDetailsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_model.setWhGoodsDetailsId(null);
+ } else {
+ wh_form_inventory_model.setWhGoodsDetailsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryModel_mapper.Beiz);
+ if (columnIndex > 0) {
+ wh_form_inventory_model.setBeiz(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryModel_mapper.WhFormInventoryGoodsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_model.setWhFormInventoryGoodsId(null);
+ } else {
+ wh_form_inventory_model.setWhFormInventoryGoodsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventoryModel_mapper.WhGoodsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory_model.setWhGoodsId(null);
+ } else {
+ wh_form_inventory_model.setWhGoodsId(rs.getLong(columnIndex));
+ }
+ }
+ return wh_form_inventory_model;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventory_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventory_mapper.java
new file mode 100644
index 0000000..88a1f8f
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormInventory_mapper.java
@@ -0,0 +1,493 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_INVENTORY *
+ * @author genrator
+ */
+public class WhFormInventory_mapper extends WhFormInventory implements BaseMapper<WhFormInventory> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormInventory> ROW_MAPPER = new WhFormInventoryRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String BusinessFormCode = "business_form_code";
+ public static final String BusinessFormName = "business_form_name";
+ public static final String WarehouseId = "warehouse_id";
+ public static final String WarehouseName = "warehouse_name";
+ public static final String OperatorId = "operator_id";
+ public static final String OperatorName = "operator_name";
+ public static final String States = "states";
+ public static final String OperatorId2 = "operator_id2";
+ public static final String OperatorName2 = "operator_name2";
+ public static final String IsMoreThanBefore = "is_more_than_before";
+ public static final String IsLessThanBefore = "is_less_than_before";
+ public static final String Beiz1 = "beiz1";
+ public static final String Beiz2 = "beiz2";
+ public static final String AgencyId = "agency_id";
+ public static final String AgencyName = "agency_name";
+ public static final String CreatorId = "creator_id";
+ public static final String CreatorName = "creator_name";
+ public static final String InventoryDate = "inventory_date";
+ public static final String CreateTime = "create_time";
+ public static final String StopTime = "stop_time";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormInventory_mapper(WhFormInventory whFormInventory) {
+ if (whFormInventory == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormInventory.isset_id) {
+ this.setId(whFormInventory.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormInventory.isset_businessFormCode) {
+ this.setBusinessFormCode(whFormInventory.getBusinessFormCode());
+ }
+ if (whFormInventory.isset_businessFormName) {
+ this.setBusinessFormName(whFormInventory.getBusinessFormName());
+ }
+ if (whFormInventory.isset_warehouseId) {
+ this.setWarehouseId(whFormInventory.getWarehouseId());
+ }
+ if (whFormInventory.isset_warehouseName) {
+ this.setWarehouseName(whFormInventory.getWarehouseName());
+ }
+ if (whFormInventory.isset_operatorId) {
+ this.setOperatorId(whFormInventory.getOperatorId());
+ }
+ if (whFormInventory.isset_operatorName) {
+ this.setOperatorName(whFormInventory.getOperatorName());
+ }
+ if (whFormInventory.isset_states) {
+ this.setStates(whFormInventory.getStates());
+ }
+ if (whFormInventory.isset_operatorId2) {
+ this.setOperatorId2(whFormInventory.getOperatorId2());
+ }
+ if (whFormInventory.isset_operatorName2) {
+ this.setOperatorName2(whFormInventory.getOperatorName2());
+ }
+ if (whFormInventory.isset_isMoreThanBefore) {
+ this.setIsMoreThanBefore(whFormInventory.getIsMoreThanBefore());
+ }
+ if (whFormInventory.isset_isLessThanBefore) {
+ this.setIsLessThanBefore(whFormInventory.getIsLessThanBefore());
+ }
+ if (whFormInventory.isset_beiz1) {
+ this.setBeiz1(whFormInventory.getBeiz1());
+ }
+ if (whFormInventory.isset_beiz2) {
+ this.setBeiz2(whFormInventory.getBeiz2());
+ }
+ if (whFormInventory.isset_agencyId) {
+ this.setAgencyId(whFormInventory.getAgencyId());
+ }
+ if (whFormInventory.isset_agencyName) {
+ this.setAgencyName(whFormInventory.getAgencyName());
+ }
+ if (whFormInventory.isset_creatorId) {
+ this.setCreatorId(whFormInventory.getCreatorId());
+ }
+ if (whFormInventory.isset_creatorName) {
+ this.setCreatorName(whFormInventory.getCreatorName());
+ }
+ if (whFormInventory.isset_inventoryDate) {
+ this.setInventoryDate(whFormInventory.getInventoryDate());
+ }
+ if (whFormInventory.isset_createTime) {
+ this.setCreateTime(whFormInventory.getCreateTime());
+ }
+ if (whFormInventory.isset_stopTime) {
+ this.setStopTime(whFormInventory.getStopTime());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_inventory.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_inventory";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ib.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
+ ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ib.set(States, this.getStates(), this.isset_states);
+ ib.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ib.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ib.set(IsMoreThanBefore, this.getIsMoreThanBefore(), this.isset_isMoreThanBefore);
+ ib.set(IsLessThanBefore, this.getIsLessThanBefore(), this.isset_isLessThanBefore);
+ ib.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
+ ib.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ib.set(CreatorId, this.getCreatorId(), this.isset_creatorId);
+ ib.set(CreatorName, this.getCreatorName(), this.isset_creatorName);
+ ib.set(InventoryDate, this.getInventoryDate(), this.isset_inventoryDate);
+ ib.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+ ib.set(StopTime, this.getStopTime(), this.isset_stopTime);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(IsMoreThanBefore, this.getIsMoreThanBefore(), this.isset_isMoreThanBefore);
+ ub.set(IsLessThanBefore, this.getIsLessThanBefore(), this.isset_isLessThanBefore);
+ ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(CreatorId, this.getCreatorId(), this.isset_creatorId);
+ ub.set(CreatorName, this.getCreatorName(), this.isset_creatorName);
+ ub.set(InventoryDate, this.getInventoryDate(), this.isset_inventoryDate);
+ ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+ ub.set(StopTime, this.getStopTime(), this.isset_stopTime);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(IsMoreThanBefore, this.getIsMoreThanBefore(), this.isset_isMoreThanBefore);
+ ub.set(IsLessThanBefore, this.getIsLessThanBefore(), this.isset_isLessThanBefore);
+ ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(CreatorId, this.getCreatorId(), this.isset_creatorId);
+ ub.set(CreatorName, this.getCreatorName(), this.isset_creatorName);
+ ub.set(InventoryDate, this.getInventoryDate(), this.isset_inventoryDate);
+ ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+ ub.set(StopTime, this.getStopTime(), this.isset_stopTime);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(IsMoreThanBefore, this.getIsMoreThanBefore(), this.isset_isMoreThanBefore);
+ ub.set(IsLessThanBefore, this.getIsLessThanBefore(), this.isset_isLessThanBefore);
+ ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(CreatorId, this.getCreatorId(), this.isset_creatorId);
+ ub.set(CreatorName, this.getCreatorName(), this.isset_creatorName);
+ ub.set(InventoryDate, this.getInventoryDate(), this.isset_inventoryDate);
+ ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+ ub.set(StopTime, this.getStopTime(), this.isset_stopTime);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, business_form_code, business_form_name, warehouse_id, warehouse_name, operator_id, operator_name, states, operator_id2, operator_name2, is_more_than_before, is_less_than_before, beiz1, beiz2, agency_id, agency_name, creator_id, creator_name, inventory_date, create_time, stop_time from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, business_form_code, business_form_name, warehouse_id, warehouse_name, operator_id, operator_name, states, operator_id2, operator_name2, is_more_than_before, is_less_than_before, beiz1, beiz2, agency_id, agency_name, creator_id, creator_name, inventory_date, create_time, stop_time from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormInventory mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormInventory toWhFormInventory() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_inventory RowMapper
+ *
+ * @author genrator
+ */
+class WhFormInventoryRowMapper implements RowMapper<WhFormInventory> {
+
+ @Override
+ public WhFormInventory mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormInventory wh_form_inventory = new WhFormInventory();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_inventory.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.BusinessFormCode);
+ if (columnIndex > 0) {
+ wh_form_inventory.setBusinessFormCode(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.BusinessFormName);
+ if (columnIndex > 0) {
+ wh_form_inventory.setBusinessFormName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.WarehouseId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setWarehouseId(null);
+ } else {
+ wh_form_inventory.setWarehouseId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.WarehouseName);
+ if (columnIndex > 0) {
+ wh_form_inventory.setWarehouseName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.OperatorId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setOperatorId(null);
+ } else {
+ wh_form_inventory.setOperatorId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.OperatorName);
+ if (columnIndex > 0) {
+ wh_form_inventory.setOperatorName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.States);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setStates(null);
+ } else {
+ wh_form_inventory.setStates(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.OperatorId2);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setOperatorId2(null);
+ } else {
+ wh_form_inventory.setOperatorId2(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.OperatorName2);
+ if (columnIndex > 0) {
+ wh_form_inventory.setOperatorName2(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.IsMoreThanBefore);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setIsMoreThanBefore(null);
+ } else {
+ wh_form_inventory.setIsMoreThanBefore(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.IsLessThanBefore);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setIsLessThanBefore(null);
+ } else {
+ wh_form_inventory.setIsLessThanBefore(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.Beiz1);
+ if (columnIndex > 0) {
+ wh_form_inventory.setBeiz1(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.Beiz2);
+ if (columnIndex > 0) {
+ wh_form_inventory.setBeiz2(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.AgencyId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setAgencyId(null);
+ } else {
+ wh_form_inventory.setAgencyId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.AgencyName);
+ if (columnIndex > 0) {
+ wh_form_inventory.setAgencyName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.CreatorId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setCreatorId(null);
+ } else {
+ wh_form_inventory.setCreatorId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.CreatorName);
+ if (columnIndex > 0) {
+ wh_form_inventory.setCreatorName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.InventoryDate);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setInventoryDate(null);
+ } else {
+ wh_form_inventory.setInventoryDate(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.CreateTime);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setCreateTime(null);
+ } else {
+ wh_form_inventory.setCreateTime(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormInventory_mapper.StopTime);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_inventory.setStopTime(null);
+ } else {
+ wh_form_inventory.setStopTime(rs.getLong(columnIndex));
+ }
+ }
+ return wh_form_inventory;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcureGoods_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcureGoods_mapper.java
new file mode 100644
index 0000000..6429355
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcureGoods_mapper.java
@@ -0,0 +1,293 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_PROCURE_GOODS *
+ * @author genrator
+ */
+public class WhFormProcureGoods_mapper extends WhFormProcureGoods implements BaseMapper<WhFormProcureGoods> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormProcureGoods> ROW_MAPPER = new WhFormProcureGoodsRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String BaseCategoryId = "base_category_id";
+ public static final String BaseGoodsTemplateId = "base_goods_template_id";
+ public static final String GoodsTemplateName = "goods_template_name";
+ public static final String Supplier = "supplier";
+ public static final String WhFormProcureId = "wh_form_procure_id";
+ public static final String Beiz = "beiz";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormProcureGoods_mapper(WhFormProcureGoods whFormProcureGoods) {
+ if (whFormProcureGoods == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormProcureGoods.isset_id) {
+ this.setId(whFormProcureGoods.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormProcureGoods.isset_baseCategoryId) {
+ this.setBaseCategoryId(whFormProcureGoods.getBaseCategoryId());
+ }
+ if (whFormProcureGoods.isset_baseGoodsTemplateId) {
+ this.setBaseGoodsTemplateId(whFormProcureGoods.getBaseGoodsTemplateId());
+ }
+ if (whFormProcureGoods.isset_goodsTemplateName) {
+ this.setGoodsTemplateName(whFormProcureGoods.getGoodsTemplateName());
+ }
+ if (whFormProcureGoods.isset_supplier) {
+ this.setSupplier(whFormProcureGoods.getSupplier());
+ }
+ if (whFormProcureGoods.isset_whFormProcureId) {
+ this.setWhFormProcureId(whFormProcureGoods.getWhFormProcureId());
+ }
+ if (whFormProcureGoods.isset_beiz) {
+ this.setBeiz(whFormProcureGoods.getBeiz());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_procure_goods.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_procure_goods";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(BaseCategoryId, this.getBaseCategoryId(), this.isset_baseCategoryId);
+ ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ib.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ib.set(Supplier, this.getSupplier(), this.isset_supplier);
+ ib.set(WhFormProcureId, this.getWhFormProcureId(), this.isset_whFormProcureId);
+ ib.set(Beiz, this.getBeiz(), this.isset_beiz);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BaseCategoryId, this.getBaseCategoryId(), this.isset_baseCategoryId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Supplier, this.getSupplier(), this.isset_supplier);
+ ub.set(WhFormProcureId, this.getWhFormProcureId(), this.isset_whFormProcureId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BaseCategoryId, this.getBaseCategoryId(), this.isset_baseCategoryId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Supplier, this.getSupplier(), this.isset_supplier);
+ ub.set(WhFormProcureId, this.getWhFormProcureId(), this.isset_whFormProcureId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BaseCategoryId, this.getBaseCategoryId(), this.isset_baseCategoryId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Supplier, this.getSupplier(), this.isset_supplier);
+ ub.set(WhFormProcureId, this.getWhFormProcureId(), this.isset_whFormProcureId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, base_category_id, base_goods_template_id, goods_template_name, supplier, wh_form_procure_id, beiz from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, base_category_id, base_goods_template_id, goods_template_name, supplier, wh_form_procure_id, beiz from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormProcureGoods mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormProcureGoods toWhFormProcureGoods() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_procure_goods RowMapper
+ *
+ * @author genrator
+ */
+class WhFormProcureGoodsRowMapper implements RowMapper<WhFormProcureGoods> {
+
+ @Override
+ public WhFormProcureGoods mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormProcureGoods wh_form_procure_goods = new WhFormProcureGoods();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureGoods_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_procure_goods.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureGoods_mapper.BaseCategoryId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_goods.setBaseCategoryId(null);
+ } else {
+ wh_form_procure_goods.setBaseCategoryId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureGoods_mapper.BaseGoodsTemplateId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_goods.setBaseGoodsTemplateId(null);
+ } else {
+ wh_form_procure_goods.setBaseGoodsTemplateId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureGoods_mapper.GoodsTemplateName);
+ if (columnIndex > 0) {
+ wh_form_procure_goods.setGoodsTemplateName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureGoods_mapper.Supplier);
+ if (columnIndex > 0) {
+ wh_form_procure_goods.setSupplier(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureGoods_mapper.WhFormProcureId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_goods.setWhFormProcureId(null);
+ } else {
+ wh_form_procure_goods.setWhFormProcureId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureGoods_mapper.Beiz);
+ if (columnIndex > 0) {
+ wh_form_procure_goods.setBeiz(rs.getString(columnIndex));
+ }
+ return wh_form_procure_goods;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcureModel_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcureModel_mapper.java
new file mode 100644
index 0000000..b4b4453
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcureModel_mapper.java
@@ -0,0 +1,397 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_PROCURE_MODEL *
+ * @author genrator
+ */
+public class WhFormProcureModel_mapper extends WhFormProcureModel implements BaseMapper<WhFormProcureModel> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormProcureModel> ROW_MAPPER = new WhFormProcureModelRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String BaseGoodsTemplateId = "base_goods_template_id";
+ public static final String GoodsTemplateName = "goods_template_name";
+ public static final String Supplier = "supplier";
+ public static final String BaseGoodsModelsId = "base_goods_models_id";
+ public static final String BaseGoodsModelsName = "base_goods_models_name";
+ public static final String Unit = "unit";
+ public static final String Price = "price";
+ public static final String Counts = "counts";
+ public static final String WhFormProcureId = "wh_form_procure_id";
+ public static final String WhFormProcureGoodsId = "wh_form_procure_goods_id";
+ public static final String InWhGoodsDetailsId = "in_wh_goods_details_id";
+ public static final String Beiz = "beiz";
+ public static final String WhGoodsId = "wh_goods_id";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormProcureModel_mapper(WhFormProcureModel whFormProcureModel) {
+ if (whFormProcureModel == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormProcureModel.isset_id) {
+ this.setId(whFormProcureModel.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormProcureModel.isset_baseGoodsTemplateId) {
+ this.setBaseGoodsTemplateId(whFormProcureModel.getBaseGoodsTemplateId());
+ }
+ if (whFormProcureModel.isset_goodsTemplateName) {
+ this.setGoodsTemplateName(whFormProcureModel.getGoodsTemplateName());
+ }
+ if (whFormProcureModel.isset_supplier) {
+ this.setSupplier(whFormProcureModel.getSupplier());
+ }
+ if (whFormProcureModel.isset_baseGoodsModelsId) {
+ this.setBaseGoodsModelsId(whFormProcureModel.getBaseGoodsModelsId());
+ }
+ if (whFormProcureModel.isset_baseGoodsModelsName) {
+ this.setBaseGoodsModelsName(whFormProcureModel.getBaseGoodsModelsName());
+ }
+ if (whFormProcureModel.isset_unit) {
+ this.setUnit(whFormProcureModel.getUnit());
+ }
+ if (whFormProcureModel.isset_price) {
+ this.setPrice(whFormProcureModel.getPrice());
+ }
+ if (whFormProcureModel.isset_counts) {
+ this.setCounts(whFormProcureModel.getCounts());
+ }
+ if (whFormProcureModel.isset_whFormProcureId) {
+ this.setWhFormProcureId(whFormProcureModel.getWhFormProcureId());
+ }
+ if (whFormProcureModel.isset_whFormProcureGoodsId) {
+ this.setWhFormProcureGoodsId(whFormProcureModel.getWhFormProcureGoodsId());
+ }
+ if (whFormProcureModel.isset_inWhGoodsDetailsId) {
+ this.setInWhGoodsDetailsId(whFormProcureModel.getInWhGoodsDetailsId());
+ }
+ if (whFormProcureModel.isset_beiz) {
+ this.setBeiz(whFormProcureModel.getBeiz());
+ }
+ if (whFormProcureModel.isset_whGoodsId) {
+ this.setWhGoodsId(whFormProcureModel.getWhGoodsId());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_procure_model.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_procure_model";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ib.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ib.set(Supplier, this.getSupplier(), this.isset_supplier);
+ ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ib.set(Unit, this.getUnit(), this.isset_unit);
+ ib.set(Price, this.getPrice(), this.isset_price);
+ ib.set(Counts, this.getCounts(), this.isset_counts);
+ ib.set(WhFormProcureId, this.getWhFormProcureId(), this.isset_whFormProcureId);
+ ib.set(WhFormProcureGoodsId, this.getWhFormProcureGoodsId(), this.isset_whFormProcureGoodsId);
+ ib.set(InWhGoodsDetailsId, this.getInWhGoodsDetailsId(), this.isset_inWhGoodsDetailsId);
+ ib.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ib.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Supplier, this.getSupplier(), this.isset_supplier);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(Price, this.getPrice(), this.isset_price);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(WhFormProcureId, this.getWhFormProcureId(), this.isset_whFormProcureId);
+ ub.set(WhFormProcureGoodsId, this.getWhFormProcureGoodsId(), this.isset_whFormProcureGoodsId);
+ ub.set(InWhGoodsDetailsId, this.getInWhGoodsDetailsId(), this.isset_inWhGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Supplier, this.getSupplier(), this.isset_supplier);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(Price, this.getPrice(), this.isset_price);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(WhFormProcureId, this.getWhFormProcureId(), this.isset_whFormProcureId);
+ ub.set(WhFormProcureGoodsId, this.getWhFormProcureGoodsId(), this.isset_whFormProcureGoodsId);
+ ub.set(InWhGoodsDetailsId, this.getInWhGoodsDetailsId(), this.isset_inWhGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Supplier, this.getSupplier(), this.isset_supplier);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(Price, this.getPrice(), this.isset_price);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(WhFormProcureId, this.getWhFormProcureId(), this.isset_whFormProcureId);
+ ub.set(WhFormProcureGoodsId, this.getWhFormProcureGoodsId(), this.isset_whFormProcureGoodsId);
+ ub.set(InWhGoodsDetailsId, this.getInWhGoodsDetailsId(), this.isset_inWhGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, supplier, base_goods_models_id, base_goods_models_name, unit, price, counts, wh_form_procure_id, wh_form_procure_goods_id, in_wh_goods_details_id, beiz, wh_goods_id from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, supplier, base_goods_models_id, base_goods_models_name, unit, price, counts, wh_form_procure_id, wh_form_procure_goods_id, in_wh_goods_details_id, beiz, wh_goods_id from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormProcureModel mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormProcureModel toWhFormProcureModel() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_procure_model RowMapper
+ *
+ * @author genrator
+ */
+class WhFormProcureModelRowMapper implements RowMapper<WhFormProcureModel> {
+
+ @Override
+ public WhFormProcureModel mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormProcureModel wh_form_procure_model = new WhFormProcureModel();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_procure_model.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.BaseGoodsTemplateId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_model.setBaseGoodsTemplateId(null);
+ } else {
+ wh_form_procure_model.setBaseGoodsTemplateId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.GoodsTemplateName);
+ if (columnIndex > 0) {
+ wh_form_procure_model.setGoodsTemplateName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.Supplier);
+ if (columnIndex > 0) {
+ wh_form_procure_model.setSupplier(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.BaseGoodsModelsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_model.setBaseGoodsModelsId(null);
+ } else {
+ wh_form_procure_model.setBaseGoodsModelsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.BaseGoodsModelsName);
+ if (columnIndex > 0) {
+ wh_form_procure_model.setBaseGoodsModelsName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.Unit);
+ if (columnIndex > 0) {
+ wh_form_procure_model.setUnit(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.Price);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_model.setPrice(null);
+ } else {
+ wh_form_procure_model.setPrice(rs.getDouble(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.Counts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_model.setCounts(null);
+ } else {
+ wh_form_procure_model.setCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.WhFormProcureId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_model.setWhFormProcureId(null);
+ } else {
+ wh_form_procure_model.setWhFormProcureId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.WhFormProcureGoodsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_model.setWhFormProcureGoodsId(null);
+ } else {
+ wh_form_procure_model.setWhFormProcureGoodsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.InWhGoodsDetailsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_model.setInWhGoodsDetailsId(null);
+ } else {
+ wh_form_procure_model.setInWhGoodsDetailsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.Beiz);
+ if (columnIndex > 0) {
+ wh_form_procure_model.setBeiz(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcureModel_mapper.WhGoodsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure_model.setWhGoodsId(null);
+ } else {
+ wh_form_procure_model.setWhGoodsId(rs.getLong(columnIndex));
+ }
+ }
+ return wh_form_procure_model;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcure_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcure_mapper.java
new file mode 100644
index 0000000..9b8d565
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormProcure_mapper.java
@@ -0,0 +1,405 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_PROCURE *
+ * @author genrator
+ */
+public class WhFormProcure_mapper extends WhFormProcure implements BaseMapper<WhFormProcure> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormProcure> ROW_MAPPER = new WhFormProcureRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String BusinessFormCode = "business_form_code";
+ public static final String WarehouseId = "warehouse_id";
+ public static final String WarehouseName = "warehouse_name";
+ public static final String OperatorId = "operator_id";
+ public static final String OperatorName = "operator_name";
+ public static final String ProcureTime = "procure_time";
+ public static final String ProcureDoc = "procure_doc";
+ public static final String States = "states";
+ public static final String AgencyId = "agency_id";
+ public static final String AgencyName = "agency_name";
+ public static final String OperatorId2 = "operator_id2";
+ public static final String OperatorName2 = "operator_name2";
+ public static final String IncomeTime = "income_time";
+ public static final String Beiz = "beiz";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormProcure_mapper(WhFormProcure whFormProcure) {
+ if (whFormProcure == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormProcure.isset_id) {
+ this.setId(whFormProcure.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormProcure.isset_businessFormCode) {
+ this.setBusinessFormCode(whFormProcure.getBusinessFormCode());
+ }
+ if (whFormProcure.isset_warehouseId) {
+ this.setWarehouseId(whFormProcure.getWarehouseId());
+ }
+ if (whFormProcure.isset_warehouseName) {
+ this.setWarehouseName(whFormProcure.getWarehouseName());
+ }
+ if (whFormProcure.isset_operatorId) {
+ this.setOperatorId(whFormProcure.getOperatorId());
+ }
+ if (whFormProcure.isset_operatorName) {
+ this.setOperatorName(whFormProcure.getOperatorName());
+ }
+ if (whFormProcure.isset_procureTime) {
+ this.setProcureTime(whFormProcure.getProcureTime());
+ }
+ if (whFormProcure.isset_procureDoc) {
+ this.setProcureDoc(whFormProcure.getProcureDoc());
+ }
+ if (whFormProcure.isset_states) {
+ this.setStates(whFormProcure.getStates());
+ }
+ if (whFormProcure.isset_agencyId) {
+ this.setAgencyId(whFormProcure.getAgencyId());
+ }
+ if (whFormProcure.isset_agencyName) {
+ this.setAgencyName(whFormProcure.getAgencyName());
+ }
+ if (whFormProcure.isset_operatorId2) {
+ this.setOperatorId2(whFormProcure.getOperatorId2());
+ }
+ if (whFormProcure.isset_operatorName2) {
+ this.setOperatorName2(whFormProcure.getOperatorName2());
+ }
+ if (whFormProcure.isset_incomeTime) {
+ this.setIncomeTime(whFormProcure.getIncomeTime());
+ }
+ if (whFormProcure.isset_beiz) {
+ this.setBeiz(whFormProcure.getBeiz());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_procure.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_procure";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ib.set(ProcureTime, this.getProcureTime(), this.isset_procureTime);
+ ib.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+ ib.set(States, this.getStates(), this.isset_states);
+ ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ib.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ib.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ib.set(IncomeTime, this.getIncomeTime(), this.isset_incomeTime);
+ ib.set(Beiz, this.getBeiz(), this.isset_beiz);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(ProcureTime, this.getProcureTime(), this.isset_procureTime);
+ ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(IncomeTime, this.getIncomeTime(), this.isset_incomeTime);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(ProcureTime, this.getProcureTime(), this.isset_procureTime);
+ ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(IncomeTime, this.getIncomeTime(), this.isset_incomeTime);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(ProcureTime, this.getProcureTime(), this.isset_procureTime);
+ ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(IncomeTime, this.getIncomeTime(), this.isset_incomeTime);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, business_form_code, warehouse_id, warehouse_name, operator_id, operator_name, procure_time, procure_doc, states, agency_id, agency_name, operator_id2, operator_name2, income_time, beiz from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, business_form_code, warehouse_id, warehouse_name, operator_id, operator_name, procure_time, procure_doc, states, agency_id, agency_name, operator_id2, operator_name2, income_time, beiz from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormProcure mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormProcure toWhFormProcure() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_procure RowMapper
+ *
+ * @author genrator
+ */
+class WhFormProcureRowMapper implements RowMapper<WhFormProcure> {
+
+ @Override
+ public WhFormProcure mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormProcure wh_form_procure = new WhFormProcure();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_procure.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.BusinessFormCode);
+ if (columnIndex > 0) {
+ wh_form_procure.setBusinessFormCode(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.WarehouseId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure.setWarehouseId(null);
+ } else {
+ wh_form_procure.setWarehouseId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.WarehouseName);
+ if (columnIndex > 0) {
+ wh_form_procure.setWarehouseName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.OperatorId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure.setOperatorId(null);
+ } else {
+ wh_form_procure.setOperatorId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.OperatorName);
+ if (columnIndex > 0) {
+ wh_form_procure.setOperatorName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.ProcureTime);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure.setProcureTime(null);
+ } else {
+ wh_form_procure.setProcureTime(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.ProcureDoc);
+ if (columnIndex > 0) {
+ wh_form_procure.setProcureDoc(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.States);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure.setStates(null);
+ } else {
+ wh_form_procure.setStates(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.AgencyId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure.setAgencyId(null);
+ } else {
+ wh_form_procure.setAgencyId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.AgencyName);
+ if (columnIndex > 0) {
+ wh_form_procure.setAgencyName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.OperatorId2);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure.setOperatorId2(null);
+ } else {
+ wh_form_procure.setOperatorId2(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.OperatorName2);
+ if (columnIndex > 0) {
+ wh_form_procure.setOperatorName2(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.IncomeTime);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_procure.setIncomeTime(null);
+ } else {
+ wh_form_procure.setIncomeTime(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormProcure_mapper.Beiz);
+ if (columnIndex > 0) {
+ wh_form_procure.setBeiz(rs.getString(columnIndex));
+ }
+ return wh_form_procure;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrapped.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrapped.java
new file mode 100644
index 0000000..9567d46
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrapped.java
@@ -0,0 +1,502 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_SCRAPPED *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormScrapped extends BasePo<WhFormScrapped> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private String businessFormCode = null;
+ @JsonIgnore
+ protected boolean isset_businessFormCode = false;
+
+ private Long warehouseId = null;
+ @JsonIgnore
+ protected boolean isset_warehouseId = false;
+
+ private String warehouseName = null;
+ @JsonIgnore
+ protected boolean isset_warehouseName = false;
+
+ private Integer scrappedType = null;
+ @JsonIgnore
+ protected boolean isset_scrappedType = false;
+
+ private Long agencyId = null;
+ @JsonIgnore
+ protected boolean isset_agencyId = false;
+
+ private String agencyName = null;
+ @JsonIgnore
+ protected boolean isset_agencyName = false;
+
+ private Long operatorId = null;
+ @JsonIgnore
+ protected boolean isset_operatorId = false;
+
+ private String operatorName = null;
+ @JsonIgnore
+ protected boolean isset_operatorName = false;
+
+ private Long dealTime = null;
+ @JsonIgnore
+ protected boolean isset_dealTime = false;
+
+ private String departmentId = null;
+ @JsonIgnore
+ protected boolean isset_departmentId = false;
+
+ private Long departmentName = null;
+ @JsonIgnore
+ protected boolean isset_departmentName = false;
+
+ private Long reviewerId = null;
+ @JsonIgnore
+ protected boolean isset_reviewerId = false;
+
+ private String reviewerName = null;
+ @JsonIgnore
+ protected boolean isset_reviewerName = false;
+
+ private Long reviewDate = null;
+ @JsonIgnore
+ protected boolean isset_reviewDate = false;
+
+ private Integer reviewStates = null;
+ @JsonIgnore
+ protected boolean isset_reviewStates = false;
+
+ private Long depGoodsDetailsId = null;
+ @JsonIgnore
+ protected boolean isset_depGoodsDetailsId = false;
+
+ private String beiz = null;
+ @JsonIgnore
+ protected boolean isset_beiz = false;
+
+ private String beiz2 = null;
+ @JsonIgnore
+ protected boolean isset_beiz2 = false;
+
+ private String uploadFiles = null;
+ @JsonIgnore
+ protected boolean isset_uploadFiles = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormScrapped() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormScrapped(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public String getBusinessFormCode() {
+ return this.businessFormCode;
+ }
+
+ public void setBusinessFormCode(String businessFormCode) {
+ this.businessFormCode = businessFormCode;
+ this.isset_businessFormCode = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBusinessFormCode() {
+ return this.businessFormCode == null || this.businessFormCode.length() == 0;
+ }
+
+ public Long getWarehouseId() {
+ return this.warehouseId;
+ }
+
+ public void setWarehouseId(Long warehouseId) {
+ this.warehouseId = warehouseId;
+ this.isset_warehouseId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWarehouseId() {
+ return this.warehouseId == null;
+ }
+
+ public String getWarehouseName() {
+ return this.warehouseName;
+ }
+
+ public void setWarehouseName(String warehouseName) {
+ this.warehouseName = warehouseName;
+ this.isset_warehouseName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWarehouseName() {
+ return this.warehouseName == null || this.warehouseName.length() == 0;
+ }
+
+ public Integer getScrappedType() {
+ return this.scrappedType;
+ }
+
+ public void setScrappedType(Integer scrappedType) {
+ this.scrappedType = scrappedType;
+ this.isset_scrappedType = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyScrappedType() {
+ return this.scrappedType == null;
+ }
+
+ public Long getAgencyId() {
+ return this.agencyId;
+ }
+
+ public void setAgencyId(Long agencyId) {
+ this.agencyId = agencyId;
+ this.isset_agencyId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyAgencyId() {
+ return this.agencyId == null;
+ }
+
+ public String getAgencyName() {
+ return this.agencyName;
+ }
+
+ public void setAgencyName(String agencyName) {
+ this.agencyName = agencyName;
+ this.isset_agencyName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyAgencyName() {
+ return this.agencyName == null || this.agencyName.length() == 0;
+ }
+
+ public Long getOperatorId() {
+ return this.operatorId;
+ }
+
+ public void setOperatorId(Long operatorId) {
+ this.operatorId = operatorId;
+ this.isset_operatorId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorId() {
+ return this.operatorId == null;
+ }
+
+ public String getOperatorName() {
+ return this.operatorName;
+ }
+
+ public void setOperatorName(String operatorName) {
+ this.operatorName = operatorName;
+ this.isset_operatorName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorName() {
+ return this.operatorName == null || this.operatorName.length() == 0;
+ }
+
+ public Long getDealTime() {
+ return this.dealTime;
+ }
+
+ public void setDealTime(Long dealTime) {
+ this.dealTime = dealTime;
+ this.isset_dealTime = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyDealTime() {
+ return this.dealTime == null;
+ }
+
+ public String getDepartmentId() {
+ return this.departmentId;
+ }
+
+ public void setDepartmentId(String departmentId) {
+ this.departmentId = departmentId;
+ this.isset_departmentId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyDepartmentId() {
+ return this.departmentId == null || this.departmentId.length() == 0;
+ }
+
+ public Long getDepartmentName() {
+ return this.departmentName;
+ }
+
+ public void setDepartmentName(Long departmentName) {
+ this.departmentName = departmentName;
+ this.isset_departmentName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyDepartmentName() {
+ return this.departmentName == null;
+ }
+
+ public Long getReviewerId() {
+ return this.reviewerId;
+ }
+
+ public void setReviewerId(Long reviewerId) {
+ this.reviewerId = reviewerId;
+ this.isset_reviewerId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyReviewerId() {
+ return this.reviewerId == null;
+ }
+
+ public String getReviewerName() {
+ return this.reviewerName;
+ }
+
+ public void setReviewerName(String reviewerName) {
+ this.reviewerName = reviewerName;
+ this.isset_reviewerName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyReviewerName() {
+ return this.reviewerName == null || this.reviewerName.length() == 0;
+ }
+
+ public Long getReviewDate() {
+ return this.reviewDate;
+ }
+
+ public void setReviewDate(Long reviewDate) {
+ this.reviewDate = reviewDate;
+ this.isset_reviewDate = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyReviewDate() {
+ return this.reviewDate == null;
+ }
+
+ public Integer getReviewStates() {
+ return this.reviewStates;
+ }
+
+ public void setReviewStates(Integer reviewStates) {
+ this.reviewStates = reviewStates;
+ this.isset_reviewStates = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyReviewStates() {
+ return this.reviewStates == null;
+ }
+
+ public Long getDepGoodsDetailsId() {
+ return this.depGoodsDetailsId;
+ }
+
+ public void setDepGoodsDetailsId(Long depGoodsDetailsId) {
+ this.depGoodsDetailsId = depGoodsDetailsId;
+ this.isset_depGoodsDetailsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyDepGoodsDetailsId() {
+ return this.depGoodsDetailsId == null;
+ }
+
+ public String getBeiz() {
+ return this.beiz;
+ }
+
+ public void setBeiz(String beiz) {
+ this.beiz = beiz;
+ this.isset_beiz = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz() {
+ return this.beiz == null || this.beiz.length() == 0;
+ }
+
+ public String getBeiz2() {
+ return this.beiz2;
+ }
+
+ public void setBeiz2(String beiz2) {
+ this.beiz2 = beiz2;
+ this.isset_beiz2 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz2() {
+ return this.beiz2 == null || this.beiz2.length() == 0;
+ }
+
+ public String getUploadFiles() {
+ return this.uploadFiles;
+ }
+
+ public void setUploadFiles(String uploadFiles) {
+ this.uploadFiles = uploadFiles;
+ this.isset_uploadFiles = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyUploadFiles() {
+ return this.uploadFiles == null || this.uploadFiles.length() == 0;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("businessFormCode=").append(this.businessFormCode)
+ .append("warehouseId=").append(this.warehouseId)
+ .append("warehouseName=").append(this.warehouseName)
+ .append("scrappedType=").append(this.scrappedType)
+ .append("agencyId=").append(this.agencyId)
+ .append("agencyName=").append(this.agencyName)
+ .append("operatorId=").append(this.operatorId)
+ .append("operatorName=").append(this.operatorName)
+ .append("dealTime=").append(this.dealTime)
+ .append("departmentId=").append(this.departmentId)
+ .append("departmentName=").append(this.departmentName)
+ .append("reviewerId=").append(this.reviewerId)
+ .append("reviewerName=").append(this.reviewerName)
+ .append("reviewDate=").append(this.reviewDate)
+ .append("reviewStates=").append(this.reviewStates)
+ .append("depGoodsDetailsId=").append(this.depGoodsDetailsId)
+ .append("beiz=").append(this.beiz)
+ .append("beiz2=").append(this.beiz2)
+ .append("uploadFiles=").append(this.uploadFiles)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormScrapped $clone() {
+ WhFormScrapped wh_form_scrapped = new WhFormScrapped();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_scrapped.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_scrapped.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_businessFormCode) {
+ wh_form_scrapped.setBusinessFormCode(this.getBusinessFormCode());
+ }
+ if (this.isset_warehouseId) {
+ wh_form_scrapped.setWarehouseId(this.getWarehouseId());
+ }
+ if (this.isset_warehouseName) {
+ wh_form_scrapped.setWarehouseName(this.getWarehouseName());
+ }
+ if (this.isset_scrappedType) {
+ wh_form_scrapped.setScrappedType(this.getScrappedType());
+ }
+ if (this.isset_agencyId) {
+ wh_form_scrapped.setAgencyId(this.getAgencyId());
+ }
+ if (this.isset_agencyName) {
+ wh_form_scrapped.setAgencyName(this.getAgencyName());
+ }
+ if (this.isset_operatorId) {
+ wh_form_scrapped.setOperatorId(this.getOperatorId());
+ }
+ if (this.isset_operatorName) {
+ wh_form_scrapped.setOperatorName(this.getOperatorName());
+ }
+ if (this.isset_dealTime) {
+ wh_form_scrapped.setDealTime(this.getDealTime());
+ }
+ if (this.isset_departmentId) {
+ wh_form_scrapped.setDepartmentId(this.getDepartmentId());
+ }
+ if (this.isset_departmentName) {
+ wh_form_scrapped.setDepartmentName(this.getDepartmentName());
+ }
+ if (this.isset_reviewerId) {
+ wh_form_scrapped.setReviewerId(this.getReviewerId());
+ }
+ if (this.isset_reviewerName) {
+ wh_form_scrapped.setReviewerName(this.getReviewerName());
+ }
+ if (this.isset_reviewDate) {
+ wh_form_scrapped.setReviewDate(this.getReviewDate());
+ }
+ if (this.isset_reviewStates) {
+ wh_form_scrapped.setReviewStates(this.getReviewStates());
+ }
+ if (this.isset_depGoodsDetailsId) {
+ wh_form_scrapped.setDepGoodsDetailsId(this.getDepGoodsDetailsId());
+ }
+ if (this.isset_beiz) {
+ wh_form_scrapped.setBeiz(this.getBeiz());
+ }
+ if (this.isset_beiz2) {
+ wh_form_scrapped.setBeiz2(this.getBeiz2());
+ }
+ if (this.isset_uploadFiles) {
+ wh_form_scrapped.setUploadFiles(this.getUploadFiles());
+ }
+ return wh_form_scrapped;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedGoods.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedGoods.java
new file mode 100644
index 0000000..e76ac40
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedGoods.java
@@ -0,0 +1,304 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_SCRAPPED_GOODS *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormScrappedGoods extends BasePo<WhFormScrappedGoods> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private Integer counts = null;
+ @JsonIgnore
+ protected boolean isset_counts = false;
+
+ private String scrappedCode = null;
+ @JsonIgnore
+ protected boolean isset_scrappedCode = false;
+
+ private String scrappedName = null;
+ @JsonIgnore
+ protected boolean isset_scrappedName = false;
+
+ private String beiz = null;
+ @JsonIgnore
+ protected boolean isset_beiz = false;
+
+ private Long depFormScrappedId = null;
+ @JsonIgnore
+ protected boolean isset_depFormScrappedId = false;
+
+ private Long baseGoodsTemplateId = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsTemplateId = false;
+
+ private String goodsTemplateName = null;
+ @JsonIgnore
+ protected boolean isset_goodsTemplateName = false;
+
+ private String unit = null;
+ @JsonIgnore
+ protected boolean isset_unit = false;
+
+ private Long baseGoodsModelsId = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsModelsId = false;
+
+ private String baseGoodsModelsName = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsModelsName = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormScrappedGoods() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormScrappedGoods(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public Integer getCounts() {
+ return this.counts;
+ }
+
+ public void setCounts(Integer counts) {
+ this.counts = counts;
+ this.isset_counts = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCounts() {
+ return this.counts == null;
+ }
+
+ public String getScrappedCode() {
+ return this.scrappedCode;
+ }
+
+ public void setScrappedCode(String scrappedCode) {
+ this.scrappedCode = scrappedCode;
+ this.isset_scrappedCode = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyScrappedCode() {
+ return this.scrappedCode == null || this.scrappedCode.length() == 0;
+ }
+
+ public String getScrappedName() {
+ return this.scrappedName;
+ }
+
+ public void setScrappedName(String scrappedName) {
+ this.scrappedName = scrappedName;
+ this.isset_scrappedName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyScrappedName() {
+ return this.scrappedName == null || this.scrappedName.length() == 0;
+ }
+
+ public String getBeiz() {
+ return this.beiz;
+ }
+
+ public void setBeiz(String beiz) {
+ this.beiz = beiz;
+ this.isset_beiz = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz() {
+ return this.beiz == null || this.beiz.length() == 0;
+ }
+
+ public Long getDepFormScrappedId() {
+ return this.depFormScrappedId;
+ }
+
+ public void setDepFormScrappedId(Long depFormScrappedId) {
+ this.depFormScrappedId = depFormScrappedId;
+ this.isset_depFormScrappedId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyDepFormScrappedId() {
+ return this.depFormScrappedId == null;
+ }
+
+ public Long getBaseGoodsTemplateId() {
+ return this.baseGoodsTemplateId;
+ }
+
+ public void setBaseGoodsTemplateId(Long baseGoodsTemplateId) {
+ this.baseGoodsTemplateId = baseGoodsTemplateId;
+ this.isset_baseGoodsTemplateId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsTemplateId() {
+ return this.baseGoodsTemplateId == null;
+ }
+
+ public String getGoodsTemplateName() {
+ return this.goodsTemplateName;
+ }
+
+ public void setGoodsTemplateName(String goodsTemplateName) {
+ this.goodsTemplateName = goodsTemplateName;
+ this.isset_goodsTemplateName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyGoodsTemplateName() {
+ return this.goodsTemplateName == null || this.goodsTemplateName.length() == 0;
+ }
+
+ public String getUnit() {
+ return this.unit;
+ }
+
+ public void setUnit(String unit) {
+ this.unit = unit;
+ this.isset_unit = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyUnit() {
+ return this.unit == null || this.unit.length() == 0;
+ }
+
+ public Long getBaseGoodsModelsId() {
+ return this.baseGoodsModelsId;
+ }
+
+ public void setBaseGoodsModelsId(Long baseGoodsModelsId) {
+ this.baseGoodsModelsId = baseGoodsModelsId;
+ this.isset_baseGoodsModelsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsModelsId() {
+ return this.baseGoodsModelsId == null;
+ }
+
+ public String getBaseGoodsModelsName() {
+ return this.baseGoodsModelsName;
+ }
+
+ public void setBaseGoodsModelsName(String baseGoodsModelsName) {
+ this.baseGoodsModelsName = baseGoodsModelsName;
+ this.isset_baseGoodsModelsName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsModelsName() {
+ return this.baseGoodsModelsName == null || this.baseGoodsModelsName.length() == 0;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("counts=").append(this.counts)
+ .append("scrappedCode=").append(this.scrappedCode)
+ .append("scrappedName=").append(this.scrappedName)
+ .append("beiz=").append(this.beiz)
+ .append("depFormScrappedId=").append(this.depFormScrappedId)
+ .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
+ .append("goodsTemplateName=").append(this.goodsTemplateName)
+ .append("unit=").append(this.unit)
+ .append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
+ .append("baseGoodsModelsName=").append(this.baseGoodsModelsName)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormScrappedGoods $clone() {
+ WhFormScrappedGoods wh_form_scrapped_goods = new WhFormScrappedGoods();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_scrapped_goods.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_scrapped_goods.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_counts) {
+ wh_form_scrapped_goods.setCounts(this.getCounts());
+ }
+ if (this.isset_scrappedCode) {
+ wh_form_scrapped_goods.setScrappedCode(this.getScrappedCode());
+ }
+ if (this.isset_scrappedName) {
+ wh_form_scrapped_goods.setScrappedName(this.getScrappedName());
+ }
+ if (this.isset_beiz) {
+ wh_form_scrapped_goods.setBeiz(this.getBeiz());
+ }
+ if (this.isset_depFormScrappedId) {
+ wh_form_scrapped_goods.setDepFormScrappedId(this.getDepFormScrappedId());
+ }
+ if (this.isset_baseGoodsTemplateId) {
+ wh_form_scrapped_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
+ }
+ if (this.isset_goodsTemplateName) {
+ wh_form_scrapped_goods.setGoodsTemplateName(this.getGoodsTemplateName());
+ }
+ if (this.isset_unit) {
+ wh_form_scrapped_goods.setUnit(this.getUnit());
+ }
+ if (this.isset_baseGoodsModelsId) {
+ wh_form_scrapped_goods.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
+ }
+ if (this.isset_baseGoodsModelsName) {
+ wh_form_scrapped_goods.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
+ }
+ return wh_form_scrapped_goods;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedGoods_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedGoods_mapper.java
new file mode 100644
index 0000000..bf69dd6
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedGoods_mapper.java
@@ -0,0 +1,345 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_SCRAPPED_GOODS *
+ * @author genrator
+ */
+public class WhFormScrappedGoods_mapper extends WhFormScrappedGoods implements BaseMapper<WhFormScrappedGoods> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormScrappedGoods> ROW_MAPPER = new WhFormScrappedGoodsRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String Counts = "counts";
+ public static final String ScrappedCode = "scrapped_code";
+ public static final String ScrappedName = "scrapped_name";
+ public static final String Beiz = "beiz";
+ public static final String DepFormScrappedId = "dep_form_scrapped_id";
+ public static final String BaseGoodsTemplateId = "base_goods_template_id";
+ public static final String GoodsTemplateName = "goods_template_name";
+ public static final String Unit = "unit";
+ public static final String BaseGoodsModelsId = "base_goods_models_id";
+ public static final String BaseGoodsModelsName = "base_goods_models_name";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormScrappedGoods_mapper(WhFormScrappedGoods whFormScrappedGoods) {
+ if (whFormScrappedGoods == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormScrappedGoods.isset_id) {
+ this.setId(whFormScrappedGoods.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormScrappedGoods.isset_counts) {
+ this.setCounts(whFormScrappedGoods.getCounts());
+ }
+ if (whFormScrappedGoods.isset_scrappedCode) {
+ this.setScrappedCode(whFormScrappedGoods.getScrappedCode());
+ }
+ if (whFormScrappedGoods.isset_scrappedName) {
+ this.setScrappedName(whFormScrappedGoods.getScrappedName());
+ }
+ if (whFormScrappedGoods.isset_beiz) {
+ this.setBeiz(whFormScrappedGoods.getBeiz());
+ }
+ if (whFormScrappedGoods.isset_depFormScrappedId) {
+ this.setDepFormScrappedId(whFormScrappedGoods.getDepFormScrappedId());
+ }
+ if (whFormScrappedGoods.isset_baseGoodsTemplateId) {
+ this.setBaseGoodsTemplateId(whFormScrappedGoods.getBaseGoodsTemplateId());
+ }
+ if (whFormScrappedGoods.isset_goodsTemplateName) {
+ this.setGoodsTemplateName(whFormScrappedGoods.getGoodsTemplateName());
+ }
+ if (whFormScrappedGoods.isset_unit) {
+ this.setUnit(whFormScrappedGoods.getUnit());
+ }
+ if (whFormScrappedGoods.isset_baseGoodsModelsId) {
+ this.setBaseGoodsModelsId(whFormScrappedGoods.getBaseGoodsModelsId());
+ }
+ if (whFormScrappedGoods.isset_baseGoodsModelsName) {
+ this.setBaseGoodsModelsName(whFormScrappedGoods.getBaseGoodsModelsName());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_scrapped_goods.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_scrapped_goods";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(Counts, this.getCounts(), this.isset_counts);
+ ib.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
+ ib.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
+ ib.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ib.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
+ ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ib.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ib.set(Unit, this.getUnit(), this.isset_unit);
+ ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
+ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
+ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
+ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, counts, scrapped_code, scrapped_name, beiz, dep_form_scrapped_id, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, counts, scrapped_code, scrapped_name, beiz, dep_form_scrapped_id, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormScrappedGoods mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormScrappedGoods toWhFormScrappedGoods() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_scrapped_goods RowMapper
+ *
+ * @author genrator
+ */
+class WhFormScrappedGoodsRowMapper implements RowMapper<WhFormScrappedGoods> {
+
+ @Override
+ public WhFormScrappedGoods mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormScrappedGoods wh_form_scrapped_goods = new WhFormScrappedGoods();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_scrapped_goods.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.Counts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_goods.setCounts(null);
+ } else {
+ wh_form_scrapped_goods.setCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.ScrappedCode);
+ if (columnIndex > 0) {
+ wh_form_scrapped_goods.setScrappedCode(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.ScrappedName);
+ if (columnIndex > 0) {
+ wh_form_scrapped_goods.setScrappedName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.Beiz);
+ if (columnIndex > 0) {
+ wh_form_scrapped_goods.setBeiz(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.DepFormScrappedId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_goods.setDepFormScrappedId(null);
+ } else {
+ wh_form_scrapped_goods.setDepFormScrappedId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.BaseGoodsTemplateId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_goods.setBaseGoodsTemplateId(null);
+ } else {
+ wh_form_scrapped_goods.setBaseGoodsTemplateId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.GoodsTemplateName);
+ if (columnIndex > 0) {
+ wh_form_scrapped_goods.setGoodsTemplateName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.Unit);
+ if (columnIndex > 0) {
+ wh_form_scrapped_goods.setUnit(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.BaseGoodsModelsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_goods.setBaseGoodsModelsId(null);
+ } else {
+ wh_form_scrapped_goods.setBaseGoodsModelsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedGoods_mapper.BaseGoodsModelsName);
+ if (columnIndex > 0) {
+ wh_form_scrapped_goods.setBaseGoodsModelsName(rs.getString(columnIndex));
+ }
+ return wh_form_scrapped_goods;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedModel.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedModel.java
new file mode 100644
index 0000000..055f18c
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedModel.java
@@ -0,0 +1,260 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_SCRAPPED_MODEL *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormScrappedModel extends BasePo<WhFormScrappedModel> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private Integer counts = null;
+ @JsonIgnore
+ protected boolean isset_counts = false;
+
+ private String scrappedCode = null;
+ @JsonIgnore
+ protected boolean isset_scrappedCode = false;
+
+ private String scrappedName = null;
+ @JsonIgnore
+ protected boolean isset_scrappedName = false;
+
+ private String beiz = null;
+ @JsonIgnore
+ protected boolean isset_beiz = false;
+
+ private Long depGoodsDetailsId = null;
+ @JsonIgnore
+ protected boolean isset_depGoodsDetailsId = false;
+
+ private Long depFormScrappedId = null;
+ @JsonIgnore
+ protected boolean isset_depFormScrappedId = false;
+
+ private Long whGoodsId = null;
+ @JsonIgnore
+ protected boolean isset_whGoodsId = false;
+
+ private Long whFormScrappedGoodsId = null;
+ @JsonIgnore
+ protected boolean isset_whFormScrappedGoodsId = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormScrappedModel() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormScrappedModel(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public Integer getCounts() {
+ return this.counts;
+ }
+
+ public void setCounts(Integer counts) {
+ this.counts = counts;
+ this.isset_counts = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCounts() {
+ return this.counts == null;
+ }
+
+ public String getScrappedCode() {
+ return this.scrappedCode;
+ }
+
+ public void setScrappedCode(String scrappedCode) {
+ this.scrappedCode = scrappedCode;
+ this.isset_scrappedCode = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyScrappedCode() {
+ return this.scrappedCode == null || this.scrappedCode.length() == 0;
+ }
+
+ public String getScrappedName() {
+ return this.scrappedName;
+ }
+
+ public void setScrappedName(String scrappedName) {
+ this.scrappedName = scrappedName;
+ this.isset_scrappedName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyScrappedName() {
+ return this.scrappedName == null || this.scrappedName.length() == 0;
+ }
+
+ public String getBeiz() {
+ return this.beiz;
+ }
+
+ public void setBeiz(String beiz) {
+ this.beiz = beiz;
+ this.isset_beiz = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz() {
+ return this.beiz == null || this.beiz.length() == 0;
+ }
+
+ public Long getDepGoodsDetailsId() {
+ return this.depGoodsDetailsId;
+ }
+
+ public void setDepGoodsDetailsId(Long depGoodsDetailsId) {
+ this.depGoodsDetailsId = depGoodsDetailsId;
+ this.isset_depGoodsDetailsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyDepGoodsDetailsId() {
+ return this.depGoodsDetailsId == null;
+ }
+
+ public Long getDepFormScrappedId() {
+ return this.depFormScrappedId;
+ }
+
+ public void setDepFormScrappedId(Long depFormScrappedId) {
+ this.depFormScrappedId = depFormScrappedId;
+ this.isset_depFormScrappedId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyDepFormScrappedId() {
+ return this.depFormScrappedId == null;
+ }
+
+ public Long getWhGoodsId() {
+ return this.whGoodsId;
+ }
+
+ public void setWhGoodsId(Long whGoodsId) {
+ this.whGoodsId = whGoodsId;
+ this.isset_whGoodsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhGoodsId() {
+ return this.whGoodsId == null;
+ }
+
+ public Long getWhFormScrappedGoodsId() {
+ return this.whFormScrappedGoodsId;
+ }
+
+ public void setWhFormScrappedGoodsId(Long whFormScrappedGoodsId) {
+ this.whFormScrappedGoodsId = whFormScrappedGoodsId;
+ this.isset_whFormScrappedGoodsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhFormScrappedGoodsId() {
+ return this.whFormScrappedGoodsId == null;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("counts=").append(this.counts)
+ .append("scrappedCode=").append(this.scrappedCode)
+ .append("scrappedName=").append(this.scrappedName)
+ .append("beiz=").append(this.beiz)
+ .append("depGoodsDetailsId=").append(this.depGoodsDetailsId)
+ .append("depFormScrappedId=").append(this.depFormScrappedId)
+ .append("whGoodsId=").append(this.whGoodsId)
+ .append("whFormScrappedGoodsId=").append(this.whFormScrappedGoodsId)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormScrappedModel $clone() {
+ WhFormScrappedModel wh_form_scrapped_model = new WhFormScrappedModel();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_scrapped_model.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_scrapped_model.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_counts) {
+ wh_form_scrapped_model.setCounts(this.getCounts());
+ }
+ if (this.isset_scrappedCode) {
+ wh_form_scrapped_model.setScrappedCode(this.getScrappedCode());
+ }
+ if (this.isset_scrappedName) {
+ wh_form_scrapped_model.setScrappedName(this.getScrappedName());
+ }
+ if (this.isset_beiz) {
+ wh_form_scrapped_model.setBeiz(this.getBeiz());
+ }
+ if (this.isset_depGoodsDetailsId) {
+ wh_form_scrapped_model.setDepGoodsDetailsId(this.getDepGoodsDetailsId());
+ }
+ if (this.isset_depFormScrappedId) {
+ wh_form_scrapped_model.setDepFormScrappedId(this.getDepFormScrappedId());
+ }
+ if (this.isset_whGoodsId) {
+ wh_form_scrapped_model.setWhGoodsId(this.getWhGoodsId());
+ }
+ if (this.isset_whFormScrappedGoodsId) {
+ wh_form_scrapped_model.setWhFormScrappedGoodsId(this.getWhFormScrappedGoodsId());
+ }
+ return wh_form_scrapped_model;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedModel_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedModel_mapper.java
new file mode 100644
index 0000000..c69884a
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrappedModel_mapper.java
@@ -0,0 +1,325 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_SCRAPPED_MODEL *
+ * @author genrator
+ */
+public class WhFormScrappedModel_mapper extends WhFormScrappedModel implements BaseMapper<WhFormScrappedModel> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormScrappedModel> ROW_MAPPER = new WhFormScrappedModelRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String Counts = "counts";
+ public static final String ScrappedCode = "scrapped_code";
+ public static final String ScrappedName = "scrapped_name";
+ public static final String Beiz = "beiz";
+ public static final String DepGoodsDetailsId = "dep_goods_details_id";
+ public static final String DepFormScrappedId = "dep_form_scrapped_id";
+ public static final String WhGoodsId = "wh_goods_id";
+ public static final String WhFormScrappedGoodsId = "wh_form_scrapped_goods_id";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormScrappedModel_mapper(WhFormScrappedModel whFormScrappedModel) {
+ if (whFormScrappedModel == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormScrappedModel.isset_id) {
+ this.setId(whFormScrappedModel.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormScrappedModel.isset_counts) {
+ this.setCounts(whFormScrappedModel.getCounts());
+ }
+ if (whFormScrappedModel.isset_scrappedCode) {
+ this.setScrappedCode(whFormScrappedModel.getScrappedCode());
+ }
+ if (whFormScrappedModel.isset_scrappedName) {
+ this.setScrappedName(whFormScrappedModel.getScrappedName());
+ }
+ if (whFormScrappedModel.isset_beiz) {
+ this.setBeiz(whFormScrappedModel.getBeiz());
+ }
+ if (whFormScrappedModel.isset_depGoodsDetailsId) {
+ this.setDepGoodsDetailsId(whFormScrappedModel.getDepGoodsDetailsId());
+ }
+ if (whFormScrappedModel.isset_depFormScrappedId) {
+ this.setDepFormScrappedId(whFormScrappedModel.getDepFormScrappedId());
+ }
+ if (whFormScrappedModel.isset_whGoodsId) {
+ this.setWhGoodsId(whFormScrappedModel.getWhGoodsId());
+ }
+ if (whFormScrappedModel.isset_whFormScrappedGoodsId) {
+ this.setWhFormScrappedGoodsId(whFormScrappedModel.getWhFormScrappedGoodsId());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_scrapped_model.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_scrapped_model";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(Counts, this.getCounts(), this.isset_counts);
+ ib.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
+ ib.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
+ ib.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ib.set(DepGoodsDetailsId, this.getDepGoodsDetailsId(), this.isset_depGoodsDetailsId);
+ ib.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
+ ib.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ib.set(WhFormScrappedGoodsId, this.getWhFormScrappedGoodsId(), this.isset_whFormScrappedGoodsId);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
+ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(DepGoodsDetailsId, this.getDepGoodsDetailsId(), this.isset_depGoodsDetailsId);
+ ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ub.set(WhFormScrappedGoodsId, this.getWhFormScrappedGoodsId(), this.isset_whFormScrappedGoodsId);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
+ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(DepGoodsDetailsId, this.getDepGoodsDetailsId(), this.isset_depGoodsDetailsId);
+ ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ub.set(WhFormScrappedGoodsId, this.getWhFormScrappedGoodsId(), this.isset_whFormScrappedGoodsId);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
+ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(DepGoodsDetailsId, this.getDepGoodsDetailsId(), this.isset_depGoodsDetailsId);
+ ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ub.set(WhFormScrappedGoodsId, this.getWhFormScrappedGoodsId(), this.isset_whFormScrappedGoodsId);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, counts, scrapped_code, scrapped_name, beiz, dep_goods_details_id, dep_form_scrapped_id, wh_goods_id, wh_form_scrapped_goods_id from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, counts, scrapped_code, scrapped_name, beiz, dep_goods_details_id, dep_form_scrapped_id, wh_goods_id, wh_form_scrapped_goods_id from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormScrappedModel mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormScrappedModel toWhFormScrappedModel() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_scrapped_model RowMapper
+ *
+ * @author genrator
+ */
+class WhFormScrappedModelRowMapper implements RowMapper<WhFormScrappedModel> {
+
+ @Override
+ public WhFormScrappedModel mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormScrappedModel wh_form_scrapped_model = new WhFormScrappedModel();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_scrapped_model.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.Counts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_model.setCounts(null);
+ } else {
+ wh_form_scrapped_model.setCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.ScrappedCode);
+ if (columnIndex > 0) {
+ wh_form_scrapped_model.setScrappedCode(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.ScrappedName);
+ if (columnIndex > 0) {
+ wh_form_scrapped_model.setScrappedName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.Beiz);
+ if (columnIndex > 0) {
+ wh_form_scrapped_model.setBeiz(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.DepGoodsDetailsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_model.setDepGoodsDetailsId(null);
+ } else {
+ wh_form_scrapped_model.setDepGoodsDetailsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.DepFormScrappedId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_model.setDepFormScrappedId(null);
+ } else {
+ wh_form_scrapped_model.setDepFormScrappedId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.WhGoodsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_model.setWhGoodsId(null);
+ } else {
+ wh_form_scrapped_model.setWhGoodsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrappedModel_mapper.WhFormScrappedGoodsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped_model.setWhFormScrappedGoodsId(null);
+ } else {
+ wh_form_scrapped_model.setWhFormScrappedGoodsId(rs.getLong(columnIndex));
+ }
+ }
+ return wh_form_scrapped_model;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrapped_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrapped_mapper.java
new file mode 100644
index 0000000..84c6c2c
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormScrapped_mapper.java
@@ -0,0 +1,477 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_SCRAPPED *
+ * @author genrator
+ */
+public class WhFormScrapped_mapper extends WhFormScrapped implements BaseMapper<WhFormScrapped> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormScrapped> ROW_MAPPER = new WhFormScrappedRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String BusinessFormCode = "business_form_code";
+ public static final String WarehouseId = "warehouse_id";
+ public static final String WarehouseName = "warehouse_name";
+ public static final String ScrappedType = "scrapped_type";
+ public static final String AgencyId = "agency_id";
+ public static final String AgencyName = "agency_name";
+ public static final String OperatorId = "operator_id";
+ public static final String OperatorName = "operator_name";
+ public static final String DealTime = "deal_time";
+ public static final String DepartmentId = "department_id";
+ public static final String DepartmentName = "department_name";
+ public static final String ReviewerId = "reviewer_id";
+ public static final String ReviewerName = "reviewer_name";
+ public static final String ReviewDate = "review_date";
+ public static final String ReviewStates = "review_states";
+ public static final String DepGoodsDetailsId = "dep_goods_details_id";
+ public static final String Beiz = "beiz";
+ public static final String Beiz2 = "beiz2";
+ public static final String UploadFiles = "upload_files";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormScrapped_mapper(WhFormScrapped whFormScrapped) {
+ if (whFormScrapped == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormScrapped.isset_id) {
+ this.setId(whFormScrapped.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormScrapped.isset_businessFormCode) {
+ this.setBusinessFormCode(whFormScrapped.getBusinessFormCode());
+ }
+ if (whFormScrapped.isset_warehouseId) {
+ this.setWarehouseId(whFormScrapped.getWarehouseId());
+ }
+ if (whFormScrapped.isset_warehouseName) {
+ this.setWarehouseName(whFormScrapped.getWarehouseName());
+ }
+ if (whFormScrapped.isset_scrappedType) {
+ this.setScrappedType(whFormScrapped.getScrappedType());
+ }
+ if (whFormScrapped.isset_agencyId) {
+ this.setAgencyId(whFormScrapped.getAgencyId());
+ }
+ if (whFormScrapped.isset_agencyName) {
+ this.setAgencyName(whFormScrapped.getAgencyName());
+ }
+ if (whFormScrapped.isset_operatorId) {
+ this.setOperatorId(whFormScrapped.getOperatorId());
+ }
+ if (whFormScrapped.isset_operatorName) {
+ this.setOperatorName(whFormScrapped.getOperatorName());
+ }
+ if (whFormScrapped.isset_dealTime) {
+ this.setDealTime(whFormScrapped.getDealTime());
+ }
+ if (whFormScrapped.isset_departmentId) {
+ this.setDepartmentId(whFormScrapped.getDepartmentId());
+ }
+ if (whFormScrapped.isset_departmentName) {
+ this.setDepartmentName(whFormScrapped.getDepartmentName());
+ }
+ if (whFormScrapped.isset_reviewerId) {
+ this.setReviewerId(whFormScrapped.getReviewerId());
+ }
+ if (whFormScrapped.isset_reviewerName) {
+ this.setReviewerName(whFormScrapped.getReviewerName());
+ }
+ if (whFormScrapped.isset_reviewDate) {
+ this.setReviewDate(whFormScrapped.getReviewDate());
+ }
+ if (whFormScrapped.isset_reviewStates) {
+ this.setReviewStates(whFormScrapped.getReviewStates());
+ }
+ if (whFormScrapped.isset_depGoodsDetailsId) {
+ this.setDepGoodsDetailsId(whFormScrapped.getDepGoodsDetailsId());
+ }
+ if (whFormScrapped.isset_beiz) {
+ this.setBeiz(whFormScrapped.getBeiz());
+ }
+ if (whFormScrapped.isset_beiz2) {
+ this.setBeiz2(whFormScrapped.getBeiz2());
+ }
+ if (whFormScrapped.isset_uploadFiles) {
+ this.setUploadFiles(whFormScrapped.getUploadFiles());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_scrapped.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_scrapped";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ib.set(ScrappedType, this.getScrappedType(), this.isset_scrappedType);
+ ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
+ ib.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
+ ib.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
+ ib.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
+ ib.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
+ ib.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
+ ib.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
+ ib.set(DepGoodsDetailsId, this.getDepGoodsDetailsId(), this.isset_depGoodsDetailsId);
+ ib.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ib.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ib.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(ScrappedType, this.getScrappedType(), this.isset_scrappedType);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
+ ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
+ ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
+ ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
+ ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
+ ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
+ ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
+ ub.set(DepGoodsDetailsId, this.getDepGoodsDetailsId(), this.isset_depGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(ScrappedType, this.getScrappedType(), this.isset_scrappedType);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
+ ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
+ ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
+ ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
+ ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
+ ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
+ ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
+ ub.set(DepGoodsDetailsId, this.getDepGoodsDetailsId(), this.isset_depGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
+ ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+ ub.set(ScrappedType, this.getScrappedType(), this.isset_scrappedType);
+ ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
+ ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
+ ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
+ ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
+ ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
+ ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
+ ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
+ ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
+ ub.set(DepGoodsDetailsId, this.getDepGoodsDetailsId(), this.isset_depGoodsDetailsId);
+ ub.set(Beiz, this.getBeiz(), this.isset_beiz);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, business_form_code, warehouse_id, warehouse_name, scrapped_type, agency_id, agency_name, operator_id, operator_name, deal_time, department_id, department_name, reviewer_id, reviewer_name, review_date, review_states, dep_goods_details_id, beiz, beiz2, upload_files from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, business_form_code, warehouse_id, warehouse_name, scrapped_type, agency_id, agency_name, operator_id, operator_name, deal_time, department_id, department_name, reviewer_id, reviewer_name, review_date, review_states, dep_goods_details_id, beiz, beiz2, upload_files from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormScrapped mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormScrapped toWhFormScrapped() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_scrapped RowMapper
+ *
+ * @author genrator
+ */
+class WhFormScrappedRowMapper implements RowMapper<WhFormScrapped> {
+
+ @Override
+ public WhFormScrapped mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormScrapped wh_form_scrapped = new WhFormScrapped();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.BusinessFormCode);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setBusinessFormCode(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.WarehouseId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setWarehouseId(null);
+ } else {
+ wh_form_scrapped.setWarehouseId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.WarehouseName);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setWarehouseName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.ScrappedType);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setScrappedType(null);
+ } else {
+ wh_form_scrapped.setScrappedType(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.AgencyId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setAgencyId(null);
+ } else {
+ wh_form_scrapped.setAgencyId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.AgencyName);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setAgencyName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.OperatorId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setOperatorId(null);
+ } else {
+ wh_form_scrapped.setOperatorId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.OperatorName);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setOperatorName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.DealTime);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setDealTime(null);
+ } else {
+ wh_form_scrapped.setDealTime(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.DepartmentId);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setDepartmentId(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.DepartmentName);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setDepartmentName(null);
+ } else {
+ wh_form_scrapped.setDepartmentName(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.ReviewerId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setReviewerId(null);
+ } else {
+ wh_form_scrapped.setReviewerId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.ReviewerName);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setReviewerName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.ReviewDate);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setReviewDate(null);
+ } else {
+ wh_form_scrapped.setReviewDate(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.ReviewStates);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setReviewStates(null);
+ } else {
+ wh_form_scrapped.setReviewStates(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.DepGoodsDetailsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_scrapped.setDepGoodsDetailsId(null);
+ } else {
+ wh_form_scrapped.setDepGoodsDetailsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.Beiz);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setBeiz(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.Beiz2);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setBeiz2(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormScrapped_mapper.UploadFiles);
+ if (columnIndex > 0) {
+ wh_form_scrapped.setUploadFiles(rs.getString(columnIndex));
+ }
+ return wh_form_scrapped;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransfer.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransfer.java
new file mode 100644
index 0000000..2aa754d
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransfer.java
@@ -0,0 +1,590 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_TRANSFER *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormTransfer extends BasePo<WhFormTransfer> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private String businessFormCode = null;
+ @JsonIgnore
+ protected boolean isset_businessFormCode = false;
+
+ private Long inWarehouseId = null;
+ @JsonIgnore
+ protected boolean isset_inWarehouseId = false;
+
+ private String inWarehouseName = null;
+ @JsonIgnore
+ protected boolean isset_inWarehouseName = false;
+
+ private Long outWarehouseId = null;
+ @JsonIgnore
+ protected boolean isset_outWarehouseId = false;
+
+ private String outWarehouseName = null;
+ @JsonIgnore
+ protected boolean isset_outWarehouseName = false;
+
+ private Long inAgencyId = null;
+ @JsonIgnore
+ protected boolean isset_inAgencyId = false;
+
+ private String inAgencyName = null;
+ @JsonIgnore
+ protected boolean isset_inAgencyName = false;
+
+ private Long outAgencyId = null;
+ @JsonIgnore
+ protected boolean isset_outAgencyId = false;
+
+ private String outAgencyName = null;
+ @JsonIgnore
+ protected boolean isset_outAgencyName = false;
+
+ private Long operatorId = null;
+ @JsonIgnore
+ protected boolean isset_operatorId = false;
+
+ private String operatorName = null;
+ @JsonIgnore
+ protected boolean isset_operatorName = false;
+
+ private Long createTime = null;
+ @JsonIgnore
+ protected boolean isset_createTime = false;
+
+ private Integer states = null;
+ @JsonIgnore
+ protected boolean isset_states = false;
+
+ private Long operatorId3 = null;
+ @JsonIgnore
+ protected boolean isset_operatorId3 = false;
+
+ private String operatorName3 = null;
+ @JsonIgnore
+ protected boolean isset_operatorName3 = false;
+
+ private Long ininputTime = null;
+ @JsonIgnore
+ protected boolean isset_ininputTime = false;
+
+ private Long operatorId2 = null;
+ @JsonIgnore
+ protected boolean isset_operatorId2 = false;
+
+ private String operatorName2 = null;
+ @JsonIgnore
+ protected boolean isset_operatorName2 = false;
+
+ private Long outputTime = null;
+ @JsonIgnore
+ protected boolean isset_outputTime = false;
+
+ private String beiz1 = null;
+ @JsonIgnore
+ protected boolean isset_beiz1 = false;
+
+ private String beiz2 = null;
+ @JsonIgnore
+ protected boolean isset_beiz2 = false;
+
+ private String beiz3 = null;
+ @JsonIgnore
+ protected boolean isset_beiz3 = false;
+
+ private String procureDoc = null;
+ @JsonIgnore
+ protected boolean isset_procureDoc = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormTransfer() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormTransfer(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public String getBusinessFormCode() {
+ return this.businessFormCode;
+ }
+
+ public void setBusinessFormCode(String businessFormCode) {
+ this.businessFormCode = businessFormCode;
+ this.isset_businessFormCode = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBusinessFormCode() {
+ return this.businessFormCode == null || this.businessFormCode.length() == 0;
+ }
+
+ public Long getInWarehouseId() {
+ return this.inWarehouseId;
+ }
+
+ public void setInWarehouseId(Long inWarehouseId) {
+ this.inWarehouseId = inWarehouseId;
+ this.isset_inWarehouseId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInWarehouseId() {
+ return this.inWarehouseId == null;
+ }
+
+ public String getInWarehouseName() {
+ return this.inWarehouseName;
+ }
+
+ public void setInWarehouseName(String inWarehouseName) {
+ this.inWarehouseName = inWarehouseName;
+ this.isset_inWarehouseName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInWarehouseName() {
+ return this.inWarehouseName == null || this.inWarehouseName.length() == 0;
+ }
+
+ public Long getOutWarehouseId() {
+ return this.outWarehouseId;
+ }
+
+ public void setOutWarehouseId(Long outWarehouseId) {
+ this.outWarehouseId = outWarehouseId;
+ this.isset_outWarehouseId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOutWarehouseId() {
+ return this.outWarehouseId == null;
+ }
+
+ public String getOutWarehouseName() {
+ return this.outWarehouseName;
+ }
+
+ public void setOutWarehouseName(String outWarehouseName) {
+ this.outWarehouseName = outWarehouseName;
+ this.isset_outWarehouseName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOutWarehouseName() {
+ return this.outWarehouseName == null || this.outWarehouseName.length() == 0;
+ }
+
+ public Long getInAgencyId() {
+ return this.inAgencyId;
+ }
+
+ public void setInAgencyId(Long inAgencyId) {
+ this.inAgencyId = inAgencyId;
+ this.isset_inAgencyId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInAgencyId() {
+ return this.inAgencyId == null;
+ }
+
+ public String getInAgencyName() {
+ return this.inAgencyName;
+ }
+
+ public void setInAgencyName(String inAgencyName) {
+ this.inAgencyName = inAgencyName;
+ this.isset_inAgencyName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInAgencyName() {
+ return this.inAgencyName == null || this.inAgencyName.length() == 0;
+ }
+
+ public Long getOutAgencyId() {
+ return this.outAgencyId;
+ }
+
+ public void setOutAgencyId(Long outAgencyId) {
+ this.outAgencyId = outAgencyId;
+ this.isset_outAgencyId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOutAgencyId() {
+ return this.outAgencyId == null;
+ }
+
+ public String getOutAgencyName() {
+ return this.outAgencyName;
+ }
+
+ public void setOutAgencyName(String outAgencyName) {
+ this.outAgencyName = outAgencyName;
+ this.isset_outAgencyName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOutAgencyName() {
+ return this.outAgencyName == null || this.outAgencyName.length() == 0;
+ }
+
+ public Long getOperatorId() {
+ return this.operatorId;
+ }
+
+ public void setOperatorId(Long operatorId) {
+ this.operatorId = operatorId;
+ this.isset_operatorId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorId() {
+ return this.operatorId == null;
+ }
+
+ public String getOperatorName() {
+ return this.operatorName;
+ }
+
+ public void setOperatorName(String operatorName) {
+ this.operatorName = operatorName;
+ this.isset_operatorName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorName() {
+ return this.operatorName == null || this.operatorName.length() == 0;
+ }
+
+ public Long getCreateTime() {
+ return this.createTime;
+ }
+
+ public void setCreateTime(Long createTime) {
+ this.createTime = createTime;
+ this.isset_createTime = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCreateTime() {
+ return this.createTime == null;
+ }
+
+ public Integer getStates() {
+ return this.states;
+ }
+
+ public void setStates(Integer states) {
+ this.states = states;
+ this.isset_states = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyStates() {
+ return this.states == null;
+ }
+
+ public Long getOperatorId3() {
+ return this.operatorId3;
+ }
+
+ public void setOperatorId3(Long operatorId3) {
+ this.operatorId3 = operatorId3;
+ this.isset_operatorId3 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorId3() {
+ return this.operatorId3 == null;
+ }
+
+ public String getOperatorName3() {
+ return this.operatorName3;
+ }
+
+ public void setOperatorName3(String operatorName3) {
+ this.operatorName3 = operatorName3;
+ this.isset_operatorName3 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorName3() {
+ return this.operatorName3 == null || this.operatorName3.length() == 0;
+ }
+
+ public Long getIninputTime() {
+ return this.ininputTime;
+ }
+
+ public void setIninputTime(Long ininputTime) {
+ this.ininputTime = ininputTime;
+ this.isset_ininputTime = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyIninputTime() {
+ return this.ininputTime == null;
+ }
+
+ public Long getOperatorId2() {
+ return this.operatorId2;
+ }
+
+ public void setOperatorId2(Long operatorId2) {
+ this.operatorId2 = operatorId2;
+ this.isset_operatorId2 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorId2() {
+ return this.operatorId2 == null;
+ }
+
+ public String getOperatorName2() {
+ return this.operatorName2;
+ }
+
+ public void setOperatorName2(String operatorName2) {
+ this.operatorName2 = operatorName2;
+ this.isset_operatorName2 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOperatorName2() {
+ return this.operatorName2 == null || this.operatorName2.length() == 0;
+ }
+
+ public Long getOutputTime() {
+ return this.outputTime;
+ }
+
+ public void setOutputTime(Long outputTime) {
+ this.outputTime = outputTime;
+ this.isset_outputTime = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOutputTime() {
+ return this.outputTime == null;
+ }
+
+ public String getBeiz1() {
+ return this.beiz1;
+ }
+
+ public void setBeiz1(String beiz1) {
+ this.beiz1 = beiz1;
+ this.isset_beiz1 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz1() {
+ return this.beiz1 == null || this.beiz1.length() == 0;
+ }
+
+ public String getBeiz2() {
+ return this.beiz2;
+ }
+
+ public void setBeiz2(String beiz2) {
+ this.beiz2 = beiz2;
+ this.isset_beiz2 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz2() {
+ return this.beiz2 == null || this.beiz2.length() == 0;
+ }
+
+ public String getBeiz3() {
+ return this.beiz3;
+ }
+
+ public void setBeiz3(String beiz3) {
+ this.beiz3 = beiz3;
+ this.isset_beiz3 = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBeiz3() {
+ return this.beiz3 == null || this.beiz3.length() == 0;
+ }
+
+ public String getProcureDoc() {
+ return this.procureDoc;
+ }
+
+ public void setProcureDoc(String procureDoc) {
+ this.procureDoc = procureDoc;
+ this.isset_procureDoc = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyProcureDoc() {
+ return this.procureDoc == null || this.procureDoc.length() == 0;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("businessFormCode=").append(this.businessFormCode)
+ .append("inWarehouseId=").append(this.inWarehouseId)
+ .append("inWarehouseName=").append(this.inWarehouseName)
+ .append("outWarehouseId=").append(this.outWarehouseId)
+ .append("outWarehouseName=").append(this.outWarehouseName)
+ .append("inAgencyId=").append(this.inAgencyId)
+ .append("inAgencyName=").append(this.inAgencyName)
+ .append("outAgencyId=").append(this.outAgencyId)
+ .append("outAgencyName=").append(this.outAgencyName)
+ .append("operatorId=").append(this.operatorId)
+ .append("operatorName=").append(this.operatorName)
+ .append("createTime=").append(this.createTime)
+ .append("states=").append(this.states)
+ .append("operatorId3=").append(this.operatorId3)
+ .append("operatorName3=").append(this.operatorName3)
+ .append("ininputTime=").append(this.ininputTime)
+ .append("operatorId2=").append(this.operatorId2)
+ .append("operatorName2=").append(this.operatorName2)
+ .append("outputTime=").append(this.outputTime)
+ .append("beiz1=").append(this.beiz1)
+ .append("beiz2=").append(this.beiz2)
+ .append("beiz3=").append(this.beiz3)
+ .append("procureDoc=").append(this.procureDoc)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormTransfer $clone() {
+ WhFormTransfer wh_form_transfer = new WhFormTransfer();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_transfer.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_transfer.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_businessFormCode) {
+ wh_form_transfer.setBusinessFormCode(this.getBusinessFormCode());
+ }
+ if (this.isset_inWarehouseId) {
+ wh_form_transfer.setInWarehouseId(this.getInWarehouseId());
+ }
+ if (this.isset_inWarehouseName) {
+ wh_form_transfer.setInWarehouseName(this.getInWarehouseName());
+ }
+ if (this.isset_outWarehouseId) {
+ wh_form_transfer.setOutWarehouseId(this.getOutWarehouseId());
+ }
+ if (this.isset_outWarehouseName) {
+ wh_form_transfer.setOutWarehouseName(this.getOutWarehouseName());
+ }
+ if (this.isset_inAgencyId) {
+ wh_form_transfer.setInAgencyId(this.getInAgencyId());
+ }
+ if (this.isset_inAgencyName) {
+ wh_form_transfer.setInAgencyName(this.getInAgencyName());
+ }
+ if (this.isset_outAgencyId) {
+ wh_form_transfer.setOutAgencyId(this.getOutAgencyId());
+ }
+ if (this.isset_outAgencyName) {
+ wh_form_transfer.setOutAgencyName(this.getOutAgencyName());
+ }
+ if (this.isset_operatorId) {
+ wh_form_transfer.setOperatorId(this.getOperatorId());
+ }
+ if (this.isset_operatorName) {
+ wh_form_transfer.setOperatorName(this.getOperatorName());
+ }
+ if (this.isset_createTime) {
+ wh_form_transfer.setCreateTime(this.getCreateTime());
+ }
+ if (this.isset_states) {
+ wh_form_transfer.setStates(this.getStates());
+ }
+ if (this.isset_operatorId3) {
+ wh_form_transfer.setOperatorId3(this.getOperatorId3());
+ }
+ if (this.isset_operatorName3) {
+ wh_form_transfer.setOperatorName3(this.getOperatorName3());
+ }
+ if (this.isset_ininputTime) {
+ wh_form_transfer.setIninputTime(this.getIninputTime());
+ }
+ if (this.isset_operatorId2) {
+ wh_form_transfer.setOperatorId2(this.getOperatorId2());
+ }
+ if (this.isset_operatorName2) {
+ wh_form_transfer.setOperatorName2(this.getOperatorName2());
+ }
+ if (this.isset_outputTime) {
+ wh_form_transfer.setOutputTime(this.getOutputTime());
+ }
+ if (this.isset_beiz1) {
+ wh_form_transfer.setBeiz1(this.getBeiz1());
+ }
+ if (this.isset_beiz2) {
+ wh_form_transfer.setBeiz2(this.getBeiz2());
+ }
+ if (this.isset_beiz3) {
+ wh_form_transfer.setBeiz3(this.getBeiz3());
+ }
+ if (this.isset_procureDoc) {
+ wh_form_transfer.setProcureDoc(this.getProcureDoc());
+ }
+ return wh_form_transfer;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferGoods.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferGoods.java
new file mode 100644
index 0000000..23bf9fc
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferGoods.java
@@ -0,0 +1,260 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_TRANSFER_GOODS *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormTransferGoods extends BasePo<WhFormTransferGoods> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private Long whFormTransferId = null;
+ @JsonIgnore
+ protected boolean isset_whFormTransferId = false;
+
+ private Integer worehouseCount = null;
+ @JsonIgnore
+ protected boolean isset_worehouseCount = false;
+
+ private Integer counts = null;
+ @JsonIgnore
+ protected boolean isset_counts = false;
+
+ private Long baseGoodsTemplateId = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsTemplateId = false;
+
+ private String goodsTemplateName = null;
+ @JsonIgnore
+ protected boolean isset_goodsTemplateName = false;
+
+ private String unit = null;
+ @JsonIgnore
+ protected boolean isset_unit = false;
+
+ private Long baseGoodsModelsId = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsModelsId = false;
+
+ private String baseGoodsModelsName = null;
+ @JsonIgnore
+ protected boolean isset_baseGoodsModelsName = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormTransferGoods() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormTransferGoods(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public Long getWhFormTransferId() {
+ return this.whFormTransferId;
+ }
+
+ public void setWhFormTransferId(Long whFormTransferId) {
+ this.whFormTransferId = whFormTransferId;
+ this.isset_whFormTransferId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhFormTransferId() {
+ return this.whFormTransferId == null;
+ }
+
+ public Integer getWorehouseCount() {
+ return this.worehouseCount;
+ }
+
+ public void setWorehouseCount(Integer worehouseCount) {
+ this.worehouseCount = worehouseCount;
+ this.isset_worehouseCount = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWorehouseCount() {
+ return this.worehouseCount == null;
+ }
+
+ public Integer getCounts() {
+ return this.counts;
+ }
+
+ public void setCounts(Integer counts) {
+ this.counts = counts;
+ this.isset_counts = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCounts() {
+ return this.counts == null;
+ }
+
+ public Long getBaseGoodsTemplateId() {
+ return this.baseGoodsTemplateId;
+ }
+
+ public void setBaseGoodsTemplateId(Long baseGoodsTemplateId) {
+ this.baseGoodsTemplateId = baseGoodsTemplateId;
+ this.isset_baseGoodsTemplateId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsTemplateId() {
+ return this.baseGoodsTemplateId == null;
+ }
+
+ public String getGoodsTemplateName() {
+ return this.goodsTemplateName;
+ }
+
+ public void setGoodsTemplateName(String goodsTemplateName) {
+ this.goodsTemplateName = goodsTemplateName;
+ this.isset_goodsTemplateName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyGoodsTemplateName() {
+ return this.goodsTemplateName == null || this.goodsTemplateName.length() == 0;
+ }
+
+ public String getUnit() {
+ return this.unit;
+ }
+
+ public void setUnit(String unit) {
+ this.unit = unit;
+ this.isset_unit = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyUnit() {
+ return this.unit == null || this.unit.length() == 0;
+ }
+
+ public Long getBaseGoodsModelsId() {
+ return this.baseGoodsModelsId;
+ }
+
+ public void setBaseGoodsModelsId(Long baseGoodsModelsId) {
+ this.baseGoodsModelsId = baseGoodsModelsId;
+ this.isset_baseGoodsModelsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsModelsId() {
+ return this.baseGoodsModelsId == null;
+ }
+
+ public String getBaseGoodsModelsName() {
+ return this.baseGoodsModelsName;
+ }
+
+ public void setBaseGoodsModelsName(String baseGoodsModelsName) {
+ this.baseGoodsModelsName = baseGoodsModelsName;
+ this.isset_baseGoodsModelsName = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyBaseGoodsModelsName() {
+ return this.baseGoodsModelsName == null || this.baseGoodsModelsName.length() == 0;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("whFormTransferId=").append(this.whFormTransferId)
+ .append("worehouseCount=").append(this.worehouseCount)
+ .append("counts=").append(this.counts)
+ .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
+ .append("goodsTemplateName=").append(this.goodsTemplateName)
+ .append("unit=").append(this.unit)
+ .append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
+ .append("baseGoodsModelsName=").append(this.baseGoodsModelsName)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormTransferGoods $clone() {
+ WhFormTransferGoods wh_form_transfer_goods = new WhFormTransferGoods();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_transfer_goods.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_transfer_goods.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_whFormTransferId) {
+ wh_form_transfer_goods.setWhFormTransferId(this.getWhFormTransferId());
+ }
+ if (this.isset_worehouseCount) {
+ wh_form_transfer_goods.setWorehouseCount(this.getWorehouseCount());
+ }
+ if (this.isset_counts) {
+ wh_form_transfer_goods.setCounts(this.getCounts());
+ }
+ if (this.isset_baseGoodsTemplateId) {
+ wh_form_transfer_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
+ }
+ if (this.isset_goodsTemplateName) {
+ wh_form_transfer_goods.setGoodsTemplateName(this.getGoodsTemplateName());
+ }
+ if (this.isset_unit) {
+ wh_form_transfer_goods.setUnit(this.getUnit());
+ }
+ if (this.isset_baseGoodsModelsId) {
+ wh_form_transfer_goods.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
+ }
+ if (this.isset_baseGoodsModelsName) {
+ wh_form_transfer_goods.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
+ }
+ return wh_form_transfer_goods;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferGoods_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferGoods_mapper.java
new file mode 100644
index 0000000..91cda77
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferGoods_mapper.java
@@ -0,0 +1,325 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_TRANSFER_GOODS *
+ * @author genrator
+ */
+public class WhFormTransferGoods_mapper extends WhFormTransferGoods implements BaseMapper<WhFormTransferGoods> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormTransferGoods> ROW_MAPPER = new WhFormTransferGoodsRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String WhFormTransferId = "wh_form_transfer_id";
+ public static final String WorehouseCount = "worehouse_count";
+ public static final String Counts = "counts";
+ public static final String BaseGoodsTemplateId = "base_goods_template_id";
+ public static final String GoodsTemplateName = "goods_template_name";
+ public static final String Unit = "unit";
+ public static final String BaseGoodsModelsId = "base_goods_models_id";
+ public static final String BaseGoodsModelsName = "base_goods_models_name";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormTransferGoods_mapper(WhFormTransferGoods whFormTransferGoods) {
+ if (whFormTransferGoods == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormTransferGoods.isset_id) {
+ this.setId(whFormTransferGoods.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormTransferGoods.isset_whFormTransferId) {
+ this.setWhFormTransferId(whFormTransferGoods.getWhFormTransferId());
+ }
+ if (whFormTransferGoods.isset_worehouseCount) {
+ this.setWorehouseCount(whFormTransferGoods.getWorehouseCount());
+ }
+ if (whFormTransferGoods.isset_counts) {
+ this.setCounts(whFormTransferGoods.getCounts());
+ }
+ if (whFormTransferGoods.isset_baseGoodsTemplateId) {
+ this.setBaseGoodsTemplateId(whFormTransferGoods.getBaseGoodsTemplateId());
+ }
+ if (whFormTransferGoods.isset_goodsTemplateName) {
+ this.setGoodsTemplateName(whFormTransferGoods.getGoodsTemplateName());
+ }
+ if (whFormTransferGoods.isset_unit) {
+ this.setUnit(whFormTransferGoods.getUnit());
+ }
+ if (whFormTransferGoods.isset_baseGoodsModelsId) {
+ this.setBaseGoodsModelsId(whFormTransferGoods.getBaseGoodsModelsId());
+ }
+ if (whFormTransferGoods.isset_baseGoodsModelsName) {
+ this.setBaseGoodsModelsName(whFormTransferGoods.getBaseGoodsModelsName());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_transfer_goods.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_transfer_goods";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(WhFormTransferId, this.getWhFormTransferId(), this.isset_whFormTransferId);
+ ib.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
+ ib.set(Counts, this.getCounts(), this.isset_counts);
+ ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ib.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ib.set(Unit, this.getUnit(), this.isset_unit);
+ ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormTransferId, this.getWhFormTransferId(), this.isset_whFormTransferId);
+ ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormTransferId, this.getWhFormTransferId(), this.isset_whFormTransferId);
+ ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormTransferId, this.getWhFormTransferId(), this.isset_whFormTransferId);
+ ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
+ ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName);
+ ub.set(Unit, this.getUnit(), this.isset_unit);
+ ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
+ ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, wh_form_transfer_id, worehouse_count, counts, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, wh_form_transfer_id, worehouse_count, counts, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormTransferGoods mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormTransferGoods toWhFormTransferGoods() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_transfer_goods RowMapper
+ *
+ * @author genrator
+ */
+class WhFormTransferGoodsRowMapper implements RowMapper<WhFormTransferGoods> {
+
+ @Override
+ public WhFormTransferGoods mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormTransferGoods wh_form_transfer_goods = new WhFormTransferGoods();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_transfer_goods.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.WhFormTransferId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_goods.setWhFormTransferId(null);
+ } else {
+ wh_form_transfer_goods.setWhFormTransferId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.WorehouseCount);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_goods.setWorehouseCount(null);
+ } else {
+ wh_form_transfer_goods.setWorehouseCount(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.Counts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_goods.setCounts(null);
+ } else {
+ wh_form_transfer_goods.setCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.BaseGoodsTemplateId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_goods.setBaseGoodsTemplateId(null);
+ } else {
+ wh_form_transfer_goods.setBaseGoodsTemplateId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.GoodsTemplateName);
+ if (columnIndex > 0) {
+ wh_form_transfer_goods.setGoodsTemplateName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.Unit);
+ if (columnIndex > 0) {
+ wh_form_transfer_goods.setUnit(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.BaseGoodsModelsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_goods.setBaseGoodsModelsId(null);
+ } else {
+ wh_form_transfer_goods.setBaseGoodsModelsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferGoods_mapper.BaseGoodsModelsName);
+ if (columnIndex > 0) {
+ wh_form_transfer_goods.setBaseGoodsModelsName(rs.getString(columnIndex));
+ }
+ return wh_form_transfer_goods;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferModel.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferModel.java
new file mode 100644
index 0000000..d3327ac
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferModel.java
@@ -0,0 +1,238 @@
+
+package com.consum.model.po;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.walker.jdbc.BasePo;
+
+/**
+ * 琛ㄥ悕:WH_FORM_TRANSFER_MODEL *
+ * @author genrator
+ */
+@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
+public class WhFormTransferModel extends BasePo<WhFormTransferModel> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ // 涓婚敭
+ private Long id = null;
+ @JsonIgnore
+ protected boolean isset_id = false;
+
+ // 灞炴�у垪琛�
+ private Long whFormTransferId = null;
+ @JsonIgnore
+ protected boolean isset_whFormTransferId = false;
+
+ private Integer worehouseCount = null;
+ @JsonIgnore
+ protected boolean isset_worehouseCount = false;
+
+ private Integer counts = null;
+ @JsonIgnore
+ protected boolean isset_counts = false;
+
+ private Long outWhGoodsDetailsId = null;
+ @JsonIgnore
+ protected boolean isset_outWhGoodsDetailsId = false;
+
+ private Long inWhGoodsDetailsId = null;
+ @JsonIgnore
+ protected boolean isset_inWhGoodsDetailsId = false;
+
+ private Long whGoodsId = null;
+ @JsonIgnore
+ protected boolean isset_whGoodsId = false;
+
+ private Long whFormTransferGoodsId = null;
+ @JsonIgnore
+ protected boolean isset_whFormTransferGoodsId = false;
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormTransferModel() {
+ }
+
+ /**
+ * 鏍规嵁涓婚敭鏋勯�犲璞�
+ */
+ public WhFormTransferModel(Long id) {
+ this.setId(id);
+ }
+
+ /**
+ * 璁剧疆涓婚敭鍊�
+ */
+ @Override
+ public void setPkValue(Object value) {
+ this.setId((Long) value);
+ }
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ this.isset_id = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyId() {
+ return this.id == null;
+ }
+
+ public Long getWhFormTransferId() {
+ return this.whFormTransferId;
+ }
+
+ public void setWhFormTransferId(Long whFormTransferId) {
+ this.whFormTransferId = whFormTransferId;
+ this.isset_whFormTransferId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhFormTransferId() {
+ return this.whFormTransferId == null;
+ }
+
+ public Integer getWorehouseCount() {
+ return this.worehouseCount;
+ }
+
+ public void setWorehouseCount(Integer worehouseCount) {
+ this.worehouseCount = worehouseCount;
+ this.isset_worehouseCount = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWorehouseCount() {
+ return this.worehouseCount == null;
+ }
+
+ public Integer getCounts() {
+ return this.counts;
+ }
+
+ public void setCounts(Integer counts) {
+ this.counts = counts;
+ this.isset_counts = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyCounts() {
+ return this.counts == null;
+ }
+
+ public Long getOutWhGoodsDetailsId() {
+ return this.outWhGoodsDetailsId;
+ }
+
+ public void setOutWhGoodsDetailsId(Long outWhGoodsDetailsId) {
+ this.outWhGoodsDetailsId = outWhGoodsDetailsId;
+ this.isset_outWhGoodsDetailsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyOutWhGoodsDetailsId() {
+ return this.outWhGoodsDetailsId == null;
+ }
+
+ public Long getInWhGoodsDetailsId() {
+ return this.inWhGoodsDetailsId;
+ }
+
+ public void setInWhGoodsDetailsId(Long inWhGoodsDetailsId) {
+ this.inWhGoodsDetailsId = inWhGoodsDetailsId;
+ this.isset_inWhGoodsDetailsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyInWhGoodsDetailsId() {
+ return this.inWhGoodsDetailsId == null;
+ }
+
+ public Long getWhGoodsId() {
+ return this.whGoodsId;
+ }
+
+ public void setWhGoodsId(Long whGoodsId) {
+ this.whGoodsId = whGoodsId;
+ this.isset_whGoodsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhGoodsId() {
+ return this.whGoodsId == null;
+ }
+
+ public Long getWhFormTransferGoodsId() {
+ return this.whFormTransferGoodsId;
+ }
+
+ public void setWhFormTransferGoodsId(Long whFormTransferGoodsId) {
+ this.whFormTransferGoodsId = whFormTransferGoodsId;
+ this.isset_whFormTransferGoodsId = true;
+ }
+
+ @JsonIgnore
+ public boolean isEmptyWhFormTransferGoodsId() {
+ return this.whFormTransferGoodsId == null;
+ }
+
+ /**
+ * 閲嶅啓 toString() 鏂规硶
+ */
+ @Override
+ public String toString() {
+ return new StringBuilder()
+ .append("id=").append(this.id)
+ .append("whFormTransferId=").append(this.whFormTransferId)
+ .append("worehouseCount=").append(this.worehouseCount)
+ .append("counts=").append(this.counts)
+ .append("outWhGoodsDetailsId=").append(this.outWhGoodsDetailsId)
+ .append("inWhGoodsDetailsId=").append(this.inWhGoodsDetailsId)
+ .append("whGoodsId=").append(this.whGoodsId)
+ .append("whFormTransferGoodsId=").append(this.whFormTransferGoodsId)
+ .toString();
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormTransferModel $clone() {
+ WhFormTransferModel wh_form_transfer_model = new WhFormTransferModel();
+
+ // 鏁版嵁搴撳悕绉�
+ //wh_form_transfer_model.setDatabaseName_(this.getDatabaseName_());
+
+ // 涓婚敭
+ if (this.isset_id) {
+ wh_form_transfer_model.setId(this.getId());
+ }
+ // 鏅�氬睘鎬�
+ if (this.isset_whFormTransferId) {
+ wh_form_transfer_model.setWhFormTransferId(this.getWhFormTransferId());
+ }
+ if (this.isset_worehouseCount) {
+ wh_form_transfer_model.setWorehouseCount(this.getWorehouseCount());
+ }
+ if (this.isset_counts) {
+ wh_form_transfer_model.setCounts(this.getCounts());
+ }
+ if (this.isset_outWhGoodsDetailsId) {
+ wh_form_transfer_model.setOutWhGoodsDetailsId(this.getOutWhGoodsDetailsId());
+ }
+ if (this.isset_inWhGoodsDetailsId) {
+ wh_form_transfer_model.setInWhGoodsDetailsId(this.getInWhGoodsDetailsId());
+ }
+ if (this.isset_whGoodsId) {
+ wh_form_transfer_model.setWhGoodsId(this.getWhGoodsId());
+ }
+ if (this.isset_whFormTransferGoodsId) {
+ wh_form_transfer_model.setWhFormTransferGoodsId(this.getWhFormTransferGoodsId());
+ }
+ return wh_form_transfer_model;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferModel_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferModel_mapper.java
new file mode 100644
index 0000000..bf61745
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransferModel_mapper.java
@@ -0,0 +1,321 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_TRANSFER_MODEL *
+ * @author genrator
+ */
+public class WhFormTransferModel_mapper extends WhFormTransferModel implements BaseMapper<WhFormTransferModel> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormTransferModel> ROW_MAPPER = new WhFormTransferModelRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String WhFormTransferId = "wh_form_transfer_id";
+ public static final String WorehouseCount = "worehouse_count";
+ public static final String Counts = "counts";
+ public static final String OutWhGoodsDetailsId = "out_wh_goods_details_id";
+ public static final String InWhGoodsDetailsId = "in_wh_goods_details_id";
+ public static final String WhGoodsId = "wh_goods_id";
+ public static final String WhFormTransferGoodsId = "wh_form_transfer_goods_id";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormTransferModel_mapper(WhFormTransferModel whFormTransferModel) {
+ if (whFormTransferModel == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormTransferModel.isset_id) {
+ this.setId(whFormTransferModel.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormTransferModel.isset_whFormTransferId) {
+ this.setWhFormTransferId(whFormTransferModel.getWhFormTransferId());
+ }
+ if (whFormTransferModel.isset_worehouseCount) {
+ this.setWorehouseCount(whFormTransferModel.getWorehouseCount());
+ }
+ if (whFormTransferModel.isset_counts) {
+ this.setCounts(whFormTransferModel.getCounts());
+ }
+ if (whFormTransferModel.isset_outWhGoodsDetailsId) {
+ this.setOutWhGoodsDetailsId(whFormTransferModel.getOutWhGoodsDetailsId());
+ }
+ if (whFormTransferModel.isset_inWhGoodsDetailsId) {
+ this.setInWhGoodsDetailsId(whFormTransferModel.getInWhGoodsDetailsId());
+ }
+ if (whFormTransferModel.isset_whGoodsId) {
+ this.setWhGoodsId(whFormTransferModel.getWhGoodsId());
+ }
+ if (whFormTransferModel.isset_whFormTransferGoodsId) {
+ this.setWhFormTransferGoodsId(whFormTransferModel.getWhFormTransferGoodsId());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_transfer_model.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_transfer_model";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(WhFormTransferId, this.getWhFormTransferId(), this.isset_whFormTransferId);
+ ib.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
+ ib.set(Counts, this.getCounts(), this.isset_counts);
+ ib.set(OutWhGoodsDetailsId, this.getOutWhGoodsDetailsId(), this.isset_outWhGoodsDetailsId);
+ ib.set(InWhGoodsDetailsId, this.getInWhGoodsDetailsId(), this.isset_inWhGoodsDetailsId);
+ ib.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ib.set(WhFormTransferGoodsId, this.getWhFormTransferGoodsId(), this.isset_whFormTransferGoodsId);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormTransferId, this.getWhFormTransferId(), this.isset_whFormTransferId);
+ ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(OutWhGoodsDetailsId, this.getOutWhGoodsDetailsId(), this.isset_outWhGoodsDetailsId);
+ ub.set(InWhGoodsDetailsId, this.getInWhGoodsDetailsId(), this.isset_inWhGoodsDetailsId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ub.set(WhFormTransferGoodsId, this.getWhFormTransferGoodsId(), this.isset_whFormTransferGoodsId);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormTransferId, this.getWhFormTransferId(), this.isset_whFormTransferId);
+ ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(OutWhGoodsDetailsId, this.getOutWhGoodsDetailsId(), this.isset_outWhGoodsDetailsId);
+ ub.set(InWhGoodsDetailsId, this.getInWhGoodsDetailsId(), this.isset_inWhGoodsDetailsId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ub.set(WhFormTransferGoodsId, this.getWhFormTransferGoodsId(), this.isset_whFormTransferGoodsId);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(WhFormTransferId, this.getWhFormTransferId(), this.isset_whFormTransferId);
+ ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
+ ub.set(Counts, this.getCounts(), this.isset_counts);
+ ub.set(OutWhGoodsDetailsId, this.getOutWhGoodsDetailsId(), this.isset_outWhGoodsDetailsId);
+ ub.set(InWhGoodsDetailsId, this.getInWhGoodsDetailsId(), this.isset_inWhGoodsDetailsId);
+ ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
+ ub.set(WhFormTransferGoodsId, this.getWhFormTransferGoodsId(), this.isset_whFormTransferGoodsId);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, wh_form_transfer_id, worehouse_count, counts, out_wh_goods_details_id, in_wh_goods_details_id, wh_goods_id, wh_form_transfer_goods_id from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, wh_form_transfer_id, worehouse_count, counts, out_wh_goods_details_id, in_wh_goods_details_id, wh_goods_id, wh_form_transfer_goods_id from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormTransferModel mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormTransferModel toWhFormTransferModel() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_transfer_model RowMapper
+ *
+ * @author genrator
+ */
+class WhFormTransferModelRowMapper implements RowMapper<WhFormTransferModel> {
+
+ @Override
+ public WhFormTransferModel mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormTransferModel wh_form_transfer_model = new WhFormTransferModel();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferModel_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_transfer_model.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferModel_mapper.WhFormTransferId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_model.setWhFormTransferId(null);
+ } else {
+ wh_form_transfer_model.setWhFormTransferId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferModel_mapper.WorehouseCount);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_model.setWorehouseCount(null);
+ } else {
+ wh_form_transfer_model.setWorehouseCount(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferModel_mapper.Counts);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_model.setCounts(null);
+ } else {
+ wh_form_transfer_model.setCounts(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferModel_mapper.OutWhGoodsDetailsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_model.setOutWhGoodsDetailsId(null);
+ } else {
+ wh_form_transfer_model.setOutWhGoodsDetailsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferModel_mapper.InWhGoodsDetailsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_model.setInWhGoodsDetailsId(null);
+ } else {
+ wh_form_transfer_model.setInWhGoodsDetailsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferModel_mapper.WhGoodsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_model.setWhGoodsId(null);
+ } else {
+ wh_form_transfer_model.setWhGoodsId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransferModel_mapper.WhFormTransferGoodsId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer_model.setWhFormTransferGoodsId(null);
+ } else {
+ wh_form_transfer_model.setWhFormTransferGoodsId(rs.getLong(columnIndex));
+ }
+ }
+ return wh_form_transfer_model;
+ }
+}
diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransfer_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransfer_mapper.java
new file mode 100644
index 0000000..3146b6f
--- /dev/null
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhFormTransfer_mapper.java
@@ -0,0 +1,529 @@
+package com.consum.model.po;
+
+import com.walker.jdbc.BaseMapper;
+import com.walker.jdbc.ResultSetUtils;
+import com.walker.jdbc.SqlAndParameters;
+import com.walker.jdbc.sqlgen.DeleteBuilder;
+import com.walker.jdbc.sqlgen.InsertBuilder;
+import com.walker.jdbc.sqlgen.SelectBuilder;
+import com.walker.jdbc.sqlgen.UpdateBuilder;
+import com.walker.jdbc.util.StringUtils;
+
+import org.springframework.jdbc.core.RowMapper;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+/**
+ * 琛ㄥ悕:WH_FORM_TRANSFER *
+ * @author genrator
+ */
+public class WhFormTransfer_mapper extends WhFormTransfer implements BaseMapper<WhFormTransfer> {
+ // 搴忓垪鍖栫増鏈彿
+ private static final long serialVersionUID = 1L;
+
+ public static final RowMapper<WhFormTransfer> ROW_MAPPER = new WhFormTransferRowMapper();
+
+ // 涓婚敭
+ public static final String Id = "id";
+ // 鏅�氬睘鎬�
+ public static final String BusinessFormCode = "business_form_code";
+ public static final String InWarehouseId = "in_warehouse_id";
+ public static final String InWarehouseName = "in_warehouse_name";
+ public static final String OutWarehouseId = "out_warehouse_id";
+ public static final String OutWarehouseName = "out_warehouse_name";
+ public static final String InAgencyId = "in_agency_id";
+ public static final String InAgencyName = "in_agency_name";
+ public static final String OutAgencyId = "out_agency_id";
+ public static final String OutAgencyName = "out_agency_name";
+ public static final String OperatorId = "operator_id";
+ public static final String OperatorName = "operator_name";
+ public static final String CreateTime = "create_time";
+ public static final String States = "states";
+ public static final String OperatorId3 = "operator_id3";
+ public static final String OperatorName3 = "operator_name3";
+ public static final String IninputTime = "ininput_time";
+ public static final String OperatorId2 = "operator_id2";
+ public static final String OperatorName2 = "operator_name2";
+ public static final String OutputTime = "output_time";
+ public static final String Beiz1 = "beiz1";
+ public static final String Beiz2 = "beiz2";
+ public static final String Beiz3 = "beiz3";
+ public static final String ProcureDoc = "procure_doc";
+
+ /**
+ * 榛樿鏋勯�犲嚱鏁�
+ */
+ public WhFormTransfer_mapper(WhFormTransfer whFormTransfer) {
+ if (whFormTransfer == null) {
+ throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒");
+ }
+ //涓婚敭
+ if (whFormTransfer.isset_id) {
+ this.setId(whFormTransfer.getId());
+ }
+ //鏅�氬睘鎬�
+ if (whFormTransfer.isset_businessFormCode) {
+ this.setBusinessFormCode(whFormTransfer.getBusinessFormCode());
+ }
+ if (whFormTransfer.isset_inWarehouseId) {
+ this.setInWarehouseId(whFormTransfer.getInWarehouseId());
+ }
+ if (whFormTransfer.isset_inWarehouseName) {
+ this.setInWarehouseName(whFormTransfer.getInWarehouseName());
+ }
+ if (whFormTransfer.isset_outWarehouseId) {
+ this.setOutWarehouseId(whFormTransfer.getOutWarehouseId());
+ }
+ if (whFormTransfer.isset_outWarehouseName) {
+ this.setOutWarehouseName(whFormTransfer.getOutWarehouseName());
+ }
+ if (whFormTransfer.isset_inAgencyId) {
+ this.setInAgencyId(whFormTransfer.getInAgencyId());
+ }
+ if (whFormTransfer.isset_inAgencyName) {
+ this.setInAgencyName(whFormTransfer.getInAgencyName());
+ }
+ if (whFormTransfer.isset_outAgencyId) {
+ this.setOutAgencyId(whFormTransfer.getOutAgencyId());
+ }
+ if (whFormTransfer.isset_outAgencyName) {
+ this.setOutAgencyName(whFormTransfer.getOutAgencyName());
+ }
+ if (whFormTransfer.isset_operatorId) {
+ this.setOperatorId(whFormTransfer.getOperatorId());
+ }
+ if (whFormTransfer.isset_operatorName) {
+ this.setOperatorName(whFormTransfer.getOperatorName());
+ }
+ if (whFormTransfer.isset_createTime) {
+ this.setCreateTime(whFormTransfer.getCreateTime());
+ }
+ if (whFormTransfer.isset_states) {
+ this.setStates(whFormTransfer.getStates());
+ }
+ if (whFormTransfer.isset_operatorId3) {
+ this.setOperatorId3(whFormTransfer.getOperatorId3());
+ }
+ if (whFormTransfer.isset_operatorName3) {
+ this.setOperatorName3(whFormTransfer.getOperatorName3());
+ }
+ if (whFormTransfer.isset_ininputTime) {
+ this.setIninputTime(whFormTransfer.getIninputTime());
+ }
+ if (whFormTransfer.isset_operatorId2) {
+ this.setOperatorId2(whFormTransfer.getOperatorId2());
+ }
+ if (whFormTransfer.isset_operatorName2) {
+ this.setOperatorName2(whFormTransfer.getOperatorName2());
+ }
+ if (whFormTransfer.isset_outputTime) {
+ this.setOutputTime(whFormTransfer.getOutputTime());
+ }
+ if (whFormTransfer.isset_beiz1) {
+ this.setBeiz1(whFormTransfer.getBeiz1());
+ }
+ if (whFormTransfer.isset_beiz2) {
+ this.setBeiz2(whFormTransfer.getBeiz2());
+ }
+ if (whFormTransfer.isset_beiz3) {
+ this.setBeiz3(whFormTransfer.getBeiz3());
+ }
+ if (whFormTransfer.isset_procureDoc) {
+ this.setProcureDoc(whFormTransfer.getProcureDoc());
+ }
+ // 鍘绘帀锛�2022-09-07
+ // this.setDatabaseName_(wh_form_transfer.getDatabaseName_());
+ }
+
+ /**
+ * 鑾峰彇琛ㄥ悕
+ */
+ @Override
+ public String getTableName_() {
+ String tableName = "wh_form_transfer";
+ /**
+ if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
+ return this.getDatabaseName_() + "." + tableName;
+ } else {
+ return tableName;
+ }
+ */
+ return tableName;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍚嶇О
+ */
+ @Override
+ public String getPkName_() {
+ return Id;
+ }
+
+ /**
+ * 鑾峰彇涓婚敭鍊�
+ */
+ @Override
+ public Object getPkValue_() {
+ return this.getId();
+ }
+
+ /**
+ * 鑾峰彇鎻掑叆璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getInsertSql_() {
+ InsertBuilder ib = new InsertBuilder(this.getTableName_());
+ ib.set(Id, this.getId());
+ ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ib.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId);
+ ib.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName);
+ ib.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
+ ib.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
+ ib.set(InAgencyId, this.getInAgencyId(), this.isset_inAgencyId);
+ ib.set(InAgencyName, this.getInAgencyName(), this.isset_inAgencyName);
+ ib.set(OutAgencyId, this.getOutAgencyId(), this.isset_outAgencyId);
+ ib.set(OutAgencyName, this.getOutAgencyName(), this.isset_outAgencyName);
+ ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ib.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+ ib.set(States, this.getStates(), this.isset_states);
+ ib.set(OperatorId3, this.getOperatorId3(), this.isset_operatorId3);
+ ib.set(OperatorName3, this.getOperatorName3(), this.isset_operatorName3);
+ ib.set(IninputTime, this.getIninputTime(), this.isset_ininputTime);
+ ib.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ib.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ib.set(OutputTime, this.getOutputTime(), this.isset_outputTime);
+ ib.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
+ ib.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ib.set(Beiz3, this.getBeiz3(), this.isset_beiz3);
+ ib.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+ return ib.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId);
+ ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName);
+ ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
+ ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
+ ub.set(InAgencyId, this.getInAgencyId(), this.isset_inAgencyId);
+ ub.set(InAgencyName, this.getInAgencyName(), this.isset_inAgencyName);
+ ub.set(OutAgencyId, this.getOutAgencyId(), this.isset_outAgencyId);
+ ub.set(OutAgencyName, this.getOutAgencyName(), this.isset_outAgencyName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(OperatorId3, this.getOperatorId3(), this.isset_operatorId3);
+ ub.set(OperatorName3, this.getOperatorName3(), this.isset_operatorName3);
+ ub.set(IninputTime, this.getIninputTime(), this.isset_ininputTime);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(OutputTime, this.getOutputTime(), this.isset_outputTime);
+ ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(Beiz3, this.getBeiz3(), this.isset_beiz3);
+ ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+ ub.where(this.getPkName_(), this.getPkValue_());
+ return ub.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId);
+ ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName);
+ ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
+ ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
+ ub.set(InAgencyId, this.getInAgencyId(), this.isset_inAgencyId);
+ ub.set(InAgencyName, this.getInAgencyName(), this.isset_inAgencyName);
+ ub.set(OutAgencyId, this.getOutAgencyId(), this.isset_outAgencyId);
+ ub.set(OutAgencyName, this.getOutAgencyName(), this.isset_outAgencyName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(OperatorId3, this.getOperatorId3(), this.isset_operatorId3);
+ ub.set(OperatorName3, this.getOperatorName3(), this.isset_operatorName3);
+ ub.set(IninputTime, this.getIninputTime(), this.isset_ininputTime);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(OutputTime, this.getOutputTime(), this.isset_outputTime);
+ ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(Beiz3, this.getBeiz3(), this.isset_beiz3);
+ ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+ return ub.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏇存柊璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
+ UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
+ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
+ ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId);
+ ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName);
+ ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
+ ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
+ ub.set(InAgencyId, this.getInAgencyId(), this.isset_inAgencyId);
+ ub.set(InAgencyName, this.getInAgencyName(), this.isset_inAgencyName);
+ ub.set(OutAgencyId, this.getOutAgencyId(), this.isset_outAgencyId);
+ ub.set(OutAgencyName, this.getOutAgencyName(), this.isset_outAgencyName);
+ ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
+ ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
+ ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+ ub.set(States, this.getStates(), this.isset_states);
+ ub.set(OperatorId3, this.getOperatorId3(), this.isset_operatorId3);
+ ub.set(OperatorName3, this.getOperatorName3(), this.isset_operatorName3);
+ ub.set(IninputTime, this.getIninputTime(), this.isset_ininputTime);
+ ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
+ ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
+ ub.set(OutputTime, this.getOutputTime(), this.isset_outputTime);
+ ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
+ ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
+ ub.set(Beiz3, this.getBeiz3(), this.isset_beiz3);
+ ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+ return ub.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ db.where(this.getPkName_(), this.getPkValue_());
+ return db.genMapSql();
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genMapSql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍒犻櫎璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
+ DeleteBuilder db = new DeleteBuilder(this.getTableName_());
+ return db.genArraySql(where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鍗曡鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSingleSql_() {
+ SelectBuilder sb = new SelectBuilder(this.getTableName_());
+ sb.where(this.getPkName_(), this.getPkValue_());
+ return sb.genMapSql();
+ }
+
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
+ return new SqlAndParameters<>("select id, business_form_code, in_warehouse_id, in_warehouse_name, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, operator_id3, operator_name3, ininput_time, operator_id2, operator_name2, output_time, beiz1, beiz2, beiz3, procure_doc from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁�
+ */
+ @Override
+ public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
+ return new SqlAndParameters<>("select id, business_form_code, in_warehouse_id, in_warehouse_name, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, operator_id3, operator_name3, ininput_time, operator_id2, operator_name2, output_time, beiz1, beiz2, beiz3, procure_doc from " + this.getTableName_() + " " + where, parameters);
+ }
+
+ /**
+ * 灏唕esultset鐨勪竴琛岃浆鍖栦负po
+ */
+ @Override
+ public WhFormTransfer mapRow(ResultSet rs, int i) throws SQLException {
+ return ROW_MAPPER.mapRow(rs, i);
+ }
+
+ /**
+ * 鍏嬮殕
+ */
+ public WhFormTransfer toWhFormTransfer() {
+ return super.$clone();
+ }
+}
+
+/**
+ * wh_form_transfer RowMapper
+ *
+ * @author genrator
+ */
+class WhFormTransferRowMapper implements RowMapper<WhFormTransfer> {
+
+ @Override
+ public WhFormTransfer mapRow(ResultSet rs, int i) throws SQLException {
+ ResultSetUtils resultSetUtils = new ResultSetUtils();
+ WhFormTransfer wh_form_transfer = new WhFormTransfer();
+ Integer columnIndex;
+ //涓婚敭
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.Id);
+ if (columnIndex > 0) {
+ wh_form_transfer.setId(rs.getLong(columnIndex));
+ }
+ //鏅�氬睘鎬�
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.BusinessFormCode);
+ if (columnIndex > 0) {
+ wh_form_transfer.setBusinessFormCode(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.InWarehouseId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setInWarehouseId(null);
+ } else {
+ wh_form_transfer.setInWarehouseId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.InWarehouseName);
+ if (columnIndex > 0) {
+ wh_form_transfer.setInWarehouseName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OutWarehouseId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setOutWarehouseId(null);
+ } else {
+ wh_form_transfer.setOutWarehouseId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OutWarehouseName);
+ if (columnIndex > 0) {
+ wh_form_transfer.setOutWarehouseName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.InAgencyId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setInAgencyId(null);
+ } else {
+ wh_form_transfer.setInAgencyId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.InAgencyName);
+ if (columnIndex > 0) {
+ wh_form_transfer.setInAgencyName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OutAgencyId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setOutAgencyId(null);
+ } else {
+ wh_form_transfer.setOutAgencyId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OutAgencyName);
+ if (columnIndex > 0) {
+ wh_form_transfer.setOutAgencyName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OperatorId);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setOperatorId(null);
+ } else {
+ wh_form_transfer.setOperatorId(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OperatorName);
+ if (columnIndex > 0) {
+ wh_form_transfer.setOperatorName(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.CreateTime);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setCreateTime(null);
+ } else {
+ wh_form_transfer.setCreateTime(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.States);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setStates(null);
+ } else {
+ wh_form_transfer.setStates(rs.getInt(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OperatorId3);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setOperatorId3(null);
+ } else {
+ wh_form_transfer.setOperatorId3(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OperatorName3);
+ if (columnIndex > 0) {
+ wh_form_transfer.setOperatorName3(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.IninputTime);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setIninputTime(null);
+ } else {
+ wh_form_transfer.setIninputTime(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OperatorId2);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setOperatorId2(null);
+ } else {
+ wh_form_transfer.setOperatorId2(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OperatorName2);
+ if (columnIndex > 0) {
+ wh_form_transfer.setOperatorName2(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.OutputTime);
+ if (columnIndex > 0) {
+ if (rs.getBigDecimal(columnIndex) == null) {
+ wh_form_transfer.setOutputTime(null);
+ } else {
+ wh_form_transfer.setOutputTime(rs.getLong(columnIndex));
+ }
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.Beiz1);
+ if (columnIndex > 0) {
+ wh_form_transfer.setBeiz1(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.Beiz2);
+ if (columnIndex > 0) {
+ wh_form_transfer.setBeiz2(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.Beiz3);
+ if (columnIndex > 0) {
+ wh_form_transfer.setBeiz3(rs.getString(columnIndex));
+ }
+ columnIndex = resultSetUtils.findColumn(rs, WhFormTransfer_mapper.ProcureDoc);
+ if (columnIndex > 0) {
+ wh_form_transfer.setProcureDoc(rs.getString(columnIndex));
+ }
+ return wh_form_transfer;
+ }
+}
diff --git a/deploy-jar-single/src/main/java/com/consum/test/base/Base_Category.java b/deploy-jar-single/src/main/java/com/consum/test/base/Base_Category.java
new file mode 100644
index 0000000..772d042
--- /dev/null
+++ b/deploy-jar-single/src/main/java/com/consum/test/base/Base_Category.java
@@ -0,0 +1,37 @@
+package com.consum.test.base;
+
+import com.consum.ConsumApplication;
+import com.consum.base.core.data.Base_CategoryService;
+import com.consum.model.po.BaseCategory;
+import com.walker.infrastructure.utils.NumberGenerator;
+import com.walker.jdbc.BaseDao;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest(classes = {ConsumApplication.class})
+public class Base_Category {
+ @Autowired
+ private Base_CategoryService service;
+
+ @Test
+ public void addFirstCategory(){
+ for (int ii =0;ii <10;ii++){
+ Long id = NumberGenerator.getLongSequenceNumber();
+ for (int i=0;i<1000;i++){
+ service.addFirstCategory(id);
+ }
+ }
+ }
+ @Test
+ public void addSecondCategory(){
+ service.addSecondCategory(12624043866144l);
+ }
+ @Test
+ public void addThirdCategory(){
+ service.addThirdCategory(12838134761035l);
+ }
+}
--
Gitblit v1.9.1