更新数据库,支持批量验收

main
杨海航 2 years ago
parent 002e48e312
commit 2d22c458d7
  1. 8
      pom.xml
  2. 78
      src/main/java/digital/laboratory/platform/reagent/controller/AcceptanceRecordFormController.java
  3. 6
      src/main/java/digital/laboratory/platform/reagent/controller/ApplicationForUseController.java
  4. 3
      src/main/java/digital/laboratory/platform/reagent/entity/AcceptanceRecordForm.java
  5. 4
      src/main/java/digital/laboratory/platform/reagent/entity/ApplicationForUse.java
  6. 10
      src/main/java/digital/laboratory/platform/reagent/entity/WarehousingContent.java
  7. 2
      src/main/java/digital/laboratory/platform/reagent/mapper/AcceptanceRecordFormMapper.java
  8. 11
      src/main/java/digital/laboratory/platform/reagent/service/AcceptanceRecordFormService.java
  9. 161
      src/main/java/digital/laboratory/platform/reagent/service/impl/AcceptanceRecordFormServiceImpl.java
  10. 4
      src/main/java/digital/laboratory/platform/reagent/service/impl/ApplicationForUseServiceImpl.java
  11. 12
      src/main/java/digital/laboratory/platform/reagent/service/impl/CatalogueDetailsServiceImpl.java
  12. 1
      src/main/java/digital/laboratory/platform/reagent/service/impl/CentralizedRequestServiceImpl.java
  13. 15
      src/main/java/digital/laboratory/platform/reagent/service/impl/PurchaseListServiceImpl.java
  14. 118
      src/main/java/digital/laboratory/platform/reagent/service/impl/ReviewAndApproveServiceImpl.java
  15. 8
      src/main/java/digital/laboratory/platform/reagent/service/impl/StandardReserveSolutionServiceImpl.java
  16. 2
      src/main/java/digital/laboratory/platform/reagent/service/impl/StandardSolutionCurveServiceImpl.java
  17. 65
      src/main/java/digital/laboratory/platform/reagent/service/impl/WarehousingRecordFormServiceImpl.java
  18. 2
      src/main/java/digital/laboratory/platform/reagent/vo/WarehousingContentVO.java
  19. 18
      src/main/resources/bootstrap.yml
  20. 2
      src/main/resources/mapper/AcceptanceRecordFormMapper.xml
  21. 2
      src/main/resources/mapper/ApplicationForUseMapper.xml
  22. 3
      src/main/resources/mapper/WarehousingContentMapper.xml

@ -163,14 +163,6 @@
<artifactId>spring-test</artifactId> <artifactId>spring-test</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jms</artifactId>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-client</artifactId>
</dependency>
<dependency> <dependency>
<groupId>digital.laboratory.platform</groupId> <groupId>digital.laboratory.platform</groupId>

@ -11,6 +11,7 @@ import digital.laboratory.platform.common.core.util.R;
import digital.laboratory.platform.common.log.annotation.SysLog; import digital.laboratory.platform.common.log.annotation.SysLog;
import digital.laboratory.platform.common.mybatis.security.service.DLPUser; import digital.laboratory.platform.common.mybatis.security.service.DLPUser;
import digital.laboratory.platform.common.oss.service.OssFile; import digital.laboratory.platform.common.oss.service.OssFile;
import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormAuditDTO;
import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormDTO; import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormDTO;
import digital.laboratory.platform.reagent.dto.AuditAndApproveDTO; import digital.laboratory.platform.reagent.dto.AuditAndApproveDTO;
import digital.laboratory.platform.reagent.entity.*; import digital.laboratory.platform.reagent.entity.*;
@ -53,6 +54,8 @@ import java.util.List;
@Api(value = "acceptance_record_form", tags = "(验收记录表)管理") @Api(value = "acceptance_record_form", tags = "(验收记录表)管理")
public class AcceptanceRecordFormController { public class AcceptanceRecordFormController {
private final AcceptanceSignForService acceptanceSignForService;
private final AcceptanceRecordFormService acceptanceRecordFormService; private final AcceptanceRecordFormService acceptanceRecordFormService;
private final ReagentConsumablesService reagentConsumablesService; private final ReagentConsumablesService reagentConsumablesService;
@ -107,7 +110,7 @@ public class AcceptanceRecordFormController {
@ApiOperation(value = "分页查询验收任务", notes = "分页查询验收任务") @ApiOperation(value = "分页查询验收任务", notes = "分页查询验收任务")
@GetMapping("/page") @GetMapping("/page")
@PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_page')") @PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_page')")
public R<IPage<AcceptanceRecordFormVO>> getAcceptanceRecordFormPage(Page<AcceptanceRecordForm> page, Integer status, String reagentConsumableName, @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate startTime, @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate endTime, HttpServletRequest theHttpServletRequest) { public R<IPage<AcceptanceRecordFormVO>> getAcceptanceRecordFormPage(Page<AcceptanceRecordForm> page, Integer status, String reagentConsumableName, @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate startTime, @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate endTime, HttpServletRequest theHttpServletRequest, String acceptanceSignForId) {
Principal principal = theHttpServletRequest.getUserPrincipal(); Principal principal = theHttpServletRequest.getUserPrincipal();
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal();
@ -115,39 +118,14 @@ public class AcceptanceRecordFormController {
.like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName) .like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName)
.ge(startTime != null, "create_time", startTime) .ge(startTime != null, "create_time", startTime)
.le(endTime != null, "create_time", endTime) .le(endTime != null, "create_time", endTime)
.ne("status", 4)
.eq(status != null, "status", status) .eq(status != null, "status", status)
.orderByDesc("create_time") .orderByDesc("create_time")
); , acceptanceSignForId);
return R.ok(acceptanceRecordFormVOPage); return R.ok(acceptanceRecordFormVOPage);
// return R.ok(acceptanceRecordFormService.page(page, Wrappers.query(acceptanceRecordForm))); // return R.ok(acceptanceRecordFormService.page(page, Wrappers.query(acceptanceRecordForm)));
} }
/**
* 分页查询
*
* @param page 分页对象
* @param reagentConsumableName (验收记录表)
* @return
*/
@ApiOperation(value = "分页查询验收记录", notes = "分页查询验收记录")
@GetMapping("/recordPage")
@PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_recordPage')")
public R<IPage<AcceptanceRecordFormVO>> getAcceptanceRecordFormRecordPage(Page<AcceptanceRecordForm> page, String rid, String reagentConsumableName, @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate startTime, @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate endTime, HttpServletRequest theHttpServletRequest) {
Principal principal = theHttpServletRequest.getUserPrincipal();
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal();
IPage<AcceptanceRecordFormVO> acceptanceRecordFormVOPage = acceptanceRecordFormService.getAcceptanceRecordFormVOPage(page, Wrappers.<AcceptanceRecordForm>query()
.like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName)
.eq("status", 4)
.ge(startTime != null, "create_time", startTime)
.le(endTime != null, "create_time", endTime)
);
return R.ok(acceptanceRecordFormVOPage);
// return R.ok(acceptanceRecordFormService.page(page, Wrappers.query(acceptanceRecordForm)));
}
/** /**
@ -195,63 +173,60 @@ public class AcceptanceRecordFormController {
/** /**
* 一级审核(验收记录表) * 一级审核(验收记录表)
* *
* @param auditAndApproveDTO (验收记录表) * @param acceptanceRecordFormAuditDTO (验收记录表)
* @return R * @return R
*/ */
@ApiOperation(value = "一级审核(验收记录表)", notes = "一级审核(验收记录表)") @ApiOperation(value = "一级审核(验收记录表)", notes = "一级审核(验收记录表)")
@SysLog("一级审核(验收记录表)") @SysLog("一级审核(验收记录表)")
@PutMapping("/primary") @PutMapping("/primary")
@PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_primary')") @PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_primary')")
public R<AcceptanceRecordForm> primaryAudit(@RequestBody AuditAndApproveDTO auditAndApproveDTO, HttpServletRequest theHttpServletRequest) { public R<String> primaryAudit(@RequestBody AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, HttpServletRequest theHttpServletRequest) {
Principal principal = theHttpServletRequest.getUserPrincipal(); Principal principal = theHttpServletRequest.getUserPrincipal();
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal();
AcceptanceRecordForm acceptanceRecordForm = acceptanceRecordFormService.primaryAudit(auditAndApproveDTO, dlpUser);
if (acceptanceRecordForm != null) { if (acceptanceRecordFormService.primaryAudit(acceptanceRecordFormAuditDTO, dlpUser)) {
return R.ok(acceptanceRecordForm, "审核成功"); return R.ok("审核成功");
} else return R.failed("审核失败"); } else return R.failed("审核失败");
} }
/** /**
* 二级审核(验收记录表) * 二级审核(验收记录表)
* *
* @param auditAndApproveDTO (验收记录表) * @param acceptanceRecordFormAuditDTO (验收记录表)
* @return R * @return R
*/ */
@ApiOperation(value = "二级审核(验收记录表)", notes = "二级审核(验收记录表)") @ApiOperation(value = "二级审核(验收记录表)", notes = "二级审核(验收记录表)")
@SysLog("二级审核(验收记录表)") @SysLog("二级审核(验收记录表)")
@PutMapping("/secondary") @PutMapping("/secondary")
@PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_secondary')") @PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_secondary')")
public R<AcceptanceRecordForm> secondaryAudit(@RequestBody AuditAndApproveDTO auditAndApproveDTO, HttpServletRequest theHttpServletRequest) { public R<String> secondaryAudit(@RequestBody AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, HttpServletRequest theHttpServletRequest) {
Principal principal = theHttpServletRequest.getUserPrincipal(); Principal principal = theHttpServletRequest.getUserPrincipal();
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal();
AcceptanceRecordForm acceptanceRecordForm = acceptanceRecordFormService.secondaryAudit(auditAndApproveDTO, dlpUser);
if (acceptanceRecordForm != null) { if (acceptanceRecordFormService.secondaryAudit(acceptanceRecordFormAuditDTO, dlpUser)) {
return R.ok(acceptanceRecordForm, "审核成功"); return R.ok("审核成功");
} else return R.failed("审核失败"); } else return R.failed("审核失败");
} }
/** /**
* 三级审核(验收记录表) * 三级审核(验收记录表)
* *
* @param auditAndApproveDTO (验收记录表) * @param acceptanceRecordFormAuditDTO (验收记录表)
* @return R * @return R
*/ */
@ApiOperation(value = "三级审核(验收记录表)", notes = "三级审核(验收记录表)") @ApiOperation(value = "三级审核(验收记录表)", notes = "三级审核(验收记录表)")
@SysLog("三级审核(验收记录表)") @SysLog("三级审核(验收记录表)")
@PutMapping("/three_level") @PutMapping("/three_level")
@PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_threeLevel')") @PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_threeLevel')")
public R<AcceptanceRecordForm> threeLevelAudit(@RequestBody AuditAndApproveDTO auditAndApproveDTO, HttpServletRequest theHttpServletRequest) { public R<String> threeLevelAudit(@RequestBody AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, HttpServletRequest theHttpServletRequest) {
Principal principal = theHttpServletRequest.getUserPrincipal(); Principal principal = theHttpServletRequest.getUserPrincipal();
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal();
AcceptanceRecordForm acceptanceRecordForm = acceptanceRecordFormService.threeLevelAudit(auditAndApproveDTO, dlpUser);
if (acceptanceRecordForm != null) { if (acceptanceRecordFormService.threeLevelAudit(acceptanceRecordFormAuditDTO, dlpUser)) {
return R.ok(acceptanceRecordForm, "审核成功"); return R.ok("审核成功");
} else return R.failed("审核失败"); } else return R.failed("审核失败");
} }
@ -298,4 +273,23 @@ public class AcceptanceRecordFormController {
} }
} }
/**
* 分页查询
*
* @param page 分页对象
* @return
*/
@ApiOperation(value = "分页查询验收集合主表", notes = "分页查询验收集合主表")
@GetMapping("/acceptanceSignFor/Page")
@PreAuthorize("@pms.hasPermission('reagent_acceptance_record_form_recordPage')")
public R<IPage<AcceptanceSignFor>> getacceptanceSignForPage(Page<AcceptanceSignFor> page, @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate startTime, @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate endTime, String acceptanceSignForId, HttpServletRequest theHttpServletRequest) {
Principal principal = theHttpServletRequest.getUserPrincipal();
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal();
IPage<AcceptanceSignFor> page1 = acceptanceSignForService.page(page);
return R.ok(page1);
// return R.ok(acceptanceRecordFormService.page(page, Wrappers.query(acceptanceRecordForm)));
}
} }

@ -241,9 +241,9 @@ public class ApplicationForUseController {
* @param id (批量提交试剂耗材领用申请表) * @param id (批量提交试剂耗材领用申请表)
* @return R * @return R
*/ */
@ApiOperation(value = "通过实验模板ID查询领用情况", notes = "通过实验模板ID查询领用情况") @ApiOperation(value = "通过实验ID查询领用情况", notes = "通过实验ID查询领用情况")
@SysLog("通过实验模板ID查询领用情况") @SysLog("通过实验ID查询领用情况")
@GetMapping("/get/template") @GetMapping("/get/experiment")
@PreAuthorize("@pms.hasPermission('reagent_application_for_use_get')") @PreAuthorize("@pms.hasPermission('reagent_application_for_use_get')")
public R<List<ReagentConsumablesSetVO>> getReagentConsumablesSets(String id, HttpServletRequest theHttpServletRequest) { public R<List<ReagentConsumablesSetVO>> getReagentConsumablesSets(String id, HttpServletRequest theHttpServletRequest) {

@ -218,5 +218,8 @@ public class AcceptanceRecordForm extends BaseEntity {
@ApiModelProperty(value = "(验收人名称)") @ApiModelProperty(value = "(验收人名称)")
private String userName; private String userName;
@ApiModelProperty(value = "(验收中间表ID)")
private String acceptanceSignForId;
} }

@ -74,8 +74,8 @@ public class ApplicationForUse extends BaseEntity {
/** /**
* 实验模板ID * 实验模板ID
*/ */
@ApiModelProperty(value="实验模板ID") @ApiModelProperty(value="实验ID")
private String templateId; private String experimentId;
} }

@ -83,5 +83,15 @@ public class WarehousingContent extends BaseEntity {
@ApiModelProperty(value = "预警值") @ApiModelProperty(value = "预警值")
private Integer warningValue; private Integer warningValue;
@ApiModelProperty(value = "上次存放位置")
private String lastStorageLocation;
@ApiModelProperty(value="格子ID")
private String latticeId;
@ApiModelProperty(value="柜子ID")
private String boxId;
} }

@ -18,7 +18,7 @@ import org.apache.ibatis.annotations.Param;
@Mapper @Mapper
public interface AcceptanceRecordFormMapper extends BaseMapper<AcceptanceRecordForm> { public interface AcceptanceRecordFormMapper extends BaseMapper<AcceptanceRecordForm> {
IPage<AcceptanceRecordFormVO> getAcceptanceRecordFormVOPage(IPage<AcceptanceRecordForm> page, @Param(Constants.WRAPPER)QueryWrapper<AcceptanceRecordForm> qw); IPage<AcceptanceRecordFormVO> getAcceptanceRecordFormVOPage(IPage<AcceptanceRecordForm> page, @Param(Constants.WRAPPER)QueryWrapper<AcceptanceRecordForm> qw,String acceptanceSignForId);
AcceptanceRecordFormVO getAcceptanceRecordFormVO(String acceptanceRecordFormId); AcceptanceRecordFormVO getAcceptanceRecordFormVO(String acceptanceRecordFormId);
} }

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import digital.laboratory.platform.common.mybatis.security.service.DLPUser; import digital.laboratory.platform.common.mybatis.security.service.DLPUser;
import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormAuditDTO;
import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormDTO; import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormDTO;
import digital.laboratory.platform.reagent.dto.AuditAndApproveDTO; import digital.laboratory.platform.reagent.dto.AuditAndApproveDTO;
import digital.laboratory.platform.reagent.entity.AcceptanceRecordForm; import digital.laboratory.platform.reagent.entity.AcceptanceRecordForm;
@ -27,19 +28,19 @@ public interface AcceptanceRecordFormService extends IService<AcceptanceRecordFo
AcceptanceRecordForm commitForm(AcceptanceRecordFormDTO acceptanceRecordFormDTO, DLPUser dlpUser); AcceptanceRecordForm commitForm(AcceptanceRecordFormDTO acceptanceRecordFormDTO, DLPUser dlpUser);
AcceptanceRecordForm addForm(String reagentConsumableId, String supplierId); AcceptanceRecordForm addForm(String reagentConsumableId, String supplierId,String acceptanceSignForId);
IPage<AcceptanceRecordFormVO> getAcceptanceRecordFormVOPage(IPage<AcceptanceRecordForm> page, QueryWrapper<AcceptanceRecordForm>qw); IPage<AcceptanceRecordFormVO> getAcceptanceRecordFormVOPage(IPage<AcceptanceRecordForm> page, QueryWrapper<AcceptanceRecordForm>qw,String acceptanceSignForId);
IPage<AcceptanceRecordFormVO> getAcceptanceRecordFormVORecordPage(IPage<AcceptanceRecordForm> page); IPage<AcceptanceRecordFormVO> getAcceptanceRecordFormVORecordPage(IPage<AcceptanceRecordForm> page);
AcceptanceRecordFormVO getAcceptanceRecordFormVO(String acceptanceRecordFormId); AcceptanceRecordFormVO getAcceptanceRecordFormVO(String acceptanceRecordFormId);
AcceptanceRecordForm primaryAudit(AuditAndApproveDTO auditAndApproveDTO, DLPUser dlpUser); boolean primaryAudit(AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, DLPUser dlpUser);
AcceptanceRecordForm secondaryAudit(AuditAndApproveDTO auditAndApproveDTO, DLPUser dlpUser); boolean secondaryAudit(AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, DLPUser dlpUser);
AcceptanceRecordForm threeLevelAudit(AuditAndApproveDTO auditAndApproveDTO, DLPUser dlpUser); boolean threeLevelAudit(AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, DLPUser dlpUser);
void acceptanceRecordFormTablePDF(AcceptanceRecordFormVO acceptanceRecordFormVO, HttpServletRequest theHttpServletRequest, HttpServletResponse httpServletResponse) throws Exception; void acceptanceRecordFormTablePDF(AcceptanceRecordFormVO acceptanceRecordFormVO, HttpServletRequest theHttpServletRequest, HttpServletResponse httpServletResponse) throws Exception;
} }

@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.IdWorker; import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deepoove.poi.XWPFTemplate; import com.deepoove.poi.XWPFTemplate;
@ -15,16 +16,18 @@ import com.deepoove.poi.plugin.table.LoopRowTableRenderPolicy;
import digital.laboratory.platform.common.feign.RemoteWord2PDFService; import digital.laboratory.platform.common.feign.RemoteWord2PDFService;
import digital.laboratory.platform.common.mybatis.security.service.DLPUser; import digital.laboratory.platform.common.mybatis.security.service.DLPUser;
import digital.laboratory.platform.common.oss.service.OssFile; import digital.laboratory.platform.common.oss.service.OssFile;
import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormAuditDTO;
import digital.laboratory.platform.reagent.entity.WarehousingRecordForm;
import digital.laboratory.platform.reagent.service.*;
import digital.laboratory.platform.reagent.utils.PageUtils; import digital.laboratory.platform.reagent.utils.PageUtils;
import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormDTO; import digital.laboratory.platform.reagent.dto.AcceptanceRecordFormDTO;
import digital.laboratory.platform.reagent.dto.AuditAndApproveDTO; import digital.laboratory.platform.reagent.dto.AuditAndApproveDTO;
import digital.laboratory.platform.reagent.entity.AcceptanceRecordForm; import digital.laboratory.platform.reagent.entity.AcceptanceRecordForm;
import digital.laboratory.platform.reagent.entity.ReagentConsumables; import digital.laboratory.platform.reagent.entity.ReagentConsumables;
import digital.laboratory.platform.reagent.mapper.AcceptanceRecordFormMapper; import digital.laboratory.platform.reagent.mapper.AcceptanceRecordFormMapper;
import digital.laboratory.platform.reagent.service.AcceptanceRecordFormService; import digital.laboratory.platform.reagent.vo.AcceptanceRecordFormFullVO;
import digital.laboratory.platform.reagent.service.BlacklistService;
import digital.laboratory.platform.reagent.service.ReagentConsumablesService;
import digital.laboratory.platform.reagent.vo.AcceptanceRecordFormVO; import digital.laboratory.platform.reagent.vo.AcceptanceRecordFormVO;
import digital.laboratory.platform.reagent.vo.WarehousingContentVO;
import feign.Response; import feign.Response;
import org.apache.commons.io.output.ByteArrayOutputStream; import org.apache.commons.io.output.ByteArrayOutputStream;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
@ -57,15 +60,21 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
@Autowired @Autowired
private ReagentConsumablesService reagentConsumablesService; private ReagentConsumablesService reagentConsumablesService;
@Autowired
private WarehousingContentService warehousingContentService;
@Autowired @Autowired
private OssFile ossFile; private OssFile ossFile;
@Autowired @Autowired
private RemoteWord2PDFService remoteWord2PDFService; private RemoteWord2PDFService remoteWord2PDFService;
@Autowired
private WarehousingRecordFormService warehousingRecordFormService;
@Transactional @Transactional
@Override @Override
public void culkCommit(List<AcceptanceRecordFormDTO> acceptanceRecordFormDTOList,DLPUser dlpUser){ public void culkCommit(List<AcceptanceRecordFormDTO> acceptanceRecordFormDTOList, DLPUser dlpUser) {
for (AcceptanceRecordFormDTO acceptanceRecordFormDTO : acceptanceRecordFormDTOList) { for (AcceptanceRecordFormDTO acceptanceRecordFormDTO : acceptanceRecordFormDTOList) {
@ -80,7 +89,7 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
//将审核审批信息清空 //将审核审批信息清空
if (byId.getStatus() == -2) { if (byId.getStatus() == -2) {
BeanUtils.copyProperties(acceptanceRecordFormDTO,byId); BeanUtils.copyProperties(acceptanceRecordFormDTO, byId);
byId.setUserName(dlpUser.getName()); byId.setUserName(dlpUser.getName());
byId.setAuditResultOfPrimary(false); byId.setAuditResultOfPrimary(false);
byId.setAuditOpinionOfPrimary(""); byId.setAuditOpinionOfPrimary("");
@ -95,9 +104,10 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
} else { } else {
throw new RuntimeException(String.format("重新提交失败")); throw new RuntimeException(String.format("重新提交失败"));
} }
} if (byId.getStatus() == -3) { }
if (byId.getStatus() == -3) {
BeanUtils.copyProperties(acceptanceRecordFormDTO,byId); BeanUtils.copyProperties(acceptanceRecordFormDTO, byId);
byId.setUserName(dlpUser.getName()); byId.setUserName(dlpUser.getName());
byId.setAuditResultOfSecondary(false); byId.setAuditResultOfSecondary(false);
byId.setAuditOpinionOfSecondary(""); byId.setAuditOpinionOfSecondary("");
@ -116,9 +126,10 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
} else { } else {
throw new RuntimeException(String.format("重新提交失败")); throw new RuntimeException(String.format("重新提交失败"));
} }
} if (byId.getStatus() == -4) { }
if (byId.getStatus() == -4) {
BeanUtils.copyProperties(acceptanceRecordFormDTO,byId); BeanUtils.copyProperties(acceptanceRecordFormDTO, byId);
byId.setUserName(dlpUser.getName()); byId.setUserName(dlpUser.getName());
byId.setAuditResultOfThreeLevel(false); byId.setAuditResultOfThreeLevel(false);
byId.setAuditOpinionOfThreeLevel(""); byId.setAuditOpinionOfThreeLevel("");
@ -156,7 +167,7 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
} }
@Override @Override
public AcceptanceRecordForm addForm(String reagentConsumableId, String supplierId) { public AcceptanceRecordForm addForm(String reagentConsumableId, String supplierId, String acceptanceSignForId) {
AcceptanceRecordForm acceptanceRecordForm = new AcceptanceRecordForm(); AcceptanceRecordForm acceptanceRecordForm = new AcceptanceRecordForm();
@ -164,6 +175,8 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
acceptanceRecordForm.setSupplierId(supplierId); acceptanceRecordForm.setSupplierId(supplierId);
acceptanceRecordForm.setAcceptanceSignForId(acceptanceSignForId);
acceptanceRecordForm.setReagentConsumableId(reagentConsumableId); acceptanceRecordForm.setReagentConsumableId(reagentConsumableId);
ReagentConsumables byId = reagentConsumablesService.getById(reagentConsumableId); ReagentConsumables byId = reagentConsumablesService.getById(reagentConsumableId);
@ -180,9 +193,9 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
} }
@Override @Override
public IPage<AcceptanceRecordFormVO> getAcceptanceRecordFormVOPage(IPage<AcceptanceRecordForm> page, QueryWrapper<AcceptanceRecordForm>qw) { public IPage<AcceptanceRecordFormVO> getAcceptanceRecordFormVOPage(IPage<AcceptanceRecordForm> page, QueryWrapper<AcceptanceRecordForm> qw,String acceptanceSignForId) {
IPage<AcceptanceRecordFormVO> acceptanceRecordFormVOPage = baseMapper.getAcceptanceRecordFormVOPage(page,qw); IPage<AcceptanceRecordFormVO> acceptanceRecordFormVOPage = baseMapper.getAcceptanceRecordFormVOPage(page, qw,acceptanceSignForId);
List<AcceptanceRecordFormVO> records = acceptanceRecordFormVOPage.getRecords(); List<AcceptanceRecordFormVO> records = acceptanceRecordFormVOPage.getRecords();
@ -236,64 +249,90 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
} }
@Override//一级审核 @Override//一级审核
public AcceptanceRecordForm primaryAudit(AuditAndApproveDTO auditAndApproveDTO, DLPUser dlpUser) { @Transactional
public boolean primaryAudit(AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, DLPUser dlpUser) {
List<String> uuId = acceptanceRecordFormAuditDTO.getUuId();
List<AcceptanceRecordForm> acceptanceRecordForms = new ArrayList<>();
for (String s : uuId) {
AcceptanceRecordForm byId = this.getById(auditAndApproveDTO.getUuId()); AcceptanceRecordForm byId = this.getById(s);
if (byId.getStatus() != 1) { if (byId.getStatus() != 1) {
throw new RuntimeException(String.format("当前状态不能审核")); throw new RuntimeException(String.format("当前状态不能审核"));
} }
byId.setPrimaryAuditorId(dlpUser.getId()); byId.setPrimaryAuditorId(dlpUser.getId());
byId.setAuditOpinionOfPrimary(auditAndApproveDTO.getAuditOpinion()); byId.setAuditOpinionOfPrimary(acceptanceRecordFormAuditDTO.getAuditOpinion());
byId.setAuditTimeOfPrimary(LocalDateTime.now()); byId.setAuditTimeOfPrimary(LocalDateTime.now());
byId.setAuditResultOfPrimary(auditAndApproveDTO.getAuditResult()); byId.setAuditResultOfPrimary(acceptanceRecordFormAuditDTO.getAuditResult());
if (auditAndApproveDTO.getAuditResult() == true) { if (acceptanceRecordFormAuditDTO.getAuditResult() == true) {
byId.setStatus(2); byId.setStatus(2);
} else byId.setStatus(-2); } else byId.setStatus(-2);
acceptanceRecordForms.add(byId);
if (this.updateById(byId)) { }
return byId;
if (this.updateBatchById(acceptanceRecordForms)) {
return true;
} else throw new RuntimeException(String.format("审核失败")); } else throw new RuntimeException(String.format("审核失败"));
} }
@Override//二级审核 @Override//二级审核
public AcceptanceRecordForm secondaryAudit(AuditAndApproveDTO auditAndApproveDTO, DLPUser dlpUser) { @Transactional
public boolean secondaryAudit(AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, DLPUser dlpUser) {
List<String> uuId = acceptanceRecordFormAuditDTO.getUuId();
List<AcceptanceRecordForm> acceptanceRecordForms = new ArrayList<>();
for (String s : uuId) {
AcceptanceRecordForm byId = this.getById(auditAndApproveDTO.getUuId()); AcceptanceRecordForm byId = this.getById(s);
if (byId.getStatus() != 2) { if (byId.getStatus() != 2) {
throw new RuntimeException(String.format("当前状态不能审核")); throw new RuntimeException(String.format("当前状态不能审核"));
} }
byId.setSecondaryAuditorId(dlpUser.getId()); byId.setSecondaryAuditorId(dlpUser.getId());
byId.setAuditOpinionOfSecondary(auditAndApproveDTO.getAuditOpinion()); byId.setAuditOpinionOfSecondary(acceptanceRecordFormAuditDTO.getAuditOpinion());
byId.setAuditTimeOfSecondary(LocalDateTime.now()); byId.setAuditTimeOfSecondary(LocalDateTime.now());
byId.setAuditResultOfSecondary(auditAndApproveDTO.getAuditResult()); byId.setAuditResultOfSecondary(acceptanceRecordFormAuditDTO.getAuditResult());
if (auditAndApproveDTO.getAuditResult() == true) { if (acceptanceRecordFormAuditDTO.getAuditResult() == true) {
byId.setStatus(3); byId.setStatus(3);
} else byId.setStatus(-3); } else byId.setStatus(-3);
acceptanceRecordForms.add(byId);
if (this.updateById(byId)) { }
return byId; if (this.updateBatchById(acceptanceRecordForms)) {
return true;
} else throw new RuntimeException(String.format("审核失败")); } else throw new RuntimeException(String.format("审核失败"));
} }
@Override//三级审核 @Override//三级审核
public AcceptanceRecordForm threeLevelAudit(AuditAndApproveDTO auditAndApproveDTO, DLPUser dlpUser) { @Transactional
public boolean threeLevelAudit(AcceptanceRecordFormAuditDTO acceptanceRecordFormAuditDTO, DLPUser dlpUser) {
List<String> uuId = acceptanceRecordFormAuditDTO.getUuId();
List<AcceptanceRecordForm> acceptanceRecordForms = new ArrayList<>();
AcceptanceRecordForm byId = this.getById(auditAndApproveDTO.getUuId()); for (String s : uuId) {
AcceptanceRecordForm byId = this.getById(s);
if (byId.getStatus() != 3) { if (byId.getStatus() != 3) {
throw new RuntimeException(String.format("当前状态不能审核")); throw new RuntimeException(String.format("当前状态不能审核"));
} }
byId.setThreeLevelAuditorId(dlpUser.getId()); byId.setThreeLevelAuditorId(dlpUser.getId());
byId.setAuditOpinionOfThreeLevel(auditAndApproveDTO.getAuditOpinion()); byId.setAuditOpinionOfThreeLevel(acceptanceRecordFormAuditDTO.getAuditOpinion());
byId.setAuditTimeOfThreeLevel(LocalDateTime.now()); byId.setAuditTimeOfThreeLevel(LocalDateTime.now());
byId.setAuditResultOfThreeLevel(auditAndApproveDTO.getAuditResult()); byId.setAuditResultOfThreeLevel(acceptanceRecordFormAuditDTO.getAuditResult());
if (auditAndApproveDTO.getAuditResult() == true) { if (acceptanceRecordFormAuditDTO.getAuditResult() == true) {
if (byId.getNonconformingItem() != null) { if (byId.getNonconformingItem() != null) {
@ -301,9 +340,10 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
} }
byId.setStatus(6); byId.setStatus(6);
} else byId.setStatus(-4); } else byId.setStatus(-4);
acceptanceRecordForms.add(byId);
if (this.updateById(byId)) { }
return byId; if (this.updateBatchById(acceptanceRecordForms)) {
return true;
} else throw new RuntimeException(String.format("审核失败")); } else throw new RuntimeException(String.format("审核失败"));
} }
@ -376,31 +416,31 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
new HashMap<String, Object>() {{ new HashMap<String, Object>() {{
put("theSameBrandAndModelPrint", acceptanceRecordFormVO.getTheSameBrandAndModelPrint()); put("theSameBrandAndModelPrint", acceptanceRecordFormVO.getTheSameBrandAndModelPrint());
put("reagentConsumableName", acceptanceRecordFormVO.getReagentConsumableName()); put("reagentConsumableName", acceptanceRecordFormVO.getReagentConsumableName());
put("dateOfAcceptance", LocalDateTimeUtil.format(acceptanceRecordFormVO.getDateOfAcceptance(),"yyyy年MM月dd日")); put("dateOfAcceptance", LocalDateTimeUtil.format(acceptanceRecordFormVO.getDateOfAcceptance(), "yyyy年MM月dd日"));
put("supplierName",acceptanceRecordFormVO.getSupplierName()); put("supplierName", acceptanceRecordFormVO.getSupplierName());
put("consistentQuantityPrint",acceptanceRecordFormVO.getConsistentQuantityPrint()); put("consistentQuantityPrint", acceptanceRecordFormVO.getConsistentQuantityPrint());
put("packingInGoodConditionPrint",acceptanceRecordFormVO.getPackingInGoodConditionPrint()); put("packingInGoodConditionPrint", acceptanceRecordFormVO.getPackingInGoodConditionPrint());
put("validityPeriodPrint",acceptanceRecordFormVO.getValidityPeriodPrint()); put("validityPeriodPrint", acceptanceRecordFormVO.getValidityPeriodPrint());
put("deliveryCyclePrint",acceptanceRecordFormVO.getDeliveryCyclePrint()); put("deliveryCyclePrint", acceptanceRecordFormVO.getDeliveryCyclePrint());
put("nonconformingItem",acceptanceRecordFormVO.getNonconformingItem()); put("nonconformingItem", acceptanceRecordFormVO.getNonconformingItem());
put("followUpTreatment",acceptanceRecordFormVO.getFollowUpTreatment()); put("followUpTreatment", acceptanceRecordFormVO.getFollowUpTreatment());
put("acceptanceConclusion",acceptanceRecordFormVO.getAcceptanceConclusion()); put("acceptanceConclusion", acceptanceRecordFormVO.getAcceptanceConclusion());
put("secondaryAuditorName",acceptanceRecordFormVO.getSecondaryAuditorName()); put("secondaryAuditorName", acceptanceRecordFormVO.getSecondaryAuditorName());
put("auditOpinionOfSecondary",acceptanceRecordFormVO.getAuditOpinionOfSecondary()); put("auditOpinionOfSecondary", acceptanceRecordFormVO.getAuditOpinionOfSecondary());
put("auditTimeOfSecondary",LocalDateTimeUtil.format(acceptanceRecordFormVO.getAuditTimeOfSecondary(),"yyyy年MM月dd日")); put("auditTimeOfSecondary", LocalDateTimeUtil.format(acceptanceRecordFormVO.getAuditTimeOfSecondary(), "yyyy年MM月dd日"));
put("threeLevelAuditorName",acceptanceRecordFormVO.getThreeLevelAuditorName()); put("threeLevelAuditorName", acceptanceRecordFormVO.getThreeLevelAuditorName());
put("auditOpinionOfThreeLevel",acceptanceRecordFormVO.getAuditOpinionOfThreeLevel()); put("auditOpinionOfThreeLevel", acceptanceRecordFormVO.getAuditOpinionOfThreeLevel());
put("auditTimeOfThreeLevel",LocalDateTimeUtil.format(acceptanceRecordFormVO.getAuditTimeOfThreeLevel(),"yyyy年MM月dd日")); put("auditTimeOfThreeLevel", LocalDateTimeUtil.format(acceptanceRecordFormVO.getAuditTimeOfThreeLevel(), "yyyy年MM月dd日"));
put("id",acceptanceRecordFormVO.getId()); put("id", acceptanceRecordFormVO.getId());
put("size",1); put("size", 1);
put("bam_remarks",acceptanceRecordFormVO.getBam_remarks()); put("bam_remarks", acceptanceRecordFormVO.getBam_remarks());
put("cq_remarks",acceptanceRecordFormVO.getCq_remarks()); put("cq_remarks", acceptanceRecordFormVO.getCq_remarks());
put("pgc_remarks",acceptanceRecordFormVO.getPgc_remarks()); put("pgc_remarks", acceptanceRecordFormVO.getPgc_remarks());
put("vp_remarks",acceptanceRecordFormVO.getVp_remarks()); put("vp_remarks", acceptanceRecordFormVO.getVp_remarks());
put("dc_remarks",acceptanceRecordFormVO.getDc_remarks()); put("dc_remarks", acceptanceRecordFormVO.getDc_remarks());
put("primaryAuditorName",acceptanceRecordFormVO.getPrimaryAuditorName()); put("primaryAuditorName", acceptanceRecordFormVO.getPrimaryAuditorName());
put("auditOpinionOfPrimary",acceptanceRecordFormVO.getAuditOpinionOfPrimary()); put("auditOpinionOfPrimary", acceptanceRecordFormVO.getAuditOpinionOfPrimary());
put("auditTimeOfPrimary",LocalDateTimeUtil.format(acceptanceRecordFormVO.getAuditTimeOfPrimary(),"yyyy年MM月dd日")); put("auditTimeOfPrimary", LocalDateTimeUtil.format(acceptanceRecordFormVO.getAuditTimeOfPrimary(), "yyyy年MM月dd日"));
}} }}
); );
bis.close(); bis.close();
@ -434,5 +474,4 @@ public class AcceptanceRecordFormServiceImpl extends ServiceImpl<AcceptanceRecor
} }
} }

@ -251,7 +251,7 @@ public class ApplicationForUseServiceImpl extends ServiceImpl<ApplicationForUseM
applicationForUse.setRecipientId(dlpUser.getId()); applicationForUse.setRecipientId(dlpUser.getId());
applicationForUse.setTemplateId(applicationForUseBatchDTO.getTemplateId()); applicationForUse.setExperimentId(applicationForUseBatchDTO.getTemplateId());
List<ReagentConsumablesSet> reagentConsumablesSets = new ArrayList<>(); List<ReagentConsumablesSet> reagentConsumablesSets = new ArrayList<>();
@ -299,7 +299,7 @@ public class ApplicationForUseServiceImpl extends ServiceImpl<ApplicationForUseM
@Override @Override
public List<ReagentConsumablesSetVO> getReagentConsumablesSets(String id) { public List<ReagentConsumablesSetVO> getReagentConsumablesSets(String id) {
List<ApplicationForUse> applicationForUseList = this.list(Wrappers.<ApplicationForUse>query().eq("template_id", id)); List<ApplicationForUse> applicationForUseList = this.list(Wrappers.<ApplicationForUse>query().eq("experiment_id", id));
List<ReagentConsumablesSetVO> reagentConsumablesSetList = new ArrayList<>(); List<ReagentConsumablesSetVO> reagentConsumablesSetList = new ArrayList<>();

@ -10,6 +10,8 @@ import digital.laboratory.platform.reagent.vo.CatalogueDetailsVO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.Comparator;
import java.util.List; import java.util.List;
/** /**
@ -27,8 +29,16 @@ public class CatalogueDetailsServiceImpl extends ServiceImpl<CatalogueDetailsMap
LambdaQueryWrapper<CatalogueDetails> catalogueDetailsLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CatalogueDetails> catalogueDetailsLambdaQueryWrapper = new LambdaQueryWrapper<>();
List<CatalogueDetails> list = this.list(Wrappers.<CatalogueDetails>query().eq("purchase_catalogue_id",purchaseCatalogueId).orderByDesc("create_time")); List<CatalogueDetails> list = this.list(Wrappers.<CatalogueDetails>query().eq("purchase_catalogue_id",purchaseCatalogueId).orderByDesc("purchase_catalogue_number"));
Collections.sort(list, new Comparator<CatalogueDetails>() {
@Override
public int compare(CatalogueDetails o1, CatalogueDetails o2) {
return Integer.valueOf(o1.getPurchaseCatalogueNumber().substring(5)) - Integer.valueOf(o2.getPurchaseCatalogueNumber().substring(5));
}
});
return list; return list;
} }

@ -309,7 +309,6 @@ public class CentralizedRequestServiceImpl extends ServiceImpl<CentralizedReques
purchaseRequestPrintVOList.add(purchaseRequestPrintVO); purchaseRequestPrintVOList.add(purchaseRequestPrintVO);
} }
} }
} else { } else {

@ -33,6 +33,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.time.LocalDate; import java.time.LocalDate;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -87,6 +88,9 @@ public class PurchaseListServiceImpl extends ServiceImpl<PurchaseListMapper, Pur
@Autowired @Autowired
private ReagentConsumableInventoryService reagentConsumableInventoryService; private ReagentConsumableInventoryService reagentConsumableInventoryService;
@Autowired
private BatchDetailsService batchDetailsService;
@Override//通过ID查找清单 @Override//通过ID查找清单
public PurchaseListVO getPurchaseList(String purchaseListId) { public PurchaseListVO getPurchaseList(String purchaseListId) {
@ -180,7 +184,18 @@ public class PurchaseListServiceImpl extends ServiceImpl<PurchaseListMapper, Pur
ReagentConsumableInventory one = reagentConsumableInventoryService.getOne(Wrappers.<ReagentConsumableInventory>query() ReagentConsumableInventory one = reagentConsumableInventoryService.getOne(Wrappers.<ReagentConsumableInventory>query()
.eq("reagent_consumable_id", byId.getReagentConsumableId())); .eq("reagent_consumable_id", byId.getReagentConsumableId()));
List<BatchDetails> batchDetailsList = batchDetailsService.list(Wrappers.<BatchDetails>query().eq("reagent_consumable_inventory_id", one.getReagentConsumableInventoryId())
.orderByDesc("create_time"));
WarehousingContent warehousingContent = new WarehousingContent(); WarehousingContent warehousingContent = new WarehousingContent();
if (batchDetailsList.size() != 0 && batchDetailsList != null) {
warehousingContent.setLastStorageLocation(batchDetailsList.get(0).getLocation());
warehousingContent.setBoxId(batchDetailsList.get(0).getBoxId());
warehousingContent.setLatticeId(batchDetailsList.get(0).getLatticeId());
}
//完善入库内容信息 //完善入库内容信息
warehousingContent.setId(IdWorker.get32UUID().toUpperCase()); warehousingContent.setId(IdWorker.get32UUID().toUpperCase());

@ -81,11 +81,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
//集中采购申请待审核列表 //集中采购申请待审核列表
List<CentralizedRequestVO> centralizedRequestVOList = new ArrayList<>(); List<CentralizedRequestVO> centralizedRequestVOList = new ArrayList<>();
if (permissions.contains("reagent_centralized_request_audit")){ if (permissions.contains("reagent_centralized_request_audit")) {
LambdaQueryWrapper<CentralizedRequest> centralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CentralizedRequest> centralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>();
centralizedRequestLambdaQueryWrapper.eq(CentralizedRequest::getStatus,1); centralizedRequestLambdaQueryWrapper.eq(CentralizedRequest::getStatus, 1);
List<CentralizedRequest> list = centralizedRequestService.list(centralizedRequestLambdaQueryWrapper); List<CentralizedRequest> list = centralizedRequestService.list(centralizedRequestLambdaQueryWrapper);
@ -258,11 +258,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//采购验收一级审核 //采购验收一级审核
if (permissions.contains("reagent_acceptance_record_form_primary")){ if (permissions.contains("reagent_acceptance_record_form_primary")) {
LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getStatus,1); acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getStatus, 1);
List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper); List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper);
@ -279,11 +279,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//采购验收二级审核 //采购验收二级审核
if (permissions.contains("reagent_acceptance_record_form_secondary")){ if (permissions.contains("reagent_acceptance_record_form_secondary")) {
LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getStatus,2); acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getStatus, 2);
List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper); List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper);
@ -300,11 +300,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//采购验收三级审核 //采购验收三级审核
if (permissions.contains("reagent_acceptance_record_form_threeLevel")){ if (permissions.contains("reagent_acceptance_record_form_threeLevel")) {
LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getStatus,3); acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getStatus, 3);
List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper); List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper);
@ -320,11 +320,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//符合性检查一级审核 //符合性检查一级审核
if (permissions.contains("reagent_compliance_check_primaryAudit")){ if (permissions.contains("reagent_compliance_check_primaryAudit")) {
LambdaQueryWrapper<ComplianceCheck> complianceCheckLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ComplianceCheck> complianceCheckLambdaQueryWrapper = new LambdaQueryWrapper<>();
complianceCheckLambdaQueryWrapper.eq(ComplianceCheck::getStatus,1); complianceCheckLambdaQueryWrapper.eq(ComplianceCheck::getStatus, 1);
List<ComplianceCheck> list = complianceCheckService.list(complianceCheckLambdaQueryWrapper); List<ComplianceCheck> list = complianceCheckService.list(complianceCheckLambdaQueryWrapper);
@ -340,11 +340,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//符合性检查二级审核 //符合性检查二级审核
if (permissions.contains("reagent_compliance_check_secondaryAudit")){ if (permissions.contains("reagent_compliance_check_secondaryAudit")) {
LambdaQueryWrapper<ComplianceCheck> complianceCheckLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ComplianceCheck> complianceCheckLambdaQueryWrapper = new LambdaQueryWrapper<>();
complianceCheckLambdaQueryWrapper.eq(ComplianceCheck::getStatus,2); complianceCheckLambdaQueryWrapper.eq(ComplianceCheck::getStatus, 2);
List<ComplianceCheck> list = complianceCheckService.list(complianceCheckLambdaQueryWrapper); List<ComplianceCheck> list = complianceCheckService.list(complianceCheckLambdaQueryWrapper);
@ -359,11 +359,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
complianceCheckVOS.addAll(complianceCheckVOS1); complianceCheckVOS.addAll(complianceCheckVOS1);
} }
//期间核查计划审核 //期间核查计划审核
if (permissions.contains("reagent_check_schedule_audit")){ if (permissions.contains("reagent_check_schedule_audit")) {
LambdaQueryWrapper<CheckSchedule> checkScheduleLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CheckSchedule> checkScheduleLambdaQueryWrapper = new LambdaQueryWrapper<>();
checkScheduleLambdaQueryWrapper.eq(CheckSchedule::getStatus,1); checkScheduleLambdaQueryWrapper.eq(CheckSchedule::getStatus, 1);
List<CheckSchedule> list = checkScheduleService.list(checkScheduleLambdaQueryWrapper); List<CheckSchedule> list = checkScheduleService.list(checkScheduleLambdaQueryWrapper);
@ -378,11 +378,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
checkScheduleVOS.addAll(checkScheduleVOS1); checkScheduleVOS.addAll(checkScheduleVOS1);
} }
//期间核查录入结果审核 //期间核查录入结果审核
if (permissions.contains("reagent_period_verification_implementation_audit")){ if (permissions.contains("reagent_period_verification_implementation_audit")) {
LambdaQueryWrapper<PeriodVerificationImplementation> periodVerificationImplementationLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<PeriodVerificationImplementation> periodVerificationImplementationLambdaQueryWrapper = new LambdaQueryWrapper<>();
periodVerificationImplementationLambdaQueryWrapper.eq(PeriodVerificationImplementation::getCommitStatus,1); periodVerificationImplementationLambdaQueryWrapper.eq(PeriodVerificationImplementation::getCommitStatus, 1);
List<PeriodVerificationImplementation> list = periodVerificationImplementationService.list(periodVerificationImplementationLambdaQueryWrapper); List<PeriodVerificationImplementation> list = periodVerificationImplementationService.list(periodVerificationImplementationLambdaQueryWrapper);
@ -398,11 +398,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//标准物质管理审核 //标准物质管理审核
if (permissions.contains("reagent_standard_material_approval_form_auditSecondary")){ if (permissions.contains("reagent_standard_material_approval_form_auditSecondary")) {
LambdaQueryWrapper<StandardMaterialApprovalForm> standardMaterialApprovalFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<StandardMaterialApprovalForm> standardMaterialApprovalFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
standardMaterialApprovalFormLambdaQueryWrapper.eq(StandardMaterialApprovalForm::getCommitStatus,1); standardMaterialApprovalFormLambdaQueryWrapper.eq(StandardMaterialApprovalForm::getCommitStatus, 1);
List<StandardMaterialApprovalForm> list = standardMaterialApprovalFormService.list(standardMaterialApprovalFormLambdaQueryWrapper); List<StandardMaterialApprovalForm> list = standardMaterialApprovalFormService.list(standardMaterialApprovalFormLambdaQueryWrapper);
@ -417,11 +417,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
standardMaterialApprovalFormVOS.addAll(standardMaterialApprovalFormVOS1); standardMaterialApprovalFormVOS.addAll(standardMaterialApprovalFormVOS1);
} }
//标准物质管理审批 //标准物质管理审批
if (permissions.contains("reagent_standard_material_approval_form_approve")){ if (permissions.contains("reagent_standard_material_approval_form_approve")) {
LambdaQueryWrapper<StandardMaterialApprovalForm> standardMaterialApprovalFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<StandardMaterialApprovalForm> standardMaterialApprovalFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
standardMaterialApprovalFormLambdaQueryWrapper.eq(StandardMaterialApprovalForm::getCommitStatus,4); standardMaterialApprovalFormLambdaQueryWrapper.eq(StandardMaterialApprovalForm::getCommitStatus, 4);
List<StandardMaterialApprovalForm> list = standardMaterialApprovalFormService.list(standardMaterialApprovalFormLambdaQueryWrapper); List<StandardMaterialApprovalForm> list = standardMaterialApprovalFormService.list(standardMaterialApprovalFormLambdaQueryWrapper);
@ -436,11 +436,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
standardMaterialApprovalFormVOS.addAll(standardMaterialApprovalFormVOS1); standardMaterialApprovalFormVOS.addAll(standardMaterialApprovalFormVOS1);
} }
//供应商评价审核 //供应商评价审核
if (permissions.contains("reagent_evaluation_form_secondaryAudit")){ if (permissions.contains("reagent_evaluation_form_secondaryAudit")) {
LambdaQueryWrapper<EvaluationForm> evaluationFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<EvaluationForm> evaluationFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
evaluationFormLambdaQueryWrapper.eq(EvaluationForm::getStatus,2); evaluationFormLambdaQueryWrapper.eq(EvaluationForm::getStatus, 2);
List<EvaluationForm> list = evaluationFormService.list(evaluationFormLambdaQueryWrapper); List<EvaluationForm> list = evaluationFormService.list(evaluationFormLambdaQueryWrapper);
@ -454,11 +454,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
evaluationFormVOS.addAll(evaluationFormVOS1); evaluationFormVOS.addAll(evaluationFormVOS1);
} }
if (permissions.contains("reagent_evaluation_form_three_level_audit")){ if (permissions.contains("reagent_evaluation_form_three_level_audit")) {
LambdaQueryWrapper<EvaluationForm> evaluationFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<EvaluationForm> evaluationFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
evaluationFormLambdaQueryWrapper.eq(EvaluationForm::getStatus,3); evaluationFormLambdaQueryWrapper.eq(EvaluationForm::getStatus, 3);
List<EvaluationForm> list = evaluationFormService.list(evaluationFormLambdaQueryWrapper); List<EvaluationForm> list = evaluationFormService.list(evaluationFormLambdaQueryWrapper);
@ -473,11 +473,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
evaluationFormVOS.addAll(evaluationFormVOS1); evaluationFormVOS.addAll(evaluationFormVOS1);
} }
//指导书审核列表 //指导书审核列表
if (permissions.contains("reagent_instruction_book_audit")){ if (permissions.contains("reagent_instruction_book_audit")) {
LambdaQueryWrapper<InstructionBook> instructionBookLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<InstructionBook> instructionBookLambdaQueryWrapper = new LambdaQueryWrapper<>();
instructionBookLambdaQueryWrapper.eq(InstructionBook::getCommitStatus,1); instructionBookLambdaQueryWrapper.eq(InstructionBook::getCommitStatus, 1);
List<InstructionBook> list = instructionBookService.list(instructionBookLambdaQueryWrapper); List<InstructionBook> list = instructionBookService.list(instructionBookLambdaQueryWrapper);
@ -537,11 +537,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
//集中采购申请已审核列表 //集中采购申请已审核列表
List<CentralizedRequestVO> centralizedRequestVOList = new ArrayList<>(); List<CentralizedRequestVO> centralizedRequestVOList = new ArrayList<>();
if (permissions.contains("reagent_centralized_request_audit")){ if (permissions.contains("reagent_centralized_request_audit")) {
LambdaQueryWrapper<CentralizedRequest> centralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CentralizedRequest> centralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>();
centralizedRequestLambdaQueryWrapper.eq(CentralizedRequest::getStatus,2).or().eq(CentralizedRequest::getStatus, -2); centralizedRequestLambdaQueryWrapper.eq(CentralizedRequest::getAuditId, dlpUser.getId());
List<CentralizedRequest> list = centralizedRequestService.list(centralizedRequestLambdaQueryWrapper); List<CentralizedRequest> list = centralizedRequestService.list(centralizedRequestLambdaQueryWrapper);
@ -559,7 +559,7 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
//分散采购申请一级已审核列表 //分散采购申请一级已审核列表
LambdaQueryWrapper<DecentralizedRequest> decentralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<DecentralizedRequest> decentralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>();
decentralizedRequestLambdaQueryWrapper.eq(DecentralizedRequest::getPrimaryAuditorId,dlpUser.getId()); decentralizedRequestLambdaQueryWrapper.eq(DecentralizedRequest::getPrimaryAuditorId, dlpUser.getId());
List<DecentralizedRequest> decentralizedRequestList = decentralizedRequestService.list(decentralizedRequestLambdaQueryWrapper); List<DecentralizedRequest> decentralizedRequestList = decentralizedRequestService.list(decentralizedRequestLambdaQueryWrapper);
@ -599,7 +599,7 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
//分散采购申请三级已审核列表 //分散采购申请三级已审核列表
LambdaQueryWrapper<DecentralizedRequest> decentralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<DecentralizedRequest> decentralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>();
decentralizedRequestLambdaQueryWrapper.eq(DecentralizedRequest::getThreeLevelAuditId,dlpUser.getId()); decentralizedRequestLambdaQueryWrapper.eq(DecentralizedRequest::getThreeLevelAuditId, dlpUser.getId());
List<DecentralizedRequest> decentralizedRequestList = decentralizedRequestService.list(decentralizedRequestLambdaQueryWrapper); List<DecentralizedRequest> decentralizedRequestList = decentralizedRequestService.list(decentralizedRequestLambdaQueryWrapper);
@ -618,7 +618,7 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
//分散采购申请已审核列表 //分散采购申请已审核列表
LambdaQueryWrapper<DecentralizedRequest> decentralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<DecentralizedRequest> decentralizedRequestLambdaQueryWrapper = new LambdaQueryWrapper<>();
decentralizedRequestLambdaQueryWrapper.eq(DecentralizedRequest::getApproverId,dlpUser.getId()); decentralizedRequestLambdaQueryWrapper.eq(DecentralizedRequest::getApproverId, dlpUser.getId());
List<DecentralizedRequest> decentralizedRequestList = decentralizedRequestService.list(decentralizedRequestLambdaQueryWrapper); List<DecentralizedRequest> decentralizedRequestList = decentralizedRequestService.list(decentralizedRequestLambdaQueryWrapper);
@ -637,7 +637,7 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
//采购目录一级已审核列表 //采购目录一级已审核列表
LambdaQueryWrapper<PurchaseCatalogue> purchaseCatalogueLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<PurchaseCatalogue> purchaseCatalogueLambdaQueryWrapper = new LambdaQueryWrapper<>();
purchaseCatalogueLambdaQueryWrapper.eq(PurchaseCatalogue::getAuditorId,dlpUser.getId()); purchaseCatalogueLambdaQueryWrapper.eq(PurchaseCatalogue::getAuditorId, dlpUser.getId());
List<PurchaseCatalogue> list = purchaseCatalogueService.list(purchaseCatalogueLambdaQueryWrapper); List<PurchaseCatalogue> list = purchaseCatalogueService.list(purchaseCatalogueLambdaQueryWrapper);
@ -657,7 +657,7 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
LambdaQueryWrapper<PurchaseCatalogue> purchaseCatalogueLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<PurchaseCatalogue> purchaseCatalogueLambdaQueryWrapper = new LambdaQueryWrapper<>();
purchaseCatalogueLambdaQueryWrapper.eq(PurchaseCatalogue::getAuditorId,dlpUser.getId()); purchaseCatalogueLambdaQueryWrapper.eq(PurchaseCatalogue::getAuditorId, dlpUser.getId());
List<PurchaseCatalogue> list = purchaseCatalogueService.list(purchaseCatalogueLambdaQueryWrapper); List<PurchaseCatalogue> list = purchaseCatalogueService.list(purchaseCatalogueLambdaQueryWrapper);
@ -678,7 +678,7 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
LambdaQueryWrapper<PurchasingPlan> purchasingPlanLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<PurchasingPlan> purchasingPlanLambdaQueryWrapper = new LambdaQueryWrapper<>();
purchasingPlanLambdaQueryWrapper.eq(PurchasingPlan::getPrimaryAuditorId,dlpUser.getId()); purchasingPlanLambdaQueryWrapper.eq(PurchasingPlan::getPrimaryAuditorId, dlpUser.getId());
List<PurchasingPlan> list = purchasingPlanService.list(purchasingPlanLambdaQueryWrapper); List<PurchasingPlan> list = purchasingPlanService.list(purchasingPlanLambdaQueryWrapper);
@ -697,7 +697,7 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
LambdaQueryWrapper<PurchasingPlan> purchasingPlanLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<PurchasingPlan> purchasingPlanLambdaQueryWrapper = new LambdaQueryWrapper<>();
purchasingPlanLambdaQueryWrapper.eq(PurchasingPlan::getApproverId,dlpUser.getId()); purchasingPlanLambdaQueryWrapper.eq(PurchasingPlan::getApproverId, dlpUser.getId());
List<PurchasingPlan> list = purchasingPlanService.list(purchasingPlanLambdaQueryWrapper); List<PurchasingPlan> list = purchasingPlanService.list(purchasingPlanLambdaQueryWrapper);
@ -713,11 +713,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//采购验收一级已审核列表 //采购验收一级已审核列表
if (permissions.contains("reagent_acceptance_record_form_primary")){ if (permissions.contains("reagent_acceptance_record_form_primary")) {
LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getPrimaryAuditorId,dlpUser.getId()); acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getPrimaryAuditorId, dlpUser.getId());
List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper); List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper);
@ -734,11 +734,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//采购验收二级已审核列表 //采购验收二级已审核列表
if (permissions.contains("reagent_acceptance_record_form_secondary")){ if (permissions.contains("reagent_acceptance_record_form_secondary")) {
LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getSecondaryAuditorId,dlpUser.getId()); acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getSecondaryAuditorId, dlpUser.getId());
List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper); List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper);
@ -755,11 +755,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//采购验收三级已审核列表 //采购验收三级已审核列表
if (permissions.contains("reagent_acceptance_record_form_threeLevel")){ if (permissions.contains("reagent_acceptance_record_form_threeLevel")) {
LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AcceptanceRecordForm> acceptanceRecordFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getThreeLevelAuditorId,dlpUser.getId()); acceptanceRecordFormLambdaQueryWrapper.eq(AcceptanceRecordForm::getThreeLevelAuditorId, dlpUser.getId());
List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper); List<AcceptanceRecordForm> list = acceptanceRecordFormService.list(acceptanceRecordFormLambdaQueryWrapper);
@ -775,11 +775,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//符合性检查一级已审核列表 //符合性检查一级已审核列表
if (permissions.contains("reagent_compliance_check_primaryAudit")){ if (permissions.contains("reagent_compliance_check_primaryAudit")) {
LambdaQueryWrapper<ComplianceCheck> complianceCheckLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ComplianceCheck> complianceCheckLambdaQueryWrapper = new LambdaQueryWrapper<>();
complianceCheckLambdaQueryWrapper.eq(ComplianceCheck::getPrimaryAuditorId,dlpUser.getId()); complianceCheckLambdaQueryWrapper.eq(ComplianceCheck::getPrimaryAuditorId, dlpUser.getId());
List<ComplianceCheck> list = complianceCheckService.list(complianceCheckLambdaQueryWrapper); List<ComplianceCheck> list = complianceCheckService.list(complianceCheckLambdaQueryWrapper);
@ -795,11 +795,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
} }
//符合性检查二级已审核列表 //符合性检查二级已审核列表
if (permissions.contains("reagent_compliance_check_secondaryAudit")){ if (permissions.contains("reagent_compliance_check_secondaryAudit")) {
LambdaQueryWrapper<ComplianceCheck> complianceCheckLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ComplianceCheck> complianceCheckLambdaQueryWrapper = new LambdaQueryWrapper<>();
complianceCheckLambdaQueryWrapper.eq(ComplianceCheck::getSecondaryAuditorId,dlpUser.getId()); complianceCheckLambdaQueryWrapper.eq(ComplianceCheck::getSecondaryAuditorId, dlpUser.getId());
List<ComplianceCheck> list = complianceCheckService.list(complianceCheckLambdaQueryWrapper); List<ComplianceCheck> list = complianceCheckService.list(complianceCheckLambdaQueryWrapper);
@ -814,11 +814,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
complianceCheckVOS.addAll(complianceCheckVOS1); complianceCheckVOS.addAll(complianceCheckVOS1);
} }
//期间核查计划已审核列表 //期间核查计划已审核列表
if (permissions.contains("reagent_check_schedule_audit")){ if (permissions.contains("reagent_check_schedule_audit")) {
LambdaQueryWrapper<CheckSchedule> checkScheduleLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CheckSchedule> checkScheduleLambdaQueryWrapper = new LambdaQueryWrapper<>();
checkScheduleLambdaQueryWrapper.eq(CheckSchedule::getTechnicalDirectorId,dlpUser.getId()); checkScheduleLambdaQueryWrapper.eq(CheckSchedule::getTechnicalDirectorId, dlpUser.getId());
List<CheckSchedule> list = checkScheduleService.list(checkScheduleLambdaQueryWrapper); List<CheckSchedule> list = checkScheduleService.list(checkScheduleLambdaQueryWrapper);
@ -833,11 +833,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
checkScheduleVOS.addAll(checkScheduleVOS1); checkScheduleVOS.addAll(checkScheduleVOS1);
} }
//期间核查录入结果已审核列表 //期间核查录入结果已审核列表
if (permissions.contains("reagent_period_verification_implementation_audit")){ if (permissions.contains("reagent_period_verification_implementation_audit")) {
LambdaQueryWrapper<PeriodVerificationImplementation> periodVerificationImplementationLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<PeriodVerificationImplementation> periodVerificationImplementationLambdaQueryWrapper = new LambdaQueryWrapper<>();
periodVerificationImplementationLambdaQueryWrapper.eq(PeriodVerificationImplementation::getTechnicalDirectorId,dlpUser.getId()); periodVerificationImplementationLambdaQueryWrapper.eq(PeriodVerificationImplementation::getTechnicalDirectorId, dlpUser.getId());
List<PeriodVerificationImplementation> list = periodVerificationImplementationService.list(periodVerificationImplementationLambdaQueryWrapper); List<PeriodVerificationImplementation> list = periodVerificationImplementationService.list(periodVerificationImplementationLambdaQueryWrapper);
@ -854,11 +854,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
//标准物质管理已审核列表 //标准物质管理已审核列表
if (permissions.contains("reagent_standard_material_approval_form_auditSecondary")){ if (permissions.contains("reagent_standard_material_approval_form_auditSecondary")) {
LambdaQueryWrapper<StandardMaterialApprovalForm> standardMaterialApprovalFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<StandardMaterialApprovalForm> standardMaterialApprovalFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
standardMaterialApprovalFormLambdaQueryWrapper.eq(StandardMaterialApprovalForm::getSecondaryAuditorId,dlpUser.getId()); standardMaterialApprovalFormLambdaQueryWrapper.eq(StandardMaterialApprovalForm::getSecondaryAuditorId, dlpUser.getId());
List<StandardMaterialApprovalForm> list = standardMaterialApprovalFormService.list(standardMaterialApprovalFormLambdaQueryWrapper); List<StandardMaterialApprovalForm> list = standardMaterialApprovalFormService.list(standardMaterialApprovalFormLambdaQueryWrapper);
ArrayList<StandardMaterialApprovalFormVO> standardMaterialApprovalFormVOS1 = new ArrayList<>(); ArrayList<StandardMaterialApprovalFormVO> standardMaterialApprovalFormVOS1 = new ArrayList<>();
@ -872,11 +872,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
standardMaterialApprovalFormVOS.addAll(standardMaterialApprovalFormVOS1); standardMaterialApprovalFormVOS.addAll(standardMaterialApprovalFormVOS1);
} }
//标准物质管理已审批列表 //标准物质管理已审批列表
if (permissions.contains("reagent_standard_material_approval_form_approve")){ if (permissions.contains("reagent_standard_material_approval_form_approve")) {
LambdaQueryWrapper<StandardMaterialApprovalForm> standardMaterialApprovalFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<StandardMaterialApprovalForm> standardMaterialApprovalFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
standardMaterialApprovalFormLambdaQueryWrapper.eq(StandardMaterialApprovalForm::getApproverId,dlpUser.getId()); standardMaterialApprovalFormLambdaQueryWrapper.eq(StandardMaterialApprovalForm::getApproverId, dlpUser.getId());
List<StandardMaterialApprovalForm> list = standardMaterialApprovalFormService.list(standardMaterialApprovalFormLambdaQueryWrapper); List<StandardMaterialApprovalForm> list = standardMaterialApprovalFormService.list(standardMaterialApprovalFormLambdaQueryWrapper);
@ -891,11 +891,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
standardMaterialApprovalFormVOS.addAll(standardMaterialApprovalFormVOS1); standardMaterialApprovalFormVOS.addAll(standardMaterialApprovalFormVOS1);
} }
//供应商评价二级已审核列表 //供应商评价二级已审核列表
if (permissions.contains("reagent_evaluation_form_secondaryAudit")){ if (permissions.contains("reagent_evaluation_form_secondaryAudit")) {
LambdaQueryWrapper<EvaluationForm> evaluationFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<EvaluationForm> evaluationFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
evaluationFormLambdaQueryWrapper.eq(EvaluationForm::getSecondaryUserId,dlpUser.getId()); evaluationFormLambdaQueryWrapper.eq(EvaluationForm::getSecondaryUserId, dlpUser.getId());
List<EvaluationForm> list = evaluationFormService.list(evaluationFormLambdaQueryWrapper); List<EvaluationForm> list = evaluationFormService.list(evaluationFormLambdaQueryWrapper);
@ -910,11 +910,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
evaluationFormVOS.addAll(evaluationFormVOS1); evaluationFormVOS.addAll(evaluationFormVOS1);
} }
//供应商评价三级已审核列表 //供应商评价三级已审核列表
if (permissions.contains("reagent_evaluation_form_three_level_audit")){ if (permissions.contains("reagent_evaluation_form_three_level_audit")) {
LambdaQueryWrapper<EvaluationForm> evaluationFormLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<EvaluationForm> evaluationFormLambdaQueryWrapper = new LambdaQueryWrapper<>();
evaluationFormLambdaQueryWrapper.eq(EvaluationForm::getThreeLevelUserId,dlpUser.getId()); evaluationFormLambdaQueryWrapper.eq(EvaluationForm::getThreeLevelUserId, dlpUser.getId());
List<EvaluationForm> list = evaluationFormService.list(evaluationFormLambdaQueryWrapper); List<EvaluationForm> list = evaluationFormService.list(evaluationFormLambdaQueryWrapper);
@ -929,11 +929,11 @@ public class ReviewAndApproveServiceImpl extends ServiceImpl<ReviewAndApproveMap
evaluationFormVOS.addAll(evaluationFormVOS1); evaluationFormVOS.addAll(evaluationFormVOS1);
} }
//指导书已审核列表 //指导书已审核列表
if (permissions.contains("reagent_instruction_book_audit")){ if (permissions.contains("reagent_instruction_book_audit")) {
LambdaQueryWrapper<InstructionBook> instructionBookLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<InstructionBook> instructionBookLambdaQueryWrapper = new LambdaQueryWrapper<>();
instructionBookLambdaQueryWrapper.eq(InstructionBook::getTechnicalDirectorId,dlpUser.getId()); instructionBookLambdaQueryWrapper.eq(InstructionBook::getTechnicalDirectorId, dlpUser.getId());
List<InstructionBook> list = instructionBookService.list(instructionBookLambdaQueryWrapper); List<InstructionBook> list = instructionBookService.list(instructionBookLambdaQueryWrapper);

@ -167,7 +167,7 @@ public class StandardReserveSolutionServiceImpl extends ServiceImpl<StandardRese
String format = date.format(formatter); String format = date.format(formatter);
String prefix = reagentConsumableInventory.getEnglishName() + "-" + format+"-"; String prefix = reagentConsumableInventory.getAlias() + "-" + format+"-";
List<ReferenceMaterial> list = referenceMaterialService.list(Wrappers.<ReferenceMaterial>query() List<ReferenceMaterial> list = referenceMaterialService.list(Wrappers.<ReferenceMaterial>query()
.likeRight("number", prefix) .likeRight("number", prefix)
@ -191,7 +191,7 @@ public class StandardReserveSolutionServiceImpl extends ServiceImpl<StandardRese
referenceMaterial.setId(IdWorker.get32UUID().toUpperCase()); referenceMaterial.setId(IdWorker.get32UUID().toUpperCase());
referenceMaterial.setReagentConsumableId(reagentConsumableInventory.getReagentConsumableId()); referenceMaterial.setReagentConsumableId(reagentConsumableInventory.getReagentConsumableId());
referenceMaterial.setReagentConsumableInventoryId(reagentConsumableInventory.getReagentConsumableInventoryId()); referenceMaterial.setReagentConsumableInventoryId(reagentConsumableInventory.getReagentConsumableInventoryId());
referenceMaterial.setNumber(reagentConsumableInventory.getEnglishName() + "-" + format + "-" + newNo); referenceMaterial.setNumber(reagentConsumableInventory.getAlias() + "-" + format + "-" + newNo);
ReferenceMaterial byId1 = referenceMaterialService.getById(standardReserveSolution.getReferenceMaterialId()); ReferenceMaterial byId1 = referenceMaterialService.getById(standardReserveSolution.getReferenceMaterialId());
@ -238,7 +238,7 @@ public class StandardReserveSolutionServiceImpl extends ServiceImpl<StandardRese
int year = calendar.get(Calendar.YEAR); int year = calendar.get(Calendar.YEAR);
String prefix = one.getEnglishName() + "-" + format+"-"; String prefix = one.getAlias() + "-" + format+"-";
List<ReferenceMaterial> list = referenceMaterialService.list(Wrappers.<ReferenceMaterial>query() List<ReferenceMaterial> list = referenceMaterialService.list(Wrappers.<ReferenceMaterial>query()
.likeRight("number", prefix) .likeRight("number", prefix)
@ -258,7 +258,7 @@ public class StandardReserveSolutionServiceImpl extends ServiceImpl<StandardRese
} }
} }
referenceMaterial.setNumber(one.getEnglishName() + "-" + format + "-" + newNo); referenceMaterial.setNumber(one.getAlias() + "-" + format + "-" + newNo);
referenceMaterial.setBatchDetailsId(batchDetails.getBatchDetailsId()); referenceMaterial.setBatchDetailsId(batchDetails.getBatchDetailsId());

@ -87,7 +87,7 @@ public class StandardSolutionCurveServiceImpl extends ServiceImpl<StandardSoluti
if (referenceMaterial.getStatus() != -3) { if (referenceMaterial.getStatus() != -3) {
throw new RuntimeException(String.format("请先领用该标准储备溶液后,再进行操作")); throw new RuntimeException(String.format("请先领用该标准储备溶液后,再进行操作"));
} else if (!(referenceMaterial.getStatus() == 0 || referenceMaterial.getStatus() == -2)) { } else if (!(referenceMaterial.getStatus() == 0 || referenceMaterial.getStatus() == -2||referenceMaterial.getStatus()==-3)) {
throw new RuntimeException(String.format("该标准储备溶液已使用完毕或已停止使用/报废使用,不能进行操作")); throw new RuntimeException(String.format("该标准储备溶液已使用完毕或已停止使用/报废使用,不能进行操作"));

@ -91,6 +91,9 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
@Autowired @Autowired
private PurchaseListService purchaseListService; private PurchaseListService purchaseListService;
@Autowired
private AcceptanceSignForService acceptanceSignForService;
@Override//查看采购入库 @Override//查看采购入库
public WarehousingRecordFormVO getWarehousingRecordFormVO(String warehousingFormId) { public WarehousingRecordFormVO getWarehousingRecordFormVO(String warehousingFormId) {
@ -146,14 +149,22 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
WarehousingContent byId = warehousingContentService.getById(warehousingBatchList.getWarehousingContentId()); WarehousingContent byId = warehousingContentService.getById(warehousingBatchList.getWarehousingContentId());
byId.setLastStorageLocation(warehousingRecordFormDTO.getLocation());
byId.setBoxId(warehousingRecordFormDTO.getBoxId());
byId.setLatticeId(warehousingRecordFormDTO.getLatticeId());
byId.setWarehousingQuantity(byId.getWarehousingQuantity() + warehousingBatchList.getQuantity()); byId.setWarehousingQuantity(byId.getWarehousingQuantity() + warehousingBatchList.getQuantity());
if (warehousingRecordFormDTO.getCode() != null) {
byId.setCode(warehousingRecordFormDTO.getCode());
}
//判断采购数量与签收数量 //判断采购数量与签收数量
if (byId.getWarehousingQuantity() > byId.getTotalQuantity()) { if (byId.getWarehousingQuantity() > byId.getTotalQuantity()) {
throw new RuntimeException(String.format("入库数量不能大于采购数量")); throw new RuntimeException(String.format("入库数量不能大于采购数量"));
} }
warehousingContentService.updateById(byId);
ReagentConsumableInventory one = reagentConsumableInventoryService.getOne(Wrappers.<ReagentConsumableInventory>query().eq("reagent_consumable_id", byId.getReagentConsumableId())); ReagentConsumableInventory one = reagentConsumableInventoryService.getOne(Wrappers.<ReagentConsumableInventory>query().eq("reagent_consumable_id", byId.getReagentConsumableId()));
//录入仓库批次信息,若仓库不存在该物品,则新增该物品的库存信息 //录入仓库批次信息,若仓库不存在该物品,则新增该物品的库存信息
@ -179,6 +190,7 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
reagentConsumableInventory.setCode(warehousingRecordFormDTO.getCode()); reagentConsumableInventory.setCode(warehousingRecordFormDTO.getCode());
reagentConsumables.setCode(warehousingRecordFormDTO.getCode()); reagentConsumables.setCode(warehousingRecordFormDTO.getCode());
reagentConsumablesService.updateById(reagentConsumables); reagentConsumablesService.updateById(reagentConsumables);
} }
BatchDetails batchDetails = new BatchDetails(); BatchDetails batchDetails = new BatchDetails();
@ -223,6 +235,9 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
//如果是标准物质,则赋值编号 //如果是标准物质,则赋值编号
if (reagentConsumables.getCategory().equals("标准物质")) { if (reagentConsumables.getCategory().equals("标准物质")) {
batchDetails.setLatticeId(warehousingRecordFormDTO.getLatticeId());
batchDetails.setLocation(warehousingRecordFormDTO.getLocation());
batchDetails.setBoxId(warehousingRecordFormDTO.getBoxId());
for (int j = 0; j < batchDetails.getQuantity(); j++) { for (int j = 0; j < batchDetails.getQuantity(); j++) {
@ -243,7 +258,7 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
String location = warehousingRecordFormDTO.getLocation(); String location = warehousingRecordFormDTO.getLocation();
String prefix = reagentConsumables.getEnglishName() + "-" + year + "-" + location.charAt(1) + "-"; String prefix = reagentConsumables.getAlias() + "-" + year + "-" + location.charAt(1) + "-";
List<ReferenceMaterial> list = referenceMaterialService.list(Wrappers.<ReferenceMaterial>query() List<ReferenceMaterial> list = referenceMaterialService.list(Wrappers.<ReferenceMaterial>query()
.likeRight("number", prefix) .likeRight("number", prefix)
@ -278,7 +293,6 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
if (warehousingRecordFormDTO.getCode() != null) { if (warehousingRecordFormDTO.getCode() != null) {
one.setCode(warehousingRecordFormDTO.getCode()); one.setCode(warehousingRecordFormDTO.getCode());
ReagentConsumables byId1 = reagentConsumablesService.getById(one.getReagentConsumableId()); ReagentConsumables byId1 = reagentConsumablesService.getById(one.getReagentConsumableId());
byId1.setCode(one.getCode());
reagentConsumablesService.updateById(byId1); reagentConsumablesService.updateById(byId1);
} }
LambdaQueryWrapper<ReagentConsumables> reagentConsumablesLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ReagentConsumables> reagentConsumablesLambdaQueryWrapper = new LambdaQueryWrapper<>();
@ -311,13 +325,13 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
List<BatchDetails> batchDetailsList = batchDetailsService.list(Wrappers.<BatchDetails>query().eq("reagent_consumable_inventory_id", one.getReagentConsumableInventoryId()) List<BatchDetails> batchDetailsList = batchDetailsService.list(Wrappers.<BatchDetails>query().eq("reagent_consumable_inventory_id", one.getReagentConsumableInventoryId())
.eq("supplier_id", byId.getSupplierId()) .eq("supplier_id", byId.getSupplierId())
.like( "batch",years)); .like("batch", years));
if (batchDetailsList.size() == 0) { if (batchDetailsList.size() == 0) {
batchDetails.setBatch(year + "-" + 1); batchDetails.setBatch(year + "-" + 1);
} else { } else {
Integer x = batchDetailsList.size() + 1; Integer x = batchDetailsList.size() + 1;
batchDetails.setBatch(year + "-" +x ); batchDetails.setBatch(year + "-" + x);
} }
if (one.getCategory().equals("试剂") | one.getCategory().equals("耗材")) { if (one.getCategory().equals("试剂") | one.getCategory().equals("耗材")) {
batchDetails.setLocation(warehousingRecordFormDTO.getLocation()); batchDetails.setLocation(warehousingRecordFormDTO.getLocation());
@ -331,6 +345,9 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
one.setWarningValue(warehousingRecordFormDTO.getWarningValue()); one.setWarningValue(warehousingRecordFormDTO.getWarningValue());
if (one.getCategory().equals("标准物质")) { if (one.getCategory().equals("标准物质")) {
batchDetails.setLocation(warehousingRecordFormDTO.getLocation());
batchDetails.setLatticeId(warehousingRecordFormDTO.getLatticeId());
batchDetails.setBoxId(warehousingRecordFormDTO.getBoxId());
for (int j = 0; j < batchDetails.getQuantity(); j++) { for (int j = 0; j < batchDetails.getQuantity(); j++) {
@ -350,7 +367,7 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
String location = warehousingRecordFormDTO.getLocation(); String location = warehousingRecordFormDTO.getLocation();
String prefix = reagentConsumables.getEnglishName() + "-" + year + "-" + location.charAt(1) + "-"; String prefix = reagentConsumables.getAlias() + "-" + year + "-" + location.charAt(1) + "-";
List<ReferenceMaterial> list = referenceMaterialService.list(Wrappers.<ReferenceMaterial>query() List<ReferenceMaterial> list = referenceMaterialService.list(Wrappers.<ReferenceMaterial>query()
.likeRight("number", prefix) .likeRight("number", prefix)
@ -379,14 +396,15 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
batchDetailsService.save(batchDetails); batchDetailsService.save(batchDetails);
} }
warehousingContentService.updateById(byId);
warehousingBatchListService.save(warehousingBatchList); warehousingBatchListService.save(warehousingBatchList);
LambdaQueryWrapper<WarehousingContent> warehousingContentLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<WarehousingContent> warehousingContentLambdaQueryWrapper = new LambdaQueryWrapper<>();
WarehousingContent byId1 = warehousingContentService.getById(warehousingRecordFormDTO.getWarehousingContentId()); String warehousingRecordFormId = byId.getWarehousingRecordFormId();
String warehousingRecordFormId = byId1.getWarehousingRecordFormId();
warehousingContentLambdaQueryWrapper.eq(WarehousingContent::getWarehousingRecordFormId, warehousingRecordFormId); warehousingContentLambdaQueryWrapper.eq(WarehousingContent::getWarehousingRecordFormId, warehousingRecordFormId);
@ -405,9 +423,24 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
warehousingContentService.updateById(warehousingContent); warehousingContentService.updateById(warehousingContent);
if (warehousingContent.getAcceptanceRecordFormId() == null) { if (warehousingContent.getAcceptanceRecordFormId() == null) {
AcceptanceRecordForm acceptanceRecordForm = acceptanceRecordFormService.addForm(warehousingContent.getReagentConsumableId(), warehousingContent.getSupplierId()); AcceptanceSignFor acceptanceSignForServiceOne = acceptanceSignForService.getOne(Wrappers.<AcceptanceSignFor>query().eq("warehousing_record_form_id", warehousingRecordFormId));
if (acceptanceSignForServiceOne == null) {
AcceptanceSignFor acceptanceSignFor = new AcceptanceSignFor();
acceptanceSignFor.setWarehousingRecordFormId(warehousingRecordFormId);
acceptanceSignFor.setId(IdWorker.get32UUID().toUpperCase());
acceptanceSignFor.setQuantity(list.size());
acceptanceSignForService.save(acceptanceSignFor);
AcceptanceRecordForm acceptanceRecordForm = acceptanceRecordFormService.addForm(warehousingContent.getReagentConsumableId(), warehousingContent.getSupplierId(), acceptanceSignFor.getId());
warehousingContent.setAcceptanceRecordFormId(acceptanceRecordForm.getId());
} else {
AcceptanceRecordForm acceptanceRecordForm = acceptanceRecordFormService.addForm(warehousingContent.getReagentConsumableId(), warehousingContent.getSupplierId(), acceptanceSignForServiceOne.getId());
warehousingContent.setAcceptanceRecordFormId(acceptanceRecordForm.getId()); warehousingContent.setAcceptanceRecordFormId(acceptanceRecordForm.getId());
}
warehousingContentService.updateById(warehousingContent); warehousingContentService.updateById(warehousingContent);
} }
@ -501,11 +534,7 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
DecentralizedRequestVO requestById = decentralizedRequestService.getRequestById(request.getId()); DecentralizedRequestVO requestById = decentralizedRequestService.getRequestById(request.getId());
List<DecentralizeDetails> decentralizeDetailsVOList = requestById.getDecentralizeDetailsVOList(); List<DecentralizeDetails> decentralizeDetailsVOList = requestById.getDecentralizeDetailsVOList();
} }
for (WarehousingContent warehousingContent : warehousingContentList) { for (WarehousingContent warehousingContent : warehousingContentList) {
PurchaseListDetails purchaseListDetails = purchaseListDetailsService.getById(warehousingContent.getPurchaseListDetailsId()); PurchaseListDetails purchaseListDetails = purchaseListDetailsService.getById(warehousingContent.getPurchaseListDetailsId());
@ -527,7 +556,6 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
PurchaseRequestPrintVO purchaseRequestPrintVO = new PurchaseRequestPrintVO(); PurchaseRequestPrintVO purchaseRequestPrintVO = new PurchaseRequestPrintVO();
if (decentralizeDetail.getCategory().equals("标准物质")) { if (decentralizeDetail.getCategory().equals("标准物质")) {
purchaseRequestPrintVO.setRemarks(decentralizeDetail.getRemarks()); purchaseRequestPrintVO.setRemarks(decentralizeDetail.getRemarks());
purchaseRequestPrintVO.setQuantity(decentralizeDetail.getQuantity()); purchaseRequestPrintVO.setQuantity(decentralizeDetail.getQuantity());
purchaseRequestPrintVO.setPurpose(decentralizeDetail.getPurpose()); purchaseRequestPrintVO.setPurpose(decentralizeDetail.getPurpose());
@ -537,13 +565,8 @@ public class WarehousingRecordFormServiceImpl extends ServiceImpl<WarehousingRec
// purchaseRequestPrintVO.setSupplierName(); // purchaseRequestPrintVO.setSupplierName();
} }
} }
} }
ProcurementContent procurementContent = procurementContentService.getById(purchaseListDetails.getProcurementContentId()); ProcurementContent procurementContent = procurementContentService.getById(purchaseListDetails.getProcurementContentId());
} }
return return

@ -39,4 +39,6 @@ public class WarehousingContentVO extends WarehousingContent {
} }

@ -63,13 +63,13 @@ oss:
secretKey: 87990016 secretKey: 87990016
bucket-name: dlpfiles bucket-name: dlpfiles
config: #config:
activemq: # activemq:
brokerUrl: tcp://localhost:61616 # brokerUrl: tcp://localhost:61616
user: admin # user: admin
password: admin # password: admin
#true:topic模式,false:queue模式 # #true:topic模式,false:queue模式
pub-sub-domain: true # pub-sub-domain: true
msgListener: # msgListener:
reagentTopicName: reagent # reagentTopicName: reagent

@ -43,6 +43,7 @@
<result property="userName" column="user_name"/> <result property="userName" column="user_name"/>
<result property="commitTime" column="commit_time"/> <result property="commitTime" column="commit_time"/>
<result property="reagentConsumableName" column="reagent_consumable_name"/> <result property="reagentConsumableName" column="reagent_consumable_name"/>
<result property="acceptanceSignForId" column="acceptance_sign_for_id"/>
</resultMap> </resultMap>
<resultMap id="acceptanceRecordFormVO" type="digital.laboratory.platform.reagent.vo.AcceptanceRecordFormVO" <resultMap id="acceptanceRecordFormVO" type="digital.laboratory.platform.reagent.vo.AcceptanceRecordFormVO"
@ -80,6 +81,7 @@
WHERE user.user_id=arf.three_level_auditor_id WHERE user.user_id=arf.three_level_auditor_id
) AS three_level_auditor_name ) AS three_level_auditor_name
FROM acceptance_record_form arf FROM acceptance_record_form arf
WHERE arf.acceptance_sign_for_id = #{acceptanceSignForId}
</sql> </sql>
<select id="getAcceptanceRecordFormVOPage" resultMap="acceptanceRecordFormVO" <select id="getAcceptanceRecordFormVOPage" resultMap="acceptanceRecordFormVO"

@ -16,7 +16,7 @@
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
<result property="createBy" column="create_by"/> <result property="createBy" column="create_by"/>
<result property="updateBy" column="update_by"/> <result property="updateBy" column="update_by"/>
<result property="templateId" column="template_id"/> <result property="experimentId" column="experiment_id"/>
</resultMap> </resultMap>
<resultMap id="applicationForUseVO" type="digital.laboratory.platform.reagent.vo.ApplicationForUseVO" <resultMap id="applicationForUseVO" type="digital.laboratory.platform.reagent.vo.ApplicationForUseVO"

@ -23,6 +23,9 @@
<result property="status" column="status"/> <result property="status" column="status"/>
<result property="warningValue" column="warning_value"/> <result property="warningValue" column="warning_value"/>
<result property="code" column="code"/> <result property="code" column="code"/>
<result property="lastStorageLocation" column="last_storage_location"/>
<result property="latticeId" column="lattice_id"/>
<result property="boxId" column="box_id"/>
</resultMap> </resultMap>

Loading…
Cancel
Save