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
a8f61a20
Commit
a8f61a20
authored
Dec 19, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
a0b18821
fc8642d3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
485 additions
and
174 deletions
+485
-174
JgMaintainNoticeDto.java
...join/amos/boot/module/jg/api/dto/JgMaintainNoticeDto.java
+17
-4
JgMaintainNotice.java
...join/amos/boot/module/jg/api/entity/JgMaintainNotice.java
+40
-39
JgMaintainNoticeEqMapper.java
...s/boot/module/jg/api/mapper/JgMaintainNoticeEqMapper.java
+1
-2
JgMaintainNoticeMapper.java
...mos/boot/module/jg/api/mapper/JgMaintainNoticeMapper.java
+26
-4
IJgMaintainNoticeService.java
.../boot/module/jg/api/service/IJgMaintainNoticeService.java
+60
-3
JgMaintainNoticeMapper.xml
...-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
+105
-0
JgMaintainByWorkFlowController.java
...ule/jg/biz/controller/JgMaintainByWorkFlowController.java
+84
-0
JgMaintainNoticeController.java
.../module/jg/biz/controller/JgMaintainNoticeController.java
+97
-66
JgMaintainNoticeEqController.java
...odule/jg/biz/controller/JgMaintainNoticeEqController.java
+55
-56
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+0
-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/JgMaintainNoticeDto.java
View file @
a8f61a20
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 维修告知
* 维修告知
...
@@ -15,10 +19,10 @@ import java.util.Date;
...
@@ -15,10 +19,10 @@ import java.util.Date;
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"JgMaintainNoticeDto"
,
description
=
"维修告知"
)
@ApiModel
(
value
=
"JgMaintainNoticeDto"
,
description
=
"维修告知"
)
public
class
JgMaintainNoticeDto
extends
BaseDto
{
public
class
JgMaintainNoticeDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"申请编号"
)
@ApiModelProperty
(
value
=
"申请编号"
)
...
@@ -117,6 +121,12 @@ public class JgMaintainNoticeDto extends BaseDto {
...
@@ -117,6 +121,12 @@ public class JgMaintainNoticeDto extends BaseDto {
@ApiModelProperty
(
value
=
"施工合同附件"
)
@ApiModelProperty
(
value
=
"施工合同附件"
)
private
String
constructionContract
;
private
String
constructionContract
;
@ApiModelProperty
(
value
=
"委托书附件"
)
private
List
<
Map
<
String
,
Object
>>
powerOfAttorneyList
;
@ApiModelProperty
(
value
=
"施工合同附件"
)
private
List
<
Map
<
String
,
Object
>>
constructionContractList
;
@ApiModelProperty
(
value
=
"施工合同是否本单位与甲方直接签署"
)
@ApiModelProperty
(
value
=
"施工合同是否本单位与甲方直接签署"
)
private
String
isSignedWithA
;
private
String
isSignedWithA
;
...
@@ -135,4 +145,7 @@ public class JgMaintainNoticeDto extends BaseDto {
...
@@ -135,4 +145,7 @@ public class JgMaintainNoticeDto extends BaseDto {
@ApiModelProperty
(
value
=
"接收机构机构代码"
)
@ApiModelProperty
(
value
=
"接收机构机构代码"
)
private
String
receiveOrgCode
;
private
String
receiveOrgCode
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"告知设备列表"
)
private
List
<
Map
<
String
,
Object
>>
deviceList
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgMaintainNotice.java
View file @
a8f61a20
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -25,229 +26,229 @@ public class JgMaintainNotice extends BaseEntity {
...
@@ -25,229 +26,229 @@ public class JgMaintainNotice extends BaseEntity {
/**
/**
* 申请编号
* 申请编号
*/
*/
@TableField
(
"apply_no"
)
@TableField
(
"apply_no"
)
private
String
applyNo
;
private
String
applyNo
;
/**
/**
* 告知日期
* 告知日期
*/
*/
@TableField
(
"notice_date"
)
@TableField
(
"notice_date"
)
private
Date
noticeDate
;
private
Date
noticeDate
;
/**
/**
* 告知状态
* 告知状态
*/
*/
@TableField
(
"notice_status"
)
@TableField
(
"notice_status"
)
private
String
noticeStatus
;
private
String
noticeStatus
;
/**
/**
* 施工单位统一信用代码
* 施工单位统一信用代码
*/
*/
@TableField
(
"install_unit_credit_code"
)
@TableField
(
"install_unit_credit_code"
)
private
String
installUnitCreditCode
;
private
String
installUnitCreditCode
;
/**
/**
* 施工单位名称
* 施工单位名称
*/
*/
@TableField
(
"install_unit_name"
)
@TableField
(
"install_unit_name"
)
private
String
installUnitName
;
private
String
installUnitName
;
/**
/**
* 设备数量
* 设备数量
*/
*/
@TableField
(
"equip_num"
)
@TableField
(
"equip_num"
)
private
Integer
equipNum
;
private
Integer
equipNum
;
/**
/**
* 流程实例id
* 流程实例id
*/
*/
@TableField
(
"instance_id"
)
@TableField
(
"instance_id"
)
private
String
instanceId
;
private
String
instanceId
;
/**
/**
* 下步执行角色/人id
* 下步执行角色/人id
*/
*/
@TableField
(
"next_executor_ids"
)
@TableField
(
"next_executor_ids"
)
private
String
nextExecutorIds
;
private
String
nextExecutorIds
;
/**
/**
* 流程执行顺序标识
* 流程执行顺序标识
*/
*/
@TableField
(
"execute_sequence"
)
@TableField
(
"execute_sequence"
)
private
String
executeSequence
;
private
String
executeSequence
;
/**
/**
* 创建时间
* 创建时间
*/
*/
@TableField
(
"create_date"
)
@TableField
(
"create_date"
)
private
Date
createDate
;
private
Date
createDate
;
/**
/**
* 创建人id
* 创建人id
*/
*/
@TableField
(
"create_user_id"
)
@TableField
(
"create_user_id"
)
private
String
createUserId
;
private
String
createUserId
;
/**
/**
* 创建人
* 创建人
*/
*/
@TableField
(
"create_user_name"
)
@TableField
(
"create_user_name"
)
private
String
createUserName
;
private
String
createUserName
;
/**
/**
* 备注
* 备注
*/
*/
@TableField
(
"remark"
)
@TableField
(
"remark"
)
private
String
remark
;
private
String
remark
;
/**
/**
* 流程状态
* 流程状态
*/
*/
@TableField
(
"instance_status"
)
@TableField
(
"instance_status"
)
private
String
instanceStatus
;
private
String
instanceStatus
;
/**
/**
* 受理完成日期
* 受理完成日期
*/
*/
@TableField
(
"accept_date"
)
@TableField
(
"accept_date"
)
private
Date
acceptDate
;
private
Date
acceptDate
;
/**
/**
* 施工区域-省
* 施工区域-省
*/
*/
@TableField
(
"province"
)
@TableField
(
"province"
)
private
String
province
;
private
String
province
;
/**
/**
* 施工区域-市
* 施工区域-市
*/
*/
@TableField
(
"city"
)
@TableField
(
"city"
)
private
String
city
;
private
String
city
;
/**
/**
* 施工区域-区/县
* 施工区域-区/县
*/
*/
@TableField
(
"county"
)
@TableField
(
"county"
)
private
String
county
;
private
String
county
;
/**
/**
* 施工区域-街道(镇)
* 施工区域-街道(镇)
*/
*/
@TableField
(
"street"
)
@TableField
(
"street"
)
private
String
street
;
private
String
street
;
/**
/**
* 施工设备详细地址
* 施工设备详细地址
*/
*/
@TableField
(
"address"
)
@TableField
(
"address"
)
private
String
address
;
private
String
address
;
/**
/**
* 计划施工日期
* 计划施工日期
*/
*/
@TableField
(
"plan_date"
)
@TableField
(
"plan_date"
)
private
Date
planDate
;
private
Date
planDate
;
/**
/**
* 接收机构单位代码
* 接收机构单位代码
*/
*/
@TableField
(
"receive_company_code"
)
@TableField
(
"receive_company_code"
)
private
String
receiveCompanyCode
;
private
String
receiveCompanyCode
;
/**
/**
* 接收机构
* 接收机构
*/
*/
@TableField
(
"receive_org_name"
)
@TableField
(
"receive_org_name"
)
private
String
receiveOrgName
;
private
String
receiveOrgName
;
/**
/**
* 施工负责人
* 施工负责人
*/
*/
@TableField
(
"construction_manager"
)
@TableField
(
"construction_manager"
)
private
String
constructionManager
;
private
String
constructionManager
;
/**
/**
* 施工负责人id
* 施工负责人id
*/
*/
@TableField
(
"construction_manager_id"
)
@TableField
(
"construction_manager_id"
)
private
String
constructionManagerId
;
private
String
constructionManagerId
;
/**
/**
* 施工负责人手机
* 施工负责人手机
*/
*/
@TableField
(
"construction_manager_phone"
)
@TableField
(
"construction_manager_phone"
)
private
String
constructionManagerPhone
;
private
String
constructionManagerPhone
;
/**
/**
* 检验单位统一信用代码
* 检验单位统一信用代码
*/
*/
@TableField
(
"inspection_unit_credit_code"
)
@TableField
(
"inspection_unit_credit_code"
)
private
String
inspectionUnitCreditCode
;
private
String
inspectionUnitCreditCode
;
/**
/**
* 检验单位名称
* 检验单位名称
*/
*/
@TableField
(
"inspection_unit_name"
)
@TableField
(
"inspection_unit_name"
)
private
String
inspectionUnitName
;
private
String
inspectionUnitName
;
/**
/**
* 委托单位统一信用代码
* 委托单位统一信用代码
*/
*/
@TableField
(
"entrusting_unit_credit_code"
)
@TableField
(
"entrusting_unit_credit_code"
)
private
String
entrustingUnitCreditCode
;
private
String
entrustingUnitCreditCode
;
/**
/**
* 委托单位名称
* 委托单位名称
*/
*/
@TableField
(
"entrusting_unit_name"
)
@TableField
(
"entrusting_unit_name"
)
private
String
entrustingUnitName
;
private
String
entrustingUnitName
;
/**
/**
* 委托书附件
* 委托书附件
*/
*/
@TableField
(
"power_of_attorney"
)
@TableField
(
"power_of_attorney"
)
private
String
powerOfAttorney
;
private
String
powerOfAttorney
;
/**
/**
* 施工合同附件
* 施工合同附件
*/
*/
@TableField
(
"construction_contract"
)
@TableField
(
"construction_contract"
)
private
String
constructionContract
;
private
String
constructionContract
;
/**
/**
* 施工合同是否本单位与甲方直接签署
* 施工合同是否本单位与甲方直接签署
*/
*/
@TableField
(
"is_signed_with_a"
)
@TableField
(
"is_signed_with_a"
)
private
String
isSignedWithA
;
private
String
isSignedWithA
;
/**
/**
* 使用单位统一信用代码
* 使用单位统一信用代码
*/
*/
@TableField
(
"use_unit_credit_code"
)
@TableField
(
"use_unit_credit_code"
)
private
String
useUnitCreditCode
;
private
String
useUnitCreditCode
;
/**
/**
* 使用单位名称
* 使用单位名称
*/
*/
@TableField
(
"use_unit_name"
)
@TableField
(
"use_unit_name"
)
private
String
useUnitName
;
private
String
useUnitName
;
/**
/**
* 维修类型(1一般维修,2重点维修)
* 维修类型(1一般维修,2重点维修)
*/
*/
@TableField
(
"maintain_type"
)
@TableField
(
"maintain_type"
)
private
String
maintainType
;
private
String
maintainType
;
/**
/**
* 是否已报检
* 是否已报检
*/
*/
@TableField
(
"is_inspected"
)
@TableField
(
"is_inspected"
)
private
String
isInspected
;
private
String
isInspected
;
/**
/**
* 接收机构机构代码
* 接收机构机构代码
*/
*/
@TableField
(
"receive_org_code"
)
@TableField
(
"receive_org_code"
)
private
String
receiveOrgCode
;
private
String
receiveOrgCode
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgMaintainNoticeEqMapper.java
View file @
a8f61a20
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNoticeEq
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
/**
* 维修告知设备关系表 Mapper 接口
* 维修告知设备关系表 Mapper 接口
...
@@ -9,6 +8,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -9,6 +8,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @author system_generator
* @author system_generator
* @date 2023-12-19
* @date 2023-12-19
*/
*/
public
interface
JgMaintainNoticeEqMapper
extends
BaseMapper
<
JgMaintainNoticeEq
>
{
public
interface
JgMaintainNoticeEqMapper
extends
Custom
BaseMapper
<
JgMaintainNoticeEq
>
{
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgMaintainNoticeMapper.java
View file @
a8f61a20
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
mapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNotice
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.MapKey
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
*
维修告知
Mapper 接口
* Mapper 接口
*
*
* @author system_generator
* @author system_generator
* @date 2023-12-1
9
* @date 2023-12-1
2
*/
*/
public
interface
JgMaintainNoticeMapper
extends
BaseMapper
<
JgMaintainNotice
>
{
public
interface
JgMaintainNoticeMapper
extends
CustomBaseMapper
<
JgMaintainNotice
>
{
/**
* 分页查询
*
* @param page 分页对象
* @param model 查询参数
* @param type 类型:enterprise-企业端、supervision-监管端
* @return 维修告知列表
*/
Page
<
JgMaintainNotice
>
queryForPage
(
Page
<
JgMaintainNotice
>
page
,
@Param
(
"param"
)
JgMaintainNoticeDto
model
,
@Param
(
"type"
)
String
type
,
@Param
(
"orgCode"
)
String
orgCode
);
/**
* 根据维修告知编号查询设备、设计、制造等信息
*
* @param sequenceNbr 维修告知编号
*/
@MapKey
(
"sequenceNbr"
)
List
<
Map
<
String
,
Object
>>
queryEquipInformation
(
@Param
(
"sequenceNbr"
)
long
sequenceNbr
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/service/IJgMaintainNoticeService.java
View file @
a8f61a20
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
service
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNotice
;
import
java.util.Map
;
/**
/**
*
维修告知
接口类
* 接口类
*
*
* @author system_generator
* @author system_generator
* @date 2023-12-1
9
* @date 2023-12-1
2
*/
*/
public
interface
IJgMaintainNoticeService
{
public
interface
IJgMaintainNoticeService
extends
IService
<
JgMaintainNotice
>
{
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return 维修告知
*/
Map
<
String
,
Map
<
String
,
Object
>>
queryBySequenceNbr
(
Long
sequenceNbr
);
/**
* 更新维修告知
*
* @param noticeDto 维修告知
* @param op 操作类型
*/
JgMaintainNoticeDto
updateMaintainNotice
(
String
submitType
,
JgMaintainNoticeDto
noticeDto
,
String
op
);
/**
* 分页查询
*
* @param page 分页对象
* @param model 查询参数
* @param type 类型:enterprise-企业端、supervision-监管端
* @return 维修告知列表
*/
Page
<
JgMaintainNoticeDto
>
queryForJgMaintainNoticePage
(
Page
<
JgMaintainNotice
>
page
,
JgMaintainNoticeDto
model
,
String
type
,
ReginParams
reginParams
);
/**
* 批量删除
*
* @param sequenceNbrs 主键
* @return 是否删除成功
*/
Boolean
deleteForBatch
(
Long
[]
sequenceNbrs
);
/**
* 保存维修告知单
*
* @param model 数据
* @param submitType 保存类型
*/
void
saveNotice
(
String
submitType
,
Map
<
String
,
JgMaintainNoticeDto
>
model
,
ReginParams
reginParams
);
/**
* 打印告知单
*
* @param sequenceNbr 主键
* @return pdf文件路径
*/
String
generateMaintainNoticeReport
(
Long
sequenceNbr
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
View file @
a8f61a20
...
@@ -2,4 +2,109 @@
...
@@ -2,4 +2,109 @@
<!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.jg.api.mapper.JgMaintainNoticeMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.jg.api.mapper.JgMaintainNoticeMapper"
>
<select
id=
"queryForPage"
resultType=
"com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNotice"
>
select
tjmn.sequence_nbr AS sequenceNbr,
tjmn.apply_no AS applyNo,
tjmn.supervisory_code AS supervisoryCode,
tjmn.notice_date AS noticeDate,
tjmn.use_unit_name AS useUnitName,
tjmn.receive_org_name AS receiveOrgName,
tjmn.region_no AS regionNo,
tjmn.address AS address,
tjmn.notice_status AS noticeStatus,
tjmn.install_unit_name AS installUnitName,
tjmn.province_name AS provinceName,
tjmn.city_name AS cityName,
tjmn.county_name AS countyName,
tjmn.instance_id AS instanceId,
tjmn.notice_report_url AS noticeReportUrl
FROM
tzs_jg_maintain_notice tjmn
<where>
tjmn.is_delete = false
<if
test=
"param != null "
>
<if
test=
"param.applyNo != null and param.applyNo != ''"
>
AND tjmn.apply_no LIKE CONCAT('%', #{param.applyNo}, '%')
</if>
<if
test=
"param.receiveOrgName != null and param.receiveOrgName != ''"
>
AND tjmn.receive_org_name LIKE CONCAT('%', #{param.receiveOrgName}, '%')
</if>
<if
test=
"param.useUnitName != null and param.useUnitName != ''"
>
AND tjmn.use_unit_name LIKE CONCAT('%', #{param.useUnitName}, '%')
</if>
<if
test=
"param.installUnitName != null and param.installUnitName != ''"
>
AND tjmn.install_unit_name LIKE CONCAT('%', #{param.installUnitName}, '%')
</if>
<if
test=
"param.noticeStatus != null and param.noticeStatus != ''"
>
AND tjmn.notice_status = #{param.noticeStatus}
</if>
</if>
<if
test=
"type == 'supervision'"
>
AND (tjmn.notice_status in ('6612', '6613', '6614') or tjmn.status in('6614') )
</if>
<if
test=
"orgCode != null and orgCode != ''"
>
AND tjmn.install_unit_credit_code = #{orgCode}
</if>
</where>
ORDER BY
tjmn.notice_date DESC
</select>
<select
id=
"queryEquipInformation"
resultType=
"java.util.Map"
>
select
tjmn.sequence_nbr AS sequenceNbr,
tjmn.install_unit_name AS installUnitName,
tjmn.apply_no AS applyNo,
tjmn.province,
tjmn.city AS cityName,
tjmn.county AS countyName,
tjmn.address AS address,
tjmn.use_unit_name AS useUnitName,
ri.equ_list AS equList,
ri.equ_category AS equCategory,
ri.EQU_DEFINE AS equDefine,
ri.product_name AS productName,
ri.brand_name AS brandName,
ri.equ_type AS equType,
ri.equ_price AS equPrice,
ri.product_photo AS productPhoto,
di.design_unit_credit_code AS designUnitCreditCode,
di.design_unit_name AS designUnitName,
di.design_license_num AS designLicenseNum,
di.design_use_date AS designUseDate,
di.design_date AS designDate,
di.drawing_do AS drawingDo,
di.appraisal_unit AS appraisalUnit,
di.appraisal_date AS appraisalDate,
di.design_doc AS designDoc,
di.design_standard AS designStandard,
fi.produce_unit_credit_code AS produceUnitCreditCode,
fi.produce_unit_name AS produceUnitName,
fi.produce_license_num AS produceLicenseNum,
fi.factory_num AS factoryNum,
fi.produce_date AS produceDate,
fi.imported AS imported,
fi.produce_country AS produceCountry,
fi.factory_standard AS factoryStandard,
fi.product_quality_yield_prove AS productQualityYieldProve,
fi.ins_use_maintain_explain AS insUseMaintainExplain,
ui.safety_manager AS safetyManager,
ui.phone AS safetyManagerPhone,
ui.PROVINCE_NAME AS useUnitProvinceName,
ui.CITY_NAME AS useUnitCityName,
ui.COUNTY_NAME AS useUnitCountyName,
ui.ADDRESS AS useUnitAddress
FROM
tzs_jg_maintain_notice tjmn
LEFT JOIN tzs_jg_installation_notice_eq re ON re.equip_transfer_id = tjmn.sequence_nbr
LEFT JOIN idx_biz_jg_register_info ri ON ri.record = re.equ_id
LEFT JOIN idx_biz_jg_design_info di ON di.record = re.equ_id
LEFT JOIN idx_biz_jg_factory_info fi ON fi.record = re.equ_id
LEFT JOIN idx_biz_jg_inspection_detection_info idi ON idi.record = re.equ_id
LEFT JOIN idx_biz_jg_use_info ui ON ui.record = re.equ_id
WHERE
tjmn.sequence_nbr = #{sequenceNbr}
LIMIT 1
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgMaintainByWorkFlowController.java
0 → 100644
View file @
a8f61a20
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgMaintainNoticeServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
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
java.util.LinkedHashMap
;
import
java.util.Map
;
import
java.util.Objects
;
/**
* 维修告知
*
* @author system_generator
* @date 2023-12-12
*/
@RestController
@Api
(
tags
=
"维修告知工作流相关Api"
)
@RequestMapping
(
value
=
"/jg-maintain-workflow"
)
public
class
JgMaintainByWorkFlowController
{
@Autowired
JgMaintainNoticeServiceImpl
jgMaintainNoticeServiceImpl
;
/**
* 提交
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/submit"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"维修告知提交"
,
notes
=
"维修告知提交"
)
public
ResponseModel
<
JgMaintainNoticeDto
>
submit
(
@RequestBody
JgMaintainNoticeDto
model
,
String
op
)
{
// TODO 发起维修告知流程
// jgMaintainNoticeServiceImpl.submit(model, op);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 撤销
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/cancel"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"维修告知撤销"
,
notes
=
"维修告知撤销"
)
public
ResponseModel
<
JgMaintainNoticeDto
>
cancel
(
@RequestBody
Map
<
String
,
Object
>
model
)
{
JgMaintainNoticeDto
maintainInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"maintainInfo"
)),
JgMaintainNoticeDto
.
class
,
true
);
if
(
Objects
.
isNull
(
maintainInfo
))
{
throw
new
IllegalArgumentException
(
"参数maintainInfo不能为空"
);
}
jgMaintainNoticeServiceImpl
.
cancel
(
maintainInfo
);
return
ResponseHelper
.
buildResponse
(
maintainInfo
);
}
/**
* 受理
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/accept"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"维修告知受理"
,
notes
=
"维修告知受理"
)
public
ResponseModel
<
JgMaintainNoticeDto
>
accept
(
@RequestBody
Map
<
String
,
Object
>
model
,
String
op
)
{
// TODO 受理维修告知流程
LinkedHashMap
model1
=
(
LinkedHashMap
)
model
.
get
(
"model"
);
LinkedHashMap
maintainInfo
=
(
LinkedHashMap
)
model1
.
get
(
"maintainInfo"
);
JgMaintainNoticeDto
jgMaintainNoticeDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
maintainInfo
),
JgMaintainNoticeDto
.
class
);
jgMaintainNoticeServiceImpl
.
accept
(
jgMaintainNoticeDto
,
op
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgMaintainNoticeController.java
View file @
a8f61a20
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgMaintainNoticeEqController.java
View file @
a8f61a20
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeEqDto
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgMaintainNoticeEqServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgMaintainNoticeEqServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
io.swagger.annotations.Api
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeEqDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
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
;
/**
/**
* 维修告知设备关系表
* 维修告知设备关系表
*
*
* @author system_generator
* @author system_generator
* @date 2023-12-1
9
* @date 2023-12-1
8
*/
*/
@RestController
@RestController
@Api
(
tags
=
"维修告知设备关系表Api"
)
@Api
(
tags
=
"维修告知设备关系表Api"
)
...
@@ -37,28 +36,28 @@ public class JgMaintainNoticeEqController extends BaseController {
...
@@ -37,28 +36,28 @@ public class JgMaintainNoticeEqController extends BaseController {
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增维修告知设备关系表"
,
notes
=
"新增维修告知设备关系表"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增维修告知设备关系表"
,
notes
=
"新增维修告知设备关系表"
)
public
ResponseModel
<
JgMaintainNoticeEqDto
>
save
(
@RequestBody
JgMaintainNoticeEqDto
model
)
{
public
ResponseModel
<
JgMaintainNoticeEqDto
>
save
(
@RequestBody
JgMaintainNoticeEqDto
model
)
{
model
=
jgMaintainNoticeEqServiceImpl
.
createWithModel
(
model
);
model
=
jgMaintainNoticeEqServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
/**
/**
* 根据sequenceNbr更新
* 根据sequenceNbr更新
*
*
* @param sequenceNbr 主键
* @param sequenceNbr 主键
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新维修告知设备关系表"
,
notes
=
"根据sequenceNbr更新维修告知设备关系表"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新维修告知设备关系表"
,
notes
=
"根据sequenceNbr更新维修告知设备关系表"
)
public
ResponseModel
<
JgMaintainNoticeEqDto
>
updateBySequenceNbrJgMaintainNoticeEq
(
@RequestBody
JgMaintainNoticeEqDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
JgMaintainNoticeEqDto
>
updateBySequenceNbrJgMaintainNoticeEq
(
@RequestBody
JgMaintainNoticeEqDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
updateWithModel
(
model
));
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
updateWithModel
(
model
));
}
}
/**
/**
* 根据sequenceNbr删除
* 根据sequenceNbr删除
*
*
* @param sequenceNbr 主键
* @param sequenceNbr 主键
...
@@ -67,50 +66,50 @@ public class JgMaintainNoticeEqController extends BaseController {
...
@@ -67,50 +66,50 @@ public class JgMaintainNoticeEqController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除维修告知设备关系表"
,
notes
=
"根据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
(
jgMaintainNoticeEqServiceImpl
.
removeById
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
removeById
(
sequenceNbr
));
}
}
/**
/**
* 根据sequenceNbr查询
* 根据sequenceNbr查询
*
*
* @param sequenceNbr
主键
* @param sequenceNbr
主键
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个维修告知设备关系表"
,
notes
=
"根据sequenceNbr查询单个维修告知设备关系表"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个维修告知设备关系表"
,
notes
=
"根据sequenceNbr查询单个维修告知设备关系表"
)
public
ResponseModel
<
JgMaintainNoticeEqDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
JgMaintainNoticeEqDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
queryBySeq
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
}
/**
/**
* 列表分页查询
* 列表分页查询
*
*
* @param current 当前页
* @param current 当前页
* @param current 每页大小
* @param current 每页大小
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"维修告知设备关系表分页查询"
,
notes
=
"维修告知设备关系表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"维修告知设备关系表分页查询"
,
notes
=
"维修告知设备关系表分页查询"
)
public
ResponseModel
<
Page
<
JgMaintainNoticeEqDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
JgMaintainNoticeEqDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
(
value
=
"size"
)
int
size
)
{
Page
<
JgMaintainNoticeEqDto
>
page
=
new
Page
<
JgMaintainNoticeEqDto
>();
Page
<
JgMaintainNoticeEqDto
>
page
=
new
Page
<
JgMaintainNoticeEqDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
queryForJgMaintainNoticeEqPage
(
page
));
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
queryForJgMaintainNoticeEqPage
(
page
));
}
}
/**
/**
* 列表全部数据查询
* 列表全部数据查询
*
*
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"维修告知设备关系表列表全部数据查询"
,
notes
=
"维修告知设备关系表列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"维修告知设备关系表列表全部数据查询"
,
notes
=
"维修告知设备关系表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
JgMaintainNoticeEqDto
>>
selectForList
()
{
public
ResponseModel
<
List
<
JgMaintainNoticeEqDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
queryForJgMaintainNoticeEqList
());
return
ResponseHelper
.
buildResponse
(
jgMaintainNoticeEqServiceImpl
.
queryForJgMaintainNoticeEqList
());
}
}
}
}
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/JgMaintainNoticeServiceImpl.java
View file @
a8f61a20
This diff is collapsed.
Click to expand it.
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