| | |
| | | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
| | | import org.primefaces.event.FileUploadEvent; |
| | | import org.primefaces.model.UploadedFile; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.dao.DataAccessException; |
| | | import org.springframework.dao.DataIntegrityViolationException; |
| | |
| | | private SysUserService sysUserService; |
| | | @Resource |
| | | private BaseMetaService baseMetaService; |
| | | |
| | | @Value("${activeEnv}") |
| | | private String activeEnv; |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public List<OpeApply> getOpeApplyList(String reagentName, Timestamp startDeadline, String controlProduct,Timestamp endDeadline, Integer status, |
| | |
| | | public boolean updateSelectedOpeApplyStatus(String memo, List<String> applyIds, String adminUserId, List<String> adminApplyIds,List<String> firstUserIds) { |
| | | boolean apply = false, adminApply = false; |
| | | if (!CollectionUtils.isEmpty(applyIds)) { |
| | | apply = this.updateOpeApplyStatus(ApplyStatus.APPROVED, memo, applyIds); |
| | | if("gslab".equalsIgnoreCase(activeEnv)){ |
| | | apply = this.updateOpeApplyStatus(ApplyStatus.Price_CONFIRM, memo, applyIds); |
| | | }else{ |
| | | apply = this.updateOpeApplyStatus(ApplyStatus.APPROVED, memo, applyIds); |
| | | } |
| | | } |
| | | if (!CollectionUtils.isEmpty(adminApplyIds)) { |
| | | adminApply = this.updateOpeApplyAdminStatus2(memo, adminApplyIds, adminUserId,firstUserIds); |