代码合并、调整报名;编译通过
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
package com.zt.plat.module.qms.business.bus.controller.admin;
|
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||||
|
|
||||||
|
|
||||||
|
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayParameterDataPageReqVO;
|
||||||
|
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayParameterDataRespVO;
|
||||||
|
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayParameterDataSaveReqVO;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@@ -10,7 +14,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
|
||||||
import jakarta.validation.constraints.*;
|
|
||||||
import jakarta.validation.*;
|
import jakarta.validation.*;
|
||||||
import jakarta.servlet.http.*;
|
import jakarta.servlet.http.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@@ -20,9 +23,8 @@ import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
|||||||
import com.zt.plat.framework.common.pojo.PageParam;
|
import com.zt.plat.framework.common.pojo.PageParam;
|
||||||
import com.zt.plat.framework.common.pojo.PageResult;
|
import com.zt.plat.framework.common.pojo.PageResult;
|
||||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
|
||||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||||
|
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayParameterDataDO;
|
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayParameterDataDO;
|
||||||
|
|||||||
@@ -17,9 +17,10 @@ import com.zt.plat.framework.common.pojo.PageResult;
|
|||||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||||
|
|
||||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigReportTemplateMapper;
|
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigReportTemplateMapper;
|
||||||
|
import com.zt.plat.module.qms.enums.QmsCommonConstant;
|
||||||
|
import com.zt.plat.module.qms.framework.gridreport.GridReport;
|
||||||
|
|
||||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
|
||||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.*;
|
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -39,9 +40,10 @@ public class ConfigReportTemplateServiceImpl implements ConfigReportTemplateServ
|
|||||||
// 插入
|
// 插入
|
||||||
ConfigReportTemplateDO configReportTemplate = BeanUtils.toBean(createReqVO, ConfigReportTemplateDO.class);
|
ConfigReportTemplateDO configReportTemplate = BeanUtils.toBean(createReqVO, ConfigReportTemplateDO.class);
|
||||||
String content = configReportTemplate.getContent();
|
String content = configReportTemplate.getContent();
|
||||||
if (content.startsWith("_WR_")) {
|
if (content.startsWith(GridReport.WR_PREFIX)) {
|
||||||
configReportTemplate.setIsAuthority(1);
|
configReportTemplate.setIsAuthority(1);
|
||||||
}
|
}
|
||||||
|
configReportTemplate.setIsLast(QmsCommonConstant.YES);
|
||||||
|
|
||||||
configReportTemplateMapper.insert(configReportTemplate);
|
configReportTemplateMapper.insert(configReportTemplate);
|
||||||
// 返回
|
// 返回
|
||||||
@@ -55,7 +57,7 @@ public class ConfigReportTemplateServiceImpl implements ConfigReportTemplateServ
|
|||||||
// 更新
|
// 更新
|
||||||
ConfigReportTemplateDO updateObj = BeanUtils.toBean(updateReqVO, ConfigReportTemplateDO.class);
|
ConfigReportTemplateDO updateObj = BeanUtils.toBean(updateReqVO, ConfigReportTemplateDO.class);
|
||||||
String content = updateObj.getContent();
|
String content = updateObj.getContent();
|
||||||
if (content.startsWith("_WR_")) {
|
if (content.startsWith(GridReport.WR_PREFIX)) {
|
||||||
updateObj.setIsAuthority(1);
|
updateObj.setIsAuthority(1);
|
||||||
}
|
}
|
||||||
configReportTemplateMapper.updateById(updateObj);
|
configReportTemplateMapper.updateById(updateObj);
|
||||||
|
|||||||
Reference in New Issue
Block a user