Commit 23c3e1f0 authored by 刘林's avatar 刘林

fix(jg):黑设备历史登记功能开发

parent fd2ac89b
...@@ -180,4 +180,7 @@ public class JgUseRegistrationDto extends BaseDto { ...@@ -180,4 +180,7 @@ public class JgUseRegistrationDto extends BaseDto {
@ApiModelProperty(value = "气瓶类别(0液化石油气瓶、1工业气瓶、2其他)") @ApiModelProperty(value = "气瓶类别(0液化石油气瓶、1工业气瓶、2其他)")
private String cylinderCategory; private String cylinderCategory;
@ApiModelProperty(value = " 监察处置机构代码")
private String supervisionOrgCode;
} }
...@@ -64,4 +64,9 @@ public class TaskMessageDto { ...@@ -64,4 +64,9 @@ public class TaskMessageDto {
* 下节点任务id * 下节点任务id
*/ */
String nextTaskId; String nextTaskId;
/**
* 登记类型(新增使用登记,历史使用登记,特殊使用登记)
*/
String regType;
} }
...@@ -255,4 +255,10 @@ public class JgUseRegistration extends BaseEntity { ...@@ -255,4 +255,10 @@ public class JgUseRegistration extends BaseEntity {
*/ */
@TableField("cylinder_category") @TableField("cylinder_category")
private String cylinderCategory; private String cylinderCategory;
/**
* 监察处置机构代码
*/
@TableField("supervision_org_code")
private String supervisionOrgCode;
} }
...@@ -19,11 +19,11 @@ public enum WorkFlowStatusEnum { ...@@ -19,11 +19,11 @@ public enum WorkFlowStatusEnum {
* 使用登记流程 * 使用登记流程
*/ */
USE_SUBMIT("使用单位提交", "useSubmit", "使用单位待提交", "一级受理已驳回", "使用单位已撤回"), USE_SUBMIT("使用单位提交", "useSubmit", "使用单位待提交", "一级受理已驳回", "使用单位已撤回"),
USE_RECEIVE("一级受理", "useReceive", "一级待受理", "二级受理已驳回", "一级受理已撤回"), USE_RECEIVE("一级受理", "useReceive", "一级待受理", "已驳回", "一级受理已撤回"),
USE_SAFETY_CHECK("安全监察受理", "safetyCheck", "安全监察待受理", "二级受理已驳回", "安全监察已撤回"),
USE_PRELIMINARY("二级受理", "usePreliminary", "二级待受理", "三级受理已驳回", "二级受理已撤回"), USE_PRELIMINARY("二级受理", "usePreliminary", "二级待受理", "三级受理已驳回", "二级受理已撤回"),
USE_REEXAMINE("三级受理", "useReexamine", "三级待受理","",""), USE_REEXAMINE("三级受理", "useReexamine", "三级待受理","",""),
/** /**
* 维保备案 * 维保备案
*/ */
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
ur.receive_company_code, ur.receive_company_code,
ur.use_unit_credit_code, ur.use_unit_credit_code,
ur.transfer_to_user_ids, ur.transfer_to_user_ids,
ur.supervision_org_code,
ur.use_address as fullAddress, ur.use_address as fullAddress,
ur.cancel_reason as cancelReason, ur.cancel_reason as cancelReason,
(select group_concat(re.equ_id) from tzs_jg_use_registration_eq re where ur.sequence_nbr = re.equip_transfer_id) as equipId, (select group_concat(re.equ_id) from tzs_jg_use_registration_eq re where ur.sequence_nbr = re.equip_transfer_id) as equipId,
...@@ -186,8 +187,9 @@ ...@@ -186,8 +187,9 @@
AND auditPassDate BETWEEN #{dto.auditPassDateStart} AND #{dto.auditPassDateEnd} AND auditPassDate BETWEEN #{dto.auditPassDateStart} AND #{dto.auditPassDateEnd}
</if> </if>
<if test="dto.dataType == 'supervision' "> <if test="dto.dataType == 'supervision' ">
AND (receive_company_code = #{dto.receiveCompanyCode} or transfer_to_user_ids LIKE concat ('%', AND (receive_company_code = #{dto.receiveCompanyCode}
#{dto.currentUserId}, '%')) OR transfer_to_user_ids LIKE concat ('%',#{dto.currentUserId}, '%'))
OR supervision_org_code LIKE concat (#{dto.supervisionOrgCode}, '%')
AND status <![CDATA[<>]]> '使用单位待提交' AND status <![CDATA[<>]]> '使用单位待提交'
</if> </if>
<if test="dto.dataType == 'company' "> <if test="dto.dataType == 'company' ">
...@@ -305,7 +307,8 @@ ...@@ -305,7 +307,8 @@
jri.OTHER_ACCESSORIES_REG as otherAccessoriesReg, jri.OTHER_ACCESSORIES_REG as otherAccessoriesReg,
jfi.OTHER_ACCESSORIES_FACT as otherAccessoriesFact, jfi.OTHER_ACCESSORIES_FACT as otherAccessoriesFact,
jfi.FACT_SUPERVISION_INSPECTION_REPORT as factSupervisionInspectionReport, jfi.FACT_SUPERVISION_INSPECTION_REPORT as factSupervisionInspectionReport,
jfi.BOILER_ENERGY_EFFICIENCY_CERTIFICATE as boilerEnergyEfficiencyCertificate jfi.BOILER_ENERGY_EFFICIENCY_CERTIFICATE as boilerEnergyEfficiencyCertificate,
jfi.FACTORY_IS_COMPLETE as factoryIsComplete
from idx_biz_jg_register_info jri from idx_biz_jg_register_info jri
LEFT JOIN idx_biz_jg_factory_info jfi on jri.RECORD = jfi.RECORD LEFT JOIN idx_biz_jg_factory_info jfi on jri.RECORD = jfi.RECORD
where jri.RECORD = #{id} where jri.RECORD = #{id}
...@@ -399,7 +402,8 @@ ...@@ -399,7 +402,8 @@
APPRAISAL_DATE as appraisalDate, APPRAISAL_DATE as appraisalDate,
DESIGN_DOC as designDoc, DESIGN_DOC as designDoc,
DESIGN_STANDARD as designStandard, DESIGN_STANDARD as designStandard,
OTHER_ACCESSORIES_DES as otherAccessoriesDes OTHER_ACCESSORIES_DES as otherAccessoriesDes,
DESIGN_IS_COMPLETE as designIsComplete
from idx_biz_jg_design_info from idx_biz_jg_design_info
where RECORD = #{id} where RECORD = #{id}
</select> </select>
......
...@@ -120,6 +120,20 @@ public class IdxBizJqEquipmentRegisterController extends BaseController { ...@@ -120,6 +120,20 @@ public class IdxBizJqEquipmentRegisterController extends BaseController {
return ResponseHelper.buildResponse(idxBizJgRegisterInfoService.queryForEquipmentRegisterPage(jsonObject)); return ResponseHelper.buildResponse(idxBizJgRegisterInfoService.queryForEquipmentRegisterPage(jsonObject));
} }
/**
* @author LiuLin
*
* 历史无证设备分页查询接口(ES)
* @param map 参数
* @return 分页信息
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/queryHisNoCertEquipPage")
@ApiOperation(httpMethod = "GET", value = "历史无证设备分页查询接口查询", notes = "历史无证设备分页查询接口查询")
public ResponseModel<Page<JSONObject>> queryHisNoCertEquipPage(@RequestParam Map<String, Object> map) {
return ResponseHelper.buildResponse(idxBizJgRegisterInfoService.queryHisNoCertEquipPage(new JSONObject(map)));
}
// /** // /**
// * 查询设备注册列表 // * 查询设备注册列表
// * // *
......
...@@ -112,6 +112,7 @@ public class JgUseRegistrationController extends BaseController { ...@@ -112,6 +112,7 @@ public class JgUseRegistrationController extends BaseController {
} else { } else {
dto.setDataType(BaseController.COMPANY_TYPE_SUPERVISION); dto.setDataType(BaseController.COMPANY_TYPE_SUPERVISION);
dto.setReceiveCompanyCode(info.getCompany().getCompanyCode()); dto.setReceiveCompanyCode(info.getCompany().getCompanyCode());
dto.setSupervisionOrgCode(info.getCompany().getOrgCode());
} }
if (dto.getAuditPassDateRange() != null && !dto.getAuditPassDateRange().isEmpty() && !dto.getAuditPassDateRange().equals("[, ]")) { if (dto.getAuditPassDateRange() != null && !dto.getAuditPassDateRange().isEmpty() && !dto.getAuditPassDateRange().equals("[, ]")) {
String dateRangeStr = dto.getAuditPassDateRange(); String dateRangeStr = dto.getAuditPassDateRange();
...@@ -136,7 +137,7 @@ public class JgUseRegistrationController extends BaseController { ...@@ -136,7 +137,7 @@ public class JgUseRegistrationController extends BaseController {
Page<Map<String, Object>> list = jgUseRegistrationServiceImpl.getList(dto, sort, page, dto.getRoleIds()); Page<Map<String, Object>> list = jgUseRegistrationServiceImpl.getList(dto, sort, page, dto.getRoleIds());
list.getRecords().forEach(x -> { list.getRecords().forEach(x -> {
x.put("companyType", info.getCompany().getCompanyType()); x.put("companyType", info.getCompany().getCompanyType());
x.put("regType", "1".equals(x.get("regType")) ? "历史登记" : "新增登记"); x.put("regType", "1".equals(x.get("regType")) ? "历史登记": "2".equals(x.get("regType")) ? "特殊历史登记": "新增登记");
}); });
return ResponseHelper.buildResponse(list); return ResponseHelper.buildResponse(list);
} }
......
...@@ -73,4 +73,6 @@ public interface IIdxBizJgRegisterInfoService { ...@@ -73,4 +73,6 @@ public interface IIdxBizJgRegisterInfoService {
void inspectionExpirationReminderOnce(); void inspectionExpirationReminderOnce();
void initEnterpriseLicenseExpirationOnce(); void initEnterpriseLicenseExpirationOnce();
Page<JSONObject> queryHisNoCertEquipPage(JSONObject jsonObject);
} }
...@@ -1291,6 +1291,11 @@ public class CommonServiceImpl implements ICommonService { ...@@ -1291,6 +1291,11 @@ public class CommonServiceImpl implements ICommonService {
return jgUseRegistrationServiceImpl.handleUnitHistoryEquip(jsonObject); return jgUseRegistrationServiceImpl.handleUnitHistoryEquip(jsonObject);
case "vehicle": case "vehicle":
return jgVehicleInformationService.saveOrUpdateHisData(jsonObject); return jgVehicleInformationService.saveOrUpdateHisData(jsonObject);
case "set_sp"://特殊历史登记
jsonObject.put("regType", "2");
jsonObject.put("businessCode", "DJ_SY");
jsonObject.put("submit", Boolean.TRUE);
return jgUseRegistrationServiceImpl.handleUseRegistration(jsonObject);
default: default:
return jgUseRegistrationServiceImpl.handleHistoryEquip(jsonObject); return jgUseRegistrationServiceImpl.handleHistoryEquip(jsonObject);
} }
......
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