Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
6a8de7e0
Commit
6a8de7e0
authored
Oct 24, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
档案优化
parent
2dedda83
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
18 deletions
+43
-18
TDispatchInfoController.java
...us/v1/yifu/social/controller/TDispatchInfoController.java
+13
-10
TDispatchInfoMapper.java
...cloud/plus/v1/yifu/social/mapper/TDispatchInfoMapper.java
+2
-0
TDispatchInfoService.java
...oud/plus/v1/yifu/social/service/TDispatchInfoService.java
+3
-1
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+10
-0
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+15
-7
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoController.java
View file @
6a8de7e0
...
...
@@ -82,13 +82,12 @@ public class TDispatchInfoController {
if
(
tDispatchInfo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
CommonConstants
.
A_DEPT_ID
,
"a.SETTLE_DOMAIN"
));
}
if
(
tDispatchInfo
.
getAuthSql
().
contains
(
"s."
)
||
tDispatchInfo
.
getAuthSql
().
contains
(
"f."
)){
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
"s."
,
"a."
));
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
"f."
,
"a."
));
if
(
tDispatchInfo
.
getAuthSql
().
contains
(
"1=2 EXISTS"
))
{
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
"1=2 EXISTS"
,
"EXISTS"
));
}
}
tDispatchInfo
.
setCreateBy
(
user
.
getId
());
return
new
R
<>(
tDispatchInfoService
.
getTDispatchInfoPage
(
page
,
tDispatchInfo
));
return
new
R
<>(
tDispatchInfoService
.
getTDispatchInfoPage
Audit
(
page
,
tDispatchInfo
));
}
/**
...
...
@@ -189,13 +188,12 @@ public class TDispatchInfoController {
if
(
tDispatchInfo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
CommonConstants
.
A_DEPT_ID
,
"a.SETTLE_DOMAIN"
));
}
if
(
tDispatchInfo
.
getAuthSql
().
contains
(
"s."
)
||
tDispatchInfo
.
getAuthSql
().
contains
(
"f."
)){
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
"s."
,
"a."
));
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
"f."
,
"a."
));
if
(
tDispatchInfo
.
getAuthSql
().
contains
(
"1=2 EXISTS"
))
{
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
"1=2 EXISTS"
,
"EXISTS"
));
}
}
tDispatchInfo
.
setCreateBy
(
user
.
getId
());
return
new
R
<>(
tDispatchInfoService
.
getTDispatchInfoPage
(
page
,
tDispatchInfo
));
return
new
R
<>(
tDispatchInfoService
.
getTDispatchInfoPage
Audit
(
page
,
tDispatchInfo
));
}
/**
...
...
@@ -326,9 +324,14 @@ public class TDispatchInfoController {
public
void
export
(
HttpServletResponse
response
,
@RequestBody
TDispatchInfoSearchVo
searchVo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
if
(
Common
.
isNotNull
(
searchVo
.
getAuthSql
())
&&
searchVo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
if
(
Common
.
isNotNull
(
searchVo
.
getAuthSql
()))
{
if
(
searchVo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
searchVo
.
setAuthSql
(
searchVo
.
getAuthSql
().
replace
(
CommonConstants
.
A_DEPT_ID
,
"a.SETTLE_DOMAIN"
));
}
if
(
searchVo
.
getAuthSql
().
contains
(
"1=2 EXISTS"
))
{
searchVo
.
setAuthSql
(
searchVo
.
getAuthSql
().
replace
(
"1=2 EXISTS"
,
"EXISTS"
));
}
}
searchVo
.
setCreateBy
(
user
.
getId
());
tDispatchInfoService
.
listExport
(
response
,
searchVo
);
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TDispatchInfoMapper.java
View file @
6a8de7e0
...
...
@@ -42,6 +42,8 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
*/
IPage
<
TDispatchInfoPageVo
>
getTDispatchInfoPage
(
Page
<
TDispatchInfo
>
page
,
@Param
(
"tDispatchInfo"
)
TDispatchInfoSearchVo
tDispatchInfo
);
IPage
<
TDispatchInfoPageVo
>
getTDispatchInfoPageAudit
(
Page
<
TDispatchInfo
>
page
,
@Param
(
"tDispatchInfo"
)
TDispatchInfoSearchVo
tDispatchInfo
);
/**
* @Description: 派单导出
* @Author: hgw
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TDispatchInfoService.java
View file @
6a8de7e0
...
...
@@ -46,6 +46,8 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
*/
IPage
<
TDispatchInfoPageVo
>
getTDispatchInfoPage
(
Page
<
TDispatchInfo
>
page
,
TDispatchInfoSearchVo
tDispatchInfo
);
IPage
<
TDispatchInfoPageVo
>
getTDispatchInfoPageAudit
(
Page
<
TDispatchInfo
>
page
,
TDispatchInfoSearchVo
tDispatchInfo
);
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
,
String
orderId
);
void
listExport
(
HttpServletResponse
response
,
TDispatchInfoSearchVo
searchVo
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
6a8de7e0
...
...
@@ -120,6 +120,16 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
return
baseMapper
.
getTDispatchInfoPage
(
page
,
tDispatchInfo
);
}
/**
* 派单信息记录表简单分页查询
*
* @param tDispatchInfo 派单信息记录表
*/
@Override
public
IPage
<
TDispatchInfoPageVo
>
getTDispatchInfoPageAudit
(
Page
<
TDispatchInfo
>
page
,
TDispatchInfoSearchVo
tDispatchInfo
)
{
return
baseMapper
.
getTDispatchInfoPageAudit
(
page
,
tDispatchInfo
);
}
/**
* 派单信息记录表批量导出
*
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
6a8de7e0
...
...
@@ -444,8 +444,21 @@
<if
test=
"tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"
>
left join t_socialfund_house_res p on p.USER_ID = #{tDispatchInfo.createBy}
</if>
<!--left join t_social_info s on s.id=a.SOCIAL_ID
left join t_provident_fund f on f.id=a.FUND_ID-->
<where>
1=1
<include
refid=
"tDispatchInfo_where"
/>
</where>
order by a.CREATE_TIME desc
</select>
<!--tDispatchInfo简单分页查询-->
<select
id=
"getTDispatchInfoPageAudit"
resultMap=
"dispatchPageMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
,
a.SOCIAL_HOUSEHOLD_NAME,
a.PROVIDENT_HOUSEHOLD_NAME
FROM t_dispatch_info a
<where>
1=1
<include
refid=
"tDispatchInfo_where"
/>
...
...
@@ -484,16 +497,11 @@
a.ORGAN_NAME,
a.CREATE_TIME
from t_dispatch_info a
<if
test=
"tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"
>
left join t_socialfund_house_res p on p.USER_ID = #{tDispatchInfo.createBy}
</if>
left join t_social_info s on s.id=a.SOCIAL_ID
left join t_provident_fund f on f.id=a.FUND_ID
<where>
a.DELETE_FLAG = '0'
<include
refid=
"tDispatchInfo_where"
/>
</where>
group by a.id
order by a.CREATE_TIME desc
<if
test=
"tDispatchInfo.limitStart != null"
>
limit #{tDispatchInfo.limitStart},#{tDispatchInfo.limitEnd}
...
...
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