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
d6c4096a
Commit
d6c4096a
authored
Dec 22, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://36.40.66.175:5000/moa/amos-boot-biz
into develop_tzs_register
parents
8242ee70
9708aac1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
34 deletions
+45
-34
JyjcOpeningApplicationMapper.xml
...rc/main/resources/mapper/JyjcOpeningApplicationMapper.xml
+31
-30
JyjcOpeningApplicationController.java
...jyjc/biz/controller/JyjcOpeningApplicationController.java
+10
-0
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+4
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcOpeningApplicationMapper.xml
View file @
d6c4096a
...
...
@@ -6,50 +6,51 @@
<select
id=
"selectJyjcOpeningApplicationList"
resultType=
"com.yeejoin.amos.boot.module.jyjc.api.model.JyjcOpeningApplicationModel"
>
select
unit_code,
detection_region,
detection_region_name,
application_seq,
result_type,
expiry_date,
accept_date,
status,
remark,
sequence_nbr,
rec_date,
rec_user_id,
rec_user_name,
apply_time,
workflow_prostance_id,
workflow_role,
unit_code_name,
status_name,
workflow_active_key,
next_execute_ids,
promoter,
create_user_id
from tz_jyjc_opening_application
a.unit_code,
a.detection_region,
a.detection_region_name,
a.application_seq,
a.result_type,
a.expiry_date,
a.accept_date,
a.status,
a.remark,
a.sequence_nbr,
a.rec_date,
a.rec_user_id,
a.rec_user_name,
a.apply_time,
a.workflow_prostance_id,
a.workflow_role,
a.unit_code_name,
cdd2.NAME as status_name,
a.workflow_active_key,
a.next_execute_ids,
a.promoter,
a.create_user_id
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"
>
and application_seq like concat('%',#{jyjcOpeningApplicationRequstDto.applicationSeq},'%')
and a
.a
pplication_seq like concat('%',#{jyjcOpeningApplicationRequstDto.applicationSeq},'%')
</if>
<if
test=
"jyjcOpeningApplicationRequstDto.unitCode != '' and jyjcOpeningApplicationRequstDto.unitCode != null"
>
and unit_code like concat('%',#{jyjcOpeningApplicationRequstDto.unitCode},'%')
and
a.
unit_code like concat('%',#{jyjcOpeningApplicationRequstDto.unitCode},'%')
</if>
<if
test=
"jyjcOpeningApplicationRequstDto.acceptDate != '' and jyjcOpeningApplicationRequstDto.acceptDate != null"
>
and a
ccept_date = #{jyjcOpeningApplicationRequstDto.acceptDate},
and a
.accept_date = #{jyjcOpeningApplicationRequstDto.acceptDate}
</if>
<if
test=
"jyjcOpeningApplicationRequstDto.status != '' and jyjcOpeningApplicationRequstDto.status != null"
>
and status = #{jyjcOpeningApplicationRequstDto.status}
and
a.
status = #{jyjcOpeningApplicationRequstDto.status}
</if>
<if
test=
"applyendTime != '' and applyendTime != null"
>
and apply_time
<
= #{applyendTime}
and a
.a
pply_time
<
= #{applyendTime}
</if>
<if
test=
"applyStartTime != '' and applyStartTime != null"
>
and apply_time
>
=#{applyStartTime}
and a
.a
pply_time
>
=#{applyStartTime}
</if>
<if
test=
"jyjcOpeningApplicationRequstDto.type == 'supervision'"
>
and status not in ('6610')
and
a.
status not in ('6610')
</if>
</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 @
d6c4096a
...
...
@@ -229,6 +229,16 @@ public class JyjcOpeningApplicationController extends BaseController {
return
ResponseHelper
.
buildResponse
(
roleIds
);
}
/**
* 废弃接口, 已替换成公共接口
*
*
* @param
* @return {@link ResponseModel< List< Map< String Object>>>}
* @author yangyang
* @throws
*/
@Deprecated
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"办理状态枚举列表"
,
notes
=
"办理状态枚举列表"
)
@GetMapping
(
value
=
"/flow-status/list"
)
...
...
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 @
d6c4096a
...
...
@@ -120,7 +120,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
instanceId
=
startFlow
(
"1"
);
}
model
.
setStatus
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()
+
""
);
model
.
setStatusName
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getName
());
//
model.setStatusName(FlowStatusEnum.TO_BE_PROCESSED.getName());
model
.
setApplyTime
(
new
Date
());
model
.
setWorkflowProstanceId
(
instanceId
);
// 默认自动执行第一步
...
...
@@ -139,7 +139,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
// 只有第一次改为待提交
if
(
entity
==
null
)
{
model
.
setStatus
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()
+
""
);
model
.
setStatusName
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getName
());
//
model.setStatusName(FlowStatusEnum.TO_BE_SUBMITTED.getName());
}
}
if
(!
isUpdate
)
{
...
...
@@ -164,7 +164,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
@Transactional
(
rollbackFor
=
{
Exception
.
class
,
BaseException
.
class
})
public
JyjcOpeningApplicationModel
resubmit
(
JyjcOpeningApplicationModel
model
)
{
model
.
setStatus
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()
+
""
);
model
.
setStatusName
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getName
());
//
model.setStatusName(FlowStatusEnum.TO_BE_PROCESSED.getName());
model
=
this
.
updateWithModel
(
model
);
execueFlow
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"op"
,
"0"
).
put
(
"instanceId"
,
model
.
getWorkflowProstanceId
()).
put
(
"comments"
,
""
).
build
());
return
model
;
...
...
@@ -195,7 +195,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
entity
.
setWorkflowRole
(
role
);
}
entity
.
setStatus
(
status
);
entity
.
setStatusName
(
FlowStatusEnum
.
getNameByType
(
Long
.
parseLong
(
status
)));
//
entity.setStatusName(FlowStatusEnum.getNameByType(Long.parseLong(status)));
// region 更新其他的数据为已作废
if
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()).
equals
(
status
))
{
doDiscard
(
entity
.
getUnitCode
(),
entity
.
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