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
6d1e122b
Commit
6d1e122b
authored
Aug 12, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
薪資配置
parent
0ecdbe6d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
96 additions
and
74 deletions
+96
-74
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+3
-2
ExcelAttributeConstants.java
...v1/yifu/common/core/constant/ExcelAttributeConstants.java
+3
-0
ErrorCodes.java
....cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
+4
-0
Common.java
.../com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
+12
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+3
-1
TSalaryConfigStandard.java
...oud/plus/v1/yifu/salary/entity/TSalaryConfigStandard.java
+2
-18
TSalaryStandardExportVo.java
...cloud/plus/v1/yifu/salary/vo/TSalaryStandardExportVo.java
+1
-1
TSalaryStandardSearchVo.java
...cloud/plus/v1/yifu/salary/vo/TSalaryStandardSearchVo.java
+1
-1
TSalaryConfigStandardController.java
...fu/salary/controller/TSalaryConfigStandardController.java
+6
-6
TSalaryStandardMapper.java
...oud/plus/v1/yifu/salary/mapper/TSalaryStandardMapper.java
+1
-1
TSalaryStandardServiceImpl.java
.../yifu/salary/service/impl/TSalaryStandardServiceImpl.java
+0
-2
TSalaryConfigStandardMapper.xml
...src/main/resources/mapper/TSalaryConfigStandardMapper.xml
+4
-4
TSalaryStandardMapper.xml
...y-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
+6
-4
TDispatchReduceVo.java
.../yifu/cloud/plus/v1/yifu/social/vo/TDispatchReduceVo.java
+1
-1
pom.xml
yifu-social/yifu-social-biz/pom.xml
+6
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+43
-33
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
6d1e122b
...
@@ -2153,9 +2153,10 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -2153,9 +2153,10 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
if
(
Common
.
isEmpty
(
mobile
)){
if
(
Common
.
isEmpty
(
mobile
)){
return
true
;
return
true
;
}
}
return
!(
baseMapper
.
selectCount
(
Wrappers
.<
TEmployeeInfo
>
query
().
lambda
()
return
baseMapper
.
selectCount
(
Wrappers
.<
TEmployeeInfo
>
query
().
lambda
()
.
eq
(
TEmployeeInfo:
:
getFileStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeInfo:
:
getFileStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
))
>
0
);
.
eq
(
TEmployeeInfo:
:
getEmpPhone
,
mobile
)
.
eq
(
TEmployeeInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
))
>
0
;
}
}
private
void
saveContract
(
Map
<
String
,
EmpProjectDispatchVo
>
projectsMap
,
private
void
saveContract
(
Map
<
String
,
EmpProjectDispatchVo
>
projectsMap
,
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/ExcelAttributeConstants.java
View file @
6d1e122b
...
@@ -126,6 +126,9 @@ public class ExcelAttributeConstants {
...
@@ -126,6 +126,9 @@ public class ExcelAttributeConstants {
public
static
final
String
DEPARTID_PROVINCE_CITY_TOWN
=
"departId_province_city_town"
;
public
static
final
String
DEPARTID_PROVINCE_CITY_TOWN
=
"departId_province_city_town"
;
//派减离职原因
//派减离职原因
public
static
final
String
REDUCE_PROJECT_REASON
=
"reduce_project_reason"
;
public
static
final
String
REDUCE_PROJECT_REASON
=
"reduce_project_reason"
;
//派减离职原因
public
static
final
String
REDUCE_SOCIAL_REASON
=
"social_reduce_reason"
;
//社保缴纳月份
//社保缴纳月份
public
static
final
String
SOCIAL_PAY_MONTH
=
"socialPayMonth"
;
public
static
final
String
SOCIAL_PAY_MONTH
=
"socialPayMonth"
;
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
6d1e122b
...
@@ -448,6 +448,10 @@ public interface ErrorCodes {
...
@@ -448,6 +448,10 @@ public interface ErrorCodes {
* 派增异常: 社保各项起缴日不一致,委托备注必填
* 派增异常: 社保各项起缴日不一致,委托备注必填
*/
*/
String
EMP_DISPATCH_SOCIAL_DATE_LIMIT_ERROR
=
"emp.dispatch.social.date.limit.error"
;
String
EMP_DISPATCH_SOCIAL_DATE_LIMIT_ERROR
=
"emp.dispatch.social.date.limit.error"
;
/**
* 派增异常: 社保各项起缴日不一致,委托备注必填
*/
String
EMP_DISPATCH_SOCIAL_DATE_LIMIT_ERROR2
=
"emp.dispatch.social.date.limit.error2"
;
/**
/**
* 派增异常: 社保各项起缴月份需为可补缴月份,请确认后操作
* 派增异常: 社保各项起缴月份需为可补缴月份,请确认后操作
*/
*/
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
View file @
6d1e122b
...
@@ -342,6 +342,18 @@ public class Common {
...
@@ -342,6 +342,18 @@ public class Common {
}
}
return
obj
.
toString
();
return
obj
.
toString
();
}
}
public
static
String
isNullToString
(
String
obj
)
{
if
(
obj
==
null
||
""
.
equals
(
obj
))
{
return
CommonConstants
.
EMPTY_STRING
;
}
if
(
obj
.
trim
().
length
()
==
0
)
{
return
CommonConstants
.
EMPTY_STRING
;
}
if
(
obj
.
trim
().
equals
(
"null"
))
{
return
CommonConstants
.
EMPTY_STRING
;
}
return
obj
;
}
/**
/**
* 两个日期中间年份
* 两个日期中间年份
...
...
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
6d1e122b
...
@@ -163,10 +163,12 @@ emp.dispatch.social.limit.error=\u6D3E\u589E\u5F02\u5E38\uFF1A \u793E\u4FDD\u6D3
...
@@ -163,10 +163,12 @@ emp.dispatch.social.limit.error=\u6D3E\u589E\u5F02\u5E38\uFF1A \u793E\u4FDD\u6D3
emp.dispatch.fund.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
516C
\u
79EF
\u
91D1
\u
6D3E
\u5355\u
57FA
\u6570\u
4E0D
\u
53EF
\u
5C0F
\u
4E8E
\u6700\u
4F4E
\u
57FA
\u6570\u
4E14
\u
4E0D
\u
53EF
\u5927\u
4E8E
\u6700\u
9AD8
\u
57FA
\u6570
emp.dispatch.fund.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
516C
\u
79EF
\u
91D1
\u
6D3E
\u5355\u
57FA
\u6570\u
4E0D
\u
53EF
\u
5C0F
\u
4E8E
\u6700\u
4F4E
\u
57FA
\u6570\u
4E14
\u
4E0D
\u
53EF
\u5927\u
4E8E
\u6700\u
9AD8
\u
57FA
\u6570
emp.dispatch.social.base.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u5404\u9879
\u
57FA
\u6570\u
4E0D
\u
4E00
\u
81F4
\u
FF0C
\u
59D4
\u6258\u5907\u
6CE8
\u
5FC5
\u
586B
emp.dispatch.social.base.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
5907\u6848\u
57FA
\u6570\u
4E0E
\u
793E
\u
4FDD
\u
4EFB
\u
610F
\u
57FA
\u6570\u
4E0D
\u
4E00
\u
81F4
\u
FF0C
\u
59D4
\u6258\u5907\u
6CE8
\u
5FC5
\u
586B
emp.dispatch.social.date.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u5404\u9879\u
8D77
\u
7F34
\u
65E5
\u
4E0D
\u
4E00
\u
81F4
\u
FF0C
\u
59D4
\u6258\u5907\u
6CE8
\u
5FC5
\u
586B
emp.dispatch.social.date.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u5404\u9879\u
8D77
\u
7F34
\u
65E5
\u
4E0D
\u
4E00
\u
81F4
\u
FF0C
\u
59D4
\u6258\u5907\u
6CE8
\u
5FC5
\u
586B
emp.dispatch.social.date.limit.error2
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u5408\u
540C
\u
8D77
\u
59CB
\u
65E5
\u
671F
\u
4E0E
\u
793E
\u
4FDD
\u
4EFB
\u
610F
\u
8D77
\u
7F34
\u
65E5
\u
671F
\u
4E0D
\u
4E00
\u
81F4
\u
FF0C
\u
59D4
\u6258\u5907\u
6CE8
\u
5FC5
\u
586B
emp.dispatch.social.start.is.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u5404\u9879\u
8D77
\u
7F34
\u6708\u
4EFD
\u9700\u
4E3A
\u
53EF
\u8865\u
7F34
\u6708\u
4EFD
\u
FF0C
\u
8BF7
\u
786E
\u
8BA4
\u
540E
\u
64CD
\u
4F5C
\u
FF01
emp.dispatch.social.start.is.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u5404\u9879\u
8D77
\u
7F34
\u6708\u
4EFD
\u9700\u
4E3A
\u
53EF
\u8865\u
7F34
\u6708\u
4EFD
\u
FF0C
\u
8BF7
\u
786E
\u
8BA4
\u
540E
\u
64CD
\u
4F5C
\u
FF01
emp.dispatch.fund.start.is.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
516C
\u
79EF
\u
91D1
\u
8D77
\u
7F34
\u6708\u
4EFD
\u9700\u
4E3A
\u
53EF
\u8865\u
7F34
\u6708\u
4EFD
\u
FF0C
\u
8BF7
\u
786E
\u
8BA4
\u
540E
\u
64CD
\u
4F5C
\u
FF01
emp.dispatch.fund.start.is.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
516C
\u
79EF
\u
91D1
\u
8D77
\u
7F34
\u6708\u
4EFD
\u9700\u
4E3A
\u
53EF
\u8865\u
7F34
\u6708\u
4EFD
\u
FF0C
\u
8BF7
\u
786E
\u
8BA4
\u
540E
\u
64CD
\u
4F5C
\u
FF01
...
...
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/TSalaryConfigStandard.java
View file @
6d1e122b
...
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
...
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -25,7 +26,7 @@ import java.time.LocalDateTime;
...
@@ -25,7 +26,7 @@ import java.time.LocalDateTime;
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@TableName
(
"t_salary_config_standard"
)
@TableName
(
"t_salary_config_standard"
)
@Tag
(
name
=
"薪资识别配置(标准模板)"
)
@Tag
(
name
=
"薪资识别配置(标准模板)"
)
public
class
TSalaryConfigStandard
extends
Model
<
TSalaryConfigStandard
>
implements
Serializable
{
public
class
TSalaryConfigStandard
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
...
@@ -80,23 +81,6 @@ public class TSalaryConfigStandard extends Model<TSalaryConfigStandard> implemen
...
@@ -80,23 +81,6 @@ public class TSalaryConfigStandard extends Model<TSalaryConfigStandard> implemen
@ExcelAttribute
(
name
=
"是否进行计算扣税"
,
isNotEmpty
=
true
,
errorInfo
=
"是否进行计算扣税不能为空"
)
@ExcelAttribute
(
name
=
"是否进行计算扣税"
,
isNotEmpty
=
true
,
errorInfo
=
"是否进行计算扣税不能为空"
)
private
Integer
isTax
;
private
Integer
isTax
;
/**
* 创建人
*/
@ExcelProperty
(
value
=
"创建人"
)
@Length
(
max
=
32
,
message
=
"创建人不能超过32个字符"
)
@NotBlank
(
message
=
"创建人不能为空"
)
@ExcelAttribute
(
name
=
"创建人"
,
isNotEmpty
=
true
,
errorInfo
=
"创建人不能为空"
,
maxLength
=
32
)
private
String
createUser
;
/**
* 创建时间
*/
@ExcelProperty
(
value
=
"创建时间"
)
@NotBlank
(
message
=
"创建时间不能为空"
)
@ExcelAttribute
(
name
=
"创建时间"
,
isNotEmpty
=
true
,
errorInfo
=
"创建时间不能为空"
)
private
LocalDateTime
createTime
;
/**
/**
* 排序项
* 排序项
*/
*/
...
...
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/vo/TSalaryStandardExportVo.java
View file @
6d1e122b
...
@@ -27,7 +27,7 @@ public class TSalaryStandardExportVo implements Serializable {
...
@@ -27,7 +27,7 @@ public class TSalaryStandardExportVo implements Serializable {
*/
*/
@ExcelAttribute
(
name
=
"状态(0待提交1待审核2:待推送3已推送待发放4已发放5审核不通过6确认不通过7财务退回8:结算单调整待审核 9: 结算单调整待打印)"
)
@ExcelAttribute
(
name
=
"状态(0待提交1待审核2:待推送3已推送待发放4已发放5审核不通过6确认不通过7财务退回8:结算单调整待审核 9: 结算单调整待打印)"
)
@NotBlank
(
message
=
"状态(0待提交1待审核2:待推送3已推送待发放4已发放5审核不通过6确认不通过7财务退回8:结算单调整待审核 9: 结算单调整待打印)不能为空"
)
@NotBlank
(
message
=
"状态(0待提交1待审核2:待推送3已推送待发放4已发放5审核不通过6确认不通过7财务退回8:结算单调整待审核 9: 结算单调整待打印)不能为空"
)
@ExcelProperty
(
"状态
(0待提交1待审核2:待推送3已推送待发放4已发放5审核不通过6确认不通过7财务退回8:结算单调整待审核 9: 结算单调整待打印
)"
)
@ExcelProperty
(
"状态)"
)
private
Integer
status
;
private
Integer
status
;
/**
/**
* 推送月份(YYYYMM)
* 推送月份(YYYYMM)
...
...
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/vo/TSalaryStandardSearchVo.java
View file @
6d1e122b
...
@@ -30,7 +30,7 @@ import java.time.LocalDateTime;
...
@@ -30,7 +30,7 @@ import java.time.LocalDateTime;
* @date 2022-08-05 11:40:14
* @date 2022-08-05 11:40:14
*/
*/
@Data
@Data
public
class
TSalaryStandardSearchVo
extends
TSalaryStandard
implements
Serializable
{
public
class
TSalaryStandardSearchVo
extends
TSalaryStandard
{
/**
/**
* 多选导出或删除等操作
* 多选导出或删除等操作
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TSalaryConfigStandardController.java
View file @
6d1e122b
...
@@ -110,7 +110,7 @@ public class TSalaryConfigStandardController {
...
@@ -110,7 +110,7 @@ public class TSalaryConfigStandardController {
* @param tSalaryConfigStandard
* @param tSalaryConfigStandard
* @return R
* @return R
*/
*/
@Operation
(
description
=
"新增"
)
@Operation
(
description
=
"新增
wxhr:tsalaryconfigstandard_add
"
)
@SysLog
(
"新增薪资识别配置(标准模板)"
)
@SysLog
(
"新增薪资识别配置(标准模板)"
)
@PostMapping
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('wxhr:tsalaryconfigstandard_add')"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:tsalaryconfigstandard_add')"
)
...
@@ -121,7 +121,7 @@ public class TSalaryConfigStandardController {
...
@@ -121,7 +121,7 @@ public class TSalaryConfigStandardController {
}
}
// 填充个人代扣等java字段
// 填充个人代扣等java字段
this
.
setJavaFiedName
(
tSalaryConfigStandard
);
this
.
setJavaFiedName
(
tSalaryConfigStandard
);
tSalaryConfigStandard
.
setCreate
User
(
String
.
valueOf
(
user
.
getId
()));
tSalaryConfigStandard
.
setCreate
By
(
String
.
valueOf
(
user
.
getId
()));
tSalaryConfigStandard
.
setCreateTime
(
LocalDateTime
.
now
());
tSalaryConfigStandard
.
setCreateTime
(
LocalDateTime
.
now
());
tSalaryConfigStandard
.
setIsMustNeed
(
CommonConstants
.
ZERO_STRING
);
tSalaryConfigStandard
.
setIsMustNeed
(
CommonConstants
.
ZERO_STRING
);
tSalaryConfigStandard
.
setModelType
(
CommonConstants
.
ONE_STRING
);
tSalaryConfigStandard
.
setModelType
(
CommonConstants
.
ONE_STRING
);
...
@@ -135,7 +135,7 @@ public class TSalaryConfigStandardController {
...
@@ -135,7 +135,7 @@ public class TSalaryConfigStandardController {
* @param tSalaryConfigStandard
* @param tSalaryConfigStandard
* @return R
* @return R
*/
*/
@Operation
(
description
=
"修改"
)
@Operation
(
description
=
"修改
wxhr:tsalaryconfigstandard_edit
"
)
@SysLog
(
"修改薪资识别配置(标准模板)"
)
@SysLog
(
"修改薪资识别配置(标准模板)"
)
@PutMapping
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('wxhr:tsalaryconfigstandard_edit')"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:tsalaryconfigstandard_edit')"
)
...
@@ -146,7 +146,7 @@ public class TSalaryConfigStandardController {
...
@@ -146,7 +146,7 @@ public class TSalaryConfigStandardController {
}
}
// 填充个人代扣等java字段
// 填充个人代扣等java字段
this
.
setJavaFiedName
(
tSalaryConfigStandard
);
this
.
setJavaFiedName
(
tSalaryConfigStandard
);
if
(
String
.
valueOf
(
user
.
getId
()).
equals
(
tSalaryConfigStandard
.
getCreate
User
()))
{
if
(
String
.
valueOf
(
user
.
getId
()).
equals
(
tSalaryConfigStandard
.
getCreate
By
()))
{
return
new
R
<>(
tSalaryConfigStandardService
.
updateById
(
tSalaryConfigStandard
));
return
new
R
<>(
tSalaryConfigStandardService
.
updateById
(
tSalaryConfigStandard
));
}
else
{
}
else
{
return
R
.
failed
(
"不可修改非自己创建的!"
);
return
R
.
failed
(
"不可修改非自己创建的!"
);
...
@@ -176,7 +176,7 @@ public class TSalaryConfigStandardController {
...
@@ -176,7 +176,7 @@ public class TSalaryConfigStandardController {
* @param id
* @param id
* @return R
* @return R
*/
*/
@Operation
(
description
=
"删除"
)
@Operation
(
description
=
"删除
wxhr:tsalaryconfigstandard_del
"
)
@SysLog
(
"删除薪资识别配置(标准模板)"
)
@SysLog
(
"删除薪资识别配置(标准模板)"
)
@DeleteMapping
(
"/{id}"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:tsalaryconfigstandard_del')"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:tsalaryconfigstandard_del')"
)
...
@@ -186,7 +186,7 @@ public class TSalaryConfigStandardController {
...
@@ -186,7 +186,7 @@ public class TSalaryConfigStandardController {
return
R
.
failed
(
NO_USER
);
return
R
.
failed
(
NO_USER
);
}
}
TSalaryConfigStandard
sc
=
tSalaryConfigStandardService
.
getById
(
id
);
TSalaryConfigStandard
sc
=
tSalaryConfigStandardService
.
getById
(
id
);
if
(
String
.
valueOf
(
user
.
getId
()).
equals
(
sc
.
getCreate
User
()))
{
if
(
String
.
valueOf
(
user
.
getId
()).
equals
(
sc
.
getCreate
By
()))
{
return
new
R
<>(
tSalaryConfigStandardService
.
removeById
(
id
));
return
new
R
<>(
tSalaryConfigStandardService
.
removeById
(
id
));
}
else
{
}
else
{
return
R
.
failed
(
"不可删除非自己创建的!"
);
return
R
.
failed
(
"不可删除非自己创建的!"
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryStandardMapper.java
View file @
6d1e122b
...
@@ -52,5 +52,5 @@ public interface TSalaryStandardMapper extends BaseMapper<TSalaryStandard> {
...
@@ -52,5 +52,5 @@ public interface TSalaryStandardMapper extends BaseMapper<TSalaryStandard> {
List
<
TSalaryStandardExportVo
>
getSalaryStandardExport
(
@Param
(
"searchVo"
)
TSalaryStandardSearchVo
searchVo
);
List
<
TSalaryStandardExportVo
>
getSalaryStandardExport
(
@Param
(
"searchVo"
)
TSalaryStandardSearchVo
searchVo
);
int
getSalaryStandardExportCount
(
TSalaryStandardSearchVo
searchVo
);
int
getSalaryStandardExportCount
(
@Param
(
"searchVo"
)
TSalaryStandardSearchVo
searchVo
);
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryStandardServiceImpl.java
View file @
6d1e122b
...
@@ -93,7 +93,6 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
...
@@ -93,7 +93,6 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TSalaryStandardExportVo
.
class
).
build
();
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TSalaryStandardExportVo
.
class
).
build
();
int
index
=
0
;
int
index
=
0
;
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
...
@@ -153,7 +152,6 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
...
@@ -153,7 +152,6 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
public
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
)
{
public
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
)
{
List
<
ErrorMessage
>
errorMessageList
=
new
ArrayList
<>();
List
<
ErrorMessage
>
errorMessageList
=
new
ArrayList
<>();
ExcelUtil
<
TSalaryStandardVo
>
util1
=
new
ExcelUtil
<>(
TSalaryStandardVo
.
class
);
ExcelUtil
<
TSalaryStandardVo
>
util1
=
new
ExcelUtil
<>(
TSalaryStandardVo
.
class
);
;
// 写法2:
// 写法2:
// 匿名内部类 不用额外写一个DemoDataListener
// 匿名内部类 不用额外写一个DemoDataListener
// 这里 需要指定读用哪个class去读,然后读取第一个sheet 文件流会自动关闭
// 这里 需要指定读用哪个class去读,然后读取第一个sheet 文件流会自动关闭
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryConfigStandardMapper.xml
View file @
6d1e122b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<result
property=
"modelType"
column=
"MODEL_TYPE"
/>
<result
property=
"modelType"
column=
"MODEL_TYPE"
/>
<result
property=
"isMustNeed"
column=
"IS_MUST_NEED"
/>
<result
property=
"isMustNeed"
column=
"IS_MUST_NEED"
/>
<result
property=
"isTax"
column=
"IS_TAX"
/>
<result
property=
"isTax"
column=
"IS_TAX"
/>
<result
property=
"create
User"
column=
"CREATE_USER
"
/>
<result
property=
"create
By"
column=
"CREATE_BY
"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"orderLine"
column=
"order_line"
/>
<result
property=
"orderLine"
column=
"order_line"
/>
</resultMap>
</resultMap>
...
@@ -37,8 +37,8 @@
...
@@ -37,8 +37,8 @@
<if
test=
"tSalaryConfigStandard.isMustNeed != null and tSalaryConfigStandard.isMustNeed.trim() != ''"
>
<if
test=
"tSalaryConfigStandard.isMustNeed != null and tSalaryConfigStandard.isMustNeed.trim() != ''"
>
AND IS_MUST_NEED = #{tSalaryConfigStandard.isMustNeed}
AND IS_MUST_NEED = #{tSalaryConfigStandard.isMustNeed}
</if>
</if>
<if
test=
"tSalaryConfigStandard.create
User != null and tSalaryConfigStandard.createUser
.trim() != ''"
>
<if
test=
"tSalaryConfigStandard.create
By != null and tSalaryConfigStandard.createBy
.trim() != ''"
>
AND CREATE_
USER = #{tSalaryConfigStandard.createUser
}
AND CREATE_
BY = #{tSalaryConfigStandard.createBy
}
</if>
</if>
<if
test=
"tSalaryConfigStandard.createTime != null"
>
<if
test=
"tSalaryConfigStandard.createTime != null"
>
AND CREATE_TIME = #{tSalaryStandard.createTime}
AND CREATE_TIME = #{tSalaryStandard.createTime}
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
MODEL_TYPE,
MODEL_TYPE,
IS_MUST_NEED,
IS_MUST_NEED,
IS_TAX,
IS_TAX,
CREATE_
USER
,
CREATE_
BY
,
CREATE_TIME
CREATE_TIME
FROM t_salary_config_standard
FROM t_salary_config_standard
<where>
<where>
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
View file @
6d1e122b
...
@@ -267,10 +267,15 @@
...
@@ -267,10 +267,15 @@
<where>
<where>
1=1
1=1
<include
refid=
"where_export"
/>
<include
refid=
"where_export"
/>
<if
test=
"searchVo != null"
>
<if
test=
"searchVo.limitStart != null"
>
limit #{searchVo.limitStart},#{searchVo.limitEnd}
</if>
</if>
</where>
</where>
</select>
</select>
<!--tSalaryStandard简单分页查询-->
<!--tSalaryStandard简单分页查询-->
<select
id=
"getSalaryStandardExportCount"
resultType=
"java.lang.Integer"
parameterType=
"com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryStandardSearchVo
"
>
<select
id=
"getSalaryStandardExportCount"
resultType=
"java.lang.Integer
"
>
SELECT
SELECT
count(1)
count(1)
FROM t_salary_standard a
FROM t_salary_standard a
...
@@ -315,9 +320,6 @@
...
@@ -315,9 +320,6 @@
<if
test=
"searchVo.status != null"
>
<if
test=
"searchVo.status != null"
>
AND a.STATUS = #{searchVo.status}
AND a.STATUS = #{searchVo.status}
</if>
</if>
<if
test=
"searchVo.limitStart != null"
>
limit #{searchVo.limitStart},#{searchVo.limitEnd}
</if>
</if>
</if>
</sql>
</sql>
</mapper>
</mapper>
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchReduceVo.java
View file @
6d1e122b
...
@@ -92,7 +92,7 @@ public class TDispatchReduceVo extends RowIndex implements Serializable {
...
@@ -92,7 +92,7 @@ public class TDispatchReduceVo extends RowIndex implements Serializable {
/**
/**
* 减少原因
* 减少原因
*/
*/
@ExcelAttribute
(
name
=
"减少原因"
,
isNotEmpty
=
true
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
REDUCE_
PROJECT
_REASON
)
@ExcelAttribute
(
name
=
"减少原因"
,
isNotEmpty
=
true
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
REDUCE_
SOCIAL
_REASON
)
@Schema
(
description
=
"减少原因"
)
@Schema
(
description
=
"减少原因"
)
@ExcelProperty
(
"减少原因"
)
@ExcelProperty
(
"减少原因"
)
private
String
reasonType
;
private
String
reasonType
;
...
...
yifu-social/yifu-social-biz/pom.xml
View file @
6d1e122b
...
@@ -84,6 +84,12 @@
...
@@ -84,6 +84,12 @@
<version>
1.0.0
</version>
<version>
1.0.0
</version>
<scope>
compile
</scope>
<scope>
compile
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
com.yifu.cloud.plus.v1
</groupId>
<artifactId>
yifu-salary-api
</artifactId>
<version>
1.0.0
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
6d1e122b
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