Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
e77bccbb
Commit
e77bccbb
authored
Dec 12, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
5750242e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
26 deletions
+34
-26
DCustomerController.java
...in/java/com/dsk/cscec/controller/DCustomerController.java
+3
-6
DCustomerMapper.xml
...z-api/src/main/resources/mapper/cscec/DCustomerMapper.xml
+31
-20
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/controller/DCustomerController.java
View file @
e77bccbb
...
...
@@ -13,10 +13,7 @@ import com.dsk.cscec.service.IDCustomerService;
import
com.dsk.system.domain.SysDept
;
import
com.dsk.system.domain.vo.SysDeptVo
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
java.util.List
;
...
...
@@ -39,8 +36,8 @@ public class DCustomerController extends BaseController {
/**
* 供应商总台账筛选
*/
@
Ge
tMapping
(
"/all/searchList"
)
public
TableDataInfo
<
DCustomer
>
allSearchList
(
DCustomerSearchBo
bo
,
PageQuery
query
)
{
@
Pos
tMapping
(
"/all/searchList"
)
public
TableDataInfo
<
DCustomer
>
allSearchList
(
@RequestBody
DCustomerSearchBo
bo
,
PageQuery
query
)
{
return
baseService
.
allSearchList
(
bo
,
query
);
}
...
...
dsk-module/dsk-biz-api/src/main/resources/mapper/cscec/DCustomerMapper.xml
View file @
e77bccbb
...
...
@@ -12,26 +12,37 @@
from d_customer
where recommend_org_id = 'F17305B4EA4444CBAB12892C7B99E475'
<if
test=
"bo.customerName != null and bo.customerName != '' "
>
and customer_name like concat('%',#{bo.customerName},'%')
</if>
<if
test=
"bo.region != null and bo.region != '' "
>
and (
<foreach
collection=
"region"
item=
"item"
open=
"("
separator=
" or "
close=
")"
>
register_region = #{item}
<if
test=
"bo.province != null and bo.province != '' "
>
and (
<foreach
collection=
"province"
item=
"item"
open=
"("
separator=
" or "
close=
")"
>
register_province = #{item}
<if
test=
"bo.city != null and bo.city != '' "
>
<!-- <if test="bo.region != null and bo.region != '' ">-->
<!-- and register_region in-->
<!-- <foreach collection="region" item="item" open="(" separator="," close=")">-->
<!-- #{item}-->
<!-- </foreach>-->
<!-- </if>-->
<choose>
<when
test=
"bo.province != null "
>
and register_province in
<foreach
collection=
"province"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</when>
<when
test=
"bo.city != null "
>
and register_city in
<foreach
collection=
"city"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</when>
<otherwise>
and ( register_province in
<foreach
collection=
"province"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
)
</if>
or register_city in
<foreach
collection=
"city"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
)
</if>
</otherwise>
</choose>
<if
test=
"bo.customerClass != null and bo.customerClass != '' "
>
and customer_class in
<foreach
collection=
"customerClass"
item=
"item"
open=
"("
separator=
","
close=
")"
>
...
...
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