Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
dc-java
Commits
f5261664
Commit
f5261664
authored
Oct 17, 2019
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存流水仓库id更改
parent
cd24d775
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
52 deletions
+65
-52
SemiStockReportSyncJob.java
...c/main/java/com/bailuntec/job/SemiStockReportSyncJob.java
+13
-0
DcSemiStockReport.java
...n/java/com/bailuntec/domain/entity/DcSemiStockReport.java
+5
-5
DcSemiStockReportExample.java
...om/bailuntec/domain/example/DcSemiStockReportExample.java
+24
-24
DcSemiStockReportMapper.xml
...ain/java/com/bailuntec/mapper/DcSemiStockReportMapper.xml
+23
-23
No files found.
data-base/base-sync-semi-order/src/main/java/com/bailuntec/job/SemiStockReportSyncJob.java
View file @
f5261664
...
...
@@ -9,7 +9,9 @@ import com.bailuntec.domain.entity.DcSemiStockReport;
import
com.bailuntec.domain.entity.JobPointLog
;
import
com.bailuntec.domain.pojo.SemiStockReportInfo
;
import
com.bailuntec.mapper.DcSemiStockReportMapper
;
import
com.bailuntec.mapper.JobPointLogMapper
;
import
com.bailuntec.support.PointJob
;
import
com.bailuntec.utils.ExceptionUtil
;
import
com.bailuntec.utils.OkHttpUtil
;
import
com.bailuntec.utils.PropertiesUtil
;
import
com.bailuntec.utils.SessionUtil
;
...
...
@@ -76,6 +78,17 @@ public class SemiStockReportSyncJob extends PointJob {
}
else
{
throw
new
RuntimeException
(
"调用库存流水报表接口同步百伦库存流水失败, 响应为null, 请求参数"
+
map
.
toString
());
}
if
(
jobPointLog
.
getPageIndex
()
%
10
==
0
)
{
try
{
JobPointLogMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
JobPointLogMapper
.
class
);
mapper
.
upsertSelective
(
jobPointLog
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
RuntimeException
(
ExceptionUtil
.
transform
(
e
),
e
);
}
finally
{
SessionUtil
.
closeSession
();
}
}
jobPointLog
.
setPageIndex
(
jobPointLog
.
getPageIndex
()
+
1
);
}
while
(
jobPointLog
.
getPageIndex
()
<=
totalPage
);
jobPointLog
.
setPageIndex
(
0
);
...
...
data-common/src/main/java/com/bailuntec/domain/entity/DcSemiStockReport.java
View file @
f5261664
...
...
@@ -91,11 +91,11 @@ public class DcSemiStockReport {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_semi_stock_report.warehouse
l
_id
* This field corresponds to the database column dc_semi_stock_report.warehouse_id
*
* @mbg.generated
*/
private
Integer
warehouse
l
Id
;
private
Integer
warehouseId
;
/**
*
...
...
@@ -253,7 +253,7 @@ public class DcSemiStockReport {
sb
.
append
(
", stock="
).
append
(
stock
);
sb
.
append
(
", createUserName="
).
append
(
createUserName
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", warehouse
lId="
).
append
(
warehousel
Id
);
sb
.
append
(
", warehouse
Id="
).
append
(
warehouse
Id
);
sb
.
append
(
", stockType="
).
append
(
stockType
);
sb
.
append
(
", stockTypeStr="
).
append
(
stockTypeStr
);
sb
.
append
(
", materialCode="
).
append
(
materialCode
);
...
...
@@ -300,7 +300,7 @@ public class DcSemiStockReport {
&&
(
this
.
getStock
()
==
null
?
other
.
getStock
()
==
null
:
this
.
getStock
().
equals
(
other
.
getStock
()))
&&
(
this
.
getCreateUserName
()
==
null
?
other
.
getCreateUserName
()
==
null
:
this
.
getCreateUserName
().
equals
(
other
.
getCreateUserName
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getWarehouse
lId
()
==
null
?
other
.
getWarehouselId
()
==
null
:
this
.
getWarehouselId
().
equals
(
other
.
getWarehousel
Id
()))
&&
(
this
.
getWarehouse
Id
()
==
null
?
other
.
getWarehouseId
()
==
null
:
this
.
getWarehouseId
().
equals
(
other
.
getWarehouse
Id
()))
&&
(
this
.
getStockType
()
==
null
?
other
.
getStockType
()
==
null
:
this
.
getStockType
().
equals
(
other
.
getStockType
()))
&&
(
this
.
getStockTypeStr
()
==
null
?
other
.
getStockTypeStr
()
==
null
:
this
.
getStockTypeStr
().
equals
(
other
.
getStockTypeStr
()))
&&
(
this
.
getMaterialCode
()
==
null
?
other
.
getMaterialCode
()
==
null
:
this
.
getMaterialCode
().
equals
(
other
.
getMaterialCode
()))
...
...
@@ -337,7 +337,7 @@ public class DcSemiStockReport {
result
=
prime
*
result
+
((
getStock
()
==
null
)
?
0
:
getStock
().
hashCode
());
result
=
prime
*
result
+
((
getCreateUserName
()
==
null
)
?
0
:
getCreateUserName
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getWarehouse
lId
()
==
null
)
?
0
:
getWarehousel
Id
().
hashCode
());
result
=
prime
*
result
+
((
getWarehouse
Id
()
==
null
)
?
0
:
getWarehouse
Id
().
hashCode
());
result
=
prime
*
result
+
((
getStockType
()
==
null
)
?
0
:
getStockType
().
hashCode
());
result
=
prime
*
result
+
((
getStockTypeStr
()
==
null
)
?
0
:
getStockTypeStr
().
hashCode
());
result
=
prime
*
result
+
((
getMaterialCode
()
==
null
)
?
0
:
getMaterialCode
().
hashCode
());
...
...
data-common/src/main/java/com/bailuntec/domain/example/DcSemiStockReportExample.java
View file @
f5261664
...
...
@@ -951,63 +951,63 @@ public class DcSemiStockReportExample {
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdIsNull
()
{
addCriterion
(
"warehouse
l
_id is null"
);
public
Criteria
andWarehouseIdIsNull
()
{
addCriterion
(
"warehouse_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdIsNotNull
()
{
addCriterion
(
"warehouse
l
_id is not null"
);
public
Criteria
andWarehouseIdIsNotNull
()
{
addCriterion
(
"warehouse_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdEqualTo
(
Integer
value
)
{
addCriterion
(
"warehouse
l_id ="
,
value
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdEqualTo
(
Integer
value
)
{
addCriterion
(
"warehouse
_id ="
,
value
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"warehouse
l_id <>"
,
value
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"warehouse
_id <>"
,
value
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdGreaterThan
(
Integer
value
)
{
addCriterion
(
"warehouse
l_id >"
,
value
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"warehouse
_id >"
,
value
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"warehouse
l_id >="
,
value
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"warehouse
_id >="
,
value
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdLessThan
(
Integer
value
)
{
addCriterion
(
"warehouse
l_id <"
,
value
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdLessThan
(
Integer
value
)
{
addCriterion
(
"warehouse
_id <"
,
value
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"warehouse
l_id <="
,
value
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"warehouse
_id <="
,
value
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"warehouse
l_id in"
,
values
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"warehouse
_id in"
,
values
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"warehouse
l_id not in"
,
values
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"warehouse
_id not in"
,
values
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"warehouse
l_id between"
,
value1
,
value2
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"warehouse
_id between"
,
value1
,
value2
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWarehouse
l
IdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"warehouse
l_id not between"
,
value1
,
value2
,
"warehousel
Id"
);
public
Criteria
andWarehouseIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"warehouse
_id not between"
,
value1
,
value2
,
"warehouse
Id"
);
return
(
Criteria
)
this
;
}
...
...
data-common/src/main/java/com/bailuntec/mapper/DcSemiStockReportMapper.xml
View file @
f5261664
...
...
@@ -15,7 +15,7 @@
<result
column=
"stock"
jdbcType=
"INTEGER"
property=
"stock"
/>
<result
column=
"create_user_name"
jdbcType=
"VARCHAR"
property=
"createUserName"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"warehouse
l_id"
jdbcType=
"INTEGER"
property=
"warehousel
Id"
/>
<result
column=
"warehouse
_id"
jdbcType=
"INTEGER"
property=
"warehouse
Id"
/>
<result
column=
"stock_type"
jdbcType=
"CHAR"
property=
"stockType"
/>
<result
column=
"stock_type_str"
jdbcType=
"VARCHAR"
property=
"stockTypeStr"
/>
<result
column=
"material_code"
jdbcType=
"VARCHAR"
property=
"materialCode"
/>
...
...
@@ -104,7 +104,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, unique_no, log_id, warehouse_type, warehouse_type_str, material_id, stock, create_user_name,
create_time, warehouse
l
_id, stock_type, stock_type_str, material_code, material_name,
create_time, warehouse_id, stock_type, stock_type_str, material_code, material_name,
material_category, new_price, warehouse_name, supplier_name, order_no, is_selfcontained,
is_selfcontained_str, remarks, is_zichang, gmt_create, gmt_modified
</sql>
...
...
@@ -170,7 +170,7 @@
insert into dc_semi_stock_report (id, unique_no, log_id,
warehouse_type, warehouse_type_str, material_id,
stock, create_user_name, create_time,
warehouse
l
_id, stock_type, stock_type_str,
warehouse_id, stock_type, stock_type_str,
material_code, material_name, material_category,
new_price, warehouse_name, supplier_name,
order_no, is_selfcontained, is_selfcontained_str,
...
...
@@ -179,7 +179,7 @@
values (#{id,jdbcType=INTEGER}, #{uniqueNo,jdbcType=VARCHAR}, #{logId,jdbcType=INTEGER},
#{warehouseType,jdbcType=CHAR}, #{warehouseTypeStr,jdbcType=VARCHAR}, #{materialId,jdbcType=INTEGER},
#{stock,jdbcType=INTEGER}, #{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{warehouse
l
Id,jdbcType=INTEGER}, #{stockType,jdbcType=CHAR}, #{stockTypeStr,jdbcType=VARCHAR},
#{warehouseId,jdbcType=INTEGER}, #{stockType,jdbcType=CHAR}, #{stockTypeStr,jdbcType=VARCHAR},
#{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{materialCategory,jdbcType=VARCHAR},
#{newPrice,jdbcType=DECIMAL}, #{warehouseName,jdbcType=VARCHAR}, #{supplierName,jdbcType=VARCHAR},
#{orderNo,jdbcType=VARCHAR}, #{isSelfcontained,jdbcType=BIT}, #{isSelfcontainedStr,jdbcType=VARCHAR},
...
...
@@ -220,8 +220,8 @@
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"warehouse
l
Id != null"
>
warehouse
l
_id,
<if
test=
"warehouseId != null"
>
warehouse_id,
</if>
<if
test=
"stockType != null"
>
stock_type,
...
...
@@ -297,8 +297,8 @@
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"warehouse
l
Id != null"
>
#{warehouse
l
Id,jdbcType=INTEGER},
<if
test=
"warehouseId != null"
>
#{warehouseId,jdbcType=INTEGER},
</if>
<if
test=
"stockType != null"
>
#{stockType,jdbcType=CHAR},
...
...
@@ -391,8 +391,8 @@
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.warehouse
l
Id != null"
>
warehouse
l_id = #{record.warehousel
Id,jdbcType=INTEGER},
<if
test=
"record.warehouseId != null"
>
warehouse
_id = #{record.warehouse
Id,jdbcType=INTEGER},
</if>
<if
test=
"record.stockType != null"
>
stock_type = #{record.stockType,jdbcType=CHAR},
...
...
@@ -459,7 +459,7 @@
stock = #{record.stock,jdbcType=INTEGER},
create_user_name = #{record.createUserName,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
warehouse
l_id = #{record.warehousel
Id,jdbcType=INTEGER},
warehouse
_id = #{record.warehouse
Id,jdbcType=INTEGER},
stock_type = #{record.stockType,jdbcType=CHAR},
stock_type_str = #{record.stockTypeStr,jdbcType=VARCHAR},
material_code = #{record.materialCode,jdbcType=VARCHAR},
...
...
@@ -510,8 +510,8 @@
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"warehouse
l
Id != null"
>
warehouse
l_id = #{warehousel
Id,jdbcType=INTEGER},
<if
test=
"warehouseId != null"
>
warehouse
_id = #{warehouse
Id,jdbcType=INTEGER},
</if>
<if
test=
"stockType != null"
>
stock_type = #{stockType,jdbcType=CHAR},
...
...
@@ -575,7 +575,7 @@
stock = #{stock,jdbcType=INTEGER},
create_user_name = #{createUserName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
warehouse
l_id = #{warehousel
Id,jdbcType=INTEGER},
warehouse
_id = #{warehouse
Id,jdbcType=INTEGER},
stock_type = #{stockType,jdbcType=CHAR},
stock_type_str = #{stockTypeStr,jdbcType=VARCHAR},
material_code = #{materialCode,jdbcType=VARCHAR},
...
...
@@ -628,8 +628,8 @@
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"warehouse
l
Id != null"
>
warehouse
l
_id,
<if
test=
"warehouseId != null"
>
warehouse_id,
</if>
<if
test=
"stockType != null"
>
stock_type,
...
...
@@ -706,8 +706,8 @@
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"warehouse
l
Id != null"
>
#{warehouse
l
Id,jdbcType=INTEGER},
<if
test=
"warehouseId != null"
>
#{warehouseId,jdbcType=INTEGER},
</if>
<if
test=
"stockType != null"
>
#{stockType,jdbcType=CHAR},
...
...
@@ -784,8 +784,8 @@
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"warehouse
l
Id != null"
>
warehouse
l_id = #{warehousel
Id,jdbcType=INTEGER},
<if
test=
"warehouseId != null"
>
warehouse
_id = #{warehouse
Id,jdbcType=INTEGER},
</if>
<if
test=
"stockType != null"
>
stock_type = #{stockType,jdbcType=CHAR},
...
...
@@ -842,14 +842,14 @@
-->
insert into dc_semi_stock_report
(id, unique_no, log_id, warehouse_type, warehouse_type_str, material_id, stock, create_user_name,
create_time, warehouse
l
_id, stock_type, stock_type_str, material_code, material_name,
create_time, warehouse_id, stock_type, stock_type_str, material_code, material_name,
material_category, new_price, warehouse_name, supplier_name, order_no, is_selfcontained,
is_selfcontained_str, remarks, is_zichang, gmt_create, gmt_modified)
values
(#{id,jdbcType=INTEGER}, #{uniqueNo,jdbcType=VARCHAR}, #{logId,jdbcType=INTEGER},
#{warehouseType,jdbcType=CHAR}, #{warehouseTypeStr,jdbcType=VARCHAR}, #{materialId,jdbcType=INTEGER},
#{stock,jdbcType=INTEGER}, #{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{warehouse
l
Id,jdbcType=INTEGER}, #{stockType,jdbcType=CHAR}, #{stockTypeStr,jdbcType=VARCHAR},
#{warehouseId,jdbcType=INTEGER}, #{stockType,jdbcType=CHAR}, #{stockTypeStr,jdbcType=VARCHAR},
#{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{materialCategory,jdbcType=VARCHAR},
#{newPrice,jdbcType=DECIMAL}, #{warehouseName,jdbcType=VARCHAR}, #{supplierName,jdbcType=VARCHAR},
#{orderNo,jdbcType=VARCHAR}, #{isSelfcontained,jdbcType=BIT}, #{isSelfcontainedStr,jdbcType=VARCHAR},
...
...
@@ -865,7 +865,7 @@
stock = #{stock,jdbcType=INTEGER},
create_user_name = #{createUserName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
warehouse
l_id = #{warehousel
Id,jdbcType=INTEGER},
warehouse
_id = #{warehouse
Id,jdbcType=INTEGER},
stock_type = #{stockType,jdbcType=CHAR},
stock_type_str = #{stockTypeStr,jdbcType=VARCHAR},
material_code = #{materialCode,jdbcType=VARCHAR},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment