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
264ffc56
Commit
264ffc56
authored
Jul 09, 2021
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into develop
parents
e67f9ef9
32bdcf26
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
36 additions
and
16 deletions
+36
-16
application-dev.properties
...-jcs-system/src/main/resources/application-dev.properties
+5
-2
application-qa.properties
...t-jcs-system/src/main/resources/application-qa.properties
+10
-2
FirefightersDto.java
...join/amos/boot/module/common/api/dto/FirefightersDto.java
+6
-0
FireTeamMapper.xml
...e-common-api/src/main/resources/mapper/FireTeamMapper.xml
+5
-2
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+2
-2
DutyShiftController.java
...oot/module/common/biz/controller/DutyShiftController.java
+2
-2
DutyCommonServiceImpl.java
...module/common/biz/service/impl/DutyCommonServiceImpl.java
+1
-1
DutyShiftServiceImpl.java
.../module/common/biz/service/impl/DutyShiftServiceImpl.java
+4
-4
ExcelController.java
.../amos/boot/module/jcs/biz/controller/ExcelController.java
+1
-1
No files found.
amos-boot-jcs-system/src/main/resources/application-dev.properties
View file @
264ffc56
...
@@ -6,12 +6,15 @@ spring.datasource.password=root_123
...
@@ -6,12 +6,15 @@ spring.datasource.password=root_123
#eureka properties:
#eureka properties:
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.72:10001/eureka/
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.72:10001/eureka/
eureka.client.registry-fetch-interval-seconds
=
5
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url-path
=
/health
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.lease-expiration-duration-in-seconds
=
10
eureka.instance.lease-renewal-interval-in-seconds
=
5
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url-path
=
/info
eureka.instance.status-page-url-path
=
/
actuator/
info
eureka.instance.metadata-map.management.api-docs
=
http://localhost:${server.port}${server.servlet.context-path}/doc.html
eureka.instance.metadata-map.management.api-docs
=
http://localhost:${server.port}${server.servlet.context-path}/doc.html
...
...
amos-boot-jcs-system/src/main/resources/application-qa.properties
View file @
264ffc56
...
@@ -5,9 +5,17 @@ spring.datasource.username=root
...
@@ -5,9 +5,17 @@ spring.datasource.username=root
spring.datasource.password
=
root_123
spring.datasource.password
=
root_123
#eureka properties:
#eureka properties:
eureka.instance.hostname
=
172.16.10.72
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.72:10001/eureka/
eureka.client.registry-fetch-interval-seconds
=
5
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
eureka.client.serviceUrl.defaultZone
=
http://${eureka.instance.hostname}:10001/eureka/
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.lease-expiration-duration-in-seconds
=
10
eureka.instance.lease-renewal-interval-in-seconds
=
5
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url-path
=
/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://localhost:${server.port}${server.servlet.context-path}/doc.html
spring.redis.database
=
0
spring.redis.database
=
0
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FirefightersDto.java
View file @
264ffc56
...
@@ -35,6 +35,9 @@ public class FirefightersDto extends BaseDto {
...
@@ -35,6 +35,9 @@ public class FirefightersDto extends BaseDto {
@ApiModelProperty
(
value
=
"队伍id"
)
@ApiModelProperty
(
value
=
"队伍id"
)
private
String
fireTeamId
;
private
String
fireTeamId
;
@ApiModelProperty
(
value
=
"队伍名称"
)
private
String
fireTeamName
;
@ApiModelProperty
(
value
=
"姓名"
)
@ApiModelProperty
(
value
=
"姓名"
)
private
String
name
;
private
String
name
;
...
@@ -68,6 +71,9 @@ public class FirefightersDto extends BaseDto {
...
@@ -68,6 +71,9 @@ public class FirefightersDto extends BaseDto {
@ApiModelProperty
(
value
=
"岗位名称"
)
@ApiModelProperty
(
value
=
"岗位名称"
)
private
String
jobTitle
;
private
String
jobTitle
;
@ApiModelProperty
(
value
=
"岗位code"
)
private
String
jobTitleCode
;
@ApiModelProperty
(
value
=
"人员状态,在职/离职"
)
@ApiModelProperty
(
value
=
"人员状态,在职/离职"
)
private
String
state
;
private
String
state
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FireTeamMapper.xml
View file @
264ffc56
...
@@ -14,8 +14,11 @@
...
@@ -14,8 +14,11 @@
GROUP BY ft.sequence_nbr
GROUP BY ft.sequence_nbr
</select>
</select>
<select
id=
"queryFighterByTeamId"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.FirefightersDto"
>
<select
id=
"queryFighterByTeamId"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.FirefightersDto"
>
select *
SELECT
from cb_firefighters
ff.*,
(select name from cb_fire_team where sequence_nbr = ff.fire_team_id) fireTeamName
FROM
cb_firefighters ff
where is_delete = 0
where is_delete = 0
and fire_team_id in
and fire_team_id in
<if
test=
"teamIds != null"
>
<if
test=
"teamIds != null"
>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
264ffc56
...
@@ -124,8 +124,8 @@
...
@@ -124,8 +124,8 @@
parent_id
parent_id
FROM `cb_org_usr`
FROM `cb_org_usr`
WHERE is_delete = 0
WHERE is_delete = 0
and biz_org_type = "COMPANY"
and
(
biz_org_type = "COMPANY"
or biz_org_type = "DEPARTMENT"
or biz_org_type = "DEPARTMENT"
)
</select>
</select>
<select
id=
"queryOrgUsrListByBizOrgCode"
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.OrgUsr"
>
<select
id=
"queryOrgUsrListByBizOrgCode"
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.OrgUsr"
>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyShiftController.java
View file @
264ffc56
...
@@ -108,7 +108,7 @@ public class DutyShiftController extends BaseController {
...
@@ -108,7 +108,7 @@ public class DutyShiftController extends BaseController {
Page
<
DutyShiftDto
>
page
=
new
Page
<>();
Page
<
DutyShiftDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
dutyShiftServiceImpl
.
queryForDutyShiftPage
(
page
,
appKey
));
return
ResponseHelper
.
buildResponse
(
dutyShiftServiceImpl
.
queryForDutyShiftPage
(
page
,
appKey
,
false
));
}
}
/**
/**
...
@@ -121,6 +121,6 @@ public class DutyShiftController extends BaseController {
...
@@ -121,6 +121,6 @@ public class DutyShiftController extends BaseController {
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
DutyShiftDto
>>
selectForList
(
HttpServletRequest
request
)
{
public
ResponseModel
<
List
<
DutyShiftDto
>>
selectForList
(
HttpServletRequest
request
)
{
String
appKey
=
request
.
getHeader
(
"appKey"
);
String
appKey
=
request
.
getHeader
(
"appKey"
);
return
ResponseHelper
.
buildResponse
(
dutyShiftServiceImpl
.
queryForDutyShiftList
(
appKey
));
return
ResponseHelper
.
buildResponse
(
dutyShiftServiceImpl
.
queryForDutyShiftList
(
appKey
,
false
));
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyCommonServiceImpl.java
View file @
264ffc56
...
@@ -34,6 +34,7 @@ import java.util.stream.Collectors;
...
@@ -34,6 +34,7 @@ import java.util.stream.Collectors;
* @author DELL
* @author DELL
*/
*/
@Service
@Service
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
DutyCommonServiceImpl
implements
IDutyCommonService
{
public
class
DutyCommonServiceImpl
implements
IDutyCommonService
{
@Autowired
@Autowired
...
@@ -285,7 +286,6 @@ public class DutyCommonServiceImpl implements IDutyCommonService {
...
@@ -285,7 +286,6 @@ public class DutyCommonServiceImpl implements IDutyCommonService {
formInstance
.
setFieldValue
(
map
.
get
(
column
.
getFieldCode
())
!=
null
?
map
.
get
(
column
.
getFieldCode
()).
toString
()
:
""
);
formInstance
.
setFieldValue
(
map
.
get
(
column
.
getFieldCode
())
!=
null
?
map
.
get
(
column
.
getFieldCode
()).
toString
()
:
""
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
Boolean
deleteDutyData
(
Long
instanceId
)
{
public
Boolean
deleteDutyData
(
Long
instanceId
)
{
dynamicFormInstanceService
.
remove
(
new
LambdaQueryWrapper
<
DynamicFormInstance
>().
eq
(
DynamicFormInstance:
:
getInstanceId
,
instanceId
));
dynamicFormInstanceService
.
remove
(
new
LambdaQueryWrapper
<
DynamicFormInstance
>().
eq
(
DynamicFormInstance:
:
getInstanceId
,
instanceId
));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyShiftServiceImpl.java
View file @
264ffc56
...
@@ -21,14 +21,14 @@ public class DutyShiftServiceImpl extends BaseService<DutyShiftDto, DutyShift, D
...
@@ -21,14 +21,14 @@ public class DutyShiftServiceImpl extends BaseService<DutyShiftDto, DutyShift, D
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
DutyShiftDto
>
queryForDutyShiftPage
(
Page
<
DutyShiftDto
>
page
,
String
appKey
)
{
public
Page
<
DutyShiftDto
>
queryForDutyShiftPage
(
Page
<
DutyShiftDto
>
page
,
String
appKey
,
Boolean
isDelete
)
{
return
this
.
queryForPage
(
page
,
null
,
false
,
appKey
);
return
this
.
queryForPage
(
page
,
null
,
false
,
appKey
,
isDelete
);
}
}
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
DutyShiftDto
>
queryForDutyShiftList
(
String
appKey
)
{
public
List
<
DutyShiftDto
>
queryForDutyShiftList
(
String
appKey
,
Boolean
isDelete
)
{
return
this
.
queryForList
(
""
,
false
,
appKey
);
return
this
.
queryForList
(
""
,
false
,
appKey
,
isDelete
);
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/ExcelController.java
View file @
264ffc56
...
@@ -527,7 +527,7 @@ public class ExcelController extends BaseController {
...
@@ -527,7 +527,7 @@ public class ExcelController extends BaseController {
private
String
[]
getDutyNameList
()
{
private
String
[]
getDutyNameList
()
{
List
<
String
>
dutyShiftList
=
new
ArrayList
<>();
List
<
String
>
dutyShiftList
=
new
ArrayList
<>();
List
<
DutyShiftDto
>
dutyShiftDtoList
=
dutyShiftService
.
queryForDutyShiftList
(
null
);
List
<
DutyShiftDto
>
dutyShiftDtoList
=
dutyShiftService
.
queryForDutyShiftList
(
null
,
false
);
dutyShiftDtoList
.
forEach
(
item
->
dutyShiftList
.
add
(
item
.
getName
()
+
"@"
+
item
.
getSequenceNbr
()));
dutyShiftDtoList
.
forEach
(
item
->
dutyShiftList
.
add
(
item
.
getName
()
+
"@"
+
item
.
getSequenceNbr
()));
String
[]
dutyNameList
=
dutyShiftList
.
toArray
(
new
String
[
dutyShiftList
.
size
()]);
String
[]
dutyNameList
=
dutyShiftList
.
toArray
(
new
String
[
dutyShiftList
.
size
()]);
return
dutyNameList
;
return
dutyNameList
;
...
...
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