Commit 7bb10ecf authored by yangyang's avatar yangyang

feat(检验业务开通):1.新增接口-根据ID查找企业详情信息; 2.报检流程页面配置

parent bf7f52d5
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
<select id="queryForDataList" <select id="queryForDataList"
resultType="com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionApplication"> resultType="com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionApplication">
select select
tzjia.sequence_nbr,
tzjia.process_instance_id,
tzjia.workflow_node,
tzjia.biz_type,
tzjia.application_no, tzjia.application_no,
tzjia.inspection_type, tzjia.inspection_type,
(select name from cb_data_dictionary where cb_data_dictionary.code = tzjia.inspection_classify and cb_data_dictionary.type = 'JYJCLB') as inspectionClassify, (select name from cb_data_dictionary where cb_data_dictionary.code = tzjia.inspection_classify and cb_data_dictionary.type = 'JYJCLB') as inspectionClassify,
......
...@@ -50,4 +50,12 @@ public class CommonController extends BaseController { ...@@ -50,4 +50,12 @@ public class CommonController extends BaseController {
public ResponseModel<List<TzBaseEnterpriseInfo>> getInspectionUnitList() { public ResponseModel<List<TzBaseEnterpriseInfo>> getInspectionUnitList() {
return ResponseHelper.buildResponse(commonserviceImpl.getInspectionUnitList()); return ResponseHelper.buildResponse(commonserviceImpl.getInspectionUnitList());
} }
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/getInspectionUnit/{sequenceNbr}")
@ApiOperation(httpMethod = "GET", value = "查询检验检测机构基本信息", notes = "查询检验检测机构基本信息")
public ResponseModel<TzBaseEnterpriseInfo> getInspectionUnitBySequenceNbr(@PathVariable(value = "sequenceNbr") Long sequenceNbr) {
return ResponseHelper.buildResponse(commonserviceImpl.getInspectionUnitBySequenceNbr(sequenceNbr));
}
} }
...@@ -52,4 +52,8 @@ public class CommonserviceImpl { ...@@ -52,4 +52,8 @@ public class CommonserviceImpl {
public List<TzBaseEnterpriseInfo> getInspectionUnitList() { public List<TzBaseEnterpriseInfo> getInspectionUnitList() {
return enterpriseInfoMapper.getInspectionUnitList(UNIT_TYPE); return enterpriseInfoMapper.getInspectionUnitList(UNIT_TYPE);
} }
public TzBaseEnterpriseInfo getInspectionUnitBySequenceNbr(Long sequenceNbr) {
return enterpriseInfoMapper.selectBySeq(sequenceNbr);
}
} }
...@@ -266,7 +266,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -266,7 +266,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
execueFlow(params); execueFlow(params);
// 执行接收业务 // 执行接收业务
String type = (String) params.get("type"); String type = (String) params.get("type");
Long sequenceNbr = (Long) params.get("sequenceNbr"); Long sequenceNbr = Long.parseLong((String) params.get("sequenceNbr"));
JyjcInspectionApplicationModel inspectionApplicationModel = this.queryBySeq(sequenceNbr); JyjcInspectionApplicationModel inspectionApplicationModel = this.queryBySeq(sequenceNbr);
List<JyjcInspectionApplicationEquipModel> applicationEquipModels = applicationEquipService.listApplicationEquipByApplicationSeq(sequenceNbr); List<JyjcInspectionApplicationEquipModel> applicationEquipModels = applicationEquipService.listApplicationEquipByApplicationSeq(sequenceNbr);
if (inspectionApplicationModel == null || ValidationUtil.isEmpty(applicationEquipModels)) { if (inspectionApplicationModel == null || ValidationUtil.isEmpty(applicationEquipModels)) {
......
...@@ -52,4 +52,15 @@ public interface TzBaseEnterpriseInfoMapper extends BaseMapper<TzBaseEnterpriseI ...@@ -52,4 +52,15 @@ public interface TzBaseEnterpriseInfoMapper extends BaseMapper<TzBaseEnterpriseI
* *
*/ */
List<TzBaseEnterpriseInfo> getInspectionUnitList(@Param("unitType") String unitType); List<TzBaseEnterpriseInfo> getInspectionUnitList(@Param("unitType") String unitType);
/**
* 根据ID查找企业详情信息
*
*
* @param sequenceNbr sequenceNbr
* @return {@link TzBaseEnterpriseInfo}
* @author yangyang
* @throws
*/
TzBaseEnterpriseInfo selectBySeq(Long sequenceNbr);
} }
...@@ -159,5 +159,7 @@ ...@@ -159,5 +159,7 @@
from tz_base_enterprise_info from tz_base_enterprise_info
where unit_type LIKE CONCAT('%',#{unitType},'%') where unit_type LIKE CONCAT('%',#{unitType},'%')
</select> </select>
<select id="selectBySeq" resultType="com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo">
select * from tz_base_enterprise_info where sequence_nbr = #{sequenceNbr}
</select>
</mapper> </mapper>
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