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
316a9718
Commit
316a9718
authored
Jun 13, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.4' into MVP1.5.4
parents
9147eff7
d9ec182a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
688 additions
and
301 deletions
+688
-301
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+27
-0
TSettleDomainMapper.xml
...ves-biz/src/main/resources/mapper/TSettleDomainMapper.xml
+8
-6
EkpOrderController.java
...oud/plus/v1/yifu/order/controller/EkpOrderController.java
+6
-0
TOrderServiceImpl.java
...ud/plus/v1/yifu/order/service/impl/TOrderServiceImpl.java
+9
-4
TPaymentInfoNewExportVo.java
...cloud/plus/v1/yifu/social/vo/TPaymentInfoNewExportVo.java
+244
-60
TPaymentInfoMapper.xml
...cial-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
+394
-231
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
316a9718
...
@@ -35,6 +35,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpChangeInfoService;
...
@@ -35,6 +35,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpChangeInfoService;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeProjectService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeProjectService
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TEmpChangeInfoNewVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TEmpChangeInfoNewVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TEmpChangeInfoVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TEmpChangeInfoVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ClientNameConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
...
@@ -341,9 +342,35 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
...
@@ -341,9 +342,35 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
public
IPage
<
TSettleDomain
>
getAllDeptPagePermission
(
Page
page
,
String
departName
,
String
nameOrNo
,
String
customerId
,
String
flag
)
{
public
IPage
<
TSettleDomain
>
getAllDeptPagePermission
(
Page
page
,
String
departName
,
String
nameOrNo
,
String
customerId
,
String
flag
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
String
userId
=
user
.
getId
();
String
userId
=
user
.
getId
();
// SSC开发组-1668092146875969537L 超管1
long
roleId
=
1668092146875969537L
;
boolean
isSsc
=
this
.
haveRole
(
user
,
roleId
);
if
(!
isSsc
)
{
isSsc
=
this
.
haveRole
(
user
,
1L
);
}
if
(
isSsc
)
{
userId
=
"-999"
;
}
return
tSettleDomainMapper
.
getPagePerMission
(
page
,
userId
,
departName
,
nameOrNo
,
customerId
,
flag
);
return
tSettleDomainMapper
.
getPagePerMission
(
page
,
userId
,
departName
,
nameOrNo
,
customerId
,
flag
);
}
}
/**
* @Description: 检测是否有某个角色权限
* @Author: hgw
* @Date: 2023/6/12 11:09
* @return: boolean
**/
private
boolean
haveRole
(
YifuUser
user
,
long
roleId
)
{
List
<
Long
>
roleList
=
user
.
getClientRoleMap
().
get
(
ClientNameConstants
.
CLIENT_MVP
);
for
(
Long
role
:
roleList
)
{
if
(
role
==
roleId
)
{
return
true
;
}
}
return
false
;
}
/**
/**
* 分页获取所有项目名称
* 分页获取所有项目名称
* @return R
* @return R
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TSettleDomainMapper.xml
View file @
316a9718
...
@@ -271,10 +271,14 @@
...
@@ -271,10 +271,14 @@
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
FROM
FROM
t_settle_domain a
t_settle_domain a
<if
test=
"userId != null and userId.trim() != '-999'"
>
LEFT JOIN t_cutsomer_data_permisson b ON b.SETTLE_DOMAIN_NO = a.DEPART_NO
LEFT JOIN t_cutsomer_data_permisson b ON b.SETTLE_DOMAIN_NO = a.DEPART_NO
WHERE
</if>
b.USER_ID = #{userId}
WHERE a.DELETE_FLAG = '0'
AND a.DELETE_FLAG = '0'
/* 2023-6-12 11:12:15 hgw根据 */
<if
test=
"userId != null and userId.trim() != '-999'"
>
AND b.USER_ID = #{userId}
</if>
<if
test=
"departName != null and departName.trim() != ''"
>
<if
test=
"departName != null and departName.trim() != ''"
>
and a.DEPART_NAME like concat("%",#{departName},"%")
and a.DEPART_NAME like concat("%",#{departName},"%")
</if>
</if>
...
@@ -287,9 +291,7 @@
...
@@ -287,9 +291,7 @@
<if
test=
"flag != null"
>
<if
test=
"flag != null"
>
and a.STOP_FLAG='0'
and a.STOP_FLAG='0'
</if>
</if>
GROUP BY
GROUP BY a.id
b.USER_ID,
b.SETTLE_DOMAIN_NO
</select>
</select>
...
...
yifu-order/yifu-order-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/order/controller/EkpOrderController.java
View file @
316a9718
...
@@ -7,7 +7,9 @@ import com.yifu.cloud.plus.v1.yifu.order.vo.OrderReplyAddVO;
...
@@ -7,7 +7,9 @@ import com.yifu.cloud.plus.v1.yifu.order.vo.OrderReplyAddVO;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -23,6 +25,7 @@ import java.io.IOException;
...
@@ -23,6 +25,7 @@ import java.io.IOException;
@RequiredArgsConstructor
@RequiredArgsConstructor
@RequestMapping
(
"/ekp/order"
)
@RequestMapping
(
"/ekp/order"
)
@Tag
(
name
=
"接收ekp订单相关"
)
@Tag
(
name
=
"接收ekp订单相关"
)
@Slf4j
public
class
EkpOrderController
{
public
class
EkpOrderController
{
@Resource
@Resource
private
TOrderService
tOrderService
;
private
TOrderService
tOrderService
;
...
@@ -38,6 +41,9 @@ public class EkpOrderController {
...
@@ -38,6 +41,9 @@ public class EkpOrderController {
@Schema
(
description
=
"接收处理ekp订单"
)
@Schema
(
description
=
"接收处理ekp订单"
)
@PostMapping
(
value
=
"/receiveOrder"
)
@PostMapping
(
value
=
"/receiveOrder"
)
public
R
receiveOrder
(
OrderAddVO
vo
)
throws
IOException
{
public
R
receiveOrder
(
OrderAddVO
vo
)
throws
IOException
{
log
.
error
(
"vo.getCreateTime()111="
+
vo
.
getCreateTime
());
log
.
error
(
"vo.getCreateTime()222="
+
vo
.
getDeptNo
());
log
.
error
(
"vo.getCreateTime()333="
+
vo
.
getOrderNo
());
return
tOrderService
.
receiveOrder
(
vo
);
return
tOrderService
.
receiveOrder
(
vo
);
}
}
...
...
yifu-order/yifu-order-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/order/service/impl/TOrderServiceImpl.java
View file @
316a9718
...
@@ -225,7 +225,7 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
...
@@ -225,7 +225,7 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
.
eq
(
TOrderEnclosure:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
eq
(
TOrderEnclosure:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
);
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
List
<
TOrderEnclosure
>
listOld
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
ZERO_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
fileList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
ZERO_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
wageList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
TWO_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
wageList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
TWO_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
salaryList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
THREE_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
salaryList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
THREE_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
socialList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
FOUR_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
socialList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
FOUR_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
...
@@ -237,8 +237,8 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
...
@@ -237,8 +237,8 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
List
<
TOrderEnclosure
>
otherList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
TEN_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
otherList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
TEN_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
salaryHandoverList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
ELEVEN_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
List
<
TOrderEnclosure
>
salaryHandoverList
=
list
.
stream
().
filter
(
e
->
CommonConstants
.
ELEVEN_INTEGER
.
equals
(
e
.
getEnclosureFlag
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
listOld
))
{
if
(
CollectionUtils
.
isNotEmpty
(
fileList
))
{
orderDetailVO
.
setOrderEnclosure
(
listOld
);
orderDetailVO
.
setOrderEnclosure
(
fileList
);
}
else
{
}
else
{
orderDetailVO
.
setOrderEnclosure
(
Lists
.
newArrayList
());
orderDetailVO
.
setOrderEnclosure
(
Lists
.
newArrayList
());
}
}
...
@@ -471,6 +471,9 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
...
@@ -471,6 +471,9 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
R
receiveOrder
(
OrderAddVO
vo
)
throws
IOException
{
public
R
receiveOrder
(
OrderAddVO
vo
)
throws
IOException
{
log
.
error
(
"vo.getCreateTime()="
+
vo
.
getCreateTime
());
log
.
error
(
"vo.getDeptNo()="
+
vo
.
getDeptNo
());
log
.
error
(
"vo.getOrderNo()="
+
vo
.
getOrderNo
());
if
(
Common
.
isEmpty
(
vo
.
getOrderNo
())){
if
(
Common
.
isEmpty
(
vo
.
getOrderNo
())){
return
R
.
failed
(
OrderConstants
.
ORDER_NO_IS_EMPTY
);
return
R
.
failed
(
OrderConstants
.
ORDER_NO_IS_EMPTY
);
}
}
...
@@ -508,7 +511,9 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
...
@@ -508,7 +511,9 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
if
(!
Common
.
isEmpty
(
vo
.
getOrderContent
())
&&
!
ValidityUtil
.
validate2048
(
vo
.
getOrderContent
())){
if
(!
Common
.
isEmpty
(
vo
.
getOrderContent
())
&&
!
ValidityUtil
.
validate2048
(
vo
.
getOrderContent
())){
return
R
.
failed
(
OrderConstants
.
ORDER_CONTENT_MORE_THAN_2048
);
return
R
.
failed
(
OrderConstants
.
ORDER_CONTENT_MORE_THAN_2048
);
}
}
TSettleDomain
settleDomain
=
new
TSettleDomain
();
if
(
CollectionUtils
.
isEmpty
(
vo
.
getHandleUserList
())){
return
R
.
failed
(
OrderConstants
.
HANDLE_USER_IS_EMPTY
);
}
TSettleDomain
settleDomain
=
new
TSettleDomain
();
List
<
TSettleDomainSelectVo
>
settleDomainR
;
List
<
TSettleDomainSelectVo
>
settleDomainR
;
R
<
TSettleDomainListVo
>
listVo
;
R
<
TSettleDomainListVo
>
listVo
;
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TPaymentInfoNewExportVo.java
View file @
316a9718
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
View file @
316a9718
This diff is collapsed.
Click to expand it.
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