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
3e208ab5
Commit
3e208ab5
authored
Apr 24, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
538b9d29
f16c002c
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
27 additions
and
24 deletions
+27
-24
PersonAccountDto.java
...join/amos/boot/module/jxiop/api/dto/PersonAccountDto.java
+3
-0
PersonBasicDto.java
...eejoin/amos/boot/module/jxiop/api/dto/PersonBasicDto.java
+1
-1
PersonUser.java
...om/yeejoin/amos/boot/module/jxiop/api/dto/PersonUser.java
+1
-1
StationBasicDto.java
...ejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
+1
-1
PersonAccount.java
...join/amos/boot/module/jxiop/api/entity/PersonAccount.java
+2
-2
PersonBasic.java
...eejoin/amos/boot/module/jxiop/api/entity/PersonBasic.java
+2
-2
StationBasic.java
...ejoin/amos/boot/module/jxiop/api/entity/StationBasic.java
+2
-2
PersonBasicMapper.xml
...jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
+2
-2
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+3
-3
ExcelController.java
...mos/boot/module/jxiop/biz/controller/ExcelController.java
+2
-2
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+6
-6
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/PersonAccountDto.java
View file @
3e208ab5
...
...
@@ -42,6 +42,9 @@ public class PersonAccountDto extends BaseDto {
@ApiModelProperty
(
value
=
"部门id"
)
private
Long
departmentId
;
@ApiModelProperty
(
value
=
"部门名称"
)
private
String
projectDepartmentName
;
@ApiModelProperty
(
value
=
"所属场站id"
)
private
Long
projectId
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/PersonBasicDto.java
View file @
3e208ab5
...
...
@@ -65,7 +65,7 @@ public class PersonBasicDto extends BaseDto {
private
Date
workTime
;
@ApiModelProperty
(
value
=
"组织机构id"
)
private
String
o
rgCode
;
private
String
projectO
rgCode
;
@ApiModelProperty
(
value
=
"人员头像"
)
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/PersonUser.java
View file @
3e208ab5
...
...
@@ -63,7 +63,7 @@ public class PersonUser {
private
Date
workTime
;
@ApiModelProperty
(
value
=
"组织机构id"
)
private
String
o
rgCode
;
private
String
projectO
rgCode
;
@ApiModelProperty
(
value
=
"人员头像"
)
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
View file @
3e208ab5
...
...
@@ -76,7 +76,7 @@ public class StationBasicDto extends BaseDto {
private
String
areaName
;
@ApiModelProperty
(
value
=
"组织机构"
)
private
String
o
rgCode
;
private
String
projectO
rgCode
;
@ApiModelProperty
(
value
=
"岗位"
)
private
String
postName
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/PersonAccount.java
View file @
3e208ab5
...
...
@@ -90,8 +90,8 @@ public class PersonAccount extends BaseEntity {
*/
@TableField
(
"department_id"
)
private
Long
departmentId
;
@TableField
(
"department_name"
)
private
String
d
epartmentName
;
@TableField
(
"
project_
department_name"
)
private
String
projectD
epartmentName
;
/**
* 姓名
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/PersonBasic.java
View file @
3e208ab5
...
...
@@ -126,8 +126,8 @@ public class PersonBasic extends BaseEntity {
/**
* 组织机构id
*/
@TableField
(
"org_code"
)
private
String
o
rgCode
;
@TableField
(
"
project_
org_code"
)
private
String
projectO
rgCode
;
/**
* 进入本单位工作时间
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/StationBasic.java
View file @
3e208ab5
...
...
@@ -124,8 +124,8 @@ public class StationBasic extends BaseEntity {
@TableField
(
"area"
)
private
String
area
;
@TableField
(
"org_code"
)
private
String
o
rgCode
;
@TableField
(
"
project_
org_code"
)
private
String
projectO
rgCode
;
@TableField
(
exist
=
false
)
private
List
<
StationCoordinate
>
stationCoordinate
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
View file @
3e208ab5
...
...
@@ -21,7 +21,7 @@
<where>
person_basic.is_delete=0
<if
test=
"orgCode != null and orgCode != ''"
>
AND person_basic.org_code like concat('%',#{orgCode},'%')
AND person_basic.
project_
org_code like concat('%',#{orgCode},'%')
</if>
<if
test=
"name != null and name != ''"
>
AND person_basic.name like concat('%',#{name},'%')
...
...
@@ -47,7 +47,7 @@
<where>
person_basic.is_delete=0
<if
test=
"orgCode != null and orgCode != ''"
>
AND person_basic.org_code like concat('%',#{orgCode},'%')
AND person_basic.
project_
org_code like concat('%',#{orgCode},'%')
</if>
<if
test=
"name != null and name != ''"
>
AND person_basic.name like concat('%',#{name},'%')
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
3e208ab5
...
...
@@ -27,7 +27,7 @@
AND station_basic.station_type = #{stationType}
</if>
<if
test=
"orgCoce != null and orgCoce != ''"
>
AND station_basic.org_code like concat('%',#{orgCoce},'%')
AND station_basic.
project_
org_code like concat('%',#{orgCoce},'%')
</if>
</where>
ORDER BY station_basic.rec_date DESC
...
...
@@ -51,7 +51,7 @@
AND station_basic.station_type = #{stationType}
</if>
<if
test=
"orgCoce != null and orgCoce != ''"
>
AND station_basic.org_code like concat('%',#{orgCoce},'%')
AND station_basic.
project_
org_code like concat('%',#{orgCoce},'%')
</if>
</where>
</select>
...
...
@@ -97,7 +97,7 @@
AND station_basic.station_type = #{stationType}
</if>
<if
test=
"orgCoce != null and orgCoce != ''"
>
AND station_basic.org_code like concat('%',#{orgCoce},'%')
AND station_basic.
project_
org_code like concat('%',#{orgCoce},'%')
</if>
</where>
ORDER BY station_basic.rec_date DESC
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/ExcelController.java
View file @
3e208ab5
...
...
@@ -36,12 +36,12 @@ public class ExcelController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"下载模板"
)
@GetMapping
(
"/download/template/{type}"
)
public
void
downloadTemplate
(
HttpServletResponse
response
,
@PathVariable
(
value
=
"type"
)
String
type
)
{
public
void
downloadTemplate
(
HttpServletResponse
response
,
@PathVariable
(
value
=
"type"
)
String
type
,
@RequestParam
Map
par
)
{
try
{
ExcelEnums
excelEnums
=
ExcelEnums
.
getByKey
(
type
);
ExcelDto
excelDto
=
new
ExcelDto
(
excelEnums
.
getFileName
(),
excelEnums
.
getSheetName
(),
excelEnums
.
getClassUrl
(),
excelEnums
.
getType
());
excelService
.
templateExport
(
response
,
excelDto
);
excelService
.
templateExport
(
response
,
excelDto
,
par
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
RuntimeException
(
"系统异常!"
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
3e208ab5
...
...
@@ -119,9 +119,9 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
PersonBasic
personBasic
=
new
PersonBasic
();
BeanUtils
.
copyProperties
(
personUser
,
personBasic
);
if
(
departmentModel
!=
null
){
personBasic
.
setOrgCode
(
departmentModel
.
getOrgCode
());
personBasic
.
set
Project
OrgCode
(
departmentModel
.
getOrgCode
());
}
else
{
personBasic
.
setOrgCode
(
companyModel
.
getOrgCode
());
personBasic
.
set
Project
OrgCode
(
companyModel
.
getOrgCode
());
}
this
.
baseMapper
.
insert
(
personBasic
);
//人员技能学历信息
...
...
@@ -135,7 +135,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
//人员账号信息
personAccount
.
setPersonId
(
personBasic
.
getSequenceNbr
());
personAccount
.
setPuserId
(
agencyUserModel
.
getUserId
());
personAccount
.
setDepartmentName
(
departmentModel
.
getDepartmentName
());
personAccount
.
set
Project
DepartmentName
(
departmentModel
.
getDepartmentName
());
personAccount
.
setProjectName
(
companyModel
.
getCompanyName
());
personAccountService
.
save
(
personAccount
);
}
...
...
@@ -195,9 +195,9 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
personBasic
.
setSequenceNbr
(
sequenceNbr
);
BeanUtils
.
copyProperties
(
personUser
,
personBasic
);
if
(
departmentModel
!=
null
){
personBasic
.
setOrgCode
(
departmentModel
.
getOrgCode
());
personBasic
.
set
Project
OrgCode
(
departmentModel
.
getOrgCode
());
}
else
{
personBasic
.
setOrgCode
(
companyModel
.
getOrgCode
());
personBasic
.
set
Project
OrgCode
(
companyModel
.
getOrgCode
());
}
this
.
personBasicMapper
.
updateById
(
personBasic
);
...
...
@@ -211,7 +211,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
personCertificateService
.
updateById
(
personCertificate
);
//人员账号信息
personAccount
.
setPersonId
(
sequenceNbr
);
personAccount
.
setDepartmentName
(
departmentModel
.
getDepartmentName
());
personAccount
.
set
Project
DepartmentName
(
departmentModel
.
getDepartmentName
());
personAccount
.
setProjectName
(
companyModel
.
getCompanyName
());
personAccountService
.
updateById
(
personAccount
);
return
model
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationBasicServiceImpl.java
View file @
3e208ab5
...
...
@@ -88,7 +88,7 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
//单位
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
stationBasic
.
getArea
()));
stationBasic
.
setAreaName
(
companyModel
.
getCompanyName
());
stationBasic
.
setOrgCode
(
companyModel
.
getOrgCode
());
stationBasic
.
set
Project
OrgCode
(
companyModel
.
getOrgCode
());
//场站基本信息
this
.
save
(
stationBasic
);
...
...
@@ -115,7 +115,7 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
//单位
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
stationBasic
.
getArea
()));
stationBasic
.
setAreaName
(
companyModel
.
getCompanyName
());
stationBasic
.
setOrgCode
(
companyModel
.
getOrgCode
());
stationBasic
.
set
Project
OrgCode
(
companyModel
.
getOrgCode
());
//场站基本信息
stationBasicMapper
.
updateById
(
stationBasic
);
...
...
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