Commit 2646f551 authored by suhuiguang's avatar suhuiguang

1.检验检测联调修改

parent 722ccc94
...@@ -2,6 +2,9 @@ package com.yeejoin.amos.boot.module.jyjc.api.enums; ...@@ -2,6 +2,9 @@ package com.yeejoin.amos.boot.module.jyjc.api.enums;
import lombok.Getter; import lombok.Getter;
import java.util.Arrays;
import java.util.Optional;
/** /**
* @author Administrator * @author Administrator
*/ */
...@@ -22,4 +25,9 @@ public enum OpenBizTypeEnum { ...@@ -22,4 +25,9 @@ public enum OpenBizTypeEnum {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
public static OpenBizTypeEnum getOneByCode(String code){
Optional<OpenBizTypeEnum> op = Arrays.stream(OpenBizTypeEnum.values()).filter(e->e.getCode().equals(code)).findFirst();
return op.orElse(null);
}
} }
...@@ -18,7 +18,8 @@ import java.util.List; ...@@ -18,7 +18,8 @@ import java.util.List;
public interface JyjcOpeningApplicationMapper extends BaseMapper<JyjcOpeningApplication> { public interface JyjcOpeningApplicationMapper extends BaseMapper<JyjcOpeningApplication> {
Page<JyjcOpeningApplicationModel> selectJyjcOpeningApplicationList(@Param("page")Page<JyjcOpeningApplication> page, Page<JyjcOpeningApplicationModel> selectJyjcOpeningApplicationList(@Param("page")Page<JyjcOpeningApplication> page,
@Param("jyjcOpeningApplicationRequstDto") JyjcOpeningApplicationRequstDto jyjcOpeningApplicationRequstDto, @Param("applyStartTime") String applyStartTime, @Param("jyjcOpeningApplicationRequstDto") JyjcOpeningApplicationRequstDto jyjcOpeningApplicationRequstDto,
@Param("applyStartTime") String applyStartTime,
@Param("currentUserId") String currentUserId, @Param("currentUserId") String currentUserId,
@Param("applyendTime") String applyendTime); @Param("applyendTime") String applyendTime);
......
...@@ -135,4 +135,7 @@ public class JyjcOpeningApplicationModel extends BaseModel { ...@@ -135,4 +135,7 @@ public class JyjcOpeningApplicationModel extends BaseModel {
@ApiModelProperty("开通的业务类型") @ApiModelProperty("开通的业务类型")
private String openBizType; private String openBizType;
@ApiModelProperty("开通的业务类型名称")
private String openBizTypeName;
} }
...@@ -46,4 +46,7 @@ public class JyjcOpeningApplicationRequstDto { ...@@ -46,4 +46,7 @@ public class JyjcOpeningApplicationRequstDto {
@ApiModelProperty (value = "supervision: 监管; enterprise: 企业") @ApiModelProperty (value = "supervision: 监管; enterprise: 企业")
private String type; private String type;
@ApiModelProperty("开通业务类型")
private String openBizType;
} }
...@@ -32,7 +32,12 @@ ...@@ -32,7 +32,12 @@
<if test="jyjcOpeningApplicationRequstDto.unitCode != '' and jyjcOpeningApplicationRequstDto.unitCode != null"> <if test="jyjcOpeningApplicationRequstDto.unitCode != '' and jyjcOpeningApplicationRequstDto.unitCode != null">
and (a.unit_code = #{jyjcOpeningApplicationRequstDto.unitCode} OR a.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) ) and (a.unit_code = #{jyjcOpeningApplicationRequstDto.unitCode} OR a.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) )
</if> </if>
<if test="jyjcOpeningApplicationRequstDto.openBizType != '' and jyjcOpeningApplicationRequstDto.openBizType != null">
and a.open_biz_type = #{jyjcOpeningApplicationRequstDto.openBizType}
</if>
<if test="jyjcOpeningApplicationRequstDto.unitCodeName != '' and jyjcOpeningApplicationRequstDto.unitCodeName != null">
and a.unit_code_name like concat('%',#{jyjcOpeningApplicationRequstDto.unitCodeName},'%')
</if>
</where> </where>
order by sequence_nbr desc order by sequence_nbr desc
......
...@@ -85,13 +85,13 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -85,13 +85,13 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
@Value("${process-definition-key.jyjc.openapplication:}") @Value("${process-definition-key.jyjc.openapplication:}")
private String processDefinitionKey; private String processDefinitionKey;
@Value("${jy.user-post:6615}") @Value("${jy.user-post:66151}")
private String jyUserPost; private String jyUserPost;
@Value("${jy.cert.type.code:1233-1}") @Value("${jy.cert.type.code:1233-1}")
private String jyCertTypeCode; private String jyCertTypeCode;
@Value("${jc.user-post:6615}") @Value("${jc.user-post:66152}")
private String jcUserPost; private String jcUserPost;
@Value("${jc.cert.type.code:1233-2}") @Value("${jc.cert.type.code:1233-2}")
...@@ -299,11 +299,20 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -299,11 +299,20 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
Page<JyjcOpeningApplicationModel> result = jyjcOpeningApplicationMapper.selectJyjcOpeningApplicationList(page, dto, applyStartTime, currentUserId, applyEndTime); Page<JyjcOpeningApplicationModel> result = jyjcOpeningApplicationMapper.selectJyjcOpeningApplicationList(page, dto, applyStartTime, currentUserId, applyEndTime);
for (JyjcOpeningApplicationModel record : result.getRecords()) { for (JyjcOpeningApplicationModel record : result.getRecords()) {
record.setIdentityType(dto.getType()); record.setIdentityType(dto.getType());
record.setOpenBizTypeName(this.getOpenBizTypeName(record.getOpenBizType()));
} }
return result; return result;
} }
private String getOpenBizTypeName(String openBizType) {
return Optional.ofNullable(OpenBizTypeEnum.getOneByCode(openBizType))
.map(OpenBizTypeEnum::getName)
.orElse("");
}
/** /**
* 获取详情跳转 * 获取详情跳转
* *
......
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