Commit 7c187a5b authored by 刘林's avatar 刘林

fix(jg):历史设备添加联想,使用单位

parent 05340925
......@@ -475,7 +475,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
public void exportUseRegistrationCertificate(JgUseRegistrationManage manage, HttpServletResponse response, String printType) {
Map<String, Object> exportParamsMap = new HashMap<>();
// 查询使用登记详情
exportParamsMap.put("manageType", manage.getManageType());
List<JSONObject> deviceList = this.queryEquByCertificateSeq(manage.getSequenceNbr());
if (ValidationUtil.isEmpty(manage) || ValidationUtil.isEmpty(deviceList)) {
throw new BadRequest("使用登记证导出失败,请稍后重试!");
......@@ -508,15 +508,16 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
exportParamsMap.put("equCode", deviceList.get(0).get("EQU_CODE"));
if (BusinessTypeEnum.JG_VEHICLE_GAS_APPLICATION.getName().equals(manage.getRegType())){
exportParamsMap.put("fullAddress", manage.getUseUnitAddress());
exportParamsMap.put("manageType", manage.getManageType());
exportParamsMap.put("equDefineCode", "23T0");
}else{
exportParamsMap.put("fullAddress", manage.getEquUseAddress());
}
exportParamsMap.put("fullAddress", manage.getEquUseAddress());
exportParamsMap.put("applyNo", manage.getApplyNo());
exportParamsMap.put("factoryNum", deviceList.get(0).get("FACTORY_NUM"));
exportParamsMap.put("useInnerCode", deviceList.get(0).get("USE_INNER_CODE"));
exportParamsMap.put("carNumber", manage.getCarNumber());
exportParamsMap.put("equDefineCode", "23T0");
if ("0".equals(printType)) {
// 调用生成使用登记证
......
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