Commit a0936cfd authored by 刘林's avatar 刘林

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

parents e9cb1da1 f6eecf8e
package com.yeejoin.amos.boot.biz.common.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 公共实体类
*
* @author DELL
*/
@Data
public class BaseRelationEntity implements Serializable{
private static final long serialVersionUID = 1L;
@TableId(value = "sequence_nbr", type = IdType.ID_WORKER)
protected Long sequenceNbr;
@TableField(value = "rec_date", fill = FieldFill.INSERT_UPDATE)
protected Date recDate;
@TableField(value = "rec_user_id", fill = FieldFill.INSERT_UPDATE)
protected String recUserId;
@TableField(value = "rec_user_name", fill = FieldFill.INSERT_UPDATE)
protected String recUserName;
}
...@@ -106,7 +106,7 @@ public class MyBatisPlusCodeGeneratorTzs { ...@@ -106,7 +106,7 @@ public class MyBatisPlusCodeGeneratorTzs {
gc.setActiveRecord(false); gc.setActiveRecord(false);
// 数据源配置 // 数据源配置
DataSourceConfig dsc = new DataSourceConfig(); DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:postgresql://36.46.137.116:5432/tzs_amos_tzs_biz_init?&serverTimezone=GMT%2B8"); dsc.setUrl("jdbc:postgresql://172.16.10.243:5432/tzs_amos_tzs_biz_init?&serverTimezone=GMT%2B8");
dsc.setSchemaName("amos_tzs_biz"); dsc.setSchemaName("amos_tzs_biz");
dsc.setDriverName("org.postgresql.Driver"); dsc.setDriverName("org.postgresql.Driver");
// dsc.setDriverName("cn.com.vastbase.Driver"); // dsc.setDriverName("cn.com.vastbase.Driver");
...@@ -297,8 +297,7 @@ public class MyBatisPlusCodeGeneratorTzs { ...@@ -297,8 +297,7 @@ public class MyBatisPlusCodeGeneratorTzs {
strategy.setTablePrefix(); strategy.setTablePrefix();
//去除表名前缀 //去除表名前缀
//去除表名前缀 //去除表名前缀
strategy.setTablePrefix("t_", "tb_", "sys_","other_", "rpm_", "s_", "tcb_", "cb_", "tz_", "jc_", "jcb_", strategy.setTablePrefix("t_", "tb_", "sys_","other_", "rpm_", "s_", "tcb_", "cb_", "tz_", "jc_", "jcb_");
"tzs_");
// 设置父级Controller // 设置父级Controller
strategy.setSuperControllerClass("com.yeejoin.amos.boot.biz.common.controller.BaseController"); strategy.setSuperControllerClass("com.yeejoin.amos.boot.biz.common.controller.BaseController");
autoGenerator.setStrategy(strategy); autoGenerator.setStrategy(strategy);
......
package com.yeejoin.amos.boot.module.common.api.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 用户资质信息表
*
* @author system_generator
* @date 2024-08-27
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="TzsUserPermissionDto", description="用户资质信息表")
public class TzsUserPermissionDto extends BaseDto {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "主表主键")
private Long userSeq;
@ApiModelProperty(value = "检验专用-级别")
private String permissionLevel;
@ApiModelProperty(value = "检验专用-资质项目")
private String permissionItem;
@ApiModelProperty(value = "人员类型,前端用来分组展示使用")
private String permissionPost;
@ApiModelProperty(value = "证书编号")
private String certNo;
@ApiModelProperty(value = "有效期至")
private Date expiryDate;
@ApiModelProperty(value = "发证机关")
private String approvedOrgan;
@ApiModelProperty(value = "发证日期")
private Date issueDate;
@ApiModelProperty(value = "证书附件")
private String certAttachment;
@ApiModelProperty(value = "证书类型")
private String certType;
@ApiModelProperty(value = "作业项目")
private String jobItem;
@ApiModelProperty(value = "其他作业项目")
private String otherItem;
@ApiModelProperty(value = "备注")
private String remark;
}
package com.yeejoin.amos.boot.module.common.api.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import com.yeejoin.amos.boot.biz.common.entity.BaseRelationEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 用户资质信息表
*
* @author system_generator
* @date 2024-08-27
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tzs_user_permission")
public class TzsUserPermission extends BaseRelationEntity {
private static final long serialVersionUID = 1L;
/**
* 主表主键
*/
@TableField("user_seq")
private Long userSeq;
/**
* 检验专用-级别
*/
@TableField("permission_level")
private String permissionLevel;
/**
* 检验专用-资质项目
*/
@TableField("permission_item")
private String permissionItem;
/**
* 人员类型,前端用来分组展示使用
*/
@TableField("permission_post")
private String permissionPost;
/**
* 证书编号
*/
@TableField("cert_no")
private String certNo;
/**
* 有效期至
*/
@TableField("expiry_date")
private Date expiryDate;
/**
* 发证机关
*/
@TableField("approved_organ")
private String approvedOrgan;
/**
* 发证日期
*/
@TableField("issue_date")
private Date issueDate;
/**
* 证书附件
*/
@TableField("cert_attachment")
private String certAttachment;
/**
* 证书类型
*/
@TableField("cert_type")
private String certType;
/**
* 作业项目
*/
@TableField("job_item")
private String jobItem;
/**
* 其他作业项目
*/
@TableField("other_item")
private String otherItem;
/**
* 备注
*/
@TableField("remark")
private String remark;
}
...@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.biz.common.bo.CompanyBo; ...@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.biz.common.bo.CompanyBo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -246,5 +247,11 @@ public class JgVehicleInformationVo implements Serializable { ...@@ -246,5 +247,11 @@ public class JgVehicleInformationVo implements Serializable {
@ApiModelProperty(value = "电话") @ApiModelProperty(value = "电话")
private String phone; private String phone;
@ApiModelProperty(value = "历史设备-原使用登记表附件")
private List<?> oldUseRegistrationTable;
@ApiModelProperty(value = "历史设备-原使用登记证附件")
private List<?> oldUseRegistrationCertificate;
private CompanyBo companyInfo; private CompanyBo companyInfo;
} }
...@@ -102,15 +102,15 @@ ...@@ -102,15 +102,15 @@
<if test="dto.useUnitCode != null and dto.useUnitCode != ''"> <if test="dto.useUnitCode != null and dto.useUnitCode != ''">
and ur.use_unit_credit_code = #{dto.useUnitCode} and ur.use_unit_credit_code = #{dto.useUnitCode}
</if> </if>
<if test="roleIds != null and dto.dataType == 'supervision'"> <!-- <if test="roleIds != null and dto.dataType == 'supervision'">-->
<foreach collection='roleIds' item='role' open='and (' close=')' separator='or'> <!-- <foreach collection='roleIds' item='role' open='and (' close=')' separator='or'>-->
instance_status like concat('%',#{role},'%') <!-- instance_status like concat('%',#{role},'%')-->
</foreach> <!-- </foreach>-->
</if> <!-- </if>-->
<if test="dto.dataType == 'supervision' "> <if test="dto.dataType == 'supervision' ">
AND (ur.receive_company_code = #{dto.receiveCompanyCode} or ur.transfer_to_user_ids LIKE concat ('%', AND (ur.receive_company_code = #{dto.receiveCompanyCode} or ur.transfer_to_user_ids LIKE concat ('%',
#{dto.currentUserId}, '%')) #{dto.currentUserId}, '%'))
AND ur.instance_id <![CDATA[<>]]> '' AND ur.status <![CDATA[<>]]> '使用单位待提交'
</if> </if>
<if test="dto.dataType == 'company' "> <if test="dto.dataType == 'company' ">
AND (ur.use_unit_credit_code = #{dto.unitCode} or ur.transfer_to_user_ids LIKE concat ('%', AND (ur.use_unit_credit_code = #{dto.unitCode} or ur.transfer_to_user_ids LIKE concat ('%',
...@@ -261,7 +261,10 @@ ...@@ -261,7 +261,10 @@
INSPECT_STAFF as inspectStaff, INSPECT_STAFF as inspectStaff,
NEXT_INSPECT_DATE as nextInspectDate, NEXT_INSPECT_DATE as nextInspectDate,
INSPECT_REPORT as inspectReport INSPECT_REPORT as inspectReport
FROM "idx_biz_jg_inspection_detection_info" where RECORD = #{id} FROM "idx_biz_jg_inspection_detection_info"
where
RECORD = #{id}
ORDER BY INSPECT_DATE desc LIMIT 1
</select> </select>
<select id="getDetailById" resultType="java.util.Map"> <select id="getDetailById" resultType="java.util.Map">
select ur.sequence_nbr as sequenceNbr, select ur.sequence_nbr as sequenceNbr,
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</if> </if>
<if test="dto.dataType == 'supervision' "> <if test="dto.dataType == 'supervision' ">
and tjvi.receive_company_code = #{dto.useUnitCreditCode} and tjvi.receive_company_code = #{dto.useUnitCreditCode}
AND tjvi.instance_id <![CDATA[<>]]> '' AND tjvi.status <![CDATA[<>]]> '使用单位待提交'
</if> </if>
<if test="dto.dataType == 'company' "> <if test="dto.dataType == 'company' ">
and tjvi.use_unit_credit_code = #{dto.useUnitCreditCode} and tjvi.use_unit_credit_code = #{dto.useUnitCreditCode}
......
...@@ -305,6 +305,17 @@ public class CommonController extends BaseController { ...@@ -305,6 +305,17 @@ public class CommonController extends BaseController {
return ResponseHelper.buildResponse(commonService.invokeBusinessType(map)); return ResponseHelper.buildResponse(commonService.invokeBusinessType(map));
} }
/**
* 历史平台登记业务使用登记单编辑公共入口
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/updateHistory")
@ApiOperation(httpMethod = "POST", value = "历史平台登记业务使用登记单编辑公共入口", notes = "历史平台登记业务使用登记单编辑公共入口")
public ResponseModel<Object> updateHistory(@RequestBody Map<String, Object> map) {
return ResponseHelper.buildResponse(commonService.updateHistory(map));
}
/** /**
* 根据公司id获取公司下人员 * 根据公司id获取公司下人员
*/ */
......
...@@ -69,6 +69,8 @@ public interface ICommonService { ...@@ -69,6 +69,8 @@ public interface ICommonService {
Object invokeBusinessType(Map<String, Object> obj); Object invokeBusinessType(Map<String, Object> obj);
Object updateHistory(Map<String, Object> obj);
Object getCompanyUser(Long companyId); Object getCompanyUser(Long companyId);
Object transfer(Map<String, Object> obj); Object transfer(Map<String, Object> obj);
......
...@@ -38,6 +38,8 @@ import com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService; ...@@ -38,6 +38,8 @@ import com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService;
import com.yeejoin.amos.boot.module.jg.api.service.IJgMaintainNoticeService; import com.yeejoin.amos.boot.module.jg.api.service.IJgMaintainNoticeService;
import com.yeejoin.amos.boot.module.jg.api.service.IJgTransferNoticeService; import com.yeejoin.amos.boot.module.jg.api.service.IJgTransferNoticeService;
import com.yeejoin.amos.boot.module.jg.api.vo.SortVo; import com.yeejoin.amos.boot.module.jg.api.vo.SortVo;
import com.yeejoin.amos.boot.module.jg.biz.feign.PrivilegeFeginService;
import com.yeejoin.amos.boot.module.jg.biz.feign.TaskV2FeignService;
import com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient; import com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient;
import com.yeejoin.amos.boot.module.jg.biz.service.ICmWorkflowService; import com.yeejoin.amos.boot.module.jg.biz.service.ICmWorkflowService;
import com.yeejoin.amos.boot.module.jg.biz.service.ICommonService; import com.yeejoin.amos.boot.module.jg.biz.service.ICommonService;
...@@ -45,8 +47,6 @@ import com.yeejoin.amos.boot.module.jg.biz.utils.FileExporter; ...@@ -45,8 +47,6 @@ import com.yeejoin.amos.boot.module.jg.biz.utils.FileExporter;
import com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils; import com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils;
import com.yeejoin.amos.boot.module.jg.biz.utils.JsonUtils; import com.yeejoin.amos.boot.module.jg.biz.utils.JsonUtils;
import com.yeejoin.amos.boot.module.jg.biz.utils.WordTemplateUtils; import com.yeejoin.amos.boot.module.jg.biz.utils.WordTemplateUtils;
import com.yeejoin.amos.boot.module.jg.biz.feign.PrivilegeFeginService;
import com.yeejoin.amos.boot.module.jg.biz.feign.TaskV2FeignService;
import com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamPipeline; import com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamPipeline;
import com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory; import com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory;
import com.yeejoin.amos.boot.module.ymt.api.entity.RegistrationInfo; import com.yeejoin.amos.boot.module.ymt.api.entity.RegistrationInfo;
...@@ -67,7 +67,7 @@ import com.yeejoin.amos.feign.systemctl.model.TaskV2Model; ...@@ -67,7 +67,7 @@ import com.yeejoin.amos.feign.systemctl.model.TaskV2Model;
import com.yeejoin.amos.feign.workflow.model.ActTaskDTO; import com.yeejoin.amos.feign.workflow.model.ActTaskDTO;
import com.yeejoin.amos.feign.workflow.model.FlowTaskVo; import com.yeejoin.amos.feign.workflow.model.FlowTaskVo;
import com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO; import com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO;
import freemarker.template.*; import freemarker.template.Configuration;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.redisson.api.RBucket; import org.redisson.api.RBucket;
...@@ -90,6 +90,7 @@ import org.typroject.tyboot.core.foundation.utils.Bean; ...@@ -90,6 +90,7 @@ import org.typroject.tyboot.core.foundation.utils.Bean;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil; import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
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.annotation.PostConstruct; import javax.annotation.PostConstruct;
import javax.servlet.ServletOutputStream; import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -900,6 +901,7 @@ public class CommonServiceImpl implements ICommonService { ...@@ -900,6 +901,7 @@ public class CommonServiceImpl implements ICommonService {
map.put("useUnitName", Optional.ofNullable(map.get("useUnitName")).orElse("").toString()); // 使用单位名称 map.put("useUnitName", Optional.ofNullable(map.get("useUnitName")).orElse("").toString()); // 使用单位名称
map.put("fullAddress", Optional.ofNullable(map.get("fullAddress")).orElse("").toString()); // 设备使用地点 map.put("fullAddress", Optional.ofNullable(map.get("fullAddress")).orElse("").toString()); // 设备使用地点
map.put("equList", Optional.ofNullable(map.get("equList")).orElse("").toString()); // 设备种类 map.put("equList", Optional.ofNullable(map.get("equList")).orElse("").toString()); // 设备种类
map.put("equListCode", Optional.ofNullable(map.get("equListCode")).orElse("").toString()); // 设备种类Code
map.put("equipDefine", Optional.ofNullable(map.get("equipDefine")).orElse("").toString()); // 设备品种 map.put("equipDefine", Optional.ofNullable(map.get("equipDefine")).orElse("").toString()); // 设备品种
map.put("equipCode", Optional.ofNullable(map.get("equipCode")).orElse("").toString()); // 设备代码 map.put("equipCode", Optional.ofNullable(map.get("equipCode")).orElse("").toString()); // 设备代码
map.put("equipCategory", Optional.ofNullable(map.get("equipCategory")).orElse("").toString()); // 设备类别 map.put("equipCategory", Optional.ofNullable(map.get("equipCategory")).orElse("").toString()); // 设备类别
...@@ -954,8 +956,8 @@ public class CommonServiceImpl implements ICommonService { ...@@ -954,8 +956,8 @@ public class CommonServiceImpl implements ICommonService {
// Populate template variables with default values if not present // Populate template variables with default values if not present
String[] keys = {"useRegistrationCode", "useUnitName", "fullAddress", "equList", "equipDefine", "equipCode", String[] keys = {"useRegistrationCode", "useUnitName", "fullAddress", "equList", "equipDefine", "equipCode",
"equipCategory", "useInnerCode", "factoryNum", "receiveOrgName", "giveOutYear", "equipCategory", "useInnerCode", "factoryNum", "receiveOrgName", "giveOutYear",
"giveOutMonth", "giveOutDay", "excelType", "tableName"}; "giveOutMonth", "giveOutDay", "excelType", "tableName", "carNumber"};
String[] defaultValues = {"", "", "", "", "", "", "", "", "", "", "", "", "", "使用登记", "特种设备使用登记证"}; String[] defaultValues = {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "使用登记", "特种设备使用登记证"};
for (int i = 0; i < keys.length; i++) { for (int i = 0; i < keys.length; i++) {
map.put(keys[i], Optional.ofNullable(map.get(keys[i])).orElse(defaultValues[i]).toString()); map.put(keys[i], Optional.ofNullable(map.get(keys[i])).orElse(defaultValues[i]).toString());
...@@ -1262,6 +1264,21 @@ public class CommonServiceImpl implements ICommonService { ...@@ -1262,6 +1264,21 @@ public class CommonServiceImpl implements ICommonService {
} }
} }
@Override
public Object updateHistory(Map<String, Object> map) {
String historyEquType = (String) map.get(HISTORY_EQU_TYPE);
JSONObject jsonObject = new JSONObject(map);
switch (historyEquType) {
case "unit":
// return jgUseRegistrationServiceImpl.handleUnitHistoryEquip(jsonObject);
return null;
case "vehicle":
return jgVehicleInformationService.updateHistoryByVehicle(jsonObject);
default:
return jgUseRegistrationServiceImpl.updateHistoryBySet(jsonObject);
}
}
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
......
...@@ -1327,6 +1327,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste ...@@ -1327,6 +1327,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
* @param map * @param map
* @return * @return
*/ */
@Override
public Page<JSONObject> queryForEquipmentRegisterPage(JSONObject map) { public Page<JSONObject> queryForEquipmentRegisterPage(JSONObject map) {
if (map.containsKey("flag") && !map.containsKey("USE_UNIT_CREDIT_CODE")) { if (map.containsKey("flag") && !map.containsKey("USE_UNIT_CREDIT_CODE")) {
...@@ -1417,10 +1418,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste ...@@ -1417,10 +1418,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
map.put(PROJECT_CONTRAPTION, String.valueOf(map.get("projectContraption"))); map.put(PROJECT_CONTRAPTION, String.valueOf(map.get("projectContraption")));
} }
} else if (ValidationUtil.equals(queryType, "WB")) {// 维保 } else if (ValidationUtil.equals(queryType, "WB")) {// 维保
// // 查询 维保备案【可绑定设备列表】【(EQU_STATE=== null || "")】 this.setRepeatUsedCheckFilterParam(boolMust, companyCode, JgMaintenanceContractServiceImpl.WB_PROCESS_DEFINITION_KEY);
// BoolQueryBuilder wbBuilder = QueryBuilders.boolQuery();
// wbBuilder.mustNot(QueryBuilders.existsQuery("EQU_STATE"));
// boolMust.must(wbBuilder);
} else if (ValidationUtil.equals(queryType, "SY")) {// 使用 } else if (ValidationUtil.equals(queryType, "SY")) {// 使用
// 查询 使用登记【可选设备列表】【(EQU_STATUS=== null || "" ) && (USE_ORG_CODE(使用登记证编号) ==="" || null)】 // 查询 使用登记【可选设备列表】【(EQU_STATUS=== null || "" ) && (USE_ORG_CODE(使用登记证编号) ==="" || null)】
BoolQueryBuilder syBuilder = QueryBuilders.boolQuery(); BoolQueryBuilder syBuilder = QueryBuilders.boolQuery();
...@@ -1781,6 +1779,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste ...@@ -1781,6 +1779,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
* @param map * @param map
* @return * @return
*/ */
@Override
public Page<JSONObject> queryForEquipmentRegisterPageHistory(JSONObject map) { public Page<JSONObject> queryForEquipmentRegisterPageHistory(JSONObject map) {
if (map.containsKey("flag") && !map.containsKey("USE_UNIT_CREDIT_CODE")) { if (map.containsKey("flag") && !map.containsKey("USE_UNIT_CREDIT_CODE")) {
......
...@@ -239,6 +239,16 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC ...@@ -239,6 +239,16 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
} }
} }
private void delRepeatUseEquipData(Long id, String companyCode) {
List<JgMaintenanceContractEq> list = jgMaintenanceContractEqService.lambdaQuery().eq(JgMaintenanceContractEq::getEquipTransferId, id).list();
// 获取单位变更设备列表
if (CollectionUtils.isEmpty(list)) {
return;
}
List<String> records = list.stream().map(JgMaintenanceContractEq::getEquId).collect(Collectors.toList());
EquipUsedCheckStrategyContext.getUsedStrategy(WB_PROCESS_DEFINITION_KEY).delDataForCheckEquipRepeatUsed(records, companyCode);
}
public InstanceRuntimeData buildInstanceRuntimeData(JgMaintenanceContract jgMaintenanceContract) { public InstanceRuntimeData buildInstanceRuntimeData(JgMaintenanceContract jgMaintenanceContract) {
return InstanceRuntimeData.builder() return InstanceRuntimeData.builder()
.nextExecuteUserIds(jgMaintenanceContract.getNextExecuteUserIds()) .nextExecuteUserIds(jgMaintenanceContract.getNextExecuteUserIds())
...@@ -278,6 +288,8 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC ...@@ -278,6 +288,8 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
commonService.deleteTaskModel(String.valueOf(jgMaintenanceContract.getSequenceNbr()), jgMaintenanceContract.getInstanceId()); commonService.deleteTaskModel(String.valueOf(jgMaintenanceContract.getSequenceNbr()), jgMaintenanceContract.getInstanceId());
// 删除业务单 // 删除业务单
this.baseMapper.deleteById(seq); this.baseMapper.deleteById(seq);
// 删除流程中的设备维保
this.delRepeatUseEquipData(jgMaintenanceContract.getSequenceNbr(), jgMaintenanceContract.getUseUnitCode());
// 删除对应eq // 删除对应eq
jgMaintenanceContractEqService.getBaseMapper().delete(new LambdaQueryWrapper<JgMaintenanceContractEq>() jgMaintenanceContractEqService.getBaseMapper().delete(new LambdaQueryWrapper<JgMaintenanceContractEq>()
.eq(JgMaintenanceContractEq::getEquipTransferId, seq)); .eq(JgMaintenanceContractEq::getEquipTransferId, seq));
...@@ -783,30 +795,19 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC ...@@ -783,30 +795,19 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
maintenanceContract.setNextExecuteUserIds(null); maintenanceContract.setNextExecuteUserIds(null);
maintenanceContract.setPromoter(null); maintenanceContract.setPromoter(null);
this.updateById(maintenanceContract); this.updateById(maintenanceContract);
this.processElseDataByStatus(Objects.requireNonNull(this.confirmBusinessPhase(oldNoticeStatus)), maintenanceContract); this.processElseDataByStatus(this.confirmBusinessPhase(oldNoticeStatus), maintenanceContract);
return maintenanceContract; return maintenanceContract;
} }
private FlowStatusEnum confirmBusinessPhase(String status) { private FlowStatusEnum confirmBusinessPhase(String status) {
Set<String> toBeSubmittedSet = new HashSet<>(Arrays.asList( if ( WorkFlowStatusEnum.MAIN_SUBMIT.getPass().contains(status)) {
WorkFlowStatusEnum.MAIN_SUBMIT.getPass(),
WorkFlowStatusEnum.MAIN_SUBMIT.getReject(),
WorkFlowStatusEnum.MAIN_SUBMIT.getRollBack(),
WorkFlowStatusEnum.MAIN_RECEIVE.getPass(),
WorkFlowStatusEnum.MAIN_RECEIVE.getReject(),
WorkFlowStatusEnum.MAIN_RECEIVE.getRollBack(),
WorkFlowStatusEnum.MAIN_PRELIMINARY.getPass()
));
if (toBeSubmittedSet.contains(status)) {
return FlowStatusEnum.TO_BE_SUBMITTED; return FlowStatusEnum.TO_BE_SUBMITTED;
} }
if (FlowStatusEnum.TO_BE_FINISHED.getName().equals(status)) { if ( WorkFlowStatusEnum.MAIN_PRELIMINARY.getPass().contains(status)) {
return FlowStatusEnum.TO_BE_FINISHED; return FlowStatusEnum.TO_BE_FINISHED;
} }
return FlowStatusEnum.TO_BE_PROCESSED;
return null;
} }
private void processElseDataByStatus(FlowStatusEnum oldNoticeStatus, JgMaintenanceContract contract) { private void processElseDataByStatus(FlowStatusEnum oldNoticeStatus, JgMaintenanceContract contract) {
......
...@@ -16,7 +16,8 @@ import com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationTransfer ...@@ -16,7 +16,8 @@ import com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationTransfer
import com.yeejoin.amos.boot.module.jg.api.service.IJgUseRegistrationManageService; import com.yeejoin.amos.boot.module.jg.api.service.IJgUseRegistrationManageService;
import com.yeejoin.amos.boot.module.jg.api.vo.SortVo; import com.yeejoin.amos.boot.module.jg.api.vo.SortVo;
import com.yeejoin.amos.boot.module.ymt.api.common.StringUtil; import com.yeejoin.amos.boot.module.ymt.api.common.StringUtil;
import com.yeejoin.amos.boot.module.ymt.api.entity.*; import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgMaintenanceRecordInfo;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgUseInfo;
import com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum; import com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.lucene.queryparser.classic.QueryParser; import org.apache.lucene.queryparser.classic.QueryParser;
...@@ -540,6 +541,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr ...@@ -540,6 +541,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
} }
exportParamsMap.put("applyNo", manage.getApplyNo()); exportParamsMap.put("applyNo", manage.getApplyNo());
exportParamsMap.put("carNumber", manage.getCarNumber()); exportParamsMap.put("carNumber", manage.getCarNumber());
exportParamsMap.put("equListCode", manage.getEquListCode());
if ("0".equals(printType)) { if ("0".equals(printType)) {
// 调用生成使用登记证 // 调用生成使用登记证
......
...@@ -254,6 +254,9 @@ public class WordTemplateUtils { ...@@ -254,6 +254,9 @@ public class WordTemplateUtils {
.replace("<", "&lt;") .replace("<", "&lt;")
.replace(">", "&gt;") .replace(">", "&gt;")
.replace("\"", "&quot;") .replace("\"", "&quot;")
.replace("'", "&apos;"); .replace("'", "&apos;")
.replace("(", "&#40;")
.replace(")", "&#41;");
} }
} }
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?> <?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve" xmlns:wpsCustomData="http://www.wps.cn/officeDocument/2013/wpsCustomData"> <w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve">
<o:DocumentProperties> <o:DocumentProperties>
<o:Author></o:Author> <o:Author></o:Author>
<o:LastAuthor></o:LastAuthor> <o:LastAuthor></o:LastAuthor>
...@@ -892,6 +896,57 @@ ...@@ -892,6 +896,57 @@
</v:shape> </v:shape>
</w:pict> </w:pict>
</w:r> </w:r>
<#if equListCode == "5000">
<w:r>
<w:rPr>
<w:sz w:val="24"/>
</w:rPr>
<w:pict>
<v:shape id="文本框 17" o:spid="_x0000_s1032" o:spt="202" type="#_x0000_t202" style="position:absolute;left:0pt;margin-left:394pt;margin-top:550pt;height:130.25pt;width:132.05pt;z-index:251672576;mso-width-relative:page;mso-height-relative:page;" fillcolor="#FFFFFF" filled="t" stroked="f" coordsize="21600,21600">
<v:path/>
<v:fill on="t" color2="#FFFFFF" focussize="0,0"/>
<v:stroke on="f" weight="0.5pt"/>
<v:imagedata o:title=""/>
<o:lock v:ext="edit" aspectratio="f"/>
<v:textbox>
<w:txbxContent>
<w:p>
<w:pPr>
<w:keepNext w:val="off"/>
<w:keepLines w:val="off"/>
<w:pageBreakBefore w:val="off"/>
<w:widowControl w:val="off"/>
<w:kinsoku/>
<w:wordWrap/>
<w:overflowPunct/>
<w:topLinePunct w:val="off"/>
<w:adjustRightInd/>
<w:snapToGrid/>
<w:spacing w:line="120" w:line-rule="auto"/>
<w:textAlignment w:val="auto"/>
<w:rPr>
<w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="default"/>
<w:sz w:val="24"/>
<w:sz-cs w:val="24"/>
<w:lang w:val="EN-US" w:fareast="ZH-CN"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:fareast="宋体" w:cs="宋体" w:hint="fareast"/>
<w:sz w:val="24"/>
<w:sz-cs w:val="24"/>
<w:lang w:val="EN-US" w:fareast="ZH-CN"/>
</w:rPr>
<w:t>${(carNumber)!''}</w:t>
</w:r>
</w:p>
</w:txbxContent>
</v:textbox>
</v:shape>
</w:pict>
</w:r>
</#if>
<w:r> <w:r>
<w:rPr> <w:rPr>
<w:sz w:val="24"/> <w:sz w:val="24"/>
...@@ -1037,7 +1092,7 @@ ...@@ -1037,7 +1092,7 @@
<w:sz w:val="24"/> <w:sz w:val="24"/>
</w:rPr> </w:rPr>
<w:pict> <w:pict>
<v:shape id="文本框 12" o:spid="_x0000_s1035" o:spt="202" type="#_x0000_t202" style="position:absolute;left:0pt;margin-left:264.05pt;margin-top:400.65pt;height:149.25pt;width:137.1pt;z-index:251663360;mso-width-relative:page;mso-height-relative:page;" fillcolor="#FFFFFF" filled="t" stroked="f" coordsize="21600,21600"> <v:shape id="文本框 12" o:spid="_x0000_s1035" o:spt="202" type="#_x0000_t202" style="position:absolute;left:0pt;margin-left:264.05pt;margin-top:400pt;height:220pt;width:137.1pt;z-index:251663360;mso-width-relative:page;mso-height-relative:page;" fillcolor="#FFFFFF" filled="t" stroked="f" coordsize="21600,21600">
<v:path/> <v:path/>
<v:fill on="t" color2="#FFFFFF" focussize="0,0"/> <v:fill on="t" color2="#FFFFFF" focussize="0,0"/>
<v:stroke on="f" weight="0.5pt"/> <v:stroke on="f" weight="0.5pt"/>
...@@ -1431,6 +1486,128 @@ ...@@ -1431,6 +1486,128 @@
<w:t>号:</w:t> <w:t>号:</w:t>
</w:r> </w:r>
</w:p> </w:p>
<#if equListCode == "5000">
<w:p>
<w:pPr>
<w:keepNext w:val="off"/>
<w:keepLines w:val="off"/>
<w:pageBreakBefore w:val="off"/>
<w:widowControl/>
<w:kinsoku w:val="off"/>
<w:wordWrap/>
<w:overflowPunct/>
<w:topLinePunct w:val="off"/>
<w:autoSpaceDE w:val="off"/>
<w:autoSpaceDN w:val="off"/>
<w:adjustRightInd w:val="off"/>
<w:snapToGrid w:val="off"/>
<w:spacing w:before="160" w:line="408" w:line-rule="auto"/>
<w:jc w:val="left"/>
<w:textAlignment w:val="baseline"/>
<w:rPr>
<w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="default"/>
<w:snapToGrid w:val="off"/>
<w:color w:val="000000"/>
<w:spacing w:val="-16"/>
<w:kern w:val="0"/>
<w:sz w:val="36"/>
<w:sz-cs w:val="36"/>
<w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="default"/>
<w:snapToGrid w:val="off"/>
<w:color w:val="000000"/>
<w:spacing w:val="-16"/>
<w:kern w:val="0"/>
<w:sz w:val="36"/>
<w:sz-cs w:val="36"/>
<w:lang w:val="EN-US" w:fareast="EN-US" w:bidi="AR-SA"/>
</w:rPr>
<w:t>场(厂)</w:t>
</w:r>
<#-- <w:r>-->
<#-- <w:rPr>-->
<#-- <w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="fareast"/>-->
<#-- <w:snapToGrid w:val="off"/>-->
<#-- <w:color w:val="000000"/>-->
<#-- <w:spacing w:val="-16"/>-->
<#-- <w:kern w:val="0"/>-->
<#-- <w:sz w:val="36"/>-->
<#-- <w:sz-cs w:val="36"/>-->
<#-- <w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA"/>-->
<#-- </w:rPr>-->
<#-- <w:t> </w:t>-->
<#-- </w:r>-->
<w:r>
<w:rPr>
<w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="default"/>
<w:snapToGrid w:val="off"/>
<w:color w:val="000000"/>
<w:spacing w:val="-16"/>
<w:kern w:val="0"/>
<w:sz w:val="36"/>
<w:sz-cs w:val="36"/>
<w:lang w:val="EN-US" w:fareast="EN-US" w:bidi="AR-SA"/>
</w:rPr>
<w:t></w:t>
</w:r>
<#-- <w:r>-->
<#-- <w:rPr>-->
<#-- <w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="fareast"/>-->
<#-- <w:snapToGrid w:val="off"/>-->
<#-- <w:color w:val="000000"/>-->
<#-- <w:spacing w:val="-16"/>-->
<#-- <w:kern w:val="0"/>-->
<#-- <w:sz w:val="36"/>-->
<#-- <w:sz-cs w:val="36"/>-->
<#-- <w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA"/>-->
<#-- </w:rPr>-->
<#-- <w:t> </w:t>-->
<#-- </w:r>-->
<w:r>
<w:rPr>
<w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="default"/>
<w:snapToGrid w:val="off"/>
<w:color w:val="000000"/>
<w:spacing w:val="-16"/>
<w:kern w:val="0"/>
<w:sz w:val="36"/>
<w:sz-cs w:val="36"/>
<w:lang w:val="EN-US" w:fareast="EN-US" w:bidi="AR-SA"/>
</w:rPr>
<w:t></w:t>
</w:r>
<#-- <w:r>-->
<#-- <w:rPr>-->
<#-- <w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="fareast"/>-->
<#-- <w:snapToGrid w:val="off"/>-->
<#-- <w:color w:val="000000"/>-->
<#-- <w:spacing w:val="-16"/>-->
<#-- <w:kern w:val="0"/>-->
<#-- <w:sz w:val="36"/>-->
<#-- <w:sz-cs w:val="36"/>-->
<#-- <w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA"/>-->
<#-- </w:rPr>-->
<#-- <w:t> </w:t>-->
<#-- </w:r>-->
<w:r>
<w:rPr>
<w:rFonts w:ascii="黑体" w:h-ansi="黑体" w:fareast="黑体" w:cs="黑体" w:hint="default"/>
<w:snapToGrid w:val="off"/>
<w:color w:val="000000"/>
<w:spacing w:val="-16"/>
<w:kern w:val="0"/>
<w:sz w:val="36"/>
<w:sz-cs w:val="36"/>
<w:lang w:val="EN-US" w:fareast="EN-US" w:bidi="AR-SA"/>
</w:rPr>
<w:t>号:</w:t>
</w:r>
</w:p>
</#if>
</w:txbxContent> </w:txbxContent>
</v:textbox> </v:textbox>
</v:shape> </v:shape>
......
...@@ -2,12 +2,10 @@ ...@@ -2,12 +2,10 @@
<?mso-application progid="Word.Document"?> <?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" <w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core"
xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve" w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve"
xmlns:wpsCustomData="http://www.wps.cn/officeDocument/2013/wpsCustomData"><o:DocumentProperties> ><o:DocumentProperties>
<o:Author></o:Author> <o:Author></o:Author>
<o:LastAuthor>刘林</o:LastAuthor> <o:LastAuthor>刘林</o:LastAuthor>
<o:Revision>1</o:Revision> <o:Revision>1</o:Revision>
...@@ -567,7 +565,10 @@ ...@@ -567,7 +565,10 @@
<w:r> <w:r>
<w:pict> <w:pict>
<w:binData w:name="wordml://2.png">${(supervisoryCode)!''}</w:binData> <w:binData w:name="wordml://2.png">${(supervisoryCode)!''}</w:binData>
<v:shape id="图片 13" o:spid="_x0000_s1040" o:spt="75" alt="" type="#_x0000_t75" style="height:62.35pt;width:62.35pt;" filled="f" o:preferrelative="f" stroked="f" coordsize="21600,21600"> <v:shape id="图片 13" o:spid="_x0000_s1040" o:spt="75" alt=""
type="#_x0000_t75" style="height:62.35pt;width:62.35pt;"
filled="f" o:preferrelative="f" stroked="f"
coordsize="21600,21600">
<v:path/> <v:path/>
<v:fill on="f" focussize="0,0"/> <v:fill on="f" focussize="0,0"/>
<v:stroke on="f"/> <v:stroke on="f"/>
...@@ -746,6 +747,61 @@ ...@@ -746,6 +747,61 @@
</v:shape> </v:shape>
</w:pict> </w:pict>
</w:r> </w:r>
<#if equListCode == "5000">
<w:r>
<w:rPr>
<w:sz w:val="24"/>
</w:rPr>
<w:pict>
<v:shape id="文本框 17" o:spid="_x0000_s1028" o:spt="202" type="#_x0000_t202"
style="position:absolute;left:0pt;margin-left:392.7pt;margin-top:515pt;height:50pt;width:132.05pt;z-index:251668480;mso-width-relative:page;mso-height-relative:page;"
fillcolor="#FFFFFF" filled="t" stroked="f" coordsize="21600,21600">
<v:path/>
<v:fill on="t" color2="#FFFFFF" focussize="0,0"/>
<v:stroke on="f" weight="0.5pt"/>
<v:imagedata o:title=""/>
<o:lock v:ext="edit" aspectratio="f"/>
<v:textbox>
<w:txbxContent>
<w:p>
<w:pPr>
<w:keepNext w:val="off"/>
<w:keepLines w:val="off"/>
<w:pageBreakBefore w:val="off"/>
<w:widowControl w:val="off"/>
<w:kinsoku/>
<w:wordWrap/>
<w:overflowPunct/>
<w:topLinePunct w:val="off"/>
<w:adjustRightInd/>
<w:snapToGrid/>
<w:spacing w:line="120" w:line-rule="auto"/>
<w:textAlignment w:val="auto"/>
<w:rPr>
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:fareast="宋体" w:cs="宋体"
w:hint="fareast"/>
<w:sz w:val="24"/>
<w:sz-cs w:val="24"/>
<w:lang w:fareast="ZH-CN"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:fareast="宋体" w:cs="宋体"
w:hint="fareast"/>
<w:sz w:val="24"/>
<w:sz-cs w:val="24"/>
<w:lang w:fareast="ZH-CN"/>
</w:rPr>
<w:t>${carNumber}</w:t>
</w:r>
</w:p>
</w:txbxContent>
</v:textbox>
</v:shape>
</w:pict>
</w:r>
</#if>
<w:r> <w:r>
<w:rPr> <w:rPr>
<w:sz w:val="24"/> <w:sz w:val="24"/>
......
...@@ -51,6 +51,9 @@ public class DPSubController { ...@@ -51,6 +51,9 @@ public class DPSubController {
if (ValidationUtil.isEmpty(param.get("equList"))){ if (ValidationUtil.isEmpty(param.get("equList"))){
param.put("equList", param.get("EQU_LIST_CODE")); param.put("equList", param.get("EQU_LIST_CODE"));
} }
if (ValidationUtil.isEmpty(param.get("PRODUCT_NAME"))){
param.put("PRODUCT_NAME", param.get("EQU_LIST"));
}
if (!ValidationUtil.isEmpty(param.get("equListCode"))){ // 问题列表关联设备 if (!ValidationUtil.isEmpty(param.get("equListCode"))){ // 问题列表关联设备
param.put("equList", param.get("equListCode")); param.put("equList", param.get("equListCode"));
param.put("EQU_LIST_CODE", param.get("equListCode")); param.put("EQU_LIST_CODE", param.get("equListCode"));
......
package com.yeejoin.amos.boot.module.tcm.api.mapper;
import com.yeejoin.amos.boot.module.common.api.entity.TzsUserPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 用户资质信息表 Mapper 接口
*
* @author system_generator
* @date 2024-08-27
*/
public interface TzsUserPermissionMapper extends BaseMapper<TzsUserPermission> {
}
package com.yeejoin.amos.boot.module.tcm.api.service;
/**
* 用户资质信息表接口类
*
* @author system_generator
* @date 2024-08-27
*/
public interface ITzsUserPermissionService {
}
<?xml version="1.0" encoding="UTF-8"?>
<!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.tcm.api.mapper.TzsUserPermissionMapper">
</mapper>
package com.yeejoin.amos.boot.module.tcm.biz.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import java.util.List;
import com.yeejoin.amos.boot.module.tcm.biz.service.impl.TzsUserPermissionServiceImpl;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.common.api.dto.TzsUserPermissionDto;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
/**
* 用户资质信息表
*
* @author system_generator
* @date 2024-08-27
*/
@RestController
@Api(tags = "用户资质信息表Api")
@RequestMapping(value = "/tzs-user-permission")
public class TzsUserPermissionController extends BaseController {
@Autowired
TzsUserPermissionServiceImpl tzsUserPermissionServiceImpl;
/**
* 新增用户资质信息表
*
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "新增用户资质信息表", notes = "新增用户资质信息表")
public ResponseModel<TzsUserPermissionDto> save(@RequestBody TzsUserPermissionDto model) {
model = tzsUserPermissionServiceImpl.createWithModel(model);
return ResponseHelper.buildResponse(model);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PutMapping(value = "/{sequenceNbr}")
@ApiOperation(httpMethod = "PUT", value = "根据sequenceNbr更新用户资质信息表", notes = "根据sequenceNbr更新用户资质信息表")
public ResponseModel<TzsUserPermissionDto> updateBySequenceNbrTzsUserPermission(@RequestBody TzsUserPermissionDto model,@PathVariable(value = "sequenceNbr") Long sequenceNbr) {
model.setSequenceNbr(sequenceNbr);
return ResponseHelper.buildResponse(tzsUserPermissionServiceImpl.updateWithModel(model));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@DeleteMapping(value = "/{sequenceNbr}")
@ApiOperation(httpMethod = "DELETE", value = "根据sequenceNbr删除用户资质信息表", notes = "根据sequenceNbr删除用户资质信息表")
public ResponseModel<Boolean> deleteBySequenceNbr(HttpServletRequest request, @PathVariable(value = "sequenceNbr") Long sequenceNbr){
return ResponseHelper.buildResponse(tzsUserPermissionServiceImpl.removeById(sequenceNbr));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/{sequenceNbr}")
@ApiOperation(httpMethod = "GET",value = "根据sequenceNbr查询单个用户资质信息表", notes = "根据sequenceNbr查询单个用户资质信息表")
public ResponseModel<TzsUserPermissionDto> selectOne(@PathVariable Long sequenceNbr) {
return ResponseHelper.buildResponse(tzsUserPermissionServiceImpl.queryBySeq(sequenceNbr));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/page")
@ApiOperation(httpMethod = "GET",value = "用户资质信息表分页查询", notes = "用户资质信息表分页查询")
public ResponseModel<Page<TzsUserPermissionDto>> queryForPage(@RequestParam(value = "current") int current,@RequestParam
(value = "size") int size) {
Page<TzsUserPermissionDto> page = new Page<TzsUserPermissionDto>();
page.setCurrent(current);
page.setSize(size);
return ResponseHelper.buildResponse(tzsUserPermissionServiceImpl.queryForTzsUserPermissionPage(page));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET",value = "用户资质信息表列表全部数据查询", notes = "用户资质信息表列表全部数据查询")
@GetMapping(value = "/list")
public ResponseModel<List<TzsUserPermissionDto>> selectForList() {
return ResponseHelper.buildResponse(tzsUserPermissionServiceImpl.queryForTzsUserPermissionList());
}
}
package com.yeejoin.amos.boot.module.tcm.biz.service.impl;
import com.yeejoin.amos.boot.module.common.api.entity.TzsUserPermission;
import com.yeejoin.amos.boot.module.tcm.api.mapper.TzsUserPermissionMapper;
import com.yeejoin.amos.boot.module.tcm.api.service.ITzsUserPermissionService;
import com.yeejoin.amos.boot.module.common.api.dto.TzsUserPermissionDto;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
/**
* 用户资质信息表服务实现类
*
* @author system_generator
* @date 2024-08-27
*/
@Service
public class TzsUserPermissionServiceImpl extends BaseService<TzsUserPermissionDto,TzsUserPermission,TzsUserPermissionMapper> implements ITzsUserPermissionService {
/**
* 分页查询
*/
public Page<TzsUserPermissionDto> queryForTzsUserPermissionPage(Page<TzsUserPermissionDto> page) {
return this.queryForPage(page, null, false);
}
/**
* 列表查询 示例
*/
public List<TzsUserPermissionDto> queryForTzsUserPermissionList() {
return this.queryForList("" , false);
}
}
\ No newline at end of file
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