Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
5072d6e1
Commit
5072d6e1
authored
Dec 13, 2019
by
季圣华
Browse files
优化单据编辑接口的逻辑
parent
0d57a8ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/datasource/mappers/DepotHeadMapperEx.java
View file @
5072d6e1
...
...
@@ -106,10 +106,6 @@ public interface DepotHeadMapperEx {
* 新增单据主表信息,并反显单据主表id
* */
int
adddepotHead
(
DepotHead
depotHead
);
/**
* 更新单据主表信息
* */
void
updatedepotHead
(
DepotHead
depotHead
);
void
updateBuildOnlyNumber
();
/**
...
...
src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
5072d6e1
...
...
@@ -542,7 +542,7 @@ public class DepotHeadService {
depotHead
.
setOperpersonname
(
userInfo
==
null
?
null
:
userInfo
.
getUsername
());
depotHead
.
setOpertime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
try
{
depotHeadMapper
Ex
.
update
depotHead
(
depotHead
);
depotHeadMapper
.
update
ByPrimaryKeySelective
(
depotHead
);
}
catch
(
Exception
e
){
JshException
.
writeFail
(
logger
,
e
);
}
...
...
src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
5072d6e1
...
...
@@ -347,93 +347,6 @@
#{othermoneylist,jdbcType=VARCHAR}, #{othermoneyitem,jdbcType=VARCHAR}, #{accountday,jdbcType=INTEGER},
#{status,jdbcType=VARCHAR}, #{linknumber,jdbcType=VARCHAR})
</insert>
<update
id=
"updatedepotHead"
parameterType=
"com.jsh.erp.datasource.entities.DepotHead"
>
update jsh_depothead
<set>
<if
test=
"type != null"
>
Type = #{type,jdbcType=VARCHAR},
</if>
<if
test=
"subtype != null"
>
SubType = #{subtype,jdbcType=VARCHAR},
</if>
<if
test=
"projectid != null"
>
ProjectId = #{projectid,jdbcType=BIGINT},
</if>
<if
test=
"defaultnumber != null"
>
DefaultNumber = #{defaultnumber,jdbcType=VARCHAR},
</if>
<if
test=
"number != null"
>
Number = #{number,jdbcType=VARCHAR},
</if>
<if
test=
"operpersonname != null"
>
OperPersonName = #{operpersonname,jdbcType=VARCHAR},
</if>
<if
test=
"opertime != null"
>
OperTime = #{opertime,jdbcType=TIMESTAMP},
</if>
<if
test=
"organid != null"
>
OrganId = #{organid,jdbcType=BIGINT},
</if>
<if
test=
"handspersonid != null"
>
HandsPersonId = #{handspersonid,jdbcType=BIGINT},
</if>
<if
test=
"accountid != null"
>
AccountId = #{accountid,jdbcType=BIGINT},
</if>
<if
test=
"changeamount != null"
>
ChangeAmount = #{changeamount,jdbcType=DECIMAL},
</if>
<if
test=
"allocationprojectid != null"
>
AllocationProjectId = #{allocationprojectid,jdbcType=BIGINT},
</if>
<if
test=
"totalprice != null"
>
TotalPrice = #{totalprice,jdbcType=DECIMAL},
</if>
<if
test=
"paytype != null"
>
PayType = #{paytype,jdbcType=VARCHAR},
</if>
<if
test=
"remark != null"
>
Remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"salesman != null"
>
Salesman = #{salesman,jdbcType=VARCHAR},
</if>
<if
test=
"accountidlist != null"
>
AccountIdList = #{accountidlist,jdbcType=VARCHAR},
</if>
<if
test=
"accountmoneylist != null"
>
AccountMoneyList = #{accountmoneylist,jdbcType=VARCHAR},
</if>
<if
test=
"discount != null"
>
Discount = #{discount,jdbcType=DECIMAL},
</if>
<if
test=
"discountmoney != null"
>
DiscountMoney = #{discountmoney,jdbcType=DECIMAL},
</if>
<if
test=
"discountlastmoney != null"
>
DiscountLastMoney = #{discountlastmoney,jdbcType=DECIMAL},
</if>
<if
test=
"othermoney != null"
>
OtherMoney = #{othermoney,jdbcType=DECIMAL},
</if>
<if
test=
"othermoneylist != null"
>
OtherMoneyList = #{othermoneylist,jdbcType=VARCHAR},
</if>
<if
test=
"othermoneyitem != null"
>
OtherMoneyItem = #{othermoneyitem,jdbcType=VARCHAR},
</if>
<if
test=
"accountday != null"
>
AccountDay = #{accountday,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
Status = #{status,jdbcType=VARCHAR},
</if>
<if
test=
"linknumber != null"
>
LinkNumber = #{linknumber,jdbcType=VARCHAR},
</if>
</set>
where Id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBuildOnlyNumber"
>
update jsh_sequence set current_val = current_val + 1 where seq_name = 'depot_number_seq'
...
...
Write
Preview
Supports
Markdown
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