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
0aa706d9
Commit
0aa706d9
authored
Dec 26, 2019
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据中心--管理成本数据更改
parent
27b80be4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
209 additions
and
12 deletions
+209
-12
ManageCostJob.java
...ce-fee/src/main/java/com/bailuntec/job/ManageCostJob.java
+1
-1
const.properties
...base-sync-finance-fee/src/main/resources/const.properties
+1
-1
DcBaseFinanceManagecost.java
.../com/bailuntec/domain/entity/DcBaseFinanceManagecost.java
+24
-0
DcBaseFinanceManagecostExample.java
...luntec/domain/example/DcBaseFinanceManagecostExample.java
+120
-0
DcBaseFinanceManagecostMapper.xml
...va/com/bailuntec/mapper/DcBaseFinanceManagecostMapper.xml
+63
-10
No files found.
data-base/base-sync-finance-fee/src/main/java/com/bailuntec/job/ManageCostJob.java
View file @
0aa706d9
...
@@ -62,7 +62,7 @@ public class ManageCostJob extends PointJob {
...
@@ -62,7 +62,7 @@ public class ManageCostJob extends PointJob {
try
{
try
{
DcBaseFinanceManagecostMapper
dcBaseFinanceManagecostMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseFinanceManagecostMapper
.
class
);
DcBaseFinanceManagecostMapper
dcBaseFinanceManagecostMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseFinanceManagecostMapper
.
class
);
dcBaseFinanceManagecost
.
setGmtModifyTime
(
LocalDateTime
.
now
());
dcBaseFinanceManagecost
.
setGmtModifyTime
(
LocalDateTime
.
now
());
int
result
=
dcBaseFinanceManagecostMapper
.
updateByExampleSelective
(
dcBaseFinanceManagecost
,
DcBaseFinanceManagecostExample
.
newAndCreateCriteria
().
andNoEqualTo
(
dcBaseFinanceManagecost
.
getNo
()).
example
());
int
result
=
dcBaseFinanceManagecostMapper
.
updateByExampleSelective
(
dcBaseFinanceManagecost
,
DcBaseFinanceManagecostExample
.
newAndCreateCriteria
().
andNoEqualTo
(
dcBaseFinanceManagecost
.
getNo
()).
andCostIdEqualTo
(
dcBaseFinanceManagecost
.
getCostId
()).
andCostId1EqualTo
(
dcBaseFinanceManagecost
.
getCostId1
()).
example
());
if
(
result
==
0
)
{
if
(
result
==
0
)
{
dcBaseFinanceManagecost
.
setGmtModifyTime
(
null
);
dcBaseFinanceManagecost
.
setGmtModifyTime
(
null
);
dcBaseFinanceManagecostMapper
.
insertSelective
(
dcBaseFinanceManagecost
);
dcBaseFinanceManagecostMapper
.
insertSelective
(
dcBaseFinanceManagecost
);
...
...
data-base/base-sync-finance-fee/src/main/resources/const.properties
View file @
0aa706d9
FEE_URL
=
http://api.fee.bailuntec.com/fee/api/cost/api/getCostList
FEE_URL
=
http://api.fee.bailuntec.com/fee/api/cost/api/getCostList
LOGISTICS_URL
=
http://api.fee.bailuntec.com/fee/api/cost/api/logisticsCostList
LOGISTICS_URL
=
http://api.fee.bailuntec.com/fee/api/cost/api/logisticsCostList
MANAGECOST_URL
=
http://api.fee.bailuntec.com/
purchase/other
/cost/api/manageCostList
MANAGECOST_URL
=
http://api.fee.bailuntec.com/
fee/api
/cost/api/manageCostList
data-common/src/main/java/com/bailuntec/domain/entity/DcBaseFinanceManagecost.java
View file @
0aa706d9
...
@@ -136,6 +136,24 @@ public class DcBaseFinanceManagecost {
...
@@ -136,6 +136,24 @@ public class DcBaseFinanceManagecost {
/**
/**
*
*
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_managecost.cost_id1
*
* @mbg.generated
*/
private
Integer
costId1
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_managecost.cost_id
*
* @mbg.generated
*/
private
Integer
costId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_managecost.gmt_create_time
* This field corresponds to the database column dc_base_finance_managecost.gmt_create_time
*
*
* @mbg.generated
* @mbg.generated
...
@@ -177,6 +195,8 @@ public class DcBaseFinanceManagecost {
...
@@ -177,6 +195,8 @@ public class DcBaseFinanceManagecost {
sb
.
append
(
", amount="
).
append
(
amount
);
sb
.
append
(
", amount="
).
append
(
amount
);
sb
.
append
(
", currency="
).
append
(
currency
);
sb
.
append
(
", currency="
).
append
(
currency
);
sb
.
append
(
", amountRmb="
).
append
(
amountRmb
);
sb
.
append
(
", amountRmb="
).
append
(
amountRmb
);
sb
.
append
(
", costId1="
).
append
(
costId1
);
sb
.
append
(
", costId="
).
append
(
costId
);
sb
.
append
(
", gmtCreateTime="
).
append
(
gmtCreateTime
);
sb
.
append
(
", gmtCreateTime="
).
append
(
gmtCreateTime
);
sb
.
append
(
", gmtModifyTime="
).
append
(
gmtModifyTime
);
sb
.
append
(
", gmtModifyTime="
).
append
(
gmtModifyTime
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
...
@@ -215,6 +235,8 @@ public class DcBaseFinanceManagecost {
...
@@ -215,6 +235,8 @@ public class DcBaseFinanceManagecost {
&&
(
this
.
getAmount
()
==
null
?
other
.
getAmount
()
==
null
:
this
.
getAmount
().
equals
(
other
.
getAmount
()))
&&
(
this
.
getAmount
()
==
null
?
other
.
getAmount
()
==
null
:
this
.
getAmount
().
equals
(
other
.
getAmount
()))
&&
(
this
.
getCurrency
()
==
null
?
other
.
getCurrency
()
==
null
:
this
.
getCurrency
().
equals
(
other
.
getCurrency
()))
&&
(
this
.
getCurrency
()
==
null
?
other
.
getCurrency
()
==
null
:
this
.
getCurrency
().
equals
(
other
.
getCurrency
()))
&&
(
this
.
getAmountRmb
()
==
null
?
other
.
getAmountRmb
()
==
null
:
this
.
getAmountRmb
().
equals
(
other
.
getAmountRmb
()))
&&
(
this
.
getAmountRmb
()
==
null
?
other
.
getAmountRmb
()
==
null
:
this
.
getAmountRmb
().
equals
(
other
.
getAmountRmb
()))
&&
(
this
.
getCostId1
()
==
null
?
other
.
getCostId1
()
==
null
:
this
.
getCostId1
().
equals
(
other
.
getCostId1
()))
&&
(
this
.
getCostId
()
==
null
?
other
.
getCostId
()
==
null
:
this
.
getCostId
().
equals
(
other
.
getCostId
()))
&&
(
this
.
getGmtCreateTime
()
==
null
?
other
.
getGmtCreateTime
()
==
null
:
this
.
getGmtCreateTime
().
equals
(
other
.
getGmtCreateTime
()))
&&
(
this
.
getGmtCreateTime
()
==
null
?
other
.
getGmtCreateTime
()
==
null
:
this
.
getGmtCreateTime
().
equals
(
other
.
getGmtCreateTime
()))
&&
(
this
.
getGmtModifyTime
()
==
null
?
other
.
getGmtModifyTime
()
==
null
:
this
.
getGmtModifyTime
().
equals
(
other
.
getGmtModifyTime
()));
&&
(
this
.
getGmtModifyTime
()
==
null
?
other
.
getGmtModifyTime
()
==
null
:
this
.
getGmtModifyTime
().
equals
(
other
.
getGmtModifyTime
()));
}
}
...
@@ -243,6 +265,8 @@ public class DcBaseFinanceManagecost {
...
@@ -243,6 +265,8 @@ public class DcBaseFinanceManagecost {
result
=
prime
*
result
+
((
getAmount
()
==
null
)
?
0
:
getAmount
().
hashCode
());
result
=
prime
*
result
+
((
getAmount
()
==
null
)
?
0
:
getAmount
().
hashCode
());
result
=
prime
*
result
+
((
getCurrency
()
==
null
)
?
0
:
getCurrency
().
hashCode
());
result
=
prime
*
result
+
((
getCurrency
()
==
null
)
?
0
:
getCurrency
().
hashCode
());
result
=
prime
*
result
+
((
getAmountRmb
()
==
null
)
?
0
:
getAmountRmb
().
hashCode
());
result
=
prime
*
result
+
((
getAmountRmb
()
==
null
)
?
0
:
getAmountRmb
().
hashCode
());
result
=
prime
*
result
+
((
getCostId1
()
==
null
)
?
0
:
getCostId1
().
hashCode
());
result
=
prime
*
result
+
((
getCostId
()
==
null
)
?
0
:
getCostId
().
hashCode
());
result
=
prime
*
result
+
((
getGmtCreateTime
()
==
null
)
?
0
:
getGmtCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getGmtCreateTime
()
==
null
)
?
0
:
getGmtCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getGmtModifyTime
()
==
null
)
?
0
:
getGmtModifyTime
().
hashCode
());
result
=
prime
*
result
+
((
getGmtModifyTime
()
==
null
)
?
0
:
getGmtModifyTime
().
hashCode
());
return
result
;
return
result
;
...
...
data-common/src/main/java/com/bailuntec/domain/example/DcBaseFinanceManagecostExample.java
View file @
0aa706d9
...
@@ -1291,6 +1291,126 @@ public class DcBaseFinanceManagecostExample {
...
@@ -1291,6 +1291,126 @@ public class DcBaseFinanceManagecostExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCostId1IsNull
()
{
addCriterion
(
"cost_id1 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1IsNotNull
()
{
addCriterion
(
"cost_id1 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1EqualTo
(
Integer
value
)
{
addCriterion
(
"cost_id1 ="
,
value
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1NotEqualTo
(
Integer
value
)
{
addCriterion
(
"cost_id1 <>"
,
value
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1GreaterThan
(
Integer
value
)
{
addCriterion
(
"cost_id1 >"
,
value
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1GreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"cost_id1 >="
,
value
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1LessThan
(
Integer
value
)
{
addCriterion
(
"cost_id1 <"
,
value
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1LessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"cost_id1 <="
,
value
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1In
(
List
<
Integer
>
values
)
{
addCriterion
(
"cost_id1 in"
,
values
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1NotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"cost_id1 not in"
,
values
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1Between
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"cost_id1 between"
,
value1
,
value2
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostId1NotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"cost_id1 not between"
,
value1
,
value2
,
"costId1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdIsNull
()
{
addCriterion
(
"cost_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdIsNotNull
()
{
addCriterion
(
"cost_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdEqualTo
(
Integer
value
)
{
addCriterion
(
"cost_id ="
,
value
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"cost_id <>"
,
value
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"cost_id >"
,
value
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"cost_id >="
,
value
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdLessThan
(
Integer
value
)
{
addCriterion
(
"cost_id <"
,
value
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"cost_id <="
,
value
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"cost_id in"
,
values
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"cost_id not in"
,
values
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"cost_id between"
,
value1
,
value2
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCostIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"cost_id not between"
,
value1
,
value2
,
"costId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateTimeIsNull
()
{
public
Criteria
andGmtCreateTimeIsNull
()
{
addCriterion
(
"gmt_create_time is null"
);
addCriterion
(
"gmt_create_time is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
data-common/src/main/java/com/bailuntec/mapper/DcBaseFinanceManagecostMapper.xml
View file @
0aa706d9
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
<result
column=
"amount"
jdbcType=
"DECIMAL"
property=
"amount"
/>
<result
column=
"amount"
jdbcType=
"DECIMAL"
property=
"amount"
/>
<result
column=
"currency"
jdbcType=
"VARCHAR"
property=
"currency"
/>
<result
column=
"currency"
jdbcType=
"VARCHAR"
property=
"currency"
/>
<result
column=
"amount_rmb"
jdbcType=
"DECIMAL"
property=
"amountRmb"
/>
<result
column=
"amount_rmb"
jdbcType=
"DECIMAL"
property=
"amountRmb"
/>
<result
column=
"cost_id1"
jdbcType=
"INTEGER"
property=
"costId1"
/>
<result
column=
"cost_id"
jdbcType=
"INTEGER"
property=
"costId"
/>
<result
column=
"gmt_create_time"
jdbcType=
"TIMESTAMP"
property=
"gmtCreateTime"
/>
<result
column=
"gmt_create_time"
jdbcType=
"TIMESTAMP"
property=
"gmtCreateTime"
/>
<result
column=
"gmt_modify_time"
jdbcType=
"TIMESTAMP"
property=
"gmtModifyTime"
/>
<result
column=
"gmt_modify_time"
jdbcType=
"TIMESTAMP"
property=
"gmtModifyTime"
/>
</resultMap>
</resultMap>
...
@@ -95,8 +97,8 @@
...
@@ -95,8 +97,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
id, no, receive_unit, reason, pay_time, manage_cost_type, department_name, company_value,
id, no, receive_unit, reason, pay_time, manage_cost_type, department_name, company_value,
company_name, fee_super_type, fee_sub_type, amount, currency, amount_rmb,
gmt_create_time
,
company_name, fee_super_type, fee_sub_type, amount, currency, amount_rmb,
cost_id1
,
gmt_modify_time
cost_id, gmt_create_time,
gmt_modify_time
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseFinanceManagecostExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseFinanceManagecostExample"
resultMap=
"BaseResultMap"
>
<!--
<!--
...
@@ -161,14 +163,16 @@
...
@@ -161,14 +163,16 @@
reason, pay_time, manage_cost_type,
reason, pay_time, manage_cost_type,
department_name, company_value, company_name,
department_name, company_value, company_name,
fee_super_type, fee_sub_type, amount,
fee_super_type, fee_sub_type, amount,
currency, amount_rmb, gmt_create_time,
currency, amount_rmb, cost_id1,
gmt_modify_time)
cost_id, gmt_create_time, gmt_modify_time
)
values (#{id,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, #{receiveUnit,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, #{receiveUnit,jdbcType=VARCHAR},
#{reason,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{manageCostType,jdbcType=INTEGER},
#{reason,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{manageCostType,jdbcType=INTEGER},
#{departmentName,jdbcType=VARCHAR}, #{companyValue,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR},
#{departmentName,jdbcType=VARCHAR}, #{companyValue,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR},
#{feeSuperType,jdbcType=VARCHAR}, #{feeSubType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL},
#{feeSuperType,jdbcType=VARCHAR}, #{feeSubType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL},
#{currency,jdbcType=VARCHAR}, #{amountRmb,jdbcType=DECIMAL}, #{gmtCreateTime,jdbcType=TIMESTAMP},
#{currency,jdbcType=VARCHAR}, #{amountRmb,jdbcType=DECIMAL}, #{costId1,jdbcType=INTEGER},
#{gmtModifyTime,jdbcType=TIMESTAMP})
#{costId,jdbcType=INTEGER}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{gmtModifyTime,jdbcType=TIMESTAMP}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseFinanceManagecost"
>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseFinanceManagecost"
>
<!--
<!--
...
@@ -219,6 +223,12 @@
...
@@ -219,6 +223,12 @@
<if
test=
"amountRmb != null"
>
<if
test=
"amountRmb != null"
>
amount_rmb,
amount_rmb,
</if>
</if>
<if
test=
"costId1 != null"
>
cost_id1,
</if>
<if
test=
"costId != null"
>
cost_id,
</if>
<if
test=
"gmtCreateTime != null"
>
<if
test=
"gmtCreateTime != null"
>
gmt_create_time,
gmt_create_time,
</if>
</if>
...
@@ -269,6 +279,12 @@
...
@@ -269,6 +279,12 @@
<if
test=
"amountRmb != null"
>
<if
test=
"amountRmb != null"
>
#{amountRmb,jdbcType=DECIMAL},
#{amountRmb,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"costId1 != null"
>
#{costId1,jdbcType=INTEGER},
</if>
<if
test=
"costId != null"
>
#{costId,jdbcType=INTEGER},
</if>
<if
test=
"gmtCreateTime != null"
>
<if
test=
"gmtCreateTime != null"
>
#{gmtCreateTime,jdbcType=TIMESTAMP},
#{gmtCreateTime,jdbcType=TIMESTAMP},
</if>
</if>
...
@@ -336,6 +352,12 @@
...
@@ -336,6 +352,12 @@
<if
test=
"record.amountRmb != null"
>
<if
test=
"record.amountRmb != null"
>
amount_rmb = #{record.amountRmb,jdbcType=DECIMAL},
amount_rmb = #{record.amountRmb,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"record.costId1 != null"
>
cost_id1 = #{record.costId1,jdbcType=INTEGER},
</if>
<if
test=
"record.costId != null"
>
cost_id = #{record.costId,jdbcType=INTEGER},
</if>
<if
test=
"record.gmtCreateTime != null"
>
<if
test=
"record.gmtCreateTime != null"
>
gmt_create_time = #{record.gmtCreateTime,jdbcType=TIMESTAMP},
gmt_create_time = #{record.gmtCreateTime,jdbcType=TIMESTAMP},
</if>
</if>
...
@@ -367,6 +389,8 @@
...
@@ -367,6 +389,8 @@
amount = #{record.amount,jdbcType=DECIMAL},
amount = #{record.amount,jdbcType=DECIMAL},
currency = #{record.currency,jdbcType=VARCHAR},
currency = #{record.currency,jdbcType=VARCHAR},
amount_rmb = #{record.amountRmb,jdbcType=DECIMAL},
amount_rmb = #{record.amountRmb,jdbcType=DECIMAL},
cost_id1 = #{record.costId1,jdbcType=INTEGER},
cost_id = #{record.costId,jdbcType=INTEGER},
gmt_create_time = #{record.gmtCreateTime,jdbcType=TIMESTAMP},
gmt_create_time = #{record.gmtCreateTime,jdbcType=TIMESTAMP},
gmt_modify_time = #{record.gmtModifyTime,jdbcType=TIMESTAMP}
gmt_modify_time = #{record.gmtModifyTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
...
@@ -419,6 +443,12 @@
...
@@ -419,6 +443,12 @@
<if
test=
"amountRmb != null"
>
<if
test=
"amountRmb != null"
>
amount_rmb = #{amountRmb,jdbcType=DECIMAL},
amount_rmb = #{amountRmb,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"costId1 != null"
>
cost_id1 = #{costId1,jdbcType=INTEGER},
</if>
<if
test=
"costId != null"
>
cost_id = #{costId,jdbcType=INTEGER},
</if>
<if
test=
"gmtCreateTime != null"
>
<if
test=
"gmtCreateTime != null"
>
gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
</if>
</if>
...
@@ -447,6 +477,8 @@
...
@@ -447,6 +477,8 @@
amount = #{amount,jdbcType=DECIMAL},
amount = #{amount,jdbcType=DECIMAL},
currency = #{currency,jdbcType=VARCHAR},
currency = #{currency,jdbcType=VARCHAR},
amount_rmb = #{amountRmb,jdbcType=DECIMAL},
amount_rmb = #{amountRmb,jdbcType=DECIMAL},
cost_id1 = #{costId1,jdbcType=INTEGER},
cost_id = #{costId,jdbcType=INTEGER},
gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
...
@@ -501,6 +533,12 @@
...
@@ -501,6 +533,12 @@
<if
test=
"amountRmb != null"
>
<if
test=
"amountRmb != null"
>
amount_rmb,
amount_rmb,
</if>
</if>
<if
test=
"costId1 != null"
>
cost_id1,
</if>
<if
test=
"costId != null"
>
cost_id,
</if>
<if
test=
"gmtCreateTime != null"
>
<if
test=
"gmtCreateTime != null"
>
gmt_create_time,
gmt_create_time,
</if>
</if>
...
@@ -552,6 +590,12 @@
...
@@ -552,6 +590,12 @@
<if
test=
"amountRmb != null"
>
<if
test=
"amountRmb != null"
>
#{amountRmb,jdbcType=DECIMAL},
#{amountRmb,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"costId1 != null"
>
#{costId1,jdbcType=INTEGER},
</if>
<if
test=
"costId != null"
>
#{costId,jdbcType=INTEGER},
</if>
<if
test=
"gmtCreateTime != null"
>
<if
test=
"gmtCreateTime != null"
>
#{gmtCreateTime,jdbcType=TIMESTAMP},
#{gmtCreateTime,jdbcType=TIMESTAMP},
</if>
</if>
...
@@ -603,6 +647,12 @@
...
@@ -603,6 +647,12 @@
<if
test=
"amountRmb != null"
>
<if
test=
"amountRmb != null"
>
amount_rmb = #{amountRmb,jdbcType=DECIMAL},
amount_rmb = #{amountRmb,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"costId1 != null"
>
cost_id1 = #{costId1,jdbcType=INTEGER},
</if>
<if
test=
"costId != null"
>
cost_id = #{costId,jdbcType=INTEGER},
</if>
<if
test=
"gmtCreateTime != null"
>
<if
test=
"gmtCreateTime != null"
>
gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
</if>
</if>
...
@@ -619,15 +669,16 @@
...
@@ -619,15 +669,16 @@
-->
-->
insert into dc_base_finance_managecost
insert into dc_base_finance_managecost
(id, no, receive_unit, reason, pay_time, manage_cost_type, department_name, company_value,
(id, no, receive_unit, reason, pay_time, manage_cost_type, department_name, company_value,
company_name, fee_super_type, fee_sub_type, amount, currency, amount_rmb,
gmt_create_time
,
company_name, fee_super_type, fee_sub_type, amount, currency, amount_rmb,
cost_id1
,
gmt_modify_time)
cost_id, gmt_create_time,
gmt_modify_time)
values
values
(#{id,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, #{receiveUnit,jdbcType=VARCHAR},
(#{id,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, #{receiveUnit,jdbcType=VARCHAR},
#{reason,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{manageCostType,jdbcType=INTEGER},
#{reason,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{manageCostType,jdbcType=INTEGER},
#{departmentName,jdbcType=VARCHAR}, #{companyValue,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR},
#{departmentName,jdbcType=VARCHAR}, #{companyValue,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR},
#{feeSuperType,jdbcType=VARCHAR}, #{feeSubType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL},
#{feeSuperType,jdbcType=VARCHAR}, #{feeSubType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL},
#{currency,jdbcType=VARCHAR}, #{amountRmb,jdbcType=DECIMAL}, #{gmtCreateTime,jdbcType=TIMESTAMP},
#{currency,jdbcType=VARCHAR}, #{amountRmb,jdbcType=DECIMAL}, #{costId1,jdbcType=INTEGER},
#{gmtModifyTime,jdbcType=TIMESTAMP})
#{costId,jdbcType=INTEGER}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{gmtModifyTime,jdbcType=TIMESTAMP}
)
on duplicate key update
on duplicate key update
id = #{id,jdbcType=INTEGER},
id = #{id,jdbcType=INTEGER},
no = #{no,jdbcType=VARCHAR},
no = #{no,jdbcType=VARCHAR},
...
@@ -643,6 +694,8 @@
...
@@ -643,6 +694,8 @@
amount = #{amount,jdbcType=DECIMAL},
amount = #{amount,jdbcType=DECIMAL},
currency = #{currency,jdbcType=VARCHAR},
currency = #{currency,jdbcType=VARCHAR},
amount_rmb = #{amountRmb,jdbcType=DECIMAL},
amount_rmb = #{amountRmb,jdbcType=DECIMAL},
cost_id1 = #{costId1,jdbcType=INTEGER},
cost_id = #{costId,jdbcType=INTEGER},
gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
</insert>
</insert>
...
...
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