Commit d6c4096a authored by KeYong's avatar KeYong

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
...@@ -6,50 +6,51 @@ ...@@ -6,50 +6,51 @@
<select id="selectJyjcOpeningApplicationList" <select id="selectJyjcOpeningApplicationList"
resultType="com.yeejoin.amos.boot.module.jyjc.api.model.JyjcOpeningApplicationModel"> resultType="com.yeejoin.amos.boot.module.jyjc.api.model.JyjcOpeningApplicationModel">
select select
unit_code, a.unit_code,
detection_region, a.detection_region,
detection_region_name, a.detection_region_name,
application_seq, a.application_seq,
result_type, a.result_type,
expiry_date, a.expiry_date,
accept_date, a.accept_date,
status, a.status,
remark, a.remark,
sequence_nbr, a.sequence_nbr,
rec_date, a.rec_date,
rec_user_id, a.rec_user_id,
rec_user_name, a.rec_user_name,
apply_time, a.apply_time,
workflow_prostance_id, a.workflow_prostance_id,
workflow_role, a.workflow_role,
unit_code_name, a.unit_code_name,
status_name, cdd2.NAME as status_name,
workflow_active_key, a.workflow_active_key,
next_execute_ids, a.next_execute_ids,
promoter, a.promoter,
create_user_id a.create_user_id
from tz_jyjc_opening_application from tz_jyjc_opening_application a
LEFT JOIN cb_data_dictionary cdd2 ON cdd2.code = a.status and cdd2.type = 'JYLCSQ'
<where> <where>
<if test="jyjcOpeningApplicationRequstDto.applicationSeq != '' and jyjcOpeningApplicationRequstDto.applicationSeq != null"> <if test="jyjcOpeningApplicationRequstDto.applicationSeq != '' and jyjcOpeningApplicationRequstDto.applicationSeq != null">
and application_seq like concat('%',#{jyjcOpeningApplicationRequstDto.applicationSeq},'%') and a.application_seq like concat('%',#{jyjcOpeningApplicationRequstDto.applicationSeq},'%')
</if> </if>
<if test="jyjcOpeningApplicationRequstDto.unitCode != '' and jyjcOpeningApplicationRequstDto.unitCode != null"> <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>
<if test="jyjcOpeningApplicationRequstDto.acceptDate != '' and jyjcOpeningApplicationRequstDto.acceptDate != null"> <if test="jyjcOpeningApplicationRequstDto.acceptDate != '' and jyjcOpeningApplicationRequstDto.acceptDate != null">
and accept_date = #{jyjcOpeningApplicationRequstDto.acceptDate}, and a.accept_date = #{jyjcOpeningApplicationRequstDto.acceptDate}
</if> </if>
<if test="jyjcOpeningApplicationRequstDto.status != '' and jyjcOpeningApplicationRequstDto.status != null"> <if test="jyjcOpeningApplicationRequstDto.status != '' and jyjcOpeningApplicationRequstDto.status != null">
and status = #{jyjcOpeningApplicationRequstDto.status} and a.status = #{jyjcOpeningApplicationRequstDto.status}
</if> </if>
<if test="applyendTime != '' and applyendTime != null"> <if test="applyendTime != '' and applyendTime != null">
and apply_time &lt;= #{applyendTime} and a.apply_time &lt;= #{applyendTime}
</if> </if>
<if test="applyStartTime != '' and applyStartTime != null"> <if test="applyStartTime != '' and applyStartTime != null">
and apply_time &gt;=#{applyStartTime} and a.apply_time &gt;=#{applyStartTime}
</if> </if>
<if test="jyjcOpeningApplicationRequstDto.type == 'supervision'"> <if test="jyjcOpeningApplicationRequstDto.type == 'supervision'">
and status not in ('6610') and a.status not in ('6610')
</if> </if>
</where> </where>
order by sequence_nbr desc order by sequence_nbr desc
......
...@@ -229,6 +229,16 @@ public class JyjcOpeningApplicationController extends BaseController { ...@@ -229,6 +229,16 @@ public class JyjcOpeningApplicationController extends BaseController {
return ResponseHelper.buildResponse(roleIds); return ResponseHelper.buildResponse(roleIds);
} }
/**
* 废弃接口, 已替换成公共接口
*
*
* @param
* @return {@link ResponseModel< List< Map< String Object>>>}
* @author yangyang
* @throws
*/
@Deprecated
@TycloudOperation (ApiLevel = UserType.AGENCY) @TycloudOperation (ApiLevel = UserType.AGENCY)
@ApiOperation (httpMethod = "GET", value = "办理状态枚举列表", notes = "办理状态枚举列表") @ApiOperation (httpMethod = "GET", value = "办理状态枚举列表", notes = "办理状态枚举列表")
@GetMapping (value = "/flow-status/list") @GetMapping (value = "/flow-status/list")
......
...@@ -120,7 +120,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -120,7 +120,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
instanceId = startFlow("1"); instanceId = startFlow("1");
} }
model.setStatus(FlowStatusEnum.TO_BE_PROCESSED.getCode() + ""); 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.setApplyTime(new Date());
model.setWorkflowProstanceId(instanceId); model.setWorkflowProstanceId(instanceId);
// 默认自动执行第一步 // 默认自动执行第一步
...@@ -139,7 +139,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -139,7 +139,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
// 只有第一次改为待提交 // 只有第一次改为待提交
if (entity == null) { if (entity == null) {
model.setStatus(FlowStatusEnum.TO_BE_SUBMITTED.getCode() + ""); model.setStatus(FlowStatusEnum.TO_BE_SUBMITTED.getCode() + "");
model.setStatusName(FlowStatusEnum.TO_BE_SUBMITTED.getName()); // model.setStatusName(FlowStatusEnum.TO_BE_SUBMITTED.getName());
} }
} }
if (!isUpdate) { if (!isUpdate) {
...@@ -164,7 +164,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -164,7 +164,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
@Transactional(rollbackFor = {Exception.class, BaseException.class}) @Transactional(rollbackFor = {Exception.class, BaseException.class})
public JyjcOpeningApplicationModel resubmit(JyjcOpeningApplicationModel model) { public JyjcOpeningApplicationModel resubmit(JyjcOpeningApplicationModel model) {
model.setStatus(FlowStatusEnum.TO_BE_PROCESSED.getCode() + ""); 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); model = this.updateWithModel(model);
execueFlow(MapBuilder.<String, Object>create().put("op", "0").put("instanceId", model.getWorkflowProstanceId()).put("comments", "").build()); execueFlow(MapBuilder.<String, Object>create().put("op", "0").put("instanceId", model.getWorkflowProstanceId()).put("comments", "").build());
return model; return model;
...@@ -195,7 +195,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -195,7 +195,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
entity.setWorkflowRole(role); entity.setWorkflowRole(role);
} }
entity.setStatus(status); entity.setStatus(status);
entity.setStatusName(FlowStatusEnum.getNameByType(Long.parseLong(status))); // entity.setStatusName(FlowStatusEnum.getNameByType(Long.parseLong(status)));
// region 更新其他的数据为已作废 // region 更新其他的数据为已作废
if (String.valueOf(FlowStatusEnum.TO_BE_FINISHED.getCode()).equals(status)) { if (String.valueOf(FlowStatusEnum.TO_BE_FINISHED.getCode()).equals(status)) {
doDiscard(entity.getUnitCode(), entity.getSequenceNbr()); doDiscard(entity.getUnitCode(), entity.getSequenceNbr());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment