Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
f5df4d7d
Commit
f5df4d7d
authored
Nov 26, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FLC 企业人员相关代码
parent
62d37c8d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
86 additions
and
21 deletions
+86
-21
IOrgUsrService.java
...n/amos/boot/module/common/api/service/IOrgUsrService.java
+2
-0
PersonQualityDto.java
...in/amos/boot/module/tzs/flc/api/dto/PersonQualityDto.java
+4
-0
PersonQuality.java
...in/amos/boot/module/tzs/flc/api/entity/PersonQuality.java
+8
-0
IUnitPersonService.java
...s/boot/module/tzs/flc/api/service/IUnitPersonService.java
+10
-1
UnitPersonMapper.xml
...le-tzs-api/src/main/resources/mapper/UnitPersonMapper.xml
+26
-20
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+12
-0
UnitInfoController.java
...oot/module/tzs/flc/biz/controller/UnitInfoController.java
+1
-0
UnitPersonController.java
...t/module/tzs/flc/biz/controller/UnitPersonController.java
+0
-0
UnitPersonServiceImpl.java
...odule/tzs/flc/biz/service/impl/UnitPersonServiceImpl.java
+0
-0
tzs-1.0.0.0.xml
...ystem-tzs/src/main/resources/db/changelog/tzs-1.0.0.0.xml
+23
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IOrgUsrService.java
View file @
f5df4d7d
...
...
@@ -278,4 +278,6 @@ public interface IOrgUsrService {
OrgUsrDto
saveOrgPersonFlc
(
OrgPersonDto
OrgPersonDto
)
throws
Exception
;
void
updateByIdOrgPersonFlc
(
OrgPersonDto
OrgPersonVo
,
Long
id
)
throws
Exception
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/PersonQualityDto.java
View file @
f5df4d7d
...
...
@@ -56,4 +56,8 @@ public class PersonQualityDto extends BaseDto {
@ApiModelProperty
(
value
=
"证书信息"
)
private
List
<
AttachmentDto
>
licenceInfo
;
@ApiModelProperty
(
value
=
"发证日期"
)
private
Date
licenceDate
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/entity/PersonQuality.java
View file @
f5df4d7d
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.tzs.flc.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
...
...
@@ -82,4 +83,11 @@ public class PersonQuality extends BaseEntity {
@TableField
(
"remark"
)
private
String
remark
;
/**
* 发证日期
*/
@TableField
(
"licence_date"
)
private
Date
licenceDate
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/service/IUnitPersonService.java
View file @
f5df4d7d
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.tzs.flc.api.service;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitPersonInfoDto
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -14,5 +15,13 @@ public interface IUnitPersonService {
UnitPersonInfoDto
getPersonById
(
Long
sequenceNbr
);
Object
pagePerson
(
Long
parentId
,
String
pageNum
,
String
pageSize
,
Map
<
String
,
Object
>
requestBody
);
Object
pagePerson
(
List
<
Long
>
parentId
,
String
pageNum
,
String
pageSize
,
Map
<
String
,
Object
>
requestBody
);
Boolean
removeById
(
Long
sequenceNbr
);
Boolean
batchDelete
(
List
<
Long
>
sequenceNbrList
);
UnitPersonInfoDto
saveSupUser
(
UnitPersonInfoDto
unitPersonInfoDto
);
UnitPersonInfoDto
updateUser
(
UnitPersonInfoDto
unitPersonInfoDto
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/UnitPersonMapper.xml
View file @
f5df4d7d
...
...
@@ -7,8 +7,11 @@
select count(1) from (
SELECT
DISTINCT
u.sequence_nbr AS sequenceNbr,
u.*,
replace(CONCAT(u.org_expand_attr6->'$.province',u.org_expand_attr6->'$.city',u.org_expand_attr6->'$.district',u.org_expand_attr6->'$.address'),'"','') fulladdress ,
g.*,
p.biz_org_name as parentName,
TIMESTAMPDIFF(YEAR, g.birthday, CURDATE()) as ages ,
case
when count(q.sequence_nbr) > 0 then '有'
...
...
@@ -18,19 +21,15 @@
LEFT JOIN
( SELECT
v.`instance_id`,
max(case v.field_code when 'person_type' then IFNULL(v.field_value_label,v.field_value) end) person
T
ype,
max(case v.field_code when 'person_type' then IFNULL(v.field_value_label,v.field_value) end) person
_t
ype,
max(case v.field_code when 'sex' then IFNULL(v.field_value_label,v.field_value) end) sex,
max(case v.field_code when 'birthday' then IFNULL(v.field_value_label,v.field_value) end) birthday,
max(case v.field_code when 'licence_type' then IFNULL(v.field_value_label,v.field_value) end) licence
T
ype,
max(case v.field_code when 'licence_code' then IFNULL(v.field_value_label,v.field_value) end) licence
C
ode,
max(case v.field_code when 'licence_type' then IFNULL(v.field_value_label,v.field_value) end) licence
_t
ype,
max(case v.field_code when 'licence_code' then IFNULL(v.field_value_label,v.field_value) end) licence
_c
ode,
max(case v.field_code when 'education' then IFNULL(v.field_value_label,v.field_value) end) education,
max(case v.field_code when 'major' then IFNULL(v.field_value_label,v.field_value) end) major,
max(case v.field_code when 'phone' then IFNULL(v.field_value_label,v.field_value) end) phone,
max(case v.field_code when 'email' then IFNULL(v.field_value_label,v.field_value) end) email,
max(case v.field_code when 'province' then IFNULL(v.field_value_label,v.field_value) end) province,
max(case v.field_code when 'city' then IFNULL(v.field_value_label,v.field_value) end) city,
max(case v.field_code when 'district' then IFNULL(v.field_value_label,v.field_value) end) district,
max(case v.field_code when 'address' then IFNULL(v.field_value_label,v.field_value) end) address
max(case v.field_code when 'email' then IFNULL(v.field_value_label,v.field_value) end) email
FROM
`cb_dynamic_form_instance` v
WHERE
...
...
@@ -39,12 +38,16 @@
v.`instance_id`
) g
on u.sequence_nbr = g.instance_id
LEFT JOIN tz_flc_person_quality q on q.sequence_nbr = u.sequence_nbr
LEFT JOIN tz_flc_person_quality q on q.pserson_id = u.sequence_nbr
LEFT JOIN cb_org_usr p on p.sequence_nbr = u.parent_id
where
u.biz_org_type = 'person'
AND
u.is_delete = 0
AND u.parent_id = #{map.parentId}
<if
test=
"map.parentId != null"
>
AND u.parent_id in
<foreach
collection=
"map.parentId"
item=
"item"
open=
"("
close=
")"
separator=
","
>
${item}
</foreach>
</if>
GROUP BY
u.sequence_nbr ,
u.biz_org_name ,
...
...
@@ -84,8 +87,11 @@
select * from (
SELECT
DISTINCT
u.sequence_nbr AS sequenceNbr,
u.*,
replace(CONCAT(u.org_expand_attr6->'$.province',u.org_expand_attr6->'$.city',u.org_expand_attr6->'$.district',u.org_expand_attr6->'$.address'),'"','') fulladdress ,
g.*,
p.biz_org_name as parentName,
TIMESTAMPDIFF(YEAR, g.birthday, CURDATE()) as ages ,
case
when count(q.sequence_nbr) > 0 then '有'
...
...
@@ -95,19 +101,15 @@
LEFT JOIN
( SELECT
v.`instance_id`,
max(case v.field_code when 'person_type' then IFNULL(v.field_value_label,v.field_value) end) person
T
ype,
max(case v.field_code when 'person_type' then IFNULL(v.field_value_label,v.field_value) end) person
_t
ype,
max(case v.field_code when 'sex' then IFNULL(v.field_value_label,v.field_value) end) sex,
max(case v.field_code when 'birthday' then IFNULL(v.field_value_label,v.field_value) end) birthday,
max(case v.field_code when 'licence_type' then IFNULL(v.field_value_label,v.field_value) end) licence
T
ype,
max(case v.field_code when 'licence_code' then IFNULL(v.field_value_label,v.field_value) end) licence
C
ode,
max(case v.field_code when 'licence_type' then IFNULL(v.field_value_label,v.field_value) end) licence
_t
ype,
max(case v.field_code when 'licence_code' then IFNULL(v.field_value_label,v.field_value) end) licence
_c
ode,
max(case v.field_code when 'education' then IFNULL(v.field_value_label,v.field_value) end) education,
max(case v.field_code when 'major' then IFNULL(v.field_value_label,v.field_value) end) major,
max(case v.field_code when 'phone' then IFNULL(v.field_value_label,v.field_value) end) phone,
max(case v.field_code when 'email' then IFNULL(v.field_value_label,v.field_value) end) email,
max(case v.field_code when 'province' then IFNULL(v.field_value_label,v.field_value) end) province,
max(case v.field_code when 'city' then IFNULL(v.field_value_label,v.field_value) end) city,
max(case v.field_code when 'district' then IFNULL(v.field_value_label,v.field_value) end) district,
max(case v.field_code when 'address' then IFNULL(v.field_value_label,v.field_value) end) address
max(case v.field_code when 'email' then IFNULL(v.field_value_label,v.field_value) end) email
FROM
`cb_dynamic_form_instance` v
WHERE
...
...
@@ -116,12 +118,16 @@
v.`instance_id`
) g
on u.sequence_nbr = g.instance_id
LEFT JOIN tz_flc_person_quality q on q.sequence_nbr = u.sequence_nbr
LEFT JOIN tz_flc_person_quality q on q.pserson_id = u.sequence_nbr
LEFT JOIN cb_org_usr p on p.sequence_nbr = u.parent_id
where
u.biz_org_type = 'person'
AND
u.is_delete = 0
AND u.parent_id = #{map.parentId}
<if
test=
"map.parentId != null"
>
AND u.parent_id in
<foreach
collection=
"map.parentId"
item=
"item"
open=
"("
close=
")"
separator=
","
>
${item}
</foreach>
</if>
GROUP BY
u.sequence_nbr ,
u.biz_org_name ,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
f5df4d7d
...
...
@@ -2025,4 +2025,16 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
return
result
;
}
@Override
public
void
updateByIdOrgPersonFlc
(
OrgPersonDto
OrgPersonVo
,
Long
id
)
throws
Exception
{
// 修改人员信息
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
oriOrgUsr
=
getById
(
id
);
BeanUtils
.
copyProperties
(
OrgPersonVo
,
orgUsr
);
orgUsr
.
setSequenceNbr
(
id
);
updateById
(
orgUsr
);
// 保存动态表单数据
updateDynamicFormInstance
(
orgUsr
.
getSequenceNbr
(),
OrgPersonVo
.
getDynamicFormValue
());
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/UnitInfoController.java
View file @
f5df4d7d
...
...
@@ -448,4 +448,5 @@ public class UnitInfoController extends BaseController {
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/UnitPersonController.java
View file @
f5df4d7d
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/UnitPersonServiceImpl.java
View file @
f5df4d7d
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/src/main/resources/db/changelog/tzs-1.0.0.0.xml
View file @
f5df4d7d
...
...
@@ -444,6 +444,29 @@
</sql>
</changeSet>
<changeSet
author=
"kongfm"
id=
"2021-11-25-01"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"1"
>
select count(*) from cb_dynamic_form_column where sequence_nbr = 10
</sqlCheck>
</preConditions>
<comment>
delete person record
</comment>
<sql>
delete FROM cb_dynamic_form_column where sequence_nbr = 10;
delete FROM cb_dynamic_form_column where sequence_nbr = 11;
delete FROM cb_dynamic_form_column where sequence_nbr = 12;
delete FROM cb_dynamic_form_column where sequence_nbr = 13;
</sql>
</changeSet>
<changeSet
author=
"kongfm"
id=
"2021-11-26-01"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"tz_flc_person_quality"
/>
</preConditions>
<comment>
modify table tz_flc_person_quality add licence_date columns
</comment>
<sql>
ALTER TABLE `tz_flc_person_quality` add licence_date datetime COMMENT '发证日期';
</sql>
</changeSet>
</databaseChangeLog>
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