Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
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
Administrator
dsk-cr20g
Commits
46d61a65
Commit
46d61a65
authored
Jun 26, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排序规则修改
parent
4b4f93d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
CustomerDecisionChainServiceImpl.java
...system/service/impl/CustomerDecisionChainServiceImpl.java
+6
-4
CustomerMapper.xml
.../main/resources/mapper/system/customer/CustomerMapper.xml
+1
-0
No files found.
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerDecisionChainServiceImpl.java
View file @
46d61a65
...
@@ -29,7 +29,8 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
...
@@ -29,7 +29,8 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
@Override
@Override
public
List
<
CustomerDecisionChain
>
selectList
(
CustomerDecisionChainSearchDto
dto
)
{
public
List
<
CustomerDecisionChain
>
selectList
(
CustomerDecisionChainSearchDto
dto
)
{
return
baseMapper
.
selectList
(
Wrappers
.<
CustomerDecisionChain
>
lambdaQuery
()
return
baseMapper
.
selectList
(
Wrappers
.<
CustomerDecisionChain
>
lambdaQuery
()
.
eq
(
CustomerDecisionChain:
:
getCustomerId
,
dto
.
getCustomerId
()));
.
eq
(
CustomerDecisionChain:
:
getCustomerId
,
dto
.
getCustomerId
())
.
orderByDesc
(
CustomerDecisionChain:
:
getCreateTime
));
}
}
/**
/**
...
@@ -63,7 +64,7 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
...
@@ -63,7 +64,7 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
*/
*/
@Override
@Override
public
boolean
update
(
CustomerDecisionChain
customerDecisionChain
)
{
public
boolean
update
(
CustomerDecisionChain
customerDecisionChain
)
{
if
(
ObjectUtils
.
isEmpty
(
customerDecisionChain
.
getId
()))
throw
new
BeanException
(
"id不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
customerDecisionChain
.
getId
()))
throw
new
BeanException
(
"id不能为空!"
);
verifyParameter
(
customerDecisionChain
);
verifyParameter
(
customerDecisionChain
);
return
baseMapper
.
updateById
(
customerDecisionChain
)
>
0
;
return
baseMapper
.
updateById
(
customerDecisionChain
)
>
0
;
}
}
...
@@ -81,10 +82,11 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
...
@@ -81,10 +82,11 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
/**
/**
* 参数验证
* 参数验证
*
* @param customerDecisionChain
* @param customerDecisionChain
*/
*/
private
void
verifyParameter
(
CustomerDecisionChain
customerDecisionChain
){
private
void
verifyParameter
(
CustomerDecisionChain
customerDecisionChain
)
{
if
(
ObjectUtils
.
isEmpty
(
customerDecisionChain
.
getCustomerId
()))
throw
new
BeanException
(
"客户id不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
customerDecisionChain
.
getCustomerId
()))
throw
new
BeanException
(
"客户id不能为空!"
);
customerDecisionChain
.
setUpdateId
(
SecurityUtils
.
getUserId
());
customerDecisionChain
.
setUpdateId
(
SecurityUtils
.
getUserId
());
customerDecisionChain
.
setUpdateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getNickName
());
customerDecisionChain
.
setUpdateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getNickName
());
}
}
...
...
dsk-system/src/main/resources/mapper/system/customer/CustomerMapper.xml
View file @
46d61a65
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
) bi3 on bi3.customer_id = ct.customer_id
) bi3 on bi3.customer_id = ct.customer_id
where ctu.user_id = #{dto.userId}
where ctu.user_id = #{dto.userId}
<if
test=
"dto.companyName != null and dto.companyName != '' "
>
and ct.company_name like concat('%',#{dto.companyName},'%')
</if>
<if
test=
"dto.companyName != null and dto.companyName != '' "
>
and ct.company_name like concat('%',#{dto.companyName},'%')
</if>
order by ct.create_time desc
</select>
</select>
<select
id=
"selectUserList"
resultType=
"com.dsk.system.domain.customer.Customer"
>
<select
id=
"selectUserList"
resultType=
"com.dsk.system.domain.customer.Customer"
>
...
...
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