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
f656ef22
Commit
f656ef22
authored
Dec 14, 2023
by
LiuLin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
78b9b13f
96bb550a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
298 additions
and
78 deletions
+298
-78
JgInstallationNoticeDto.java
.../amos/boot/module/jg/api/dto/JgInstallationNoticeDto.java
+4
-1
JgUseRegistration.java
...oin/amos/boot/module/jg/api/entity/JgUseRegistration.java
+7
-20
JgInstallationNoticeMapper.java
...boot/module/jg/api/mapper/JgInstallationNoticeMapper.java
+5
-2
WorkFlowFeginService.java
...os/boot/module/jg/flc/api/fegin/WorkFlowFeginService.java
+68
-0
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+43
-0
pom.xml
...m-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/pom.xml
+1
-1
JgInstallationNoticeController.java
...ule/jg/biz/controller/JgInstallationNoticeController.java
+26
-23
JgUseRegistrationController.java
...module/jg/biz/controller/JgUseRegistrationController.java
+13
-6
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+29
-4
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+64
-1
JyjcBaseMapper.java
...join/amos/boot/module/jyjc/api/mapper/JyjcBaseMapper.java
+3
-9
JyjcOpeningApplicationModel.java
...ot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
+2
-1
JyjcBaseMapper.xml
...ule-jyjc-api/src/main/resources/mapper/JyjcBaseMapper.xml
+16
-5
JyjcOpeningApplicationMapper.xml
...rc/main/resources/mapper/JyjcOpeningApplicationMapper.xml
+4
-1
JyjcOpeningApplicationController.java
...jyjc/biz/controller/JyjcOpeningApplicationController.java
+11
-4
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+0
-0
ESEquipmentCategoryDto.java
.../amos/boot/module/ymt/api/dto/ESEquipmentCategoryDto.java
+2
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgInstallationNoticeDto.java
View file @
f656ef22
...
...
@@ -27,9 +27,12 @@ public class JgInstallationNoticeDto extends BaseDto {
@ApiModelProperty
(
value
=
"设备种类"
)
private
String
equList
;
@ApiModelProperty
(
value
=
"告知状态"
)
@ApiModelProperty
(
value
=
"告知状态
编号
"
)
private
String
noticeStatus
;
@ApiModelProperty
(
value
=
"告知状态描述"
)
private
String
noticeStatusDesc
;
@ApiModelProperty
(
value
=
"设备数量"
)
private
Integer
deviceNum
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgUseRegistration.java
View file @
f656ef22
...
...
@@ -28,11 +28,7 @@ public class JgUseRegistration extends BaseEntity {
@TableField
(
"supervisory_code"
)
private
String
supervisoryCode
;
/**
* 使用单位ID
*/
@TableField
(
"use_unit_id"
)
private
String
useUnitId
;
/**
* 使用单位名称
...
...
@@ -52,11 +48,7 @@ public class JgUseRegistration extends BaseEntity {
@TableField
(
"audit_status"
)
private
String
auditStatus
;
/**
* 接收机构id
*/
@TableField
(
"receive_org_id"
)
private
String
receiveOrgId
;
/**
* 接收机构
...
...
@@ -64,11 +56,7 @@ public class JgUseRegistration extends BaseEntity {
@TableField
(
"receive_org_name"
)
private
String
receiveOrgName
;
/**
* 检验单位ID
*/
@TableField
(
"inspect_unit_id"
)
private
String
inspectUnitId
;
/**
* 检验单位
...
...
@@ -118,11 +106,7 @@ public class JgUseRegistration extends BaseEntity {
@TableField
(
"reg_person_name"
)
private
String
regPersonName
;
/**
* 安装单位ID
*/
@TableField
(
"install_unit_id"
)
private
String
installUnitId
;
/**
* 安装单位名称
...
...
@@ -168,4 +152,7 @@ public class JgUseRegistration extends BaseEntity {
@TableField
(
"use_unit_credit_code"
)
private
String
useUnitCreditCode
;
@TableField
(
"inspect_unit_credit_code"
)
private
String
inspectUnitCreditCode
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgInstallationNoticeMapper.java
View file @
f656ef22
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgInstallationNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice
;
import
org.apache.ibatis.annotations.Param
;
/**
* Mapper 接口
...
...
@@ -10,5 +13,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @date 2023-12-12
*/
public
interface
JgInstallationNoticeMapper
extends
BaseMapper
<
JgInstallationNotice
>
{
Page
<
JgInstallationNotice
>
queryForPage
(
Page
<
JgInstallationNotice
>
page
,
@Param
(
"param"
)
JgInstallationNoticeDto
model
,
@Param
(
"type"
)
String
type
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/flc/api/fegin/WorkFlowFeginService.java
0 → 100644
View file @
f656ef22
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
flc
.
api
.
fegin
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.feign.FeignConfiguration
;
import
com.yeejoin.amos.boot.biz.common.feign.MultipartSupportConfig
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.VerifyCodeAuthModel
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.Map
;
//@FeignClient(value = "AMOS-API-WORKFLOW", configuration = {FeignConfiguration.class})
@FeignClient
(
name
=
"AMOS-API-WORKFLOW"
,
path
=
"workflow"
,
configuration
=
{
MultipartSupportConfig
.
class
})
public
interface
WorkFlowFeginService
{
/***
* 根据task_id 获取节点信息
*
* */
@RequestMapping
(
value
=
"/history/task/nodeInfo"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
<
JSONObject
>
getNodeInfo
(
@RequestParam
(
value
=
"taskId"
)
String
taskId
);
/***
*
* 查询当前流程对应的可执行任务,无权限级别
* */
@RequestMapping
(
value
=
"/task/getTaskNoAuth/{processInstanceId}"
,
method
=
RequestMethod
.
GET
)
JSONObject
getTaskNoAuth
(
@PathVariable
(
value
=
"processInstanceId"
)
String
processInstanceId
);
/***
*
* 获取流程审批日志
* */
@RequestMapping
(
value
=
"/task/flowLogger/{procInsId}"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
<
Map
<
String
,
Object
>>
getFlowLogger
(
@PathVariable
(
value
=
"procInsId"
)
String
procInsId
);
@RequestMapping
(
value
=
"/history/task/nodeInfo"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
<
JSONObject
>
getNodeInfotoken
(
@RequestHeader
(
name
=
"appKey"
,
required
=
true
)
String
appKey
,
@RequestHeader
(
name
=
"product"
,
required
=
true
)
String
product
,
@RequestHeader
(
name
=
"token"
,
required
=
true
)
String
token
,
@RequestParam
(
value
=
"taskId"
)
String
taskId
);
/***
*
* 查询当前流程对应的可执行任务,无权限级别
* */
@RequestMapping
(
value
=
"/task/getTaskNoAuth/{processInstanceId}"
,
method
=
RequestMethod
.
GET
)
JSONObject
getTaskNoAuthtoken
(
@RequestHeader
(
name
=
"appKey"
,
required
=
true
)
String
appKey
,
@RequestHeader
(
name
=
"product"
,
required
=
true
)
String
product
,
@RequestHeader
(
name
=
"token"
,
required
=
true
)
String
token
,
@PathVariable
(
value
=
"processInstanceId"
)
String
processInstanceId
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
f656ef22
...
...
@@ -2,4 +2,47 @@
<!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.jg.api.mapper.JgInstallationNoticeMapper"
>
<select
id=
"queryForPage"
resultType=
"com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice"
>
select
isn.sequence_nbr AS sequenceNbr,
isn.apply_no AS applyNo,
isn.notice_date AS noticeDate,
isn.use_unit_id AS useUnitId,
isn.use_unit_name AS useUnitName,
isn.receive_org_id AS receiveOrgId,
isn.receive_org_name AS receiveOrgName,
isn.region_no AS regionNo,
isn.address AS address,
isn.notice_status AS noticeStatus,
isn.install_unit_id AS installUnitId,
isn.install_unit_name AS installUnitName
FROM
tzs_jg_installation_notice isn
<where>
isn.is_delete = false
<if
test=
"param != null "
>
<if
test=
"param.applyNo != null and param.applyNo != ''"
>
AND isn.apply_no LIKE CONCAT('%', #{param.applyNo}, '%')
</if>
<if
test=
"param.receiveOrgName != null and param.receiveOrgName != ''"
>
AND isn.receive_org_name LIKE CONCAT('%', #{param.receiveOrgName}, '%')
</if>
<if
test=
"param.useUnitName != null and param.useUnitName != ''"
>
AND isn.use_unit_name LIKE CONCAT('%', #{param.useUnitName}, '%')
</if>
<if
test=
"param.installUnitName != null and param.installUnitName != ''"
>
AND isn.install_unit_name LIKE CONCAT('%', #{param.installUnitName}, '%')
</if>
<if
test=
"param.noticeStatus != null and param.noticeStatus != ''"
>
AND isn.notice_status = #{param.noticeStatus}
</if>
</if>
<if
test=
"type == 'supervision'"
>
AND isn.notice_status in ('6612', '6613', '6614')
</if>
</where>
ORDER BY
isn.notice_date DESC
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/pom.xml
View file @
f656ef22
...
...
@@ -28,7 +28,7 @@
<dependency>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-feign-workflow
</artifactId>
<version>
1.
8.5
</version>
<version>
1.
10.1
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgInstallationNoticeController.java
View file @
f656ef22
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgInstallationNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgInstallationNoticeDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
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
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
/**
* 安装告知
...
...
@@ -53,7 +54,7 @@ public class JgInstallationNoticeController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新安装告知"
,
notes
=
"根据sequenceNbr更新安装告知"
)
public
ResponseModel
<
JgInstallationNoticeDto
>
updateBySequenceNbrJgInstallationNotice
(
@RequestBody
JgInstallationNoticeDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
JgInstallationNoticeDto
>
updateBySequenceNbrJgInstallationNotice
(
@RequestBody
JgInstallationNoticeDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
jgInstallationNoticeServiceImpl
.
updateWithModel
(
model
));
}
...
...
@@ -67,7 +68,7 @@ public class JgInstallationNoticeController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除安装告知"
,
notes
=
"根据sequenceNbr删除安装告知"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jgInstallationNoticeServiceImpl
.
removeById
(
sequenceNbr
));
}
...
...
@@ -79,7 +80,7 @@ public class JgInstallationNoticeController extends BaseController {
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个安装告知"
,
notes
=
"根据sequenceNbr查询单个安装告知"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个安装告知"
,
notes
=
"根据sequenceNbr查询单个安装告知"
)
public
ResponseModel
<
JgInstallationNoticeDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jgInstallationNoticeServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
...
...
@@ -92,14 +93,16 @@ public class JgInstallationNoticeController extends BaseController {
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"安装告知分页查询"
,
notes
=
"安装告知分页查询"
)
public
ResponseModel
<
Page
<
JgInstallationNoticeDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
JgInstallationNoticeDto
>
page
=
new
Page
<
JgInstallationNoticeDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
jgInstallationNoticeServiceImpl
.
queryForJgInstallationNoticePage
(
page
));
@PostMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"安装告知分页查询"
,
notes
=
"安装告知分页查询"
)
public
ResponseModel
<
Page
<
JgInstallationNoticeDto
>>
queryForPage
(
@ApiParam
(
value
=
"当前页码"
,
required
=
true
)
@RequestParam
(
value
=
"current"
,
defaultValue
=
"1"
)
int
current
,
@ApiParam
(
value
=
"每页大小"
,
required
=
true
)
@RequestParam
(
value
=
"size"
,
defaultValue
=
"20"
)
int
size
,
@ApiParam
(
value
=
"类型:enterprise-企业端、supervision-监管端"
,
required
=
true
)
@RequestParam
(
value
=
"type"
,
defaultValue
=
"enterprise"
)
String
type
,
@RequestBody
(
required
=
false
)
JgInstallationNoticeDto
model
)
{
Page
<
JgInstallationNotice
>
page
=
new
Page
<>(
current
,
size
);
return
ResponseHelper
.
buildResponse
(
jgInstallationNoticeServiceImpl
.
queryForJgInstallationNoticePage
(
page
,
model
,
type
));
}
/**
...
...
@@ -108,7 +111,7 @@ public class JgInstallationNoticeController extends BaseController {
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"安装告知列表全部数据查询"
,
notes
=
"安装告知列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"安装告知列表全部数据查询"
,
notes
=
"安装告知列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
JgInstallationNoticeDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
jgInstallationNoticeServiceImpl
.
queryForJgInstallationNoticeList
());
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgUseRegistrationController.java
View file @
f656ef22
...
...
@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationDto
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgUseRegistrationServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.flc.api.fegin.WorkFlowFeginService
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.workflow.Workflow
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowStartDTO
;
import
com.yeejoin.amos.feign.workflow.model.AjaxResult
;
...
...
@@ -96,7 +98,8 @@ public class JgUseRegistrationController extends BaseController {
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationServiceImpl
.
getDetail
(
id
));
}
@Autowired
WorkFlowFeginService
workFlowFeginService
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/test"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
""
,
notes
=
""
)
...
...
@@ -105,11 +108,8 @@ public class JgUseRegistrationController extends BaseController {
//启动流程
try
{
ActWorkflowStartDTO
dto
=
new
ActWorkflowStartDTO
();
dto
.
setProcessDefinitionKey
(
"useRegistration
New
"
);
dto
.
setProcessDefinitionKey
(
"useRegistration"
);
dto
.
setBusinessKey
(
"1"
);
HashMap
<
String
,
Object
>
dtoMap
=
new
HashMap
<>();
dtoMap
.
put
(
"approvalStatus"
,
op
);
dto
.
setVariables
(
dtoMap
);
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
startByVariable
(
dto
);
instanceId
=
((
Map
)
ajaxResult
.
get
(
"data"
)).
get
(
"id"
).
toString
();
...
...
@@ -130,12 +130,19 @@ public class JgUseRegistrationController extends BaseController {
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
JSONObject
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
String
taskId
=
dataObject
.
getString
(
"id"
);
// JSONObject taskNoAuth = workFlowFeginService.getTaskNoAuth(instanceId);
// FeignClientResult<JSONObject> nodeInfo = workFlowFeginService.getNodeInfo(taskId);
//组装信息
TaskResultDTO
dto
=
new
TaskResultDTO
();
dto
.
setResult
(
op
);
//
dto.setResult(op);
dto
.
setResultCode
(
"approvalStatus"
);
dto
.
setTaskId
(
taskId
);
dto
.
setComment
(
"啦啦啦啦!!!!!"
);
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"approvalStatus"
,
op
);
dto
.
setVariable
(
map
);
// FeignClientResult reject = Workflow.taskV2Client.reject(taskId, dto);
//执行流程
AjaxResult
ajaxResult1
=
Workflow
.
taskClient
.
completeByTask
(
taskId
,
dto
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
View file @
f656ef22
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice
;
import
com.yeejoin.amos.boot.module.jg.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgInstallationNoticeMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgInstallationNoticeDto
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
import
java.util.Objects
;
/**
* 服务实现类
...
...
@@ -16,18 +21,37 @@ import java.util.List;
* @date 2023-12-12
*/
@Service
public
class
JgInstallationNoticeServiceImpl
extends
BaseService
<
JgInstallationNoticeDto
,
JgInstallationNotice
,
JgInstallationNoticeMapper
>
implements
IJgInstallationNoticeService
{
public
class
JgInstallationNoticeServiceImpl
extends
BaseService
<
JgInstallationNoticeDto
,
JgInstallationNotice
,
JgInstallationNoticeMapper
>
implements
IJgInstallationNoticeService
{
@Autowired
private
JgInstallationNoticeMapper
jgInstallationNoticeMapper
;
/**
* 分页查询
*/
public
Page
<
JgInstallationNoticeDto
>
queryForJgInstallationNoticePage
(
Page
<
JgInstallationNoticeDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
public
Page
<
JgInstallationNoticeDto
>
queryForJgInstallationNoticePage
(
Page
<
JgInstallationNotice
>
page
,
JgInstallationNoticeDto
model
,
String
type
)
{
Page
<
JgInstallationNotice
>
noticePage
=
jgInstallationNoticeMapper
.
queryForPage
(
page
,
model
,
type
);
// 将Page<JgInstallationNotice>转化为Page<JgInstallationNoticeDto>
Page
<
JgInstallationNoticeDto
>
noticeDtoPage
=
new
Page
<>();
BeanUtils
.
copyProperties
(
noticePage
,
noticeDtoPage
,
"records"
);
List
<
JgInstallationNoticeDto
>
records
=
noticePage
.
getRecords
().
stream
().
map
(
notice
->
{
JgInstallationNoticeDto
noticeDto
=
new
JgInstallationNoticeDto
();
BeanUtils
.
copyProperties
(
notice
,
noticeDto
);
if
(
Objects
.
nonNull
(
notice
.
getNoticeStatus
()))
{
String
noticeStatusDesc
=
FlowStatusEnum
.
getNameByType
(
Long
.
valueOf
(
notice
.
getNoticeStatus
()));
noticeDto
.
setNoticeStatusDesc
(
noticeStatusDesc
);
}
return
noticeDto
;
}).
collect
(
java
.
util
.
stream
.
Collectors
.
toList
());
noticeDtoPage
.
setRecords
(
records
);
return
noticeDtoPage
;
}
/**
* 列表查询 示例
*/
public
List
<
JgInstallationNoticeDto
>
queryForJgInstallationNoticeList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
View file @
f656ef22
...
...
@@ -12,17 +12,25 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.JgRelationEquipMapper;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgUseRegistrationService
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationDto
;
import
com.yeejoin.amos.boot.module.jg.flc.api.fegin.WorkFlowFeginService
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.InspectionDetectionInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.OtherInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.UseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.InspectionDetectionInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.OtherInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.UseInfoMapper
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.workflow.Workflow
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowStartDTO
;
import
com.yeejoin.amos.feign.workflow.model.AjaxResult
;
import
com.yeejoin.amos.feign.workflow.model.TaskResultDTO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -43,7 +51,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
private
OtherInfoMapper
otherInfoMapper
;
@Autowired
private
JgRelationEquipMapper
jgRelationEquipMapper
;
@Autowired
WorkFlowFeginService
workFlowFeginService
;
public
Page
<
Map
<
String
,
Object
>>
getList
(
JgUseRegistrationDto
dto
,
Page
<
Map
<
String
,
Object
>>
page
)
{
return
this
.
baseMapper
.
getListPage
(
page
,
dto
);
}
...
...
@@ -74,6 +83,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
jgUseRegistration
.
setSupervisoryCode
(
supervisoryCode
);
jgUseRegistration
.
setUseUnitName
(
useInfo
.
getUseUnitName
());
jgUseRegistration
.
setUseUnitCreditCode
(
useInfo
.
getUseUnitCreditCode
());
jgUseRegistration
.
setInspectUnitCreditCode
(
map
.
get
(
"inspectUnitCreditCode"
).
toString
());
jgUseRegistration
.
setInspectUnitName
(
map
.
get
(
"inspectOrgName"
).
toString
());
// jgUseRegistration.setAuditStatus();
// jgUseRegistration.setUseRegistrationCode();
...
...
@@ -84,6 +95,58 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
jgRelationEquip
.
setEquipId
(
map
.
get
(
"equipId"
).
toString
());
jgRelationEquip
.
setBusinessType
(
String
.
valueOf
(
BusinessTypeEnum
.
USAGE_REGISTRATION
.
getCode
()));
jgRelationEquipMapper
.
insert
(
jgRelationEquip
);
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"submit"
))){
// 启动并执行流程
String
instanceId
=
startByVariable
();
if
(
ObjectUtils
.
isEmpty
(
instanceId
)){
// 执行流程
flowExecute
(
instanceId
,
"1"
,
"备注"
+
System
.
currentTimeMillis
());
}
jgUseRegistration
.
setInstanceId
(
instanceId
);
this
.
update
();
}
}
public
String
startByVariable
(){
String
instanceId
=
""
;
//启动流程
try
{
ActWorkflowStartDTO
dto
=
new
ActWorkflowStartDTO
();
dto
.
setProcessDefinitionKey
(
"useRegistrationNew"
);
dto
.
setBusinessKey
(
"submit"
);
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
startByVariable
(
dto
);
instanceId
=
((
Map
)
ajaxResult
.
get
(
"data"
)).
get
(
"id"
).
toString
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
instanceId
;
}
public
void
flowExecute
(
String
instanceId
,
String
operate
,
String
comment
){
try
{
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
JSONObject
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
String
taskId
=
dataObject
.
getString
(
"id"
);
JSONObject
taskNoAuth
=
workFlowFeginService
.
getTaskNoAuth
(
instanceId
);
FeignClientResult
<
JSONObject
>
nodeInfo
=
workFlowFeginService
.
getNodeInfo
(
taskId
);
//组装信息
TaskResultDTO
dto
=
new
TaskResultDTO
();
dto
.
setResultCode
(
"approvalStatus"
);
dto
.
setTaskId
(
taskId
);
dto
.
setComment
(
comment
+
System
.
currentTimeMillis
());
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"approvalStatus"
,
operate
);
dto
.
setVariable
(
map
);
//执行流程
AjaxResult
ajaxResult1
=
Workflow
.
taskClient
.
completeByTask
(
taskId
,
dto
);
if
(
ObjectUtils
.
isEmpty
(
ajaxResult1
))
{
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
public
void
deleteBatch
(
List
<
Long
>
ids
)
{
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/mapper/JyjcBaseMapper.java
View file @
f656ef22
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jyjc.api.mapper;
import
com.yeejoin.amos.boot.module.tcm.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.TzBaseUnitLicenceDto
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.TzsUserInfoDto
;
import
org.apache.ibatis.annotations.MapKey
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
...
...
@@ -17,15 +18,8 @@ import java.util.Map;
*/
public
interface
JyjcBaseMapper
{
TzBaseEnterpriseInfoDto
selectEnterpriseInfo
(
String
unitCode
);
List
<
TzBaseUnitLicenceDto
>
selectBaseUnitLicenceList
(
Map
<
String
,
Object
>
params
);
@Select
(
"SELECT "
+
" * "
+
" FROM "
+
" tzs_user_info "
+
" WHERE "
+
" unit_code = '${unitCode}'"
)
List
<
TzsUserInfoDto
>
selectUserInfoByUnitCodeList
(
@Param
(
"unitCode"
)
String
unitCode
);
@MapKey
(
value
=
"code"
)
List
<
Map
<
String
,
String
>>
selectDataDictionaryList
(
List
<
String
>
codes
);
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
View file @
f656ef22
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
model
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.TzBaseUnitLicenceDto
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.TzsUserInfoDto
;
import
io.swagger.annotations.ApiModel
;
...
...
@@ -82,5 +83,5 @@ public class JyjcOpeningApplicationModel extends BaseModel {
private
String
latitude
;
@ApiModelProperty
(
"企业营业执照"
)
private
String
unitBusinessLicense
;
private
List
<
AttachmentDto
>
unitBusinessLicense
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcBaseMapper.xml
View file @
f656ef22
...
...
@@ -2,15 +2,26 @@
<!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.jyjc.api.mapper.JyjcBaseMapper"
>
<select
id=
"selectEnterpriseInfo"
resultType=
"com.yeejoin.amos.boot.module.tcm.api.dto.TzBaseEnterpriseInfoDto"
>
select * from tz_base_enterprise_info where use_unit_code = #{unitCode}
</select>
<select
id=
"selectBaseUnitLicenceList"
parameterType=
"map"
resultType=
"com.yeejoin.amos.boot.module.tcm.api.dto.TzBaseUnitLicenceDto"
>
select * from tz_base_unit_licence
where unit_code = #{unitCode} and licence_type = #{licenceType}
where unit_code = #{unitCode}
<if
test=
"licenceType !=null and licenceType != ''"
>
and licence_type = #{licenceType}
</if>
</select>
<select
id=
"selectDataDictionaryList"
resultType=
"java.util.Map"
>
select code, name
from cb_data_dictionary
where
1=1
<if
test=
"list !=null and list.size()>0"
>
AND code in
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcOpeningApplicationMapper.xml
View file @
f656ef22
...
...
@@ -19,7 +19,10 @@
rec_date,
rec_user_id,
rec_user_name,
apply_time
apply_time,
workflow_prostance_id,
workflow_role,
unit_code_name
from tz_jyjc_opening_application
<where>
<if
test=
"jyjcOpeningApplicationModel.applicationSeq != '' and jyjcOpeningApplicationModel.applicationSeq != null"
>
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcOpeningApplicationController.java
View file @
f656ef22
...
...
@@ -55,7 +55,7 @@ public class JyjcOpeningApplicationController extends BaseController {
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
JyjcOpeningApplicationModel
>
updateBySequenceNbrJyjcOpeningApplication
(
@RequestBody
JyjcOpeningApplicationModel
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
update
WithModel
(
model
));
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
update
Model
(
model
,
false
));
}
/**
...
...
@@ -99,7 +99,6 @@ public class JyjcOpeningApplicationController extends BaseController {
Page
<
JyjcOpeningApplication
>
page
=
new
Page
<
JyjcOpeningApplication
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
// BaseEnterpriseInfoDto baseEnterpriseInfoDto
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
queryForJyjcOpeningApplicationPage
(
page
,
jyjcOpeningApplicationDto
));
}
...
...
@@ -125,8 +124,8 @@ public class JyjcOpeningApplicationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"接收或者驳回业务开通申请"
,
notes
=
"接收或者驳回业务开通申请"
)
@GetMapping
(
value
=
"/execueFlow"
)
public
void
execueFlow
(
@RequestParam
(
"op"
)
String
op
,
@RequestParam
(
"instanceId"
)
String
instanceId
)
{
jyjcOpeningApplicationServiceImpl
.
execueFlow
(
op
,
instanceId
);
public
void
execueFlow
(
@RequestParam
(
"op"
)
String
op
,
@RequestParam
(
"instanceId"
)
String
instanceId
,
@RequestParam
(
"comments"
)
String
comments
)
{
jyjcOpeningApplicationServiceImpl
.
execueFlow
(
op
,
instanceId
,
comments
);
}
/**
...
...
@@ -141,4 +140,12 @@ public class JyjcOpeningApplicationController extends BaseController {
jyjcOpeningApplicationServiceImpl
.
stopFlow
(
instanceId
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/restartFlow/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"重新提交开通申请"
,
notes
=
"重新提交开通申请"
)
public
ResponseModel
<
JyjcOpeningApplicationModel
>
resubmitJyjcOpeningApplication
(
@RequestBody
JyjcOpeningApplicationModel
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
updateModel
(
model
,
true
));
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
View file @
f656ef22
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/dto/ESEquipmentCategoryDto.java
View file @
f656ef22
...
...
@@ -91,4 +91,6 @@ public class ESEquipmentCategoryDto {
@Field
(
type
=
FieldType
.
Text
)
private
String
INSPECT_REPORT
;
@Field
(
type
=
FieldType
.
Text
)
private
String
NEXT_INSPECT_DATE
;
}
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