Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 595dffa8
authored
Aug 06, 2018
by
熊付
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【update sql】
1 parent
0dd46a5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
code/finance_serv/src/main/java/com/vion/financial/mapping/ContractMapper.xml
code/finance_serv/src/main/java/com/vion/financial/mapping/ContractMapper.xml
View file @
595dffa
...
@@ -190,18 +190,19 @@
...
@@ -190,18 +190,19 @@
from tb_contract where contract_unid = #{contract_unid}
from tb_contract where contract_unid = #{contract_unid}
</select>
</select>
<update
id=
"updateOne"
parameterType=
"com.vion.financial.vo.ContractVo"
>
<update
id=
"updateOne"
parameterType=
"com.vion.financial.vo.ContractVo"
>
update tb_contract set
update tb_contract
<if
test=
"salesperson_unid != null and salesperson_unid != ''"
>
<set>
salesperson_unid=#{salesperson_unid}
<if
test=
"salesperson_unid != null and salesperson_unid != ''"
>
salesperson_unid=#{salesperson_unid},
</if>
</if>
<if
test=
"province != null and province != ''"
>
<if
test=
"province != null and province != ''"
>
,province=#{province}
province=#{province},
</if>
</if>
<if
test=
"city !=null and city != ''"
>
<if
test=
"city !=null and city != ''"
>
, city=#{city}
city=#{city},
</if>
</if>
<if
test=
"county != null and county != ''"
>
<if
test=
"county != null and county != ''"
>
,county=#{county}
county=#{county},
</if>
</if>
<if
test=
"guarantee_period != null and guarantee_period != ''"
>
<if
test=
"guarantee_period != null and guarantee_period != ''"
>
,guarantee_period=#{guarantee_period}
,guarantee_period=#{guarantee_period}
...
@@ -275,6 +276,8 @@
...
@@ -275,6 +276,8 @@
<if
test=
"customer_unid != null and customer_unid != ''"
>
<if
test=
"customer_unid != null and customer_unid != ''"
>
,customer_unid=#{customer_unid}
,customer_unid=#{customer_unid}
</if>
</if>
</set>
where contract_unid=#{contract_unid}
where contract_unid=#{contract_unid}
</update>
</update>
<delete
id=
"deleteOne"
parameterType=
"java.lang.String"
>
<delete
id=
"deleteOne"
parameterType=
"java.lang.String"
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment