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
f513fd8b
Commit
f513fd8b
authored
May 13, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节假日配置表及社保医疗截止配置表
parent
7eb029d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
51 deletions
+70
-51
TSocialDeadlineInfo.java
...cloud/plus/v1/yifu/social/entity/TSocialDeadlineInfo.java
+4
-4
TSocialDeadlineInfoSearchVo.java
...d/plus/v1/yifu/social/vo/TSocialDeadlineInfoSearchVo.java
+13
-0
TSocialDeadlineInfoController.java
...yifu/social/controller/TSocialDeadlineInfoController.java
+2
-2
TSocialDeadlineInfoMapper.xml
...z/src/main/resources/mapper/TSocialDeadlineInfoMapper.xml
+51
-45
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TSocialDeadlineInfo.java
View file @
f513fd8b
...
...
@@ -18,9 +18,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
entity
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
...
...
@@ -58,7 +56,7 @@ public class TSocialDeadlineInfo extends BaseEntity {
@Length
(
max
=
6
,
message
=
"月份不能超过6个字符"
)
@ExcelProperty
(
"月份"
)
@Schema
(
description
=
"月份"
)
private
String
month
;
private
Integer
month
;
/**
* 省
*/
...
...
@@ -75,6 +73,7 @@ public class TSocialDeadlineInfo extends BaseEntity {
@Length
(
max
=
10
,
message
=
"市不能超过10个字符"
)
@ExcelProperty
(
"市"
)
@Schema
(
description
=
"市"
)
@TableField
(
updateStrategy
=
FieldStrategy
.
IGNORED
)
private
String
city
;
/**
* 县
...
...
@@ -83,6 +82,7 @@ public class TSocialDeadlineInfo extends BaseEntity {
@Length
(
max
=
10
,
message
=
"县不能超过10个字符"
)
@ExcelProperty
(
"县"
)
@Schema
(
description
=
"县"
)
@TableField
(
updateStrategy
=
FieldStrategy
.
IGNORED
)
private
String
town
;
/**
* 社保截止日
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TSocialDeadlineInfoSearchVo.java
View file @
f513fd8b
...
...
@@ -55,4 +55,17 @@ private int limitStart;
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
/**
* @Author fxj
* 月份起时间
**/
@Schema
(
description
=
"查询month 开始"
)
private
int
monthStart
;
/**
* @Author fxj
* 月份止时间
**/
@Schema
(
description
=
"查询month 数据条数"
)
private
int
monthEnd
;
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TSocialDeadlineInfoController.java
View file @
f513fd8b
...
...
@@ -154,8 +154,8 @@ public class TSocialDeadlineInfoController {
*/
@Operation
(
summary
=
"通过id启用0/禁用1社保医疗截止日配置"
,
description
=
"通过id启用0/禁用1社保医疗截止日配置"
)
@SysLog
(
"通过id启用/禁用社保医疗截止日配置"
)
@PutMapping
(
"/
{id}
"
)
public
R
<
Boolean
>
updateStatusById
(
@
PathVariable
String
id
,
@RequestParam
String
status
)
{
@PutMapping
(
"/
updateStatusById
"
)
public
R
<
Boolean
>
updateStatusById
(
@
RequestParam
String
id
,
@RequestParam
String
status
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(!
Common
.
isNotNull
(
user
)){
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocialDeadlineInfoMapper.xml
View file @
f513fd8b
...
...
@@ -58,51 +58,57 @@
</sql>
<sql
id=
"tSocialDeadlineInfo_where"
>
<if
test=
"tSocialDeadlineInfo != null"
>
<if
test=
"tSocialDeadlineInfo.id != null and tSocialDeadlineInfo.id.trim() != ''"
>
AND a.ID = #{tSocialDeadlineInfo.id}
</if>
<if
test=
"tSocialDeadlineInfo.month != null and tSocialDeadlineInfo.month.trim() != ''"
>
AND a.MONTH = #{tSocialDeadlineInfo.month}
</if>
<if
test=
"tSocialDeadlineInfo.province != null and tSocialDeadlineInfo.province.trim() != ''"
>
AND a.PROVINCE = #{tSocialDeadlineInfo.province}
</if>
<if
test=
"tSocialDeadlineInfo.city != null and tSocialDeadlineInfo.city.trim() != ''"
>
AND a.CITY = #{tSocialDeadlineInfo.city}
</if>
<if
test=
"tSocialDeadlineInfo.town != null and tSocialDeadlineInfo.town.trim() != ''"
>
AND a.TOWN = #{tSocialDeadlineInfo.town}
</if>
<if
test=
"tSocialDeadlineInfo.socialEndDate != null"
>
AND a.SOCIAL_END_DATE = #{tSocialDeadlineInfo.socialEndDate}
</if>
<if
test=
"tSocialDeadlineInfo.medicalEndDate != null"
>
AND a.MEDICAL_END_DATE = #{tSocialDeadlineInfo.medicalEndDate}
</if>
<if
test=
"tSocialDeadlineInfo.createBy != null and tSocialDeadlineInfo.createBy.trim() != ''"
>
AND a.CREATE_BY = #{tSocialDeadlineInfo.createBy}
</if>
<if
test=
"tSocialDeadlineInfo.createName != null and tSocialDeadlineInfo.createName.trim() != ''"
>
AND a.CREATE_NAME = #{tSocialDeadlineInfo.createName}
</if>
<if
test=
"tSocialDeadlineInfo.createTime != null"
>
AND a.CREATE_TIME = #{tSocialDeadlineInfo.createTime}
</if>
<if
test=
"tSocialDeadlineInfo.updateBy != null and tSocialDeadlineInfo.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{tSocialDeadlineInfo.updateBy}
</if>
<if
test=
"tSocialDeadlineInfo.updateName != null and tSocialDeadlineInfo.updateName.trim() != ''"
>
AND a.UPDATE_NAME = #{tSocialDeadlineInfo.updateName}
</if>
<if
test=
"tSocialDeadlineInfo.updateTime != null"
>
AND a.UPDATE_TIME = #{tSocialDeadlineInfo.updateTime}
</if>
<if
test=
"tSocialDeadlineInfo.status != null and tSocialDeadlineInfo.status.trim() != ''"
>
AND a.STATUS = #{tSocialDeadlineInfo.status}
</if>
<if
test=
"tSocialDeadlineInfo.type != null and tSocialDeadlineInfo.type.trim() != ''"
>
AND a.TYPE = #{tSocialDeadlineInfo.type}
</if>
<if
test=
"tSocialDeadlineInfo.id != null and tSocialDeadlineInfo.id.trim() != ''"
>
AND a.ID = #{tSocialDeadlineInfo.id}
</if>
<if
test=
"tSocialDeadlineInfo.month != null and tSocialDeadlineInfo.month.trim() != ''"
>
AND a.MONTH = #{tSocialDeadlineInfo.month}
</if>
<if
test=
"tSocialDeadlineInfo.province != null and tSocialDeadlineInfo.province.trim() != ''"
>
AND a.PROVINCE = #{tSocialDeadlineInfo.province}
</if>
<if
test=
"tSocialDeadlineInfo.city != null and tSocialDeadlineInfo.city.trim() != ''"
>
AND a.CITY = #{tSocialDeadlineInfo.city}
</if>
<if
test=
"tSocialDeadlineInfo.town != null and tSocialDeadlineInfo.town.trim() != ''"
>
AND a.TOWN = #{tSocialDeadlineInfo.town}
</if>
<if
test=
"tSocialDeadlineInfo.socialEndDate != null"
>
AND a.SOCIAL_END_DATE = #{tSocialDeadlineInfo.socialEndDate}
</if>
<if
test=
"tSocialDeadlineInfo.medicalEndDate != null"
>
AND a.MEDICAL_END_DATE = #{tSocialDeadlineInfo.medicalEndDate}
</if>
<if
test=
"tSocialDeadlineInfo.createBy != null and tSocialDeadlineInfo.createBy.trim() != ''"
>
AND a.CREATE_BY = #{tSocialDeadlineInfo.createBy}
</if>
<if
test=
"tSocialDeadlineInfo.createName != null and tSocialDeadlineInfo.createName.trim() != ''"
>
AND a.CREATE_NAME = #{tSocialDeadlineInfo.createName}
</if>
<if
test=
"tSocialDeadlineInfo.createTime != null"
>
AND a.CREATE_TIME = #{tSocialDeadlineInfo.createTime}
</if>
<if
test=
"tSocialDeadlineInfo.updateBy != null and tSocialDeadlineInfo.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{tSocialDeadlineInfo.updateBy}
</if>
<if
test=
"tSocialDeadlineInfo.updateName != null and tSocialDeadlineInfo.updateName.trim() != ''"
>
AND a.UPDATE_NAME = #{tSocialDeadlineInfo.updateName}
</if>
<if
test=
"tSocialDeadlineInfo.updateTime != null"
>
AND a.UPDATE_TIME = #{tSocialDeadlineInfo.updateTime}
</if>
<if
test=
"tSocialDeadlineInfo.status != null and tSocialDeadlineInfo.status.trim() != ''"
>
AND a.STATUS = #{tSocialDeadlineInfo.status}
</if>
<if
test=
"tSocialDeadlineInfo.monthEnd != 0"
>
AND a.MONTH
<![CDATA[<=]]>
#{tSocialDeadlineInfo.monthEnd}
</if>
<if
test=
"tSocialDeadlineInfo.monthStart != 0"
>
AND a.MONTH
<![CDATA[>=]]>
#{tSocialDeadlineInfo.monthStart}
</if>
<if
test=
"tSocialDeadlineInfo.type != null and tSocialDeadlineInfo.type.trim() != ''"
>
AND a.TYPE = #{tSocialDeadlineInfo.type}
</if>
</if>
</sql>
<!--tSocialDeadlineInfo简单分页查询-->
...
...
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