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
bde8881f
Commit
bde8881f
authored
Dec 15, 2023
by
李秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
51da00e1
e19ac9b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
200 additions
and
44 deletions
+200
-44
DateUtils.java
...ava/com/yeejoin/amos/boot/biz/common/utils/DateUtils.java
+1
-0
JgInstallationAccDto.java
...oin/amos/boot/module/jg/api/dto/JgInstallationAccDto.java
+13
-0
JgInstallationNoticeDto.java
.../amos/boot/module/jg/api/dto/JgInstallationNoticeDto.java
+6
-2
JgInstallationNotice.java
.../amos/boot/module/jg/api/entity/JgInstallationNotice.java
+7
-0
FlowStatusEnum.java
...yeejoin/amos/boot/module/jg/api/enums/FlowStatusEnum.java
+6
-1
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+1
-1
JgInstallationByWorkFlowController.java
...jg/biz/controller/JgInstallationByWorkFlowController.java
+88
-0
TzsServiceFeignClient.java
.../amos/boot/module/jg/biz/feign/TzsServiceFeignClient.java
+27
-0
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+16
-14
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+0
-0
logback-dev.xml
...mos-boot-module-jg-biz/src/main/resources/logback-dev.xml
+1
-1
JyjcInspectionApplicationMapper.java
...dule/jyjc/api/mapper/JyjcInspectionApplicationMapper.java
+1
-3
IJyjcInspectionApplicationService.java
...e/jyjc/api/service/IJyjcInspectionApplicationService.java
+0
-1
JyjcInspectionApplicationController.java
...c/biz/controller/JyjcInspectionApplicationController.java
+8
-2
JyjcInspectionResultController.java
...e/jyjc/biz/controller/JyjcInspectionResultController.java
+15
-14
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+2
-3
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+6
-1
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+2
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/DateUtils.java
View file @
bde8881f
...
@@ -25,6 +25,7 @@ public class DateUtils {
...
@@ -25,6 +25,7 @@ public class DateUtils {
public
static
final
String
MINUTE_ONLY_PATTERN
=
"mm"
;
public
static
final
String
MINUTE_ONLY_PATTERN
=
"mm"
;
public
static
final
String
HOUR_ONLY_PATTERN
=
"HH"
;
public
static
final
String
HOUR_ONLY_PATTERN
=
"HH"
;
public
static
final
String
DATE_PATTERN_NUM
=
"yyyyMMdd"
;
public
static
final
String
DATE_PATTERN_NUM
=
"yyyyMMdd"
;
public
static
final
String
DATE_PATTERN_MM
=
"yyyyMM"
;
public
static
final
String
CHN_DATE_PATTERN_YEAR
=
"yyyy年"
;
public
static
final
String
CHN_DATE_PATTERN_YEAR
=
"yyyy年"
;
public
static
final
String
CHN_DATE_PATTERN_MONTH
=
"MM月"
;
public
static
final
String
CHN_DATE_PATTERN_MONTH
=
"MM月"
;
public
static
final
String
CHN_DATE_PATTERN
=
"yyyy年MM月dd日"
;
public
static
final
String
CHN_DATE_PATTERN
=
"yyyy年MM月dd日"
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgInstallationAccDto.java
0 → 100644
View file @
bde8881f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"JgInstallationAccDto"
,
description
=
""
)
public
class
JgInstallationAccDto
{
String
opinion
;
JgInstallationNoticeDto
model
;
}
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 @
bde8881f
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.api.dto;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.api.dto;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -95,13 +96,13 @@ public class JgInstallationNoticeDto extends BaseDto {
...
@@ -95,13 +96,13 @@ public class JgInstallationNoticeDto extends BaseDto {
private
String
propertyUnitName
;
private
String
propertyUnitName
;
@ApiModelProperty
(
value
=
"使用单位id"
)
@ApiModelProperty
(
value
=
"使用单位id"
)
private
String
useUnit
Id
;
private
String
useUnit
CreditCode
;
@ApiModelProperty
(
value
=
"使用单位"
)
@ApiModelProperty
(
value
=
"使用单位"
)
private
String
useUnitName
;
private
String
useUnitName
;
@ApiModelProperty
(
value
=
"接收机构ID"
)
@ApiModelProperty
(
value
=
"接收机构ID"
)
private
String
receiveOrg
Id
;
private
String
receiveOrg
CreditCode
;
@ApiModelProperty
(
value
=
"接收机构"
)
@ApiModelProperty
(
value
=
"接收机构"
)
private
String
receiveOrgName
;
private
String
receiveOrgName
;
...
@@ -209,4 +210,7 @@ public class JgInstallationNoticeDto extends BaseDto {
...
@@ -209,4 +210,7 @@ public class JgInstallationNoticeDto extends BaseDto {
+
(
StringUtils
.
isEmpty
(
this
.
countyName
)
?
""
:
this
.
countyName
)
+
(
StringUtils
.
isEmpty
(
this
.
countyName
)
?
""
:
this
.
countyName
)
+
(
StringUtils
.
isEmpty
(
this
.
address
)
?
""
:
this
.
address
);
+
(
StringUtils
.
isEmpty
(
this
.
address
)
?
""
:
this
.
address
);
}
}
@ApiModelProperty
(
value
=
"设备注册代码"
)
private
String
equRegisterCode
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgInstallationNotice.java
View file @
bde8881f
...
@@ -341,4 +341,11 @@ public class JgInstallationNotice extends BaseEntity {
...
@@ -341,4 +341,11 @@ public class JgInstallationNotice extends BaseEntity {
@TableField
(
"notice_report_url"
)
@TableField
(
"notice_report_url"
)
private
String
noticeReportUrl
;
private
String
noticeReportUrl
;
/**
* 设备注册编码
*/
@TableField
(
"equ_register_code"
)
private
String
equRegisterCode
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/enums/FlowStatusEnum.java
View file @
bde8881f
...
@@ -25,7 +25,12 @@ public enum FlowStatusEnum {
...
@@ -25,7 +25,12 @@ public enum FlowStatusEnum {
/**
/**
* 已驳回
* 已驳回
*/
*/
REJECTED
(
6614
,
"已驳回"
);
REJECTED
(
6614
,
"已驳回"
),
/**
* 已撤回
*/
ROBACK
(
6615
,
"已撤回"
);
private
final
int
code
;
private
final
int
code
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
bde8881f
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</if>
</if>
</if>
</if>
<if
test=
"type == 'supervision'"
>
<if
test=
"type == 'supervision'"
>
AND
isn.notice_status in ('6612', '6613', '6614'
)
AND
(isn.notice_status in ('6612', '6613', '6614') or isn.status in('6614')
)
</if>
</if>
</where>
</where>
ORDER BY
ORDER BY
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgInstallationByWorkFlowController.java
0 → 100644
View file @
bde8881f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgInstallationAccDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgInstallationNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeServiceImpl
;
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-installation-workflow"
)
public
class
JgInstallationByWorkFlowController
{
@Autowired
JgInstallationNoticeServiceImpl
jgInstallationNoticeServiceImpl
;
/**
* 提交
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/submit"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"安装告知提交"
,
notes
=
"安装告知提交"
)
public
ResponseModel
<
JgInstallationNoticeDto
>
submit
(
@RequestBody
JgInstallationNoticeDto
model
,
String
op
)
{
// TODO 发起安装告知流程
// jgInstallationNoticeServiceImpl.submit(model, op);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 撤销
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/cancel"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"安装告知撤销"
,
notes
=
"安装告知撤销"
)
public
ResponseModel
<
JgInstallationNoticeDto
>
cancel
(
@RequestBody
Map
<
String
,
Object
>
model
)
{
JgInstallationNoticeDto
installationInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"installationInfo"
)),
JgInstallationNoticeDto
.
class
,
true
);
if
(
Objects
.
isNull
(
installationInfo
))
{
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
}
jgInstallationNoticeServiceImpl
.
cancel
(
installationInfo
);
return
ResponseHelper
.
buildResponse
(
installationInfo
);
}
/**
* 受理
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/accept"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"安装告知受理"
,
notes
=
"安装告知受理"
)
public
ResponseModel
<
JgInstallationNoticeDto
>
accept
(
@RequestBody
Map
<
String
,
Object
>
model
,
String
op
)
{
// TODO 受理安装告知流程
LinkedHashMap
model1
=
(
LinkedHashMap
)
model
.
get
(
"model"
);
LinkedHashMap
form
=
(
LinkedHashMap
)
model1
.
get
(
"form"
);
LinkedHashMap
installationInfo
=
(
LinkedHashMap
)
form
.
get
(
"installationInfo"
);
JgInstallationNoticeDto
jgInstallationNoticeDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
installationInfo
),
JgInstallationNoticeDto
.
class
);
jgInstallationNoticeServiceImpl
.
accept
(
jgInstallationNoticeDto
,
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/feign/TzsServiceFeignClient.java
0 → 100644
View file @
bde8881f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
feign
;
import
com.yeejoin.amos.boot.biz.common.feign.FeignConfiguration
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.Map
;
@FeignClient
(
name
=
"TZS-YMT-LL"
,
url
=
"172.16.3.155:11000"
,
path
=
"/ymt"
,
configuration
=
{
FeignConfiguration
.
class
})
public
interface
TzsServiceFeignClient
{
/**
* 创建监管码及96333
*
* @param map 请求体
* @return
*/
@RequestMapping
(
value
=
"/equipment-category/createSupervisorCode"
,
method
=
RequestMethod
.
POST
)
ResponseModel
<
Map
<
String
,
Object
>>
createCode
(
@RequestBody
Map
<
String
,
Object
>
map
);
}
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
bde8881f
...
@@ -431,31 +431,36 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -431,31 +431,36 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
}
}
// 默认条件【STATUS===""】
// 默认条件【STATUS===""
|| null
】
BoolQueryBuilder
meBuilder
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
meBuilder
=
QueryBuilders
.
boolQuery
();
meBuilder
.
must
(
QueryBuilders
.
matchQuery
(
"STATUS"
,
"null"
));
meBuilder
.
must
(
QueryBuilders
.
boolQuery
()
.
should
(
QueryBuilders
.
boolQuery
().
mustNot
(
QueryBuilders
.
existsQuery
(
"STATUS"
)))
.
should
(
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
matchPhraseQuery
(
"STATUS"
,
""
))));
boolMust
.
must
(
meBuilder
);
boolMust
.
must
(
meBuilder
);
String
queryType
=
map
.
getString
(
"QUERY_TYPE"
);
String
queryType
=
map
.
getString
(
"QUERY_TYPE"
);
// //查询 安装告知【可告知设备列表】【EQU_STATE===
""
】
// //查询 安装告知【可告知设备列表】【EQU_STATE===
null
】
if
(!
ObjectUtils
.
isEmpty
(
queryType
)
&&
ValidationUtil
.
equals
(
queryType
,
"AZ"
))
{
if
(!
ObjectUtils
.
isEmpty
(
queryType
)
&&
ValidationUtil
.
equals
(
queryType
,
"AZ"
))
{
BoolQueryBuilder
azBuilder
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
azBuilder
=
QueryBuilders
.
boolQuery
();
azBuilder
.
must
(
QueryBuilders
.
matchQuery
(
"EQU_STATE"
,
9999
));
azBuilder
.
must
Not
(
QueryBuilders
.
existsQuery
(
"EQU_STATE"
));
boolMust
.
must
(
azBuilder
);
boolMust
.
must
(
azBuilder
);
}
}
//查询 维保备案【可绑定设备列表】【
EQU_STATE==="" && INSPECT_REPORT!==9999(默认占位值
)】
//查询 维保备案【可绑定设备列表】【
(EQU_STATE=== null) && (INSPECT_REPORT!=="" && !null
)】
if
(!
ObjectUtils
.
isEmpty
(
queryType
)
&&
ValidationUtil
.
equals
(
queryType
,
"WB"
))
{
if
(!
ObjectUtils
.
isEmpty
(
queryType
)
&&
ValidationUtil
.
equals
(
queryType
,
"WB"
))
{
BoolQueryBuilder
wbBuilder
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
wbBuilder
=
QueryBuilders
.
boolQuery
();
wbBuilder
.
must
(
QueryBuilders
.
matchQuery
(
"EQU_STATE"
,
9999
));
wbBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"EQU_STATE"
));
wbBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"INSPECT_REPORT"
));
wbBuilder
.
must
(
QueryBuilders
.
existsQuery
(
"INSPECT_REPORT"
));
wbBuilder
.
mustNot
(
QueryBuilders
.
matchPhraseQuery
(
"INSPECT_REPORT"
,
""
));
boolMust
.
must
(
wbBuilder
);
boolMust
.
must
(
wbBuilder
);
}
}
//查询 使用登记【可选设备列表】【EQU_STATUS===
"" && INSPECT_REPORT!==9999(默认占位值) && USE_ORG_CODE!==""
】
//查询 使用登记【可选设备列表】【EQU_STATUS===
null && (INSPECT_REPORT!=="" && !null) && (USE_ORG_CODE!=="" && !null)
】
if
(!
ObjectUtils
.
isEmpty
(
queryType
)
&&
ValidationUtil
.
equals
(
queryType
,
"SY"
))
{
if
(!
ObjectUtils
.
isEmpty
(
queryType
)
&&
ValidationUtil
.
equals
(
queryType
,
"SY"
))
{
BoolQueryBuilder
syBuilder
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
syBuilder
=
QueryBuilders
.
boolQuery
();
syBuilder
.
must
(
QueryBuilders
.
matchQuery
(
"EQU_STATE"
,
9999
));
syBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"EQU_STATE"
));
syBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"INSPECT_REPORT"
));
syBuilder
.
must
(
QueryBuilders
.
existsQuery
(
"INSPECT_REPORT"
));
syBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"USE_ORG_CODE"
));
syBuilder
.
mustNot
(
QueryBuilders
.
matchPhraseQuery
(
"INSPECT_REPORT"
,
""
));
syBuilder
.
must
(
QueryBuilders
.
existsQuery
(
"USE_ORG_CODE"
));
syBuilder
.
mustNot
(
QueryBuilders
.
matchPhraseQuery
(
"USE_ORG_CODE"
,
""
));
boolMust
.
must
(
syBuilder
);
boolMust
.
must
(
syBuilder
);
}
}
...
@@ -638,9 +643,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -638,9 +643,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
Map
<
String
,
Object
>
map
=
categoryOtherInfoMapper
.
selectDataById
(
id
);
Map
<
String
,
Object
>
map
=
categoryOtherInfoMapper
.
selectDataById
(
id
);
categoryOtherInfoMapper
.
updateEsStatus
(
id
);
categoryOtherInfoMapper
.
updateEsStatus
(
id
);
ESEquipmentCategoryDto
dto
=
JSON
.
parseObject
(
toJSONString
(
map
),
ESEquipmentCategoryDto
.
class
);
ESEquipmentCategoryDto
dto
=
JSON
.
parseObject
(
toJSONString
(
map
),
ESEquipmentCategoryDto
.
class
);
// 默认赋值占位,方便es条件搜索时使用
dto
.
setSTATUS
(
"null"
);
dto
.
setEQU_STATE
(
9999
);
Optional
<
ESEquipmentCategoryDto
>
data
=
esEquipmentCategory
.
findById
(
id
);
Optional
<
ESEquipmentCategoryDto
>
data
=
esEquipmentCategory
.
findById
(
id
);
if
(!
ObjectUtils
.
isEmpty
(
data
))
{
if
(!
ObjectUtils
.
isEmpty
(
data
))
{
esEquipmentCategory
.
deleteById
(
id
);
esEquipmentCategory
.
deleteById
(
id
);
...
...
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 @
bde8881f
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/logback-dev.xml
View file @
bde8881f
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<logger
name=
"com.yeejoin"
level=
"INFO"
/>
<logger
name=
"com.yeejoin"
level=
"INFO"
/>
<!-- 日志输出级别 -->
<!-- 日志输出级别 -->
<root
level=
"
DEBUG
"
>
<root
level=
"
INFO
"
>
<!-- <appender-ref ref="FILE" /> -->
<!-- <appender-ref ref="FILE" /> -->
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
<!-- <appender-ref ref="ELK" />-->
<!-- <appender-ref ref="ELK" />-->
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/mapper/JyjcInspectionApplicationMapper.java
View file @
bde8881f
...
@@ -6,8 +6,6 @@ import com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionApplication;
...
@@ -6,8 +6,6 @@ import com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionApplication;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionApplicationEquipModel
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionApplicationEquipModel
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.data.repository.query.Param
;
import
java.util.List
;
/**
/**
* Mapper 接口
* Mapper 接口
*
*
...
@@ -19,5 +17,5 @@ public interface JyjcInspectionApplicationMapper extends BaseMapper<JyjcInspecti
...
@@ -19,5 +17,5 @@ public interface JyjcInspectionApplicationMapper extends BaseMapper<JyjcInspecti
public
Page
<
JyjcInspectionApplication
>
queryForDataList
(
Page
<
JyjcInspectionApplication
>
page
,
String
applicationNo
,
String
inspectionClassify
,
String
applicationUnitCode
,
String
applicationUnitName
,
String
equipClassify
,
String
inspectionUnitCode
,
String
inspectionUnitName
,
String
applicationDate
,
String
acceptDate
,
String
inspectionChargePerson
,
String
status
,
String
bizType
);
public
Page
<
JyjcInspectionApplication
>
queryForDataList
(
Page
<
JyjcInspectionApplication
>
page
,
String
applicationNo
,
String
inspectionClassify
,
String
applicationUnitCode
,
String
applicationUnitName
,
String
equipClassify
,
String
inspectionUnitCode
,
String
inspectionUnitName
,
String
applicationDate
,
String
acceptDate
,
String
inspectionChargePerson
,
String
status
,
String
bizType
);
List
<
JyjcInspectionApplicationEquipModel
>
listByCategory
(
@Param
(
"equipClassify"
)
String
equipClassify
);
Page
<
JyjcInspectionApplicationEquipModel
>
listByCategory
(
Page
<
JyjcInspectionApplicationEquipModel
>
page
,
@Param
(
"equipClassify"
)
String
equipClassify
);
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/service/IJyjcInspectionApplicationService.java
View file @
bde8881f
...
@@ -13,5 +13,4 @@ import java.util.List;
...
@@ -13,5 +13,4 @@ import java.util.List;
public
interface
IJyjcInspectionApplicationService
{
public
interface
IJyjcInspectionApplicationService
{
void
deleteBatchData
(
List
<
Long
>
sequenceNbr
);
void
deleteBatchData
(
List
<
Long
>
sequenceNbr
);
List
<
JyjcInspectionApplicationEquipModel
>
listByCategory
(
String
equipClassify
);
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcInspectionApplicationController.java
View file @
bde8881f
...
@@ -243,7 +243,13 @@ public class JyjcInspectionApplicationController extends BaseController {
...
@@ -243,7 +243,13 @@ public class JyjcInspectionApplicationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询指定设备种类的设备列表"
,
notes
=
"查询指定设备种类的设备列表"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询指定设备种类的设备列表"
,
notes
=
"查询指定设备种类的设备列表"
)
@GetMapping
(
value
=
"/listByCategory"
)
@GetMapping
(
value
=
"/listByCategory"
)
public
ResponseModel
<
List
<
JyjcInspectionApplicationEquipModel
>>
listByCategory
(
@RequestParam
(
"equipClassify"
)
String
equipClassify
)
{
public
ResponseModel
<
Page
<
JyjcInspectionApplicationEquipModel
>>
listByCategory
(
return
ResponseHelper
.
buildResponse
(
jyjcInspectionApplicationServiceImpl
.
listByCategory
(
equipClassify
));
@RequestParam
(
"current"
)
int
current
,
@RequestParam
(
"size"
)
int
size
,
@RequestParam
(
"equipClassify"
)
String
equipClassify
)
{
Page
<
JyjcInspectionApplicationEquipModel
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
jyjcInspectionApplicationServiceImpl
.
listByCategory
(
page
,
equipClassify
));
}
}
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcInspectionResultController.java
View file @
bde8881f
...
@@ -107,8 +107,8 @@ public class JyjcInspectionResultController extends BaseController {
...
@@ -107,8 +107,8 @@ public class JyjcInspectionResultController extends BaseController {
@PostMapping
(
value
=
"/applicationUnitPage"
)
@PostMapping
(
value
=
"/applicationUnitPage"
)
@ApiOperation
(
httpMethod
=
"Post"
,
value
=
"列表页面(报检单位)"
,
notes
=
"列表页面(报检单位)"
)
@ApiOperation
(
httpMethod
=
"Post"
,
value
=
"列表页面(报检单位)"
,
notes
=
"列表页面(报检单位)"
)
public
ResponseModel
<
Page
<
JyjcInspectionResultModel
>>
applicationUnitQueryForPage
(
public
ResponseModel
<
Page
<
JyjcInspectionResultModel
>>
applicationUnitQueryForPage
(
@Request
Body
int
current
,
@RequestBody
int
size
,
@Request
Param
int
current
,
@RequestParam
int
size
,
@RequestBody
JyjcInspectionResultModel
model
)
{
@RequestBody
JyjcInspectionResultModel
model
)
{
Page
<
JyjcInspectionResultModel
>
page
=
new
Page
<>();
Page
<
JyjcInspectionResultModel
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
...
@@ -127,7 +127,7 @@ public class JyjcInspectionResultController extends BaseController {
...
@@ -127,7 +127,7 @@ public class JyjcInspectionResultController extends BaseController {
@PostMapping
(
value
=
"/inspectionUnitPage"
)
@PostMapping
(
value
=
"/inspectionUnitPage"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"列表页面(检验检测单位)"
,
notes
=
"列表页面(检验检测单位)"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"列表页面(检验检测单位)"
,
notes
=
"列表页面(检验检测单位)"
)
public
ResponseModel
<
Page
<
JyjcInspectionResultModel
>>
inspectionUnitQueryForPage
(
public
ResponseModel
<
Page
<
JyjcInspectionResultModel
>>
inspectionUnitQueryForPage
(
@Request
Body
int
current
,
@RequestBody
int
size
,
@Request
Param
int
current
,
@RequestParam
int
size
,
@RequestBody
JyjcInspectionResultModel
model
)
{
@RequestBody
JyjcInspectionResultModel
model
)
{
Page
<
JyjcInspectionResultModel
>
page
=
new
Page
<>();
Page
<
JyjcInspectionResultModel
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
...
@@ -135,18 +135,19 @@ public class JyjcInspectionResultController extends BaseController {
...
@@ -135,18 +135,19 @@ public class JyjcInspectionResultController extends BaseController {
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
queryForJyjcInspectionResultPage
(
page
,
model
,
true
));
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
queryForJyjcInspectionResultPage
(
page
,
model
,
true
));
}
}
/**
* 检验结果-上传结果和编辑结果
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/updateResult"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"检验结果-上传结果和编辑结果"
,
notes
=
"检验结果-上传结果和编辑结果"
)
public
ResponseModel
<
JyjcInspectionResultModel
>
updateJyjcInspectionResult
(
@RequestBody
JyjcInspectionResultModel
model
)
{
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
updateJyjcInspectionResult
(
model
));
}
/**
* 检验结果-上传结果和编辑结果
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/updateResult"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"检验结果-上传结果和编辑结果"
,
notes
=
"检验结果-上传结果和编辑结果"
)
public
ResponseModel
<
JyjcInspectionResultModel
>
updateJyjcInspectionResult
(
@RequestBody
Map
<
String
,
JyjcInspectionResultModel
>
model
)
{
JyjcInspectionResultModel
inspectResult
=
model
.
get
(
"inspectResult"
);
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
updateJyjcInspectionResult
(
inspectResult
));
}
/**
/**
* 获取设备种类列表
* 获取设备种类列表
...
...
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/JyjcInspectionApplicationServiceImpl.java
View file @
bde8881f
...
@@ -176,9 +176,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -176,9 +176,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
@Override
public
Page
<
JyjcInspectionApplicationEquipModel
>
listByCategory
(
Page
<
JyjcInspectionApplicationEquipModel
>
page
,
String
equipClassify
)
{
public
List
<
JyjcInspectionApplicationEquipModel
>
listByCategory
(
String
equipClassify
)
{
return
getBaseMapper
().
listByCategory
(
page
,
equipClassify
);
return
getBaseMapper
().
listByCategory
(
equipClassify
);
}
}
...
...
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/JyjcInspectionResultServiceImpl.java
View file @
bde8881f
...
@@ -72,6 +72,9 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
...
@@ -72,6 +72,9 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
public
Page
<
JyjcInspectionResultModel
>
queryForJyjcInspectionResultPage
(
Page
<
JyjcInspectionResultModel
>
page
,
JyjcInspectionResultModel
model
,
boolean
type
)
{
public
Page
<
JyjcInspectionResultModel
>
queryForJyjcInspectionResultPage
(
Page
<
JyjcInspectionResultModel
>
page
,
JyjcInspectionResultModel
model
,
boolean
type
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
if
(
ObjectUtils
.
isEmpty
(
model
))
{
model
=
new
JyjcInspectionResultModel
();
}
if
(
type
)
{
if
(
type
)
{
//检验检测单位分页查询
//检验检测单位分页查询
model
.
setInspectionUnitCode
(
reginParams
.
getCompany
().
getCompanyCode
());
model
.
setInspectionUnitCode
(
reginParams
.
getCompany
().
getCompanyCode
());
...
@@ -134,7 +137,9 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
...
@@ -134,7 +137,9 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
map
.
put
(
"paramJson"
,
mapParam
);
map
.
put
(
"paramJson"
,
mapParam
);
}
}
}
}
return
map
;
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"inspectResult"
,
map
);
return
resultMap
;
}
}
@Override
@Override
...
...
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 @
bde8881f
...
@@ -124,7 +124,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -124,7 +124,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
CompanyBo
companyBo
=
commonserviceImpl
.
getReginParamsOfCurrentUser
().
getCompany
();
CompanyBo
companyBo
=
commonserviceImpl
.
getReginParamsOfCurrentUser
().
getCompany
();
model
.
setUnitCode
(
companyBo
.
getCompanyCode
());
model
.
setUnitCode
(
companyBo
.
getCompanyCode
());
model
.
setUnitCodeName
(
companyBo
.
getCompanyName
());
model
.
setUnitCodeName
(
companyBo
.
getCompanyName
());
model
.
setApplicationSeq
(
createCodeService
.
createDeviceRegistrationCode
(
ApplicationFormTypeEnum
.
JY
.
getCode
()));
List
<
String
>
codes
=
createCodeService
.
createApplicationFormCode
(
ApplicationFormTypeEnum
.
JY
.
getCode
(),
1
);
model
.
setApplicationSeq
(
codes
.
get
(
0
));
return
this
.
createWithModel
(
model
);
return
this
.
createWithModel
(
model
);
}
else
{
}
else
{
return
this
.
updateWithModel
(
model
);
return
this
.
updateWithModel
(
model
);
...
...
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