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
a42121c8
Commit
a42121c8
authored
Jul 07, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
迁移文件
parent
2539a558
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
828 additions
and
207 deletions
+828
-207
DynamicFormInitDto.java
...n/amos/boot/module/common/api/dto/DynamicFormInitDto.java
+0
-1
AlertCalledObjsDto.java
...join/amos/boot/module/jcs/api/dto/AlertCalledObjsDto.java
+1
-1
AlertFormDto.java
...om/yeejoin/amos/boot/module/jcs/api/dto/AlertFormDto.java
+1
-1
AlertFormInitDto.java
...eejoin/amos/boot/module/jcs/api/dto/AlertFormInitDto.java
+2
-2
AlertFormTypeDto.java
...eejoin/amos/boot/module/jcs/api/dto/AlertFormTypeDto.java
+1
-1
AlertFormValueDto.java
...ejoin/amos/boot/module/jcs/api/dto/AlertFormValueDto.java
+1
-1
AlertListvalue.java
.../yeejoin/amos/boot/module/jcs/api/dto/AlertListvalue.java
+1
-1
Items.java
.../java/com/yeejoin/amos/boot/module/jcs/api/dto/Items.java
+1
-1
AlertForm.java
...om/yeejoin/amos/boot/module/jcs/api/entity/AlertForm.java
+1
-1
AlertFormType.java
...eejoin/amos/boot/module/jcs/api/entity/AlertFormType.java
+1
-1
AlertFormValue.java
...ejoin/amos/boot/module/jcs/api/entity/AlertFormValue.java
+1
-1
AlertFormMapper.java
...join/amos/boot/module/jcs/api/mapper/AlertFormMapper.java
+2
-2
AlertFormTypeMapper.java
.../amos/boot/module/jcs/api/mapper/AlertFormTypeMapper.java
+2
-2
AlertFormValueMapper.java
...amos/boot/module/jcs/api/mapper/AlertFormValueMapper.java
+5
-5
IAlertFormService.java
...n/amos/boot/module/jcs/api/service/IAlertFormService.java
+1
-1
IAlertFormTypeService.java
...os/boot/module/jcs/api/service/IAlertFormTypeService.java
+1
-1
IAlertFormValueService.java
...s/boot/module/jcs/api/service/IAlertFormValueService.java
+1
-1
AlertFormMapper.xml
...ule-jcs-api/src/main/resources/mapper/AlertFormMapper.xml
+1
-1
AlertFormTypeMapper.xml
...jcs-api/src/main/resources/mapper/AlertFormTypeMapper.xml
+1
-1
AlertFormValueMapper.xml
...cs-api/src/main/resources/mapper/AlertFormValueMapper.xml
+2
-2
AlertFormController.java
...oot/module/common/biz/controller/AlertFormController.java
+0
-0
AlertFormTypeController.java
...module/common/biz/controller/AlertFormTypeController.java
+0
-0
AlertFormValueController.java
...odule/common/biz/controller/AlertFormValueController.java
+0
-0
OrgDepartmentController.java
...module/common/biz/controller/OrgDepartmentController.java
+1
-3
OrgPersonController.java
...oot/module/common/biz/controller/OrgPersonController.java
+1
-3
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+1
-4
AlertFormServiceImpl.java
.../module/common/biz/service/impl/AlertFormServiceImpl.java
+104
-104
AlertFormTypeServiceImpl.java
...ule/common/biz/service/impl/AlertFormTypeServiceImpl.java
+20
-20
AlertFormValueServiceImpl.java
...le/common/biz/service/impl/AlertFormValueServiceImpl.java
+35
-35
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+0
-2
AlertCalledController.java
...boot/module/jcs/biz/controller/AlertCalledController.java
+2
-2
AlertFormController.java
...s/boot/module/jcs/biz/controller/AlertFormController.java
+184
-0
AlertFormTypeController.java
...ot/module/jcs/biz/controller/AlertFormTypeController.java
+146
-0
AlertFormValueController.java
...t/module/jcs/biz/controller/AlertFormValueController.java
+143
-0
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+1
-2
AlertFormServiceImpl.java
...oot/module/jcs/biz/service/impl/AlertFormServiceImpl.java
+105
-0
AlertFormTypeServiceImpl.java
...module/jcs/biz/service/impl/AlertFormTypeServiceImpl.java
+20
-0
AlertFormValueServiceImpl.java
...odule/jcs/biz/service/impl/AlertFormValueServiceImpl.java
+35
-0
AlertSubmittedServiceImpl.java
...odule/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
+1
-1
PowerTransferServiceImpl.java
...module/jcs/biz/service/impl/PowerTransferServiceImpl.java
+1
-2
RuleAlertCalledService.java
...t/module/jcs/biz/service/impl/RuleAlertCalledService.java
+1
-1
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/dto/DynamicFormInitDto.java
View file @
a42121c8
...
@@ -2,7 +2,6 @@ package com.yeejoin.amos.boot.module.common.api.dto;
...
@@ -2,7 +2,6 @@ package com.yeejoin.amos.boot.module.common.api.dto;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/AlertCalledObjsDto.java
View file @
a42121c8
...
@@ -3,8 +3,8 @@ package com.yeejoin.amos.boot.module.jcs.api.dto;
...
@@ -3,8 +3,8 @@ package com.yeejoin.amos.boot.module.jcs.api.dto;
import
java.util.List
;
import
java.util.List
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/dto/AlertFormDto.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/dto/AlertFormDto.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/dto/AlertFormInitDto.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/dto/AlertFormInitDto.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.yeejoin.amos.boot.module.
common
.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.
jcs
.api.entity.AlertFormValue
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/dto/AlertFormTypeDto.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/dto/AlertFormTypeDto.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/dto/AlertFormValueDto.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/dto/AlertFormValueDto.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/dto/AlertListvalue.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/dto/AlertListvalue.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
/*
/*
*
*
* 下拉表单值
* 下拉表单值
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/dto/Items.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/dto/Items.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/entity/AlertForm.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/entity/AlertForm.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/entity/AlertFormType.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/entity/AlertFormType.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/entity/AlertFormValue.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/entity/AlertFormValue.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/mapper/AlertFormMapper.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/mapper/AlertFormMapper.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.
common
.api.entity.AlertForm
;
import
com.yeejoin.amos.boot.module.
jcs
.api.entity.AlertForm
;
/**
/**
* 警情表单 Mapper 接口
* 警情表单 Mapper 接口
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/mapper/AlertFormTypeMapper.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/mapper/AlertFormTypeMapper.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.
common
.api.entity.AlertFormType
;
import
com.yeejoin.amos.boot.module.
jcs
.api.entity.AlertFormType
;
/**
/**
* 动态表单类型 Mapper 接口
* 动态表单类型 Mapper 接口
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/mapper/AlertFormValueMapper.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/mapper/AlertFormValueMapper.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.common.api.dto.AlertFormValueDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
import
java.util.List
;
import
java.util.List
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertFormValueDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
/**
/**
* Mapper 接口
* Mapper 接口
*
*
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/service/IAlertFormService.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/service/IAlertFormService.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
service
;
/**
/**
* 警情表单 服务类
* 警情表单 服务类
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/service/IAlertFormTypeService.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/service/IAlertFormTypeService.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
service
;
/**
/**
* 动态表单类型 服务类
* 动态表单类型 服务类
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common-api/src/main/java/com/yeejoin/amos/boot/module/common
/api/service/IAlertFormValueService.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs
/api/service/IAlertFormValueService.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
service
;
/**
/**
* 服务类
* 服务类
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-
common
-api/src/main/resources/mapper/AlertFormMapper.xml
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs
-api/src/main/resources/mapper/AlertFormMapper.xml
View file @
a42121c8
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.
common
.api.mapper.AlertFormMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.
jcs
.api.mapper.AlertFormMapper"
>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-
common
-api/src/main/resources/mapper/AlertFormTypeMapper.xml
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs
-api/src/main/resources/mapper/AlertFormTypeMapper.xml
View file @
a42121c8
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.
common
.api.mapper.AlertFormTypeMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.
jcs
.api.mapper.AlertFormTypeMapper"
>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-
common
-api/src/main/resources/mapper/AlertFormValueMapper.xml
→
amos-boot-module/amos-boot-module-api/amos-boot-module-
jcs
-api/src/main/resources/mapper/AlertFormValueMapper.xml
View file @
a42121c8
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.
common
.api.mapper.AlertFormValueMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.
jcs
.api.mapper.AlertFormValueMapper"
>
<select
id=
"selectListByCalledId"
resultType=
"com.yeejoin.amos.boot.module.
common
.api.dto.AlertFormValueDto"
>
<select
id=
"selectListByCalledId"
resultType=
"com.yeejoin.amos.boot.module.
jcs
.api.dto.AlertFormValueDto"
>
SELECT
SELECT
v.sequence_nbr sequenceNbr,
v.sequence_nbr sequenceNbr,
v.alert_form_id alertFormId,
v.alert_form_id alertFormId,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/AlertFormController.java
View file @
a42121c8
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/AlertFormTypeController.java
View file @
a42121c8
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/AlertFormValueController.java
View file @
a42121c8
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgDepartmentController.java
View file @
a42121c8
...
@@ -25,7 +25,6 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
...
@@ -25,7 +25,6 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgDepartmentDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgDepartmentDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgDepartmentFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgDepartmentFormDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.AlertFormValueServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -41,8 +40,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -41,8 +40,7 @@ import io.swagger.annotations.ApiOperation;
public
class
OrgDepartmentController
{
public
class
OrgDepartmentController
{
@Autowired
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
OrgUsrServiceImpl
iOrgUsrService
;
@Autowired
AlertFormValueServiceImpl
iAlertFromValueService
;
/**
/**
* 新增部门信息
* 新增部门信息
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgPersonController.java
View file @
a42121c8
...
@@ -5,7 +5,6 @@ import com.yeejoin.amos.boot.biz.common.constants.CommonConstant;
...
@@ -5,7 +5,6 @@ import com.yeejoin.amos.boot.biz.common.constants.CommonConstant;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.module.common.api.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.AlertFormValueServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -35,8 +34,7 @@ import java.util.Map;
...
@@ -35,8 +34,7 @@ import java.util.Map;
public
class
OrgPersonController
{
public
class
OrgPersonController
{
@Autowired
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
OrgUsrServiceImpl
iOrgUsrService
;
@Autowired
AlertFormValueServiceImpl
iAlertFromValueService
;
/**
/**
* 新增人员信息
* 新增人员信息
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
a42121c8
...
@@ -31,7 +31,6 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgMenuDto;
...
@@ -31,7 +31,6 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgMenuDto;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrFormDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.AlertFormValueServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -51,9 +50,7 @@ public class OrgUsrController extends BaseController {
...
@@ -51,9 +50,7 @@ public class OrgUsrController extends BaseController {
@Autowired
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
OrgUsrServiceImpl
iOrgUsrService
;
@Autowired
AlertFormValueServiceImpl
iAlertFromValueService
;
/**
/**
* 新增单位信息
* 新增单位信息
*
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/AlertFormServiceImpl.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
//
package com.yeejoin.amos.boot.module.common.biz.service.impl;
//
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
//
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.yeejoin.amos.boot.module.common.api.dto.AlertFormDto
;
//
import com.yeejoin.amos.boot.module.common.api.dto.AlertFormDto;
import
com.yeejoin.amos.boot.module.common.api.dto.AlertFormInitDto
;
//
import com.yeejoin.amos.boot.module.common.api.dto.AlertFormInitDto;
import
com.yeejoin.amos.boot.module.common.api.dto.AlertListvalue
;
//
import com.yeejoin.amos.boot.module.common.api.dto.AlertListvalue;
import
com.yeejoin.amos.boot.module.common.api.dto.Items
;
//
import com.yeejoin.amos.boot.module.common.api.dto.Items;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertForm
;
//
import com.yeejoin.amos.boot.module.common.api.entity.AlertForm;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
//
import com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue;
import
com.yeejoin.amos.boot.module.common.api.entity.DataDictionary
;
//
import com.yeejoin.amos.boot.module.common.api.entity.DataDictionary;
import
com.yeejoin.amos.boot.module.common.api.mapper.AlertFormMapper
;
//
import com.yeejoin.amos.boot.module.common.api.mapper.AlertFormMapper;
import
com.yeejoin.amos.boot.module.common.api.service.IAlertFormService
;
//
import com.yeejoin.amos.boot.module.common.api.service.IAlertFormService;
//
import
org.springframework.beans.factory.annotation.Autowired
;
//
import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
//
import org.springframework.stereotype.Service;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
//
import org.typroject.tyboot.core.rdbms.service.BaseService;
//
import
java.text.SimpleDateFormat
;
//
import java.text.SimpleDateFormat;
import
java.util.ArrayList
;
//
import java.util.ArrayList;
import
java.util.Collection
;
//
import java.util.Collection;
import
java.util.Date
;
//
import java.util.Date;
import
java.util.List
;
//
import java.util.List;
import
java.util.stream.Collectors
;
//
import java.util.stream.Collectors;
//
/**
/
//
**
* 警情表单 服务实现类
//
* 警情表单 服务实现类
*
//
*
* @author tb
//
* @author tb
* @date 2021-06-17
//
* @date 2021-06-17
*/
//
*/
@Service
//
@Service
public
class
AlertFormServiceImpl
extends
BaseService
<
AlertFormDto
,
AlertForm
,
AlertFormMapper
>
//
public class AlertFormServiceImpl extends BaseService<AlertFormDto, AlertForm, AlertFormMapper>
implements
IAlertFormService
{
//
implements IAlertFormService {
@Autowired
//
@Autowired
DataDictionaryServiceImpl
iDataDictionaryService
;
//
DataDictionaryServiceImpl iDataDictionaryService;
//
public
List
<
AlertFormInitDto
>
getFormlist
(
String
code
)
{
//
public List<AlertFormInitDto> getFormlist(String code) {
//
QueryWrapper
<
AlertForm
>
queryWrapper
=
new
QueryWrapper
<>();
//
QueryWrapper<AlertForm> queryWrapper = new QueryWrapper<>();
queryWrapper
.
eq
(
"alert_type_code"
,
code
);
//
queryWrapper.eq("alert_type_code", code);
queryWrapper
.
orderByAsc
(
"sort_num"
);
//
queryWrapper.orderByAsc("sort_num");
List
<
AlertForm
>
alertFormValue
=
this
.
list
(
queryWrapper
);
//
List<AlertForm> alertFormValue = this.list(queryWrapper);
List
<
AlertFormInitDto
>
listfrom
=
new
ArrayList
<
AlertFormInitDto
>();
//
List<AlertFormInitDto> listfrom = new ArrayList<AlertFormInitDto>();
// 组装数据
//
// 组装数据
for
(
AlertForm
alertFrom
:
alertFormValue
)
{
//
for (AlertForm alertFrom : alertFormValue) {
if
(
alertFrom
.
getFieldType
().
equals
(
"string"
)
||
alertFrom
.
getFieldType
().
equals
(
"datetime"
)
//
if (alertFrom.getFieldType().equals("string") || alertFrom.getFieldType().equals("datetime")
||
alertFrom
.
getFieldType
().
equals
(
"textarea"
)
||
alertFrom
.
getFieldType
().
equals
(
"inputBitmap"
))
{
//
|| alertFrom.getFieldType().equals("textarea") || alertFrom.getFieldType().equals("inputBitmap")) {
//
AlertFormInitDto
vo
=
new
AlertFormInitDto
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
//
AlertFormInitDto vo = new AlertFormInitDto(alertFrom.getFieldCode(), alertFrom.getFieldName(),
alertFrom
.
getFieldType
(),
null
,
alertFrom
.
getUrl
());
//
alertFrom.getFieldType(), null, alertFrom.getUrl());
AlertFormValue
alertFormValu
=
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
//
AlertFormValue alertFormValu = new AlertFormValue(alertFrom.getSequenceNbr(), alertFrom.getFieldName(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
(),
null
,
null
);
//
alertFrom.getFieldCode(), alertFrom.getBlock(), alertFrom.getAlertTypeCode(), null, null);
//
if
(
alertFrom
.
getFieldType
().
equals
(
"datetime"
))
{
//
if (alertFrom.getFieldType().equals("datetime")) {
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
//
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date
date
=
new
Date
();
//
Date date = new Date();
String
dateString
=
formatter
.
format
(
date
);
//
String dateString = formatter.format(date);
alertFormValu
.
setFieldValue
(
dateString
);
//
alertFormValu.setFieldValue(dateString);
vo
.
setDefaultValue
(
date
);
//
vo.setDefaultValue(date);
}
//
}
vo
.
setFormItemDescr
(
alertFormValu
);
//
vo.setFormItemDescr(alertFormValu);
listfrom
.
add
(
vo
);
//
listfrom.add(vo);
}
else
{
//
} else {
// 查询数据项
//
// 查询数据项
QueryWrapper
<
DataDictionary
>
queryWrappercolumnMap
=
new
QueryWrapper
<>();
//
QueryWrapper<DataDictionary> queryWrappercolumnMap = new QueryWrapper<>();
queryWrappercolumnMap
.
eq
(
"type"
,
alertFrom
.
getFieldValueCode
());
//
queryWrappercolumnMap.eq("type", alertFrom.getFieldValueCode());
queryWrappercolumnMap
.
orderByAsc
(
"sort_num"
);
//
queryWrappercolumnMap.orderByAsc("sort_num");
Collection
<
DataDictionary
>
listDataDictionary
=
iDataDictionaryService
.
list
(
queryWrappercolumnMap
);
//
Collection<DataDictionary> listDataDictionary = iDataDictionaryService.list(queryWrappercolumnMap);
List
<
AlertListvalue
>
list
=
getdata
(
listDataDictionary
);
//
List<AlertListvalue> list = getdata(listDataDictionary);
AlertFormInitDto
vo
=
new
AlertFormInitDto
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
//
AlertFormInitDto vo = new AlertFormInitDto(alertFrom.getFieldCode(), alertFrom.getFieldName(),
alertFrom
.
getFieldType
(),
new
Items
(
list
),
alertFrom
.
getUrl
());
//
alertFrom.getFieldType(), new Items(list), alertFrom.getUrl());
AlertFormValue
alertFormValu
=
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
//
AlertFormValue alertFormValu = new AlertFormValue(alertFrom.getSequenceNbr(), alertFrom.getFieldName(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
(),
null
,
null
);
//
alertFrom.getFieldCode(), alertFrom.getBlock(), alertFrom.getAlertTypeCode(), null, null);
if
(
alertFrom
.
getFieldType
().
equals
(
"radio"
))
{
//
if (alertFrom.getFieldType().equals("radio")) {
vo
.
setDefaultValue
(
list
.
get
(
0
).
getValue
());
//
vo.setDefaultValue(list.get(0).getValue());
alertFormValu
.
setFieldValue
(
list
.
get
(
0
).
getLabel
());
//
alertFormValu.setFieldValue(list.get(0).getLabel());
alertFormValu
.
setFieldValueCode
(
list
.
get
(
0
).
getValue
());
//
alertFormValu.setFieldValueCode(list.get(0).getValue());
}
//
}
//
vo
.
setFormItemDescr
(
alertFormValu
);
//
vo.setFormItemDescr(alertFormValu);
listfrom
.
add
(
vo
);
//
listfrom.add(vo);
}
//
}
}
//
}
return
listfrom
;
//
return listfrom;
}
//
}
//
public
List
<
AlertListvalue
>
getdata
(
Collection
<
DataDictionary
>
list
)
{
//
public List<AlertListvalue> getdata(Collection<DataDictionary> list) {
List
<
AlertListvalue
>
listAlertListvalue
=
new
ArrayList
<
AlertListvalue
>();
//
List<AlertListvalue> listAlertListvalue = new ArrayList<AlertListvalue>();
for
(
DataDictionary
dataDictionary
:
list
)
{
//
for (DataDictionary dataDictionary : list) {
//
listAlertListvalue
.
add
(
new
AlertListvalue
(
dataDictionary
.
getSequenceNbr
().
toString
(),
//
listAlertListvalue.add(new AlertListvalue(dataDictionary.getSequenceNbr().toString(),
dataDictionary
.
getName
(),
dataDictionary
.
getCode
()));
//
dataDictionary.getName(), dataDictionary.getCode()));
}
//
}
return
listAlertListvalue
;
//
return listAlertListvalue;
}
//
}
//
public
List
<
String
>
queryListByFormId
(
String
groupId
)
{
//
public List<String> queryListByFormId(String groupId) {
return
this
.
queryListByTypeCode
(
groupId
).
stream
().
map
(
c
->
c
.
getFieldCode
()).
collect
(
Collectors
.
toList
());
//
return this.queryListByTypeCode(groupId).stream().map(c -> c.getFieldCode()).collect(Collectors.toList());
}
//
}
//
public
List
<
AlertFormDto
>
queryListByTypeCode
(
String
groupId
)
{
//
public List<AlertFormDto> queryListByTypeCode(String groupId) {
return
this
.
queryForList
(
null
,
false
,
groupId
);
//
return this.queryForList(null, false, groupId);
}
//
}
}
//
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/AlertFormTypeServiceImpl.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
//
package com.yeejoin.amos.boot.module.common.biz.service.impl;
//
import
com.yeejoin.amos.boot.module.common.api.dto.AlertFormTypeDto
;
//
import com.yeejoin.amos.boot.module.common.api.dto.AlertFormTypeDto;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormType
;
//
import com.yeejoin.amos.boot.module.common.api.entity.AlertFormType;
import
com.yeejoin.amos.boot.module.common.api.mapper.AlertFormTypeMapper
;
//
import com.yeejoin.amos.boot.module.common.api.mapper.AlertFormTypeMapper;
import
com.yeejoin.amos.boot.module.common.api.service.IAlertFormTypeService
;
//
import com.yeejoin.amos.boot.module.common.api.service.IAlertFormTypeService;
//
import
org.springframework.stereotype.Service
;
//
import org.springframework.stereotype.Service;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
//
import org.typroject.tyboot.core.rdbms.service.BaseService;
//
/**
/
//
**
* 动态表单类型 服务实现类
//
* 动态表单类型 服务实现类
*
//
*
* @author tb
//
* @author tb
* @date 2021-06-17
//
* @date 2021-06-17
*/
//
*/
@Service
//
@Service
public
class
AlertFormTypeServiceImpl
extends
BaseService
<
AlertFormTypeDto
,
AlertFormType
,
AlertFormTypeMapper
>
implements
IAlertFormTypeService
{
//
public class AlertFormTypeServiceImpl extends BaseService<AlertFormTypeDto, AlertFormType,AlertFormTypeMapper> implements IAlertFormTypeService {
//
}
//
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/AlertFormValueServiceImpl.java
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
//
package com.yeejoin.amos.boot.module.common.biz.service.impl;
//
import
java.util.List
;
//
import java.util.List;
//
import
org.springframework.beans.factory.annotation.Autowired
;
//
import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
//
import org.springframework.stereotype.Service;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
//
import org.typroject.tyboot.core.rdbms.service.BaseService;
//
import
com.yeejoin.amos.boot.module.common.api.dto.AlertFormValueDto
;
//
import com.yeejoin.amos.boot.module.common.api.dto.AlertFormValueDto;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
//
import com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue;
import
com.yeejoin.amos.boot.module.common.api.mapper.AlertFormValueMapper
;
//
import com.yeejoin.amos.boot.module.common.api.mapper.AlertFormValueMapper;
import
com.yeejoin.amos.boot.module.common.api.service.IAlertFormValueService
;
//
import com.yeejoin.amos.boot.module.common.api.service.IAlertFormValueService;
//
//
/**
/
//
**
* 服务实现类
//
* 服务实现类
*
//
*
* @author tb
//
* @author tb
* @date 2021-06-17
//
* @date 2021-06-17
*/
//
*/
@Service
//
@Service
public
class
AlertFormValueServiceImpl
extends
BaseService
<
AlertFormValueDto
,
AlertFormValue
,
AlertFormValueMapper
>
implements
IAlertFormValueService
{
//
public class AlertFormValueServiceImpl extends BaseService<AlertFormValueDto,AlertFormValue,AlertFormValueMapper> implements IAlertFormValueService {
//
@Autowired
//
@Autowired
private
AlertFormValueMapper
alertFormValueMapper
;
//
private AlertFormValueMapper alertFormValueMapper;
//
public
List
<
AlertFormValueDto
>
queryByCalledId
(
Long
alertCalledId
)
{
//
public List<AlertFormValueDto> queryByCalledId(Long alertCalledId) {
return
this
.
queryForList
(
null
,
false
,
alertCalledId
);
//
return this.queryForList(null, false, alertCalledId);
}
//
}
//
public
List
<
AlertFormValueDto
>
listByCalledId
(
Long
id
)
{
//
public List<AlertFormValueDto> listByCalledId(Long id) {
return
alertFormValueMapper
.
selectListByCalledId
(
id
);
//
return alertFormValueMapper.selectListByCalledId(id);
}
//
}
//
}
//
}
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 @
a42121c8
...
@@ -27,7 +27,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...
@@ -27,7 +27,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
import
com.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
import
com.yeejoin.amos.boot.module.common.api.dto.AlertFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DynamicFormColumnDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DynamicFormColumnDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DynamicFormInstanceDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DynamicFormInstanceDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.ExcelOrgPersonDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.ExcelOrgPersonDto
;
...
@@ -39,7 +38,6 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgPersonDto;
...
@@ -39,7 +38,6 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgPersonDto;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgPersonFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgPersonFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrFormDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertForm
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormColumn
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormColumn
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertCalledController.java
View file @
a42121c8
...
@@ -38,14 +38,14 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
...
@@ -38,14 +38,14 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.AlertFormValueServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledFormDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledFormDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledRequestDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledRequestDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertCalledServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertCalledServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormValueServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.ESAlertCalledService
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.ESAlertCalledService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertFormController.java
0 → 100644
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertFormInitDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertForm
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
/**
* 警情表单
*
* @author tb
* @date 2021-06-17
*/
@RestController
@Api
(
tags
=
"警情表单Api"
)
@RequestMapping
(
value
=
"/alert-form"
)
public
class
AlertFormController
extends
BaseController
{
@Autowired
AlertFormServiceImpl
iAlertFormService
;
@Autowired
RedisUtils
redisUtils
;
@Value
(
"${redis.cache.failure.time}"
)
private
long
time
;
/**
* 新增警情表单
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增警情表单"
,
notes
=
"新增警情表单"
)
public
boolean
saveAlertForm
(
HttpServletRequest
request
,
@RequestBody
AlertForm
alertForm
){
return
iAlertFormService
.
save
(
alertForm
);
}
/**
* 根据id删除
* @param id
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据id删除"
,
notes
=
"根据id删除"
)
public
boolean
deleteById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iAlertFormService
.
removeById
(
id
);
}
/**
* 修改警情表单
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改警情表单"
,
notes
=
"修改警情表单"
)
public
boolean
updateByIdAlertForm
(
HttpServletRequest
request
,
@RequestBody
AlertForm
alertForm
){
return
iAlertFormService
.
updateById
(
alertForm
);
}
/**
* 根据id查询
* @param id
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
AlertForm
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iAlertFormService
.
getById
(
id
);
}
/**
* 根据表态类型code查询表单数据项
* @param id
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/form/{code}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据表态类型code查询表单数据项"
,
notes
=
"根据表态类型code查询表单数据项"
)
public
ResponseModel
<
Object
>
selectFormdItem
(
HttpServletRequest
request
,
@PathVariable
String
code
){
List
<
AlertFormInitDto
>
list
=
new
ArrayList
<
AlertFormInitDto
>();
if
(
redisUtils
.
hasKey
(
RedisKey
.
FORM_CODE
+
code
)){
Object
obj
=
redisUtils
.
get
(
RedisKey
.
FORM_CODE
+
code
);
return
ResponseHelper
.
buildResponse
(
obj
);
}
else
{
list
=
iAlertFormService
.
getFormlist
(
code
);
redisUtils
.
set
(
RedisKey
.
FORM_CODE
+
code
,
JSON
.
toJSON
(
list
),
time
);
return
ResponseHelper
.
buildResponse
(
list
);
}
}
/**
* 列表分页查询
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
public
IPage
<
AlertForm
>
listPage
(
String
pageNum
,
String
pageSize
,
AlertForm
alertForm
){
Page
<
AlertForm
>
pageBean
;
QueryWrapper
<
AlertForm
>
alertFormQueryWrapper
=
new
QueryWrapper
<>();
Class
<?
extends
AlertForm
>
aClass
=
alertForm
.
getClass
();
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
try
{
field
.
setAccessible
(
true
);
Object
o
=
field
.
get
(
alertForm
);
if
(
o
!=
null
)
{
Class
<?>
type
=
field
.
getType
();
String
name
=
NameUtils
.
camel2Underline
(
field
.
getName
());
if
(
type
.
equals
(
Integer
.
class
))
{
Integer
fileValue
=
(
Integer
)
field
.
get
(
alertForm
);
alertFormQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
Long
.
class
))
{
Long
fileValue
=
(
Long
)
field
.
get
(
alertForm
);
alertFormQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
String
.
class
))
{
String
fileValue
=
(
String
)
field
.
get
(
alertForm
);
alertFormQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
{
String
fileValue
=
(
String
)
field
.
get
(
alertForm
);
alertFormQueryWrapper
.
eq
(
name
,
fileValue
);
}
}
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"系统异常"
);
}
});
IPage
<
AlertForm
>
page
;
if
(
StringUtils
.
isBlank
(
pageNum
)
||
StringUtils
.
isBlank
(
pageSize
))
{
pageBean
=
new
Page
<>(
0
,
Long
.
MAX_VALUE
);
}
else
{
pageBean
=
new
Page
<>(
Integer
.
parseInt
(
pageNum
),
Integer
.
parseInt
(
pageSize
));
}
page
=
iAlertFormService
.
page
(
pageBean
,
alertFormQueryWrapper
);
return
page
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertFormTypeController.java
0 → 100644
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
java.util.Arrays
;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormType
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormTypeServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
/**
* 动态表单类型
*
* @author tb
* @date 2021-06-17
*/
@RestController
@Api
(
tags
=
"动态表单类型Api"
)
@RequestMapping
(
value
=
"/alert-Form-type"
)
public
class
AlertFormTypeController
extends
BaseController
{
@Autowired
AlertFormTypeServiceImpl
iAlertFormTypeService
;
/**
* 新增动态表单类型
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增动态表单类型"
,
notes
=
"新增动态表单类型"
)
public
boolean
saveAlertFormType
(
HttpServletRequest
request
,
@RequestBody
AlertFormType
alertFormType
){
return
iAlertFormTypeService
.
save
(
alertFormType
);
}
/**
* 根据id删除
* @param id
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据id删除"
,
notes
=
"根据id删除"
)
public
boolean
deleteById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iAlertFormTypeService
.
removeById
(
id
);
}
/**
* 修改动态表单类型
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改动态表单类型"
,
notes
=
"修改动态表单类型"
)
public
boolean
updateByIdAlertFormType
(
HttpServletRequest
request
,
@RequestBody
AlertFormType
alertFormType
){
return
iAlertFormTypeService
.
updateById
(
alertFormType
);
}
/**
* 根据id查询
* @param id
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
AlertFormType
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iAlertFormTypeService
.
getById
(
id
);
}
/**
* 列表分页查询
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
public
IPage
<
AlertFormType
>
listPage
(
String
pageNum
,
String
pageSize
,
AlertFormType
alertFormType
){
Page
<
AlertFormType
>
pageBean
;
QueryWrapper
<
AlertFormType
>
alertFormTypeQueryWrapper
=
new
QueryWrapper
<>();
Class
<?
extends
AlertFormType
>
aClass
=
alertFormType
.
getClass
();
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
try
{
field
.
setAccessible
(
true
);
Object
o
=
field
.
get
(
alertFormType
);
if
(
o
!=
null
)
{
Class
<?>
type
=
field
.
getType
();
String
name
=
NameUtils
.
camel2Underline
(
field
.
getName
());
if
(
type
.
equals
(
Integer
.
class
))
{
Integer
fileValue
=
(
Integer
)
field
.
get
(
alertFormType
);
alertFormTypeQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
Long
.
class
))
{
Long
fileValue
=
(
Long
)
field
.
get
(
alertFormType
);
alertFormTypeQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
String
.
class
))
{
String
fileValue
=
(
String
)
field
.
get
(
alertFormType
);
alertFormTypeQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
{
if
(!
name
.
equals
(
NameUtils
.
camel2Underline
(
"serialVersionUID"
)))
{
String
fileValue
=
(
String
)
field
.
get
(
alertFormType
);
alertFormTypeQueryWrapper
.
eq
(
name
,
fileValue
);
}
}
}
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"系统异常"
);
}
});
IPage
<
AlertFormType
>
page
;
if
(
StringUtils
.
isBlank
(
pageNum
)
||
StringUtils
.
isBlank
(
pageSize
))
{
pageBean
=
new
Page
<>(
0
,
Long
.
MAX_VALUE
);
}
else
{
pageBean
=
new
Page
<>(
Integer
.
parseInt
(
pageNum
),
Integer
.
parseInt
(
pageSize
));
}
page
=
iAlertFormTypeService
.
page
(
pageBean
,
alertFormTypeQueryWrapper
);
return
page
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertFormValueController.java
0 → 100644
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
java.util.Arrays
;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormValueServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
/**
*
*
* @author tb
* @date 2021-06-17
*/
@RestController
@Api
(
tags
=
"Api"
)
@RequestMapping
(
value
=
"/alert-Form-value"
)
public
class
AlertFormValueController
extends
BaseController
{
@Autowired
AlertFormValueServiceImpl
iAlertFormValueService
;
/**
* 新增
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
boolean
saveAlertFormValue
(
HttpServletRequest
request
,
@RequestBody
AlertFormValue
alertFormValue
){
return
iAlertFormValueService
.
save
(
alertFormValue
);
}
/**
* 根据id删除
* @param id
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据id删除"
,
notes
=
"根据id删除"
)
public
boolean
deleteById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iAlertFormValueService
.
removeById
(
id
);
}
/**
* 修改
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改"
,
notes
=
"修改"
)
public
boolean
updateByIdAlertFormValue
(
HttpServletRequest
request
,
@RequestBody
AlertFormValue
alertFormValue
){
return
iAlertFormValueService
.
updateById
(
alertFormValue
);
}
/**
* 根据id查询
* @param id
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
AlertFormValue
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iAlertFormValueService
.
getById
(
id
);
}
/**
* 列表分页查询
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
public
IPage
<
AlertFormValue
>
listPage
(
String
pageNum
,
String
pageSize
,
AlertFormValue
alertFormValue
){
Page
<
AlertFormValue
>
pageBean
;
QueryWrapper
<
AlertFormValue
>
alertFormValueQueryWrapper
=
new
QueryWrapper
<>();
Class
<?
extends
AlertFormValue
>
aClass
=
alertFormValue
.
getClass
();
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
try
{
field
.
setAccessible
(
true
);
Object
o
=
field
.
get
(
alertFormValue
);
if
(
o
!=
null
)
{
Class
<?>
type
=
field
.
getType
();
String
name
=
NameUtils
.
camel2Underline
(
field
.
getName
());
if
(
type
.
equals
(
Integer
.
class
))
{
Integer
fileValue
=
(
Integer
)
field
.
get
(
alertFormValue
);
alertFormValueQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
Long
.
class
))
{
Long
fileValue
=
(
Long
)
field
.
get
(
alertFormValue
);
alertFormValueQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
String
.
class
))
{
String
fileValue
=
(
String
)
field
.
get
(
alertFormValue
);
alertFormValueQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
{
String
fileValue
=
(
String
)
field
.
get
(
alertFormValue
);
alertFormValueQueryWrapper
.
eq
(
name
,
fileValue
);
}
}
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"系统异常"
);
}
});
IPage
<
AlertFormValue
>
page
;
if
(
StringUtils
.
isBlank
(
pageNum
)
||
StringUtils
.
isBlank
(
pageSize
))
{
pageBean
=
new
Page
<>(
0
,
Long
.
MAX_VALUE
);
}
else
{
pageBean
=
new
Page
<>(
Integer
.
parseInt
(
pageNum
),
Integer
.
parseInt
(
pageSize
));
}
page
=
iAlertFormValueService
.
page
(
pageBean
,
alertFormValueQueryWrapper
);
return
page
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
View file @
a42121c8
...
@@ -13,11 +13,10 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
...
@@ -13,11 +13,10 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.AlertFormValueServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.AlertCalledMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.AlertCalledMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertCalledService
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertCalledService
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertFormServiceImpl.java
0 → 100644
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.module.common.api.entity.DataDictionary
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertFormDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertFormInitDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertListvalue
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.Items
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertForm
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.AlertFormMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertFormService
;
/**
* 警情表单 服务实现类
*
* @author tb
* @date 2021-06-17
*/
@Service
public
class
AlertFormServiceImpl
extends
BaseService
<
AlertFormDto
,
AlertForm
,
AlertFormMapper
>
implements
IAlertFormService
{
@Autowired
DataDictionaryServiceImpl
iDataDictionaryService
;
public
List
<
AlertFormInitDto
>
getFormlist
(
String
code
)
{
QueryWrapper
<
AlertForm
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"alert_type_code"
,
code
);
queryWrapper
.
orderByAsc
(
"sort_num"
);
List
<
AlertForm
>
alertFormValue
=
this
.
list
(
queryWrapper
);
List
<
AlertFormInitDto
>
listfrom
=
new
ArrayList
<
AlertFormInitDto
>();
// 组装数据
for
(
AlertForm
alertFrom
:
alertFormValue
)
{
if
(
alertFrom
.
getFieldType
().
equals
(
"string"
)
||
alertFrom
.
getFieldType
().
equals
(
"datetime"
)
||
alertFrom
.
getFieldType
().
equals
(
"textarea"
)
||
alertFrom
.
getFieldType
().
equals
(
"inputBitmap"
))
{
AlertFormInitDto
vo
=
new
AlertFormInitDto
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
null
,
alertFrom
.
getUrl
());
AlertFormValue
alertFormValu
=
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
(),
null
,
null
);
if
(
alertFrom
.
getFieldType
().
equals
(
"datetime"
))
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
Date
date
=
new
Date
();
String
dateString
=
formatter
.
format
(
date
);
alertFormValu
.
setFieldValue
(
dateString
);
vo
.
setDefaultValue
(
date
);
}
vo
.
setFormItemDescr
(
alertFormValu
);
listfrom
.
add
(
vo
);
}
else
{
// 查询数据项
QueryWrapper
<
DataDictionary
>
queryWrappercolumnMap
=
new
QueryWrapper
<>();
queryWrappercolumnMap
.
eq
(
"type"
,
alertFrom
.
getFieldValueCode
());
queryWrappercolumnMap
.
orderByAsc
(
"sort_num"
);
Collection
<
DataDictionary
>
listDataDictionary
=
iDataDictionaryService
.
list
(
queryWrappercolumnMap
);
List
<
AlertListvalue
>
list
=
getdata
(
listDataDictionary
);
AlertFormInitDto
vo
=
new
AlertFormInitDto
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
new
Items
(
list
),
alertFrom
.
getUrl
());
AlertFormValue
alertFormValu
=
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
(),
null
,
null
);
if
(
alertFrom
.
getFieldType
().
equals
(
"radio"
))
{
vo
.
setDefaultValue
(
list
.
get
(
0
).
getValue
());
alertFormValu
.
setFieldValue
(
list
.
get
(
0
).
getLabel
());
alertFormValu
.
setFieldValueCode
(
list
.
get
(
0
).
getValue
());
}
vo
.
setFormItemDescr
(
alertFormValu
);
listfrom
.
add
(
vo
);
}
}
return
listfrom
;
}
public
List
<
AlertListvalue
>
getdata
(
Collection
<
DataDictionary
>
list
)
{
List
<
AlertListvalue
>
listAlertListvalue
=
new
ArrayList
<
AlertListvalue
>();
for
(
DataDictionary
dataDictionary
:
list
)
{
listAlertListvalue
.
add
(
new
AlertListvalue
(
dataDictionary
.
getSequenceNbr
().
toString
(),
dataDictionary
.
getName
(),
dataDictionary
.
getCode
()));
}
return
listAlertListvalue
;
}
public
List
<
String
>
queryListByFormId
(
String
groupId
)
{
return
this
.
queryListByTypeCode
(
groupId
).
stream
().
map
(
c
->
c
.
getFieldCode
()).
collect
(
Collectors
.
toList
());
}
public
List
<
AlertFormDto
>
queryListByTypeCode
(
String
groupId
)
{
return
this
.
queryForList
(
null
,
false
,
groupId
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertFormTypeServiceImpl.java
0 → 100644
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertFormTypeDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormType
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.AlertFormTypeMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertFormTypeService
;
/**
* 动态表单类型 服务实现类
*
* @author tb
* @date 2021-06-17
*/
@Service
public
class
AlertFormTypeServiceImpl
extends
BaseService
<
AlertFormTypeDto
,
AlertFormType
,
AlertFormTypeMapper
>
implements
IAlertFormTypeService
{
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertFormValueServiceImpl.java
0 → 100644
View file @
a42121c8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertFormValueDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.AlertFormValueMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertFormValueService
;
/**
* 服务实现类
*
* @author tb
* @date 2021-06-17
*/
@Service
public
class
AlertFormValueServiceImpl
extends
BaseService
<
AlertFormValueDto
,
AlertFormValue
,
AlertFormValueMapper
>
implements
IAlertFormValueService
{
@Autowired
private
AlertFormValueMapper
alertFormValueMapper
;
public
List
<
AlertFormValueDto
>
queryByCalledId
(
Long
alertCalledId
)
{
return
this
.
queryForList
(
null
,
false
,
alertCalledId
);
}
public
List
<
AlertFormValueDto
>
listByCalledId
(
Long
id
)
{
return
alertFormValueMapper
.
selectListByCalledId
(
id
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
View file @
a42121c8
...
@@ -31,7 +31,6 @@ import com.yeejoin.amos.boot.biz.common.utils.EnumsUtils;
...
@@ -31,7 +31,6 @@ import com.yeejoin.amos.boot.biz.common.utils.EnumsUtils;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.common.api.entity.DataDictionary
;
import
com.yeejoin.amos.boot.module.common.api.entity.DataDictionary
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
...
@@ -46,6 +45,7 @@ import com.yeejoin.amos.boot.module.jcs.api.dto.SchedulingReportingDto;
...
@@ -46,6 +45,7 @@ import com.yeejoin.amos.boot.module.jcs.api.dto.SchedulingReportingDto;
import
com.yeejoin.amos.boot.module.jcs.api.dto.TemplateDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.TemplateDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.TemplateExtendDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.TemplateExtendDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmittedObject
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmittedObject
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Template
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Template
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/PowerTransferServiceImpl.java
View file @
a42121c8
...
@@ -21,15 +21,14 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
...
@@ -21,15 +21,14 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.boot.module.common.api.dto.FireBrigadeResourceDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FireBrigadeResourceDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.common.api.entity.FireTeam
;
import
com.yeejoin.amos.boot.module.common.api.entity.FireTeam
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.AlertFormValueServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.CarStatusInfoDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.CarStatusInfoDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyResourcesDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyResourcesDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferSimpleDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferSimpleDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompany
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompany
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompanyResources
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompanyResources
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/RuleAlertCalledService.java
View file @
a42121c8
...
@@ -7,10 +7,10 @@ import org.springframework.stereotype.Service;
...
@@ -7,10 +7,10 @@ import org.springframework.stereotype.Service;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
com.yeejoin.amos.boot.module.common.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledRo
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledRo
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.component.rule.RuleTrigger
;
import
com.yeejoin.amos.component.rule.RuleTrigger
;
/**
/**
...
...
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