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
55341fd3
Commit
55341fd3
authored
May 10, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.检验检测新需求开发
parent
050956d8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
8 deletions
+42
-8
JyjcOpeningApplication.java
...s/boot/module/jyjc/api/entity/JyjcOpeningApplication.java
+6
-0
OpenBizTypeEnum.java
...join/amos/boot/module/jyjc/api/enums/OpenBizTypeEnum.java
+25
-0
JyjcOpeningApplicationModel.java
...ot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
+3
-0
JyjcOpeningApplicationMapper.xml
...rc/main/resources/mapper/JyjcOpeningApplicationMapper.xml
+5
-5
JyjcOpeningApplicationController.java
...jyjc/biz/controller/JyjcOpeningApplicationController.java
+0
-0
InspectionOrgRefreshListener.java
...odule/jyjc/biz/listener/InspectionOrgRefreshListener.java
+3
-3
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/entity/JyjcOpeningApplication.java
View file @
55341fd3
...
...
@@ -141,4 +141,10 @@ public class JyjcOpeningApplication extends BaseEntity {
*/
@TableField
(
value
=
"docking_unit_code"
)
private
String
dockingUnitCode
;
/**
* 开通的业务类型:jc-检测;jy-检验
*/
@TableField
(
value
=
"open_biz_type"
)
private
String
openBizType
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/enums/OpenBizTypeEnum.java
0 → 100644
View file @
55341fd3
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
enums
;
import
lombok.Getter
;
/**
* @author Administrator
*/
@Getter
public
enum
OpenBizTypeEnum
{
/**
* 业务类型
*/
JY
(
"jy"
,
"检验业务"
),
JC
(
"jc"
,
"检测业务"
);
private
String
code
;
private
String
name
;
private
OpenBizTypeEnum
(
String
code
,
String
name
){
this
.
code
=
code
;
this
.
name
=
name
;
}
}
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 @
55341fd3
...
...
@@ -132,4 +132,7 @@ public class JyjcOpeningApplicationModel extends BaseModel {
@ApiModelProperty
(
"对接单位code"
)
private
String
dockingUnitCode
;
@ApiModelProperty
(
"开通的业务类型"
)
private
String
openBizType
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcOpeningApplicationMapper.xml
View file @
55341fd3
...
...
@@ -6,8 +6,9 @@
<select
id=
"selectJyjcOpeningApplicationList"
resultType=
"com.yeejoin.amos.boot.module.jyjc.api.model.JyjcOpeningApplicationModel"
>
select
a.*,cdd2.NAME as status_name
from tz_jyjc_opening_application a
a.*,cdd2.NAME as status_name
from
tz_jyjc_opening_application a
LEFT JOIN cb_data_dictionary cdd2 ON cdd2.code = a.status and cdd2.type = 'JYLCSQ'
<where>
<if
test=
"jyjcOpeningApplicationRequstDto.applicationSeq != '' and jyjcOpeningApplicationRequstDto.applicationSeq != null"
>
...
...
@@ -26,12 +27,11 @@
and a.apply_time
>
=#{applyStartTime}
</if>
<if
test=
"jyjcOpeningApplicationRequstDto.type == 'supervision'"
>
and
a.status not in ('6610'
)
and
(a.status not in ('6610') OR a.transfer_to_user_ids LIKE concat ('%', #{currentUserId}, '%' )
)
</if>
<if
test=
"jyjcOpeningApplicationRequstDto.unitCode != '' and jyjcOpeningApplicationRequstDto.unitCode != null"
>
and
a.unit_code = #{jyjcOpeningApplicationRequstDto.unitCode}
and
(a.unit_code = #{jyjcOpeningApplicationRequstDto.unitCode} OR a.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) )
</if>
OR (a.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) )
</where>
order by sequence_nbr desc
...
...
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 @
55341fd3
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/listener/InspectionOrgRefreshListener.java
View file @
55341fd3
...
...
@@ -71,7 +71,7 @@ public class InspectionOrgRefreshListener extends EmqxListener {
@Value
(
"${spring.application.name}"
)
private
String
applicationName
;
private
static
final
int
REPEAT_TIME
=
2
;
private
static
final
int
repeatTime
=
2
;
@Autowired
RedisUtils
redisUtils
;
...
...
@@ -100,10 +100,10 @@ public class InspectionOrgRefreshListener extends EmqxListener {
BizMessage
bizMessage
=
BLOCKING_QUEUE
.
take
();
// 解决前端组件在属性变化时重复发送两次问题
if
(!
redisUtils
.
hasKey
(
bizMessage
.
getTopic
())){
redisUtils
.
set
(
bizMessage
.
getTopic
(),
true
,
REPEAT_TIME
);
redisUtils
.
set
(
bizMessage
.
getTopic
(),
true
,
repeatTime
);
processBizMessage
(
bizMessage
);
}
else
{
log
.
warn
(
"消息在{}秒内重复,"
,
REPEAT_TIME
);
log
.
warn
(
"消息在{}秒内重复,"
,
repeatTime
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"数据处理失败"
,
e
);
...
...
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 @
55341fd3
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