Commit c3ec77b8 authored by 刘林's avatar 刘林

Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register

parents d821beed a7a0c2d5
...@@ -166,6 +166,9 @@ public class JgTransferNoticeDto extends BaseDto { ...@@ -166,6 +166,9 @@ public class JgTransferNoticeDto extends BaseDto {
@ApiModelProperty(value = "委托书附件") @ApiModelProperty(value = "委托书附件")
private List<Map<String, Object>> powerOfAttorneyList; private List<Map<String, Object>> powerOfAttorneyList;
@ApiModelProperty(value = "其他附件")
private List<Map<String, Object>> otherAccessoriesList;
@ApiModelProperty(value = "施工合同附件") @ApiModelProperty(value = "施工合同附件")
private List<Map<String, Object>> constructionContractList; private List<Map<String, Object>> constructionContractList;
......
...@@ -44,7 +44,7 @@ public enum BusinessTypeEnum { ...@@ -44,7 +44,7 @@ public enum BusinessTypeEnum {
JY_INSPECTION_APPLICATION_DS("116", "定(首)检验"), JY_INSPECTION_APPLICATION_DS("116", "定(首)检验"),
JY_INSPECTION_APPLICATION_CHECK("117", "检验(含安全阀效验)"), JY_INSPECTION_APPLICATION_CHECK("117", "电梯检测"),
JG_VEHICLE_GAS_APPLICATION("118", "车用气瓶登记"); JG_VEHICLE_GAS_APPLICATION("118", "车用气瓶登记");
private final String code; private final String code;
......
...@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams; import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeDto; import com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeDto;
import com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNotice; import com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNotice;
import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -64,7 +66,7 @@ public interface IJgMaintainNoticeService extends IService<JgMaintainNotice> { ...@@ -64,7 +66,7 @@ public interface IJgMaintainNoticeService extends IService<JgMaintainNotice> {
* @param sequenceNbr 主键 * @param sequenceNbr 主键
* @return pdf文件路径 * @return pdf文件路径
*/ */
String generateMaintainNoticeReport(Long sequenceNbr); void generateMaintainNoticeReport(Long sequenceNbr,HttpServletResponse response);
boolean deleteBySequenceNbr(Long[] sequenceNbr); boolean deleteBySequenceNbr(Long[] sequenceNbr);
} }
...@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams; import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.module.jg.api.dto.JgReformNoticeDto; import com.yeejoin.amos.boot.module.jg.api.dto.JgReformNoticeDto;
import com.yeejoin.amos.boot.module.jg.api.entity.JgReformNotice; import com.yeejoin.amos.boot.module.jg.api.entity.JgReformNotice;
import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -65,5 +66,5 @@ public interface IJgReformNoticeService extends IService<JgReformNotice> { ...@@ -65,5 +66,5 @@ public interface IJgReformNoticeService extends IService<JgReformNotice> {
* @param sequenceNbr 主键 * @param sequenceNbr 主键
* @return pdf文件路径 * @return pdf文件路径
*/ */
String generateInstallationNoticeReport(Long sequenceNbr); void generateInstallationNoticeReport(Long sequenceNbr,HttpServletResponse response);
} }
...@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgTransferNoticeDto; ...@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgTransferNoticeDto;
import com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNotice; import com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNotice;
import jdk.nashorn.api.scripting.JSObject; import jdk.nashorn.api.scripting.JSObject;
import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -29,6 +30,6 @@ public interface IJgTransferNoticeService extends IService<JgTransferNotice> { ...@@ -29,6 +30,6 @@ public interface IJgTransferNoticeService extends IService<JgTransferNotice> {
List<JgTransferNotice> saveNotice(String submitType, Map<String, Object> model, ReginParams reginParams); List<JgTransferNotice> saveNotice(String submitType, Map<String, Object> model, ReginParams reginParams);
String generateTransferNoticeReport(Long sequenceNbr); void generateTransferNoticeReport(Long sequenceNbr, HttpServletResponse response);
} }
...@@ -19,6 +19,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation; ...@@ -19,6 +19,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper; import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel; import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.servlet.http.HttpServletResponse;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -140,7 +141,7 @@ public class JgMaintainNoticeController extends BaseController { ...@@ -140,7 +141,7 @@ public class JgMaintainNoticeController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "维修告知列表全部数据查询", notes = "维修告知列表全部数据查询") @ApiOperation(httpMethod = "GET", value = "维修告知列表全部数据查询", notes = "维修告知列表全部数据查询")
@GetMapping(value = "/generate-report") @GetMapping(value = "/generate-report")
public ResponseModel<String> generateReport(@RequestParam("sequenceNbr") Long sequenceNbr) { public void generateReport(HttpServletResponse response, @RequestParam("sequenceNbr") Long sequenceNbr) {
return ResponseHelper.buildResponse(iJgMaintainNoticeService.generateMaintainNoticeReport(sequenceNbr)); iJgMaintainNoticeService.generateMaintainNoticeReport(sequenceNbr,response);
} }
} }
...@@ -18,6 +18,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation; ...@@ -18,6 +18,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper; import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel; import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.servlet.http.HttpServletResponse;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
...@@ -140,7 +141,7 @@ public class JgReformNoticeController extends BaseController { ...@@ -140,7 +141,7 @@ public class JgReformNoticeController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "改造告知列表全部数据查询", notes = "改造告知列表全部数据查询") @ApiOperation(httpMethod = "GET", value = "改造告知列表全部数据查询", notes = "改造告知列表全部数据查询")
@GetMapping(value = "/generate-report") @GetMapping(value = "/generate-report")
public ResponseModel<String> generateReport(@RequestParam("sequenceNbr") Long sequenceNbr) { public void generateReport(HttpServletResponse response, @RequestParam("sequenceNbr") Long sequenceNbr) {
return ResponseHelper.buildResponse(jgReformNoticeService.generateInstallationNoticeReport(sequenceNbr)); jgReformNoticeService.generateInstallationNoticeReport(sequenceNbr,response);
} }
} }
...@@ -167,8 +167,8 @@ public class JgTransferNoticeController extends BaseController { ...@@ -167,8 +167,8 @@ public class JgTransferNoticeController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "移装告知列表全部数据查询", notes = "移装造告知列表全部数据查询") @ApiOperation(httpMethod = "GET", value = "移装告知列表全部数据查询", notes = "移装造告知列表全部数据查询")
@GetMapping(value = "/generate-report") @GetMapping(value = "/generate-report")
public ResponseModel<String> selectForList(@RequestParam("sequenceNbr") Long sequenceNbr) { public void selectForList(HttpServletResponse response,@RequestParam("sequenceNbr") Long sequenceNbr) {
return ResponseHelper.buildResponse(jgTransferNoticeService.generateTransferNoticeReport(sequenceNbr)); jgTransferNoticeService.generateTransferNoticeReport(sequenceNbr,response);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
......
...@@ -53,6 +53,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService; ...@@ -53,6 +53,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest; import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import org.typroject.tyboot.core.restful.utils.ResponseModel; import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.servlet.http.HttpServletResponse;
import java.text.ParseException; import java.text.ParseException;
import java.util.*; import java.util.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
...@@ -365,7 +366,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -365,7 +366,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
* @return pdf文件路径 * @return pdf文件路径
*/ */
@Override @Override
public String generateMaintainNoticeReport(Long sequenceNbr) { public void generateMaintainNoticeReport(Long sequenceNbr, HttpServletResponse response) {
if (Objects.isNull(sequenceNbr)) { if (Objects.isNull(sequenceNbr)) {
throw new IllegalArgumentException("参数不能为空"); throw new IllegalArgumentException("参数不能为空");
} }
...@@ -377,11 +378,11 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -377,11 +378,11 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
Map<String, Object> placeholders = jgInstallationNoticeService.fullFillTemplateObj(informationList, BusinessTypeEnum.JG_MAINTENANCE_NOTIFICATION.getName().substring(0,2)); Map<String, Object> placeholders = jgInstallationNoticeService.fullFillTemplateObj(informationList, BusinessTypeEnum.JG_MAINTENANCE_NOTIFICATION.getName().substring(0,2));
String tempFileName = "维修告知单_" + System.currentTimeMillis() + "_temp"; String tempFileName = "维修告知单_" + System.currentTimeMillis() + "_temp";
String url = WordTemplateUtils.templateToPdf(tempFileName, "installation-notification-report.ftl", placeholders); // String url = WordTemplateUtils.templateToPdf(tempFileName, "installation-notification-report.ftl", placeholders);
// 更新到数据库 // // 更新到数据库
JgMaintainNotice.setNoticeReportUrl(url); // JgMaintainNotice.setNoticeReportUrl(url);
this.updateById(JgMaintainNotice); // this.updateById(JgMaintainNotice);
return url; WordTemplateUtils.templateToPdfDownload(tempFileName, "installation-notification-report.ftl", placeholders, response);
} }
@Override @Override
...@@ -805,7 +806,6 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -805,7 +806,6 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
jgMaintainNotice.setNextExecuteUserIds(workflowResultDto.getNextExecutorUserIds()); jgMaintainNotice.setNextExecuteUserIds(workflowResultDto.getNextExecutorUserIds());
jgMaintainNotice.setNextTaskId(workflowResultDto.getNextTaskId()); jgMaintainNotice.setNextTaskId(workflowResultDto.getNextTaskId());
jgMaintainNoticeMapper.updateById(jgMaintainNotice); jgMaintainNoticeMapper.updateById(jgMaintainNotice);
this.generateMaintainNoticeReport(jgMaintainNotice.getSequenceNbr());
} else { } else {
jgMaintainNotice.setNextExecuteIds(workflowResultDto.getNextExecutorRoleIds()); jgMaintainNotice.setNextExecuteIds(workflowResultDto.getNextExecutorRoleIds());
if (!ObjectUtils.isEmpty(jgMaintainNotice.getInstanceStatus())) { if (!ObjectUtils.isEmpty(jgMaintainNotice.getInstanceStatus())) {
......
...@@ -51,6 +51,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService; ...@@ -51,6 +51,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest; import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import org.typroject.tyboot.core.restful.utils.ResponseModel; import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.servlet.http.HttpServletResponse;
import java.text.ParseException; import java.text.ParseException;
import java.util.*; import java.util.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
...@@ -321,7 +322,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg ...@@ -321,7 +322,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
* @return pdf文件路径 * @return pdf文件路径
*/ */
@Override @Override
public String generateInstallationNoticeReport(Long sequenceNbr) { public void generateInstallationNoticeReport(Long sequenceNbr, HttpServletResponse response) {
if (Objects.isNull(sequenceNbr)) { if (Objects.isNull(sequenceNbr)) {
throw new IllegalArgumentException("参数不能为空"); throw new IllegalArgumentException("参数不能为空");
} }
...@@ -334,13 +335,13 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg ...@@ -334,13 +335,13 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
Map<String, Object> placeholders = jgInstallationNoticeService.fullFillTemplateObj(informationList, BusinessTypeEnum.JG_MODIFICATION_NOTIFICATION.getName().substring(0, 2)); Map<String, Object> placeholders = jgInstallationNoticeService.fullFillTemplateObj(informationList, BusinessTypeEnum.JG_MODIFICATION_NOTIFICATION.getName().substring(0, 2));
String tempFileName = "改造告知单_" + System.currentTimeMillis() + "_temp"; String tempFileName = "改造告知单_" + System.currentTimeMillis() + "_temp";
String url = WordTemplateUtils.templateToPdf(tempFileName, "installation-notification-report.ftl", placeholders); // String url = WordTemplateUtils.templateToPdf(tempFileName, "installation-notification-report.ftl", placeholders);
//
// // 更新到数据库
// JgReformNotice.setNoticeReportUrl(url);
// this.updateById(JgReformNotice);
// 更新到数据库 WordTemplateUtils.templateToPdfDownload(tempFileName, "installation-notification-report.ftl", placeholders, response);
JgReformNotice.setNoticeReportUrl(url);
this.updateById(JgReformNotice);
return url;
} }
...@@ -754,7 +755,6 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg ...@@ -754,7 +755,6 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
jgReformNotice.setPromoter(""); jgReformNotice.setPromoter("");
this.updateLastTodo(jgReformNotice, FlowStatusEnum.TO_BE_FINISHED); this.updateLastTodo(jgReformNotice, FlowStatusEnum.TO_BE_FINISHED);
this.updateById(jgReformNotice); this.updateById(jgReformNotice);
this.generateInstallationNoticeReport(jgReformNotice.getSequenceNbr());
} else { } else {
jgReformNotice.setNextExecuteIds(workflowResultDto.getNextExecutorRoleIds()); jgReformNotice.setNextExecuteIds(workflowResultDto.getNextExecutorRoleIds());
if (!ObjectUtils.isEmpty(jgReformNotice.getInstanceStatus())) { if (!ObjectUtils.isEmpty(jgReformNotice.getInstanceStatus())) {
......
...@@ -50,6 +50,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService; ...@@ -50,6 +50,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest; import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import org.typroject.tyboot.core.restful.utils.ResponseModel; import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.servlet.http.HttpServletResponse;
import java.text.ParseException; import java.text.ParseException;
import java.util.*; import java.util.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
...@@ -209,7 +210,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -209,7 +210,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
* @return pdf文件路径 * @return pdf文件路径
*/ */
@Override @Override
public String generateTransferNoticeReport(Long sequenceNbr) { public void generateTransferNoticeReport(Long sequenceNbr, HttpServletResponse response) {
if (Objects.isNull(sequenceNbr)) { if (Objects.isNull(sequenceNbr)) {
throw new IllegalArgumentException("参数不能为空"); throw new IllegalArgumentException("参数不能为空");
} }
...@@ -223,13 +224,13 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -223,13 +224,13 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
Map<String, Object> placeholders = jgInstallationNoticeService.fullFillTemplateObj(informationList, BusinessTypeEnum.JG_ADVICE_REMOVAL.getName().substring(0, 2)); Map<String, Object> placeholders = jgInstallationNoticeService.fullFillTemplateObj(informationList, BusinessTypeEnum.JG_ADVICE_REMOVAL.getName().substring(0, 2));
String tempFileName = "移装告知单_" + System.currentTimeMillis() + "_temp"; String tempFileName = "移装告知单_" + System.currentTimeMillis() + "_temp";
String url = WordTemplateUtils.templateToPdf(tempFileName, "installation-notification-report.ftl", placeholders); // String url = WordTemplateUtils.templateToPdf(tempFileName, "installation-notification-report.ftl", placeholders);
//
// // 更新到数据库
// jgTransferNotice.setNoticeReportUrl(url);
// this.updateById(jgTransferNotice);
// 更新到数据库 WordTemplateUtils.templateToPdfDownload(tempFileName, "installation-notification-report.ftl", placeholders, response);
jgTransferNotice.setNoticeReportUrl(url);
this.updateById(jgTransferNotice);
return url;
} }
...@@ -573,8 +574,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -573,8 +574,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
if (!ValidationUtil.isEmpty(model.getPowerOfAttorneyList())) { if (!ValidationUtil.isEmpty(model.getPowerOfAttorneyList())) {
model.setPowerOfAttorney(JSON.toJSONString(model.getPowerOfAttorneyList())); model.setPowerOfAttorney(JSON.toJSONString(model.getPowerOfAttorneyList()));
} }
if (!ValidationUtil.isEmpty(model.getOtherAccessories())) { if (!ValidationUtil.isEmpty(model.getOtherAccessoriesList())) {
model.setOtherAccessories(JSON.toJSONString(model.getOtherAccessories())); model.setOtherAccessories(JSON.toJSONString(model.getOtherAccessoriesList()));
} }
// 分割省市区字段 // 分割省市区字段
String province = model.getProvince(); String province = model.getProvince();
...@@ -784,7 +785,6 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -784,7 +785,6 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
jgTransferNotice.setNextExecuteUserIds(workflowResultDto.getNextExecutorUserIds()); jgTransferNotice.setNextExecuteUserIds(workflowResultDto.getNextExecutorUserIds());
jgTransferNotice.setNextExecuteIds(workflowResultDto.getNextExecutorRoleIds()); jgTransferNotice.setNextExecuteIds(workflowResultDto.getNextExecutorRoleIds());
jgTransferNoticeMapper.updateById(jgTransferNotice); jgTransferNoticeMapper.updateById(jgTransferNotice);
this.generateTransferNoticeReport(jgTransferNotice.getSequenceNbr());
} else { } else {
jgTransferNotice.setNextExecuteIds(workflowResultDto.getNextExecutorRoleIds()); jgTransferNotice.setNextExecuteIds(workflowResultDto.getNextExecutorRoleIds());
jgTransferNotice.setNextExecuteUserIds(workflowResultDto.getNextExecutorUserIds()); jgTransferNotice.setNextExecuteUserIds(workflowResultDto.getNextExecutorUserIds());
......
...@@ -20,8 +20,8 @@ import java.util.List; ...@@ -20,8 +20,8 @@ import java.util.List;
public enum BizTypeEnum { public enum BizTypeEnum {
SUPERVISE("supervise", "监督检验","115"), SUPERVISE("supervise", "监督检验","115"),
FIRST_INSPECTION("firstinspect", "定检","116"), FIRST_INSPECTION("firstinspect", "定(首)检","116"),
DETECTION("detection", "检测","117"), DETECTION("detection", "电梯检测","117"),
BUSINESS_OPEN("businessOpen", "检验检测业务开通","114"); BUSINESS_OPEN("businessOpen", "检验检测业务开通","114");
private String code; private String code;
...@@ -46,6 +46,15 @@ public enum BizTypeEnum { ...@@ -46,6 +46,15 @@ public enum BizTypeEnum {
return null; return null;
} }
public static BizTypeEnum getInstance(String code) {
for (BizTypeEnum c : BizTypeEnum.values()) {
if (c.getCode().equals(code)){
return c;
}
}
return null;
}
public static String getNumByCode(String code) { public static String getNumByCode(String code) {
for (BizTypeEnum c : BizTypeEnum.values()) { for (BizTypeEnum c : BizTypeEnum.values()) {
if (c.getCode().equals(code)){ if (c.getCode().equals(code)){
......
...@@ -44,7 +44,7 @@ public enum BusinessTypeEnum { ...@@ -44,7 +44,7 @@ public enum BusinessTypeEnum {
JY_INSPECTION_APPLICATION_DS("116", "定(首)检验"), JY_INSPECTION_APPLICATION_DS("116", "定(首)检验"),
JY_INSPECTION_APPLICATION_CHECK("117", "检验(含安全阀效验)"); JY_INSPECTION_APPLICATION_CHECK("117", "电梯检测");
private final String code; private final String code;
private final String name; private final String name;
......
...@@ -30,4 +30,11 @@ public interface JyjcBaseMapper { ...@@ -30,4 +30,11 @@ public interface JyjcBaseMapper {
void updateBusinessData(String tableName, String assignee, String transferToUserIds, String instanceId, String nextTaskId,String key); void updateBusinessData(String tableName, String assignee, String transferToUserIds, String instanceId, String nextTaskId,String key);
List<TzsUserInfoDto> selectParentOrgUsers(@Param("parentOrgCodeList") Set<String> parentOrgCodeList); List<TzsUserInfoDto> selectParentOrgUsers(@Param("parentOrgCodeList") Set<String> parentOrgCodeList);
/**
* 按照公司编码查询公司下的人
* @param companyCodes
* @return List<TzsUserInfoDto>
*/
List<TzsUserInfoDto> selectUserByCompanyCodes(@Param("companyCodes") List<String> companyCodes);
} }
...@@ -52,6 +52,22 @@ ...@@ -52,6 +52,22 @@
</foreach> </foreach>
GROUP BY c.org_code GROUP BY c.org_code
</select> </select>
<select id="selectUserByCompanyCodes" resultType="com.yeejoin.amos.boot.module.ymt.api.dto.TzsUserInfoDto">
SELECT
group_concat(u.user_id) as amos_user_id,
c.company_code as unitCode
FROM
"privilege_user_org_role" u,
"privilege_company" c
WHERE
u.company_seq = c.sequence_nbr
and
c.company_code in
<foreach collection="companyCodes" item="companyCode" open="(" close=")" separator=",">
#{companyCode}
</foreach>
GROUP BY c.company_code
</select>
</mapper> </mapper>
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
<groupId>net.javacrumbs.shedlock</groupId> <groupId>net.javacrumbs.shedlock</groupId>
<artifactId>shedlock-spring</artifactId> <artifactId>shedlock-spring</artifactId>
</dependency> </dependency>
<dependency>
<groupId>net.javacrumbs.shedlock</groupId>
<artifactId>shedlock-provider-redis-spring</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
......
package com.yeejoin.amos.boot.module.jyjc.biz.config;
import net.javacrumbs.shedlock.core.LockProvider;
import net.javacrumbs.shedlock.provider.redis.spring.RedisLockProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
/**
* @author Administrator
*/
@Configuration
public class ShedLockConfig {
@Bean
public LockProvider lockProvider(RedisConnectionFactory connectionFactory) {
return new RedisLockProvider(connectionFactory);
}
}
package com.yeejoin.amos.boot.module.jyjc.biz.controller; package com.yeejoin.amos.boot.module.jyjc.biz.controller;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams; import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
...@@ -225,7 +224,7 @@ public class JyjcInspectionApplicationController extends BaseController { ...@@ -225,7 +224,7 @@ public class JyjcInspectionApplicationController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "POST", value = "接收", notes = "接收") @ApiOperation(httpMethod = "POST", value = "接收", notes = "接收")
@PostMapping(value = "/flow/{type}/receive") @PostMapping(value = "/flow/{type}/receive")
public ResponseModel<HashMap<String, String>> execueFlow(@PathVariable(value = "type") String type, @RequestBody Map<String, Object> params) { public ResponseModel executeFlow(@PathVariable(value = "type") String type, @RequestBody Map<String, Object> params) {
params.put("type", type); params.put("type", type);
try { try {
jyjcInspectionApplicationServiceImpl.doReceive(params); jyjcInspectionApplicationServiceImpl.doReceive(params);
......
...@@ -10,7 +10,7 @@ import java.util.List; ...@@ -10,7 +10,7 @@ import java.util.List;
* @author Administrator * @author Administrator
*/ */
@Getter @Getter
public class InspectionDetectionSaveToDbEvent extends ApplicationEvent { public class InspectionDetectionSaveToDbEvent extends ApplicationEvent {
private List<JyjcInspectionResult> jyjcInspectionResultList; private List<JyjcInspectionResult> jyjcInspectionResultList;
......
...@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jyjc.biz.event.listener; ...@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jyjc.biz.event.listener;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Sequence; import com.baomidou.mybatisplus.core.toolkit.Sequence;
...@@ -16,6 +17,7 @@ import com.yeejoin.amos.boot.module.jyjc.biz.event.InspectionApplicationPushEven ...@@ -16,6 +17,7 @@ import com.yeejoin.amos.boot.module.jyjc.biz.event.InspectionApplicationPushEven
import com.yeejoin.amos.boot.module.jyjc.biz.kafka.KafkaProducer; import com.yeejoin.amos.boot.module.jyjc.biz.kafka.KafkaProducer;
import com.yeejoin.amos.boot.module.jyjc.biz.service.impl.JyjcInspectionApplicationEquipServiceImpl; import com.yeejoin.amos.boot.module.jyjc.biz.service.impl.JyjcInspectionApplicationEquipServiceImpl;
import com.yeejoin.amos.boot.module.jyjc.biz.service.impl.JyjcInspectionApplicationPushLogServiceImpl; import com.yeejoin.amos.boot.module.jyjc.biz.service.impl.JyjcInspectionApplicationPushLogServiceImpl;
import com.yeejoin.amos.boot.module.jyjc.biz.util.JyjcConstant;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgConstructionInfo; import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgConstructionInfo;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgRegisterInfo; import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgRegisterInfo;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgUseInfo; import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgUseInfo;
...@@ -204,35 +206,55 @@ public class InspectionApplicationPushEventListener implements ApplicationListen ...@@ -204,35 +206,55 @@ public class InspectionApplicationPushEventListener implements ApplicationListen
private Map<String, Object> populateEquipInfoWithTechParams(String equList, String record) { private Map<String, Object> populateEquipInfoWithTechParams(String equList, String record) {
EquipCategoryEnum productType = EquipCategoryEnum.of(Integer.parseInt(equList)); EquipCategoryEnum productType = EquipCategoryEnum.of(Integer.parseInt(equList));
Map<String, Object> echParamMap = new HashMap<>();
switch (Objects.requireNonNull(productType)) { switch (Objects.requireNonNull(productType)) {
// 锅炉 - 监管未调整
case IDX_BIZ_JG_TECH_PARAMS_BOILER: case IDX_BIZ_JG_TECH_PARAMS_BOILER:
return BeanUtil.beanToMap(equipTechParamBoilerMapper.queryTechParamInUse(record)); // 锅炉-已确认
// 压力容器 - 监管未调整 echParamMap = BeanUtil.beanToMap(equipTechParamBoilerMapper.queryTechParamInUse(record));
break;
case IDX_BIZ_JG_TECH_PARAMS_VESSEL: case IDX_BIZ_JG_TECH_PARAMS_VESSEL:
return BeanUtil.beanToMap(equipTechParamVesselMapper.queryTechParamInUse(record)); // 压力容器-待核对
// 电梯 echParamMap = BeanUtil.beanToMap(equipTechParamVesselMapper.queryTechParamInUse(record));
break;
case IDX_BIZ_JG_TECH_PARAMS_ELEVATOR: case IDX_BIZ_JG_TECH_PARAMS_ELEVATOR:
return BeanUtil.beanToMap(equipTechParamElevatorMapper.queryTechParamInUse(record)); // 电梯-已确认
// 起重机械 echParamMap = BeanUtil.beanToMap(equipTechParamElevatorMapper.queryTechParamInUse(record));
break;
case IDX_BIZ_JG_TECH_PARAMS_LIFTING: case IDX_BIZ_JG_TECH_PARAMS_LIFTING:
return BeanUtil.beanToMap(equipTechParamLiftingMapper.queryTechParamInUse(record)); // 起重机械-已确认
// 场(厂)内专用机动车辆 echParamMap = BeanUtil.beanToMap(equipTechParamLiftingMapper.queryTechParamInUse(record));
break;
case IDX_BIZ_JG_TECH_PARAMS_VEHICLE: case IDX_BIZ_JG_TECH_PARAMS_VEHICLE:
return BeanUtil.beanToMap(equipTechParamVehicleMapper.queryTechParamInUse(record)); // 场(厂)内专用机动车辆-已确认
// 大型游乐设施 echParamMap = BeanUtil.beanToMap(equipTechParamVehicleMapper.queryTechParamInUse(record));
break;
case IDX_BIZ_JG_TECH_PARAMS_RIDES: case IDX_BIZ_JG_TECH_PARAMS_RIDES:
return BeanUtil.beanToMap(equipTechParamRidesMapper.queryTechParamInUse(record)); // 大型游乐设施-已确认
// 压力管道 - 监管未调整 echParamMap = BeanUtil.beanToMap(equipTechParamRidesMapper.queryTechParamInUse(record));
break;
case IDX_BIZ_JG_TECH_PARAMS_PIPELINE: case IDX_BIZ_JG_TECH_PARAMS_PIPELINE:
return BeanUtil.beanToMap(equipTechParamPipelineMapper.queryTechParamInUse(record)); // 压力管道-已确认
// 客运索道 echParamMap = BeanUtil.beanToMap(equipTechParamPipelineMapper.queryTechParamInUse(record));
break;
case IDX_BIZ_JG_TECH_PARAMS_ROPEWAY: case IDX_BIZ_JG_TECH_PARAMS_ROPEWAY:
return BeanUtil.beanToMap(equipTechParamRopewayMapper.queryTechParamInUse(record)); // 客运索道-已确认
echParamMap = BeanUtil.beanToMap(equipTechParamRopewayMapper.queryTechParamInUse(record));
break;
default: default:
break; break;
} }
return null; this.castStr2JsonField(echParamMap);
return echParamMap;
}
private void castStr2JsonField(Map<String, Object> echParamMap) {
if(echParamMap != null){
echParamMap.forEach((k, v) -> {
if (JyjcConstant.TECH_PARAM_JSON_FIELDS.contains(k) && v != null) {
echParamMap.put(k, JSON.parse(v.toString()));
}
});
}
} }
private String getAddressByRecord(String equipUnicode) { private String getAddressByRecord(String equipUnicode) {
......
...@@ -2,13 +2,10 @@ package com.yeejoin.amos.boot.module.jyjc.biz.job; ...@@ -2,13 +2,10 @@ package com.yeejoin.amos.boot.module.jyjc.biz.job;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcBaseMapper; import com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcBaseMapper;
import com.yeejoin.amos.boot.module.jyjc.api.model.NeedTipEquipInfo; import com.yeejoin.amos.boot.module.jyjc.api.model.NeedTipEquipInfo;
import com.yeejoin.amos.boot.module.ymt.api.dto.TzsUserInfoDto; import com.yeejoin.amos.boot.module.ymt.api.dto.TzsUserInfoDto;
import com.yeejoin.amos.boot.module.ymt.api.dto.UseInfoModel; import com.yeejoin.amos.boot.module.ymt.api.dto.UseInfoModel;
import com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo;
import com.yeejoin.amos.boot.module.ymt.api.enums.EquimentEnum; import com.yeejoin.amos.boot.module.ymt.api.enums.EquimentEnum;
import com.yeejoin.amos.boot.module.ymt.api.mapper.TzsUserInfoMapper; import com.yeejoin.amos.boot.module.ymt.api.mapper.TzsUserInfoMapper;
import com.yeejoin.amos.boot.module.ymt.api.mapper.UseInfoMapper; import com.yeejoin.amos.boot.module.ymt.api.mapper.UseInfoMapper;
...@@ -20,7 +17,6 @@ import net.javacrumbs.shedlock.spring.annotation.SchedulerLock; ...@@ -20,7 +17,6 @@ import net.javacrumbs.shedlock.spring.annotation.SchedulerLock;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.foundation.context.RequestContext; import org.typroject.tyboot.core.foundation.context.RequestContext;
import java.util.*; import java.util.*;
...@@ -96,12 +92,14 @@ public class InspectionExpireRemindJob { ...@@ -96,12 +92,14 @@ public class InspectionExpireRemindJob {
// 使用单位 // 使用单位
List<String> allUnitCodes = needTipEquipList.stream().map(NeedTipEquipInfo::getUseUnitCreditCode).distinct().collect(Collectors.toList()); List<String> allUnitCodes = needTipEquipList.stream().map(NeedTipEquipInfo::getUseUnitCreditCode).distinct().collect(Collectors.toList());
// 查询使用单位下的人-数据库-批量查询 // 查询使用单位下的人-数据库-批量查询
List<TzsUserInfo> useUnitUserList = this.getUseUnitUserList(allUnitCodes); List<TzsUserInfoDto> useUnitUserList = this.getUseUnitUserList(allUnitCodes);
// 查询管辖单位下的人-数据库-批量查询 // 查询管辖单位下的人-数据库-批量查询
List<TzsUserInfoDto> superviseUnitUserList = this.getSuperviseUnitUserList(needTipEquipList); List<TzsUserInfoDto> superviseUnitUserList = this.getSuperviseUnitUserList(needTipEquipList);
// 以设备为维度,把 需要发送消息的人进行合并 // 以设备为维度,把 需要发送消息的人进行合并
needTipEquipList.forEach(e -> { needTipEquipList.forEach(e -> {
e.setReceiveUsers(useUnitUserList.stream().filter(u -> e.getUseUnitCreditCode().equals(u.getUnitCode())).map(TzsUserInfo::getAmosUserId).collect(Collectors.toSet())); // 本使用单位下的人
e.setReceiveUsers(useUnitUserList.stream().filter(u -> e.getUseUnitCreditCode().equals(u.getUnitCode())).map(TzsUserInfoDto::getAmosUserId).collect(Collectors.toSet()));
// 父级的人(所、区县、地市、省)
e.getReceiveUsers().addAll(superviseUnitUserList.stream().filter(u -> e.getParentOrgBranchCode().contains(u.getOrgCode())).map(TzsUserInfoDto::getAmosUserId).collect(Collectors.toSet())); e.getReceiveUsers().addAll(superviseUnitUserList.stream().filter(u -> e.getParentOrgBranchCode().contains(u.getOrgCode())).map(TzsUserInfoDto::getAmosUserId).collect(Collectors.toSet()));
}); });
// 人员去重,字符串可能为:元素1:8551496,8551496,8551496,元素2:8551496,8551497,需要转为8551496、8551497 // 人员去重,字符串可能为:元素1:8551496,8551496,8551496,元素2:8551496,8551497,需要转为8551496、8551497
...@@ -120,13 +118,8 @@ public class InspectionExpireRemindJob { ...@@ -120,13 +118,8 @@ public class InspectionExpireRemindJob {
return jyjcBaseMapper.selectParentOrgUsers(allParentOrgCodes); return jyjcBaseMapper.selectParentOrgUsers(allParentOrgCodes);
} }
private List<TzsUserInfo> getUseUnitUserList(List<String> allUnitCodes) { private List<TzsUserInfoDto> getUseUnitUserList(List<String> allUnitCodes) {
LambdaQueryWrapper<TzsUserInfo> queryWrapper = new LambdaQueryWrapper<>(); return jyjcBaseMapper.selectUserByCompanyCodes(allUnitCodes);
queryWrapper.select(TzsUserInfo::getAmosUserId, TzsUserInfo::getUnitCode);
queryWrapper.in(TzsUserInfo::getUnitCode, allUnitCodes);
queryWrapper.eq(BaseEntity::getIsDelete, false);
queryWrapper.isNotNull(TzsUserInfo::getAmosUserId);
return tzsUserInfoMapper.selectList(queryWrapper);
} }
private List<NeedTipEquipInfo> buildTipEquipInfoList(List<UseInfoModel> needTipEquipList) { private List<NeedTipEquipInfo> buildTipEquipInfoList(List<UseInfoModel> needTipEquipList) {
......
package com.yeejoin.amos.boot.module.jyjc.biz.util; package com.yeejoin.amos.boot.module.jyjc.biz.util;
import java.util.Arrays;
import java.util.List;
/** /**
* @author Administrator * @author Administrator
*/ */
...@@ -8,5 +11,5 @@ public class JyjcConstant { ...@@ -8,5 +11,5 @@ public class JyjcConstant {
/** /**
* 技术参数json类型字段 * 技术参数json类型字段
*/ */
public static final String[] TECH_PARAM_JSON_FIELDS = {"safetyAccessoriesAndRelatedDevices", "gasCylinderAccessories"}; public static final List<String> TECH_PARAM_JSON_FIELDS = Arrays.asList("safetyAccessoriesAndRelatedDevices", "gasCylinderAccessories", "pipeInfo");
} }
...@@ -1044,5 +1044,17 @@ public class EquipTechParamLifting extends AbstractEquipBaseEntity { ...@@ -1044,5 +1044,17 @@ public class EquipTechParamLifting extends AbstractEquipBaseEntity {
@TableField(value = "\"MAIN_PART\"") @TableField(value = "\"MAIN_PART\"")
private String mainPart; private String mainPart;
/**
* 整机防爆标志
*/
@TableField("\"EXPLOSIONPROOF_SIGN_COMPLETE\"")
private String explosionproofSignComplete;
/**
* 燃爆物质
*/
@TableField("\"EXPLOSIVE_SUBSTANCE\"")
private String explosiveSubstance;
} }
...@@ -10,7 +10,7 @@ import java.math.BigDecimal; ...@@ -10,7 +10,7 @@ import java.math.BigDecimal;
/** /**
* 安全追溯-压力管道 * 安全追溯-压力管道
* *
* @author cpp * @author cpp
* @date 2023-04-06 15:21:22 * @date 2023-04-06 15:21:22
*/ */
...@@ -19,115 +19,148 @@ import java.math.BigDecimal; ...@@ -19,115 +19,148 @@ import java.math.BigDecimal;
@Accessors(chain = true) @Accessors(chain = true)
@TableName("idx_biz_jg_tech_params_pipeline") @TableName("idx_biz_jg_tech_params_pipeline")
public class EquipTechParamPipeline extends AbstractEquipBaseEntity { public class EquipTechParamPipeline extends AbstractEquipBaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* * $column.comments
*/
/**
* * $column.comments @TableField(value = "\"INSTANCE_ID\"")
* */ private String instanceId;
/**
@TableField(value ="\"INSTANCE_ID\"") * * $column.comments
private String instanceId; */
/**
* * $column.comments @TableField(value = "\"STATUS\"")
* */ private String status;
/**
@TableField(value ="\"STATUS\"") * * 工程(装置)名称
private String status; */
/**
* * 工程(装置)名称 @TableField(value = "\"DEVICE_NAME\"")
* */ private String deviceName;
/**
@TableField(value ="\"DEVICE_NAME\"") * * 管道类别
private String deviceName; */
/**
* * 管道类别 @TableField(value = "\"PIPELINE_CLASS\"")
* */ private String pipelineClass;
/**
@TableField(value ="\"PIPELINE_CLASS\"") * * 管道名称(登记单元)
private String pipelineClass; */
/**
* * 管道名称(登记单元) @TableField(value = "\"PIPE_NAME\"")
* */ private String pipeName;
/**
@TableField(value ="\"PIPE_NAME\"") * * 管道编号
private String pipeName; */
/**
* * 管道编号 @TableField(value = "\"PIPELINE_NUMBER\"")
* */ private String pipelineNumber;
/**
@TableField(value ="\"PIPELINE_NUMBER\"") * * 设备级别
private String pipelineNumber; */
/**
* * 设备级别 @TableField(value = "\"DEVICE_LEVEL\"")
* */ private String deviceLevel;
/**
@TableField(value ="\"DEVICE_LEVEL\"") * * 设计标准
private String deviceLevel; */
/**
* * 设计标准 @TableField(value = "\"DESIGN_STANDARD\"")
* */ private String designStandard;
/**
@TableField(value ="\"DESIGN_STANDARD\"") * * 管道图号
private String designStandard; */
/**
* * 管道图号 @TableField(value = "\"PIPE_DRAW_NUMBER\"")
* */ private String pipeDrawNumber;
/**
@TableField(value ="\"PIPE_DRAW_NUMBER\"") * * 公称直径
private String pipeDrawNumber; */
/**
* * 公称直径 @TableField(value = "\"NOMINAL_DIAMETER\"")
* */ private BigDecimal nominalDiameter;
/**
@TableField(value ="\"NOMINAL_DIAMETER\"") * * 公称壁厚
private BigDecimal nominalDiameter; */
/**
* * 公称壁厚 @TableField(value = "\"WALL_THICKNESS\"")
* */ private BigDecimal wallThickness;
/**
@TableField(value ="\"WALL_THICKNESS\"") * * 管道长度
private BigDecimal wallThickness; */
/**
* * 管道长度 @TableField(value = "\"PIPE_LENGTH\"")
* */ private BigDecimal pipeLength;
/**
@TableField(value ="\"PIPE_LENGTH\"") * * 起始位置起点
private BigDecimal pipeLength; */
/**
* * 起始位置起点 @TableField(value = "\"STARTE_POSITION\"")
* */ private String startePosition;
/**
@TableField(value ="\"STARTE_POSITION\"") * * 设计压力
private String startePosition; */
/**
* * 压力 @TableField(value = "\"PRESSURE\"")
* */ private String pressure;
/**
@TableField(value ="\"PRESSURE\"") * * 设计温度
private BigDecimal pressure; */
/**
* * 温度 @TableField(value = "\"TEMPERATURE\"")
* */ private String temperature;
/**
@TableField(value ="\"TEMPERATURE\"") * * 设计介质
private BigDecimal temperature; */
/**
* * 介质 @TableField(value = "\"MEDIUM\"")
* */ private String medium;
/**
@TableField(value ="\"MEDIUM\"") * * 设计备注
private String medium; */
/**
* * 备注 @TableField(value = "\"REMARKS\"")
* */ private String remarks;
@TableField(value ="\"REMARKS\"") /**
private String remarks; * 终点位置
*/
@TableField("\"END_POSITION\"")
private String endPosition;
/**
* 管道信息
*/
@TableField(value = "\"PIPE_INFO\"")
private String pipeInfo;
/**
* * 工作压力
*/
@TableField(value = "\"WORK_PRESSURE\"")
private String workPressure;
/**
* * 工作温度
*/
@TableField(value = "\"WORK_TEMPERATURE\"")
private String workTemperature;
/**
* * 工作介质
*/
@TableField(value = "\"WORK_MEDIUM\"")
private String workMedium;
/**
* * 工作备注
*/
@TableField(value = "\"WORK_REMARKS\"")
private String workRemarks;
} }
...@@ -2,12 +2,10 @@ package com.yeejoin.amos.boot.module.ymt.api.entity; ...@@ -2,12 +2,10 @@ package com.yeejoin.amos.boot.module.ymt.api.entity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import com.yeejoin.amos.boot.biz.common.entity.TzsBaseEntity; import com.yeejoin.amos.boot.biz.common.entity.TzsBaseEntity;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.util.Date;
/** /**
* 安全追溯-压力管道 * 安全追溯-压力管道
...@@ -21,115 +19,152 @@ import java.util.Date; ...@@ -21,115 +19,152 @@ import java.util.Date;
@TableName("idx_biz_jg_tech_params_pipeline") @TableName("idx_biz_jg_tech_params_pipeline")
public class IdxBizJgTechParamsPipeline extends TzsBaseEntity { public class IdxBizJgTechParamsPipeline extends TzsBaseEntity {
/** /**
* *
*/ */
@TableField("\"RECORD\"") @TableField("\"RECORD\"")
private String record; private String record;
/** /**
* *
*/ */
@TableField("\"INSTANCE_ID\"") @TableField("\"INSTANCE_ID\"")
private String instanceId; private String instanceId;
/** /**
* *
*/ */
@TableField("\"STATUS\"") @TableField("\"STATUS\"")
private String status; private String status;
/** /**
* *
*/ */
@TableField("\"DEVICE_NAME\"") @TableField("\"DEVICE_NAME\"")
private String deviceName; private String deviceName;
/** /**
* *
*/ */
@TableField("\"PIPELINE_CLASS\"") @TableField("\"PIPELINE_CLASS\"")
private String pipelineClass; private String pipelineClass;
/** /**
* *
*/ */
@TableField("\"PIPE_NAME\"") @TableField("\"PIPE_NAME\"")
private String pipeName; private String pipeName;
/** /**
* *
*/ */
@TableField("\"PIPELINE_NUMBER\"") @TableField("\"PIPELINE_NUMBER\"")
private String pipelineNumber; private String pipelineNumber;
/** /**
* *
*/ */
@TableField("\"DEVICE_LEVEL\"") @TableField("\"DEVICE_LEVEL\"")
private String deviceLevel; private String deviceLevel;
/** /**
* *
*/ */
@TableField("\"DESIGN_STANDARD\"") @TableField("\"DESIGN_STANDARD\"")
private String designStandard; private String designStandard;
/** /**
* *
*/ */
@TableField("\"PIPE_DRAW_NUMBER\"") @TableField("\"PIPE_DRAW_NUMBER\"")
private String pipeDrawNumber; private String pipeDrawNumber;
/** /**
* *
*/ */
@TableField("\"NOMINAL_DIAMETER\"") @TableField("\"NOMINAL_DIAMETER\"")
private String nominalDiameter; private String nominalDiameter;
/** /**
* *
*/ */
@TableField("\"WALL_THICKNESS\"") @TableField("\"WALL_THICKNESS\"")
private String wallThickness; private String wallThickness;
/** /**
* *
*/ */
@TableField("\"PIPE_LENGTH\"") @TableField("\"PIPE_LENGTH\"")
private String pipeLength; private String pipeLength;
/** /**
* *
*/ */
@TableField("\"STARTE_POSITION\"") @TableField("\"STARTE_POSITION\"")
private String startePosition; private String startePosition;
/** /**
* 终点位置
*/
@TableField("\"END_POSITION\"")
private String endPosition;
/**
* *
*/ */
@TableField("\"PRESSURE\"") @TableField("\"PRESSURE\"")
private String pressure; private String pressure;
/** /**
* *
*/ */
@TableField("\"TEMPERATURE\"") @TableField("\"TEMPERATURE\"")
private String temperature; private String temperature;
/** /**
* *
*/ */
@TableField("\"MEDIUM\"") @TableField("\"MEDIUM\"")
private String medium; private String medium;
/** /**
* *
*/ */
@TableField("\"REMARKS\"") @TableField("\"REMARKS\"")
private String remarks; private String remarks;
/**
* 管道信息
*/
@TableField(value = "\"PIPE_INFO\"")
private String pipeInfo;
/**
* * 工作压力
*/
@TableField(value = "\"WORK_PRESSURE\"")
private String workPressure;
/**
* * 工作温度
*/
@TableField(value = "\"WORK_TEMPERATURE\"")
private String workTemperature;
/**
* * 工作介质
*/
@TableField(value = "\"WORK_MEDIUM\"")
private String workMedium;
/**
* * 工作备注
*/
@TableField(value = "\"WORK_REMARKS\"")
private String workRemarks;
} }
...@@ -528,4 +528,22 @@ public class IdxBizJgTechParamsVessel extends TzsBaseEntity { ...@@ -528,4 +528,22 @@ public class IdxBizJgTechParamsVessel extends TzsBaseEntity {
@TableField("\"PER_CAPITA_CABIN_CAPACITY\"") @TableField("\"PER_CAPITA_CABIN_CAPACITY\"")
private String perCapitaCabinCapacity; private String perCapitaCabinCapacity;
/**
* 气瓶
*/
@TableField(value = "\"GAS_CYLINDER\"")
private String gasCylinder;
/**
* 气瓶安全附件
*/
@TableField(value = "\"GAS_CYLINDER_ACCESSORIES\"")
private String gasCylinderAccessories;
/**
* 车辆VIN码
*/
@TableField(value = "\"VIN\"")
private String vin;
} }
...@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.ymt.api.mapper; ...@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.ymt.api.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamLifting; import com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamLifting;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgTechParamsLifting;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
public interface EquipTechParamLiftingMapper extends BaseMapper<EquipTechParamLifting> { public interface EquipTechParamLiftingMapper extends BaseMapper<EquipTechParamLifting> {
...@@ -9,8 +10,9 @@ public interface EquipTechParamLiftingMapper extends BaseMapper<EquipTechParamLi ...@@ -9,8 +10,9 @@ public interface EquipTechParamLiftingMapper extends BaseMapper<EquipTechParamLi
/** /**
* 在用的最新需求整理的技术参数 * 在用的最新需求整理的技术参数
*
* @param record 设备唯一标识 * @param record 设备唯一标识
* @return EquipTechParamLifting * @return EquipTechParamLifting
*/ */
EquipTechParamLifting queryTechParamInUse(@Param("record") String record); IdxBizJgTechParamsLifting queryTechParamInUse(@Param("record") String record);
} }
...@@ -2,13 +2,12 @@ ...@@ -2,13 +2,12 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.ymt.api.mapper.EquipTechParamLiftingMapper"> <mapper namespace="com.yeejoin.amos.boot.module.ymt.api.mapper.EquipTechParamLiftingMapper">
<select id="queryTechParamInUse" <select id="queryTechParamInUse"
resultType="com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamLifting"> resultType="com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgTechParamsLifting">
SELECT SELECT
"EXPLOSIONPROOF_GRADE", "EXPLOSIONPROOF_GRADE",
"EXPLOSIVE_SUBSTANCE", "EXPLOSIVE_SUBSTANCE",
"EXPLOSIONPROOF_SIGN_COMPLETE", "EXPLOSIONPROOF_SIGN_COMPLETE",
"CHECK_FINISHED_HEIGHT", "CHECK_FINISHED_HEIGHT",
"HEIGHT_FREE_END",
"RATED_LIFTING_SPEED", "RATED_LIFTING_SPEED",
"RATED_LOAD_CAPACITY", "RATED_LOAD_CAPACITY",
"WORK_STROKE_CAGE", "WORK_STROKE_CAGE",
...@@ -28,7 +27,6 @@ ...@@ -28,7 +27,6 @@
"RATED_LIFT_SPEED", "RATED_LIFT_SPEED",
"RATED_TRAVERSE_SPEED", "RATED_TRAVERSE_SPEED",
"BICYCLE_MAX_EXIT_TIME", "BICYCLE_MAX_EXIT_TIME",
"STORAGE_CAPACITY",
"CANTILEVER_LENGTH", "CANTILEVER_LENGTH",
"DERRICKING_SPEED", "DERRICKING_SPEED",
"BICYCLE_MAX_COME_TIME", "BICYCLE_MAX_COME_TIME",
......
...@@ -6,19 +6,20 @@ ...@@ -6,19 +6,20 @@
SELECT SELECT
"DEVICE_NAME", "DEVICE_NAME",
"PIPELINE_CLASS", "PIPELINE_CLASS",
"PIPE_NAME", "STARTE_POSITION",
"PIPELINE_NUMBER", "END_POSITION",
"DEVICE_LEVEL",
"DESIGN_STANDARD",
"PIPE_DRAW_NUMBER",
"NOMINAL_DIAMETER", "NOMINAL_DIAMETER",
"WALL_THICKNESS", "WALL_THICKNESS",
"PIPE_LENGTH", "PIPE_LENGTH",
"STARTE_POSITION",
"PRESSURE", "PRESSURE",
"TEMPERATURE", "TEMPERATURE",
"MEDIUM", "MEDIUM",
"REMARKS" "REMARKS",
"WORK_PRESSURE",
"WORK_TEMPERATURE",
"WORK_MEDIUM",
"WORK_REMARKS",
"PIPE_INFO"
FROM FROM
idx_biz_jg_tech_params_pipeline idx_biz_jg_tech_params_pipeline
WHERE WHERE
......
...@@ -10,16 +10,13 @@ ...@@ -10,16 +10,13 @@
"MAIN_MOTOR_MODEL", "MAIN_MOTOR_MODEL",
"MAIN_MOTOR_POWER", "MAIN_MOTOR_POWER",
"ALTITUDE_DIFFERENCE", "ALTITUDE_DIFFERENCE",
"OIL_PRESSURE_HEAVY_HAMMER",
"OIL_PRESSURE_OIL_PRESSURE",
"FREIGHT_VOLUME", "FREIGHT_VOLUME",
"CARRIER_LINE", "CARRIER_LINE",
"SPEED", "SPEED",
"BEARING_CABLE", "BEARING_CABLE",
"CABLE_PITCH", "CABLE_PITCH",
"NUMBER_AND_TYPE_OF_VEHICLES", "OIL_PRESSURE_HEAVY_HAMMER",
"TRACTION_ROPE", "NUMBER_AND_TYPE_OF_VEHICLES"
"BALANCE_CABLE"
FROM FROM
idx_biz_jg_tech_params_ropeway idx_biz_jg_tech_params_ropeway
WHERE WHERE
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<select id="queryTechParamInUse" <select id="queryTechParamInUse"
resultType="com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamVessel"> resultType="com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamVessel">
SELECT SELECT
vin,
rated_quality, rated_quality,
ambient_temperature, ambient_temperature,
model_number, model_number,
...@@ -84,7 +85,9 @@ ...@@ -84,7 +85,9 @@
chamber_pressure, chamber_pressure,
temperature, temperature,
pressure_medium, pressure_medium,
per_capita_cabin_capacity per_capita_cabin_capacity,
gas_cylinder_accessories,
gas_cylinder
FROM idx_biz_jg_tech_params_vessel FROM idx_biz_jg_tech_params_vessel
where record = #{record} where record = #{record}
</select> </select>
......
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