Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
e399b8c3
Commit
e399b8c3
authored
4 years ago
by
ilal
Committed by
chenzg
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
c3a5152d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
6 deletions
+46
-6
src/main/java/cn/timer/api/bean/sbgjj/SbgjjAdminCbry.java
+4
-0
src/main/java/cn/timer/api/controller/sbgjj/SocialSecurityFundController.java
+32
-3
src/main/resources/mapping/sbgjj/SbgjjAdminCbryMapper.xml
+9
-2
src/main/resources/mapping/sbgjj/SbgjjAssoYjzdMapper.xml
+1
-1
No files found.
src/main/java/cn/timer/api/bean/sbgjj/SbgjjAdminCbry.java
View file @
e399b8c3
...
...
@@ -88,5 +88,8 @@ public class SbgjjAdminCbry extends Model<SbgjjAdminCbry> {
@ApiModelProperty
(
value
=
"企业id"
,
example
=
"101"
)
private
Integer
qyid
;
@ApiModelProperty
(
value
=
"是否使用 0:否 1:是"
,
example
=
"101"
)
private
Integer
isUse
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/sbgjj/SocialSecurityFundController.java
View file @
e399b8c3
...
...
@@ -498,7 +498,20 @@ public class SocialSecurityFundController {
return
ResultUtil
.
data
(
yggl
);
}
@GetMapping
(
value
=
"/insure_details/{name}"
)
@ApiOperation
(
value
=
"投保事件"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
ResponseResult
insureDetails
(
@CurrentUser
UserBean
userBean
,
@PathVariable
String
name
)
{
List
<
SbgjjAssoCbfa
>
cbfalist
=
new
LambdaQueryChainWrapper
<
SbgjjAssoCbfa
>(
sbgjjassocbfamapper
).
eq
(
SbgjjAssoCbfa:
:
getCbcs
,
name
)
.
eq
(
SbgjjAssoCbfa:
:
getQyid
,
userBean
.
getOrgCode
()).
list
();
return
new
ResponseResult
().
success
(
"成功"
,
cbfalist
);
}
@Autowired
private
SbgjjAssoDetailedMapper
sbgjjassodetailedmapper
;
...
...
@@ -555,6 +568,8 @@ public class SocialSecurityFundController {
cbry
.
setSbfaid
(
insuredto
.
getSbfaid
());
cbry
.
setGjjfaid
(
insuredto
.
getGjjfaid
());
cbry
.
setIsUse
(
1
);
//是否使用 0:否 1:是
sbgjjadmincbrymapper
.
insertsbgjjadmincbry
(
cbry
);
int
cbryid
=
cbry
.
getId
();
//参保人员
...
...
@@ -607,8 +622,9 @@ public class SocialSecurityFundController {
SbgjjAssoCbfa
sbgjjfa
=
SbgjjAssoCbfa
.
builder
().
id
(
sbjs
.
getCbfaid
()).
build
().
selectById
();
deta
.
setCbfns
(
sbgjjfa
.
getCbmcName
());
//参保方案
deta
.
setSbjss
(
insuredto
.
getJnjs
());
//社保基数
deta
.
setGjjjss
(
insuredto
.
getGjjJnjs
());
//公积金基数
deta
.
setSbjss
(
insuredto
.
getJnjs
());
//社保基数******************
deta
.
setGjjjss
(
insuredto
.
getGjjJnjs
());
//公积金基数************
detalis
.
add
(
deta
);
...
...
@@ -931,11 +947,22 @@ public class SocialSecurityFundController {
// cbry.setId(insuredto.getId());
// cbry.updateById();
int
isUse
=
1
;
//是否使用 0:否 1:是
SbgjjAdminCbry
ascb
=
SbgjjAdminCbry
.
builder
().
id
(
insuredto
.
getId
()).
build
().
selectById
();
if
(
ascb
.
getSbjlStatime
().
equals
(
insuredto
.
getJnmouth
())
||
ascb
.
getGjjjlStatime
().
equals
(
insuredto
.
getGjjJnmouth
()))
{
isUse
=
0
;
}
SbgjjAdminCbry
cbrytwo
=
SbgjjAdminCbry
.
builder
().
build
();
cbrytwo
.
setState
(
0
);
//状态 1:使用中;0:历史记录
cbrytwo
.
setId
(
insuredto
.
getId
());
cbrytwo
.
setIsUse
(
isUse
);
cbrytwo
.
updateById
();
SbgjjAdminCbry
cbry
=
SbgjjAdminCbry
.
builder
().
build
();
cbry
.
setUserNum
(
insuredto
.
getUsernum
());
if
(
insuredto
.
getSb
())
{
...
...
@@ -971,6 +998,8 @@ public class SocialSecurityFundController {
cbry
.
setSbfaid
(
insuredto
.
getSbfaid
());
cbry
.
setGjjfaid
(
insuredto
.
getGjjfaid
());
cbry
.
setIsUse
(
1
);
//是否使用 0:否 1:是
sbgjjadmincbrymapper
.
insertsbgjjadmincbry
(
cbry
);
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/mapping/sbgjj/SbgjjAdminCbryMapper.xml
View file @
e399b8c3
...
...
@@ -24,6 +24,7 @@
<result
column=
"qyid"
property=
"qyid"
/>
<result
column=
"sbfaid"
property=
"sbfaid"
/>
<result
column=
"gjjfaid"
property=
"gjjfaid"
/>
<result
column=
"is_use"
property=
"isUse"
/>
</resultMap>
<resultMap
id=
"InsuredPersonnelMap"
type=
"cn.timer.api.dto.sbgjj.InsuredPersonnelDto"
>
...
...
@@ -285,7 +286,10 @@
sbfaid,
</if>
<if
test =
'null != gjjfaid'
>
gjjfaid
gjjfaid,
</if>
<if
test =
'null != isUse'
>
is_use
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -344,7 +348,10 @@
#{sbfaid},
</if>
<if
test =
'null != gjjfaid'
>
#{gjjfaid}
#{gjjfaid},
</if>
<if
test =
'null != isUse'
>
#{isUse}
</if>
</trim>
</insert>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/mapping/sbgjj/SbgjjAssoYjzdMapper.xml
View file @
e399b8c3
...
...
@@ -113,7 +113,7 @@
left join zzgl_bmgw_m um on um.id = m.up_id
) as bmgw on bmgw.mid = emp.bmgw_id
where yjzd.cbryid in (select cbry.id from sbgjj_admin_cbry cbry
where
1=
1
where
cbry.is_use =
1
and cbry.qyid = #{orgcode})
and yjzd.zymonth = #{mon}
and emp.org_code = #{orgcode}
...
...
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