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
c04ef07c
Commit
c04ef07c
authored
Dec 20, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报检新增
parent
114400e2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
JyjcInspectionApplicationMapper.xml
...main/resources/mapper/JyjcInspectionApplicationMapper.xml
+2
-2
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+19
-9
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcInspectionApplicationMapper.xml
View file @
c04ef07c
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
LEFT JOIN cb_data_dictionary cdd3 ON cdd3.code = tzjia.inspection_type
LEFT JOIN cb_data_dictionary cdd3 ON cdd3.code = tzjia.inspection_type
<where>
<where>
<if
test=
" applicationNo != null and applicationNo != ''"
>
<if
test=
" applicationNo != null and applicationNo != ''"
>
and application_no like concat('%',#{applicationNo}
.
'%')
and application_no like concat('%',#{applicationNo}
,
'%')
</if>
</if>
<if
test=
"inspectionClassify != null and inspectionClassify != ''"
>
<if
test=
"inspectionClassify != null and inspectionClassify != ''"
>
and inspection_classify = #{inspectionClassify}
and inspection_classify = #{inspectionClassify}
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
and accept_date = #{acceptDate}
and accept_date = #{acceptDate}
</if>
</if>
<if
test=
"inspectionChargePerson != null and inspectionChargePerson != ''"
>
<if
test=
"inspectionChargePerson != null and inspectionChargePerson != ''"
>
and inspection_charge_person like concat('%',#{inspectionChargePerson}
.
'%')
and inspection_charge_person like concat('%',#{inspectionChargePerson}
,
'%')
</if>
</if>
<if
test=
"status != null and status != ''"
>
<if
test=
"status != null and status != ''"
>
and status = #{status}
and status = #{status}
...
...
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 @
c04ef07c
...
@@ -108,6 +108,17 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -108,6 +108,17 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
model
.
setProcessInstanceId
(
id
);
model
.
setProcessInstanceId
(
id
);
execueFlow
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"op"
,
"0"
).
put
(
"instanceId"
,
id
).
put
(
"comments"
,
""
).
build
());
execueFlow
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"op"
,
"0"
).
put
(
"instanceId"
,
id
).
put
(
"comments"
,
""
).
build
());
// region 获取下一个流程节点的数据
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
model
.
getProcessInstanceId
());
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
model
.
setNextExecuteIds
(
role
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
model
.
getWorkflowRole
()))
{
model
.
setWorkflowRole
(
model
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
model
.
setWorkflowRole
(
role
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -128,15 +139,6 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -128,15 +139,6 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
model
.
setApplicationNo
(
codes
.
get
(
0
));
model
.
setApplicationNo
(
codes
.
get
(
0
));
model
.
setApplicationDate
(
new
Date
());
model
.
setApplicationDate
(
new
Date
());
// region 获取下一个流程节点的数据
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
model
.
getProcessInstanceId
());
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
model
.
setNextExecuteIds
(
role
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
model
.
getWorkflowRole
()))
{
model
.
setWorkflowRole
(
model
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
model
.
setWorkflowRole
(
role
);
}
List
<
JyjcInspectionApplicationEquip
>
equipInfos
=
new
ArrayList
<>();
List
<
JyjcInspectionApplicationEquip
>
equipInfos
=
new
ArrayList
<>();
if
(
null
!=
model
.
getEquip
()
&&
model
.
getEquip
().
size
()
>
0
)
{
if
(
null
!=
model
.
getEquip
()
&&
model
.
getEquip
().
size
()
>
0
)
{
...
@@ -153,7 +155,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -153,7 +155,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
model
.
setNumberOfEquip
(
equipInfos
.
size
());
model
.
setNumberOfEquip
(
equipInfos
.
size
());
// endregion
// endregion
if
(
null
==
model
.
getSequenceNbr
()){
model
=
this
.
createWithModel
(
model
);
model
=
this
.
createWithModel
(
model
);
}
else
{
model
=
this
.
updateWithModel
(
model
);
}
//保存报检装备监管码
//保存报检装备监管码
for
(
JyjcInspectionApplicationEquip
equipInfo
:
equipInfos
)
{
for
(
JyjcInspectionApplicationEquip
equipInfo
:
equipInfos
)
{
equipInfo
.
setApplicationSeq
(
model
.
getSequenceNbr
());
equipInfo
.
setApplicationSeq
(
model
.
getSequenceNbr
());
...
...
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