| | |
| | | unqualifiedHandlerFileService.downloadOAFile(handlerFileId,response); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ°å¢ä¸åæ ¼å¤ç") |
| | | @PostMapping("/addUnqualifiedHandler") |
| | | public Result addUnqualifiedHandler(@RequestBody UnqualifiedHandlerDto unqualifiedHandlerDto){ |
| | | return Result.success(unqualifiedHandlerService.addUnqualifiedHandler(unqualifiedHandlerDto)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "ç¼è¾ä¸åæ ¼å¤ç") |
| | | @PostMapping("/updateUnqualifiedHandler") |
| | | @ApiOperation(value = "ç¼è¾ä¸åæ ¼å¤ç并䏿¨éOA") |
| | | @PostMapping("/reSubmitPushOa") |
| | | public Result updateUnqualifiedHandler(@RequestBody UnqualifiedHandlerDto unqualifiedHandlerDto){ |
| | | return Result.success(unqualifiedHandlerService.updateUnqualifiedHandler(unqualifiedHandlerDto)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ¥çoaæµç¨") |
| | | @GetMapping("/getOaFlow") |
| | |
| | | return Result.success(unqualifiedHandlerService.getOaFlow(id)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "æ¥çä¸åæ ¼å¤ççé¢") |
| | | @GetMapping("/getUnqualifiedHandler") |
| | | public Result getUnqualifiedHandler(Integer id){ |
| | | return Result.success(unqualifiedHandlerService.getUnqualifiedHandler(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "å é¤ä¸åæ ¼å¤ç") |
| | | @DeleteMapping("/deleteUnqualifiedHandler") |
| | | public Result deleteUnqualifiedHandler(Integer id) { |
| | | return Result.success(unqualifiedHandlerService.deleteUnqualifiedHandler(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "ä¸è½½éä»¶") |
| | | @GetMapping("/downFile") |
| | |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @ApiOperation(value = "导åºä¸åæ ¼å¤çè®°å½") |
| | | @GetMapping("/exportUnqualifiedHandler") |
| | | public void exportUnqualifiedHandler(UnqualifiedHandlerDto unqualifiedHandlerDto,HttpServletResponse response) { |
| | | unqualifiedHandlerService.exportUnqualifiedHandler(unqualifiedHandlerDto,response); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @ApiModelProperty("å") |
| | | private String contract; |
| | | |
| | | @ApiModelProperty("OAæµç¨ç¶æ") |
| | | private String operation; |
| | | |
| | | @ApiModelProperty("订åå·") |
| | | private String orderNo; |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime invalidDate; |
| | | |
| | | |
| | | @ApiModelProperty("å®¡æ¹æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime approvedDate; |
| | |
| | | @ApiModelProperty("éè´åä½") |
| | | private String buyUnitMeas; |
| | | |
| | | |
| | | private Integer isSource; |
| | | |
| | | private Integer number; |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime receiverDate; |
| | | |
| | | |
| | | @ApiModelProperty("éä»¶å表") |
| | | private List<InsUnqualifiedHandlerFile> unqualifiedHandlerFiles; |
| | | |
| | | /** |
| | | * åé¦å¼å§æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "åé¦å¼å§æ¥æ") |
| | | private String feedbackStartTime; |
| | | |
| | | /** |
| | | * åé¦ç»ææ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "åé¦ç»ææ¥æ") |
| | | private String feedbackEndTime; |
| | | |
| | | /** |
| | | * ç©æå±æ§ |
| | | */ |
| | | @ApiModelProperty(value = "ç©æå±æ§") |
| | | private String materialProp; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDate; |
| | | |
| | | @Data |
| | | public class InsUnqualifiedHandlerExcelData { |
| | | |
| | | @ExcelProperty("å") |
| | | private String contract; |
| | | |
| | | @ExcelProperty(value = "ç¼å·") |
| | | private String no; |
| | | |
| | | @ExcelProperty("OAæµç¨ç¶æ") |
| | | private String operation; |
| | | |
| | | @ExcelProperty("订åå·") |
| | | private String orderNo; |
| | | |
| | | @ExcelProperty("é¶ä»¶å·") |
| | | private String partNo; |
| | | |
| | | @ExcelProperty("é¶ä»¶æè¿°") |
| | | private String partDesc; |
| | | |
| | | @ExcelProperty("ç©æå±æ§") |
| | | private String materialProp; |
| | | |
| | | @ExcelProperty(value = "ç©æåç§°") |
| | | private String materialName; |
| | | |
| | | @ExcelProperty(value = "çäº§æ¹æ¬¡") |
| | | private String productionBatch; |
| | | |
| | | @ExcelProperty(value = "å°è´§æ°é") |
| | | private String cargoQuantity; |
| | | |
| | | @ExcelProperty(value = "è§æ ¼åå·") |
| | | private String specsModels; |
| | | |
| | | @ExcelProperty(value = "æ¥æ£æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate inspectTime; |
| | | |
| | | @ExcelProperty(value = "åé¦äºº") |
| | | private String feedbackUser; |
| | | |
| | | @ExcelProperty(value = "å馿¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate feedbackTime; |
| | | |
| | | @ExcelProperty(value = "åç±»") |
| | | private String classification; |
| | | |
| | | @ExcelProperty(value = "ä¸åæ ¼å½å±") |
| | | private String offGradeAscription; |
| | | |
| | | @ExcelProperty(value = "ä¸åæ ¼æè¿°") |
| | | private String unqualifiedDesc; |
| | | |
| | | @ExcelProperty("ä¾åºååç§°") |
| | | private String supplierName; |
| | | |
| | | } |
| | |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @Mapper |
| | | public interface InsUnqualifiedHandlerMapper extends BaseMapper<InsUnqualifiedHandler> { |
| | | |
| | | IPage<UnqualifiedHandlerVO> selectPageList(IPage<UnqualifiedHandlerVO> page, @Param("ew")QueryWrapper<UnqualifiedHandlerDto> ew); |
| | | IPage<UnqualifiedHandlerVO> selectPageList(IPage<UnqualifiedHandlerVO> page, @Param("ew")QueryWrapper<UnqualifiedHandlerDto> ew, @Param("feedbackStartDate") String feedbackStartDate,@Param("feedbackEndDate") String feedbackEndDate); |
| | | |
| | | UnqualifiedHandlerVO findById(@Param("id") Long id); |
| | | |
| | |
| | | import com.ruoyi.inspect.pojo.InsUnqualifiedHandler; |
| | | import com.ruoyi.inspect.vo.UnqualifiedHandlerVO; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | UnqualifiedHandlerDto getUnqualifiedHandler(Integer id); |
| | | |
| | | boolean deleteUnqualifiedHandler(Integer id); |
| | | |
| | | void exportUnqualifiedHandler(UnqualifiedHandlerDto unqualifiedHandlerDto, HttpServletResponse response); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * ä½¿ç¨æ£å表达å¼å»é¤å符串æåä¸ä¸ª"-"åå
¶åé¢çææå
容 |
| | | * @param str å¾
å¤ççå符串ï¼å
许为nullï¼ |
| | | * @return å¤çåçå符串ï¼nullè¿ånullï¼æ "-"è¿ååå符串 |
| | | */ |
| | | public static String removeLastHyphenAndContent(String str) { |
| | | // ç©ºå¼æ ¡éªï¼é¿å
NullPointerException |
| | | if (str == null || str.isEmpty()) { |
| | | return str; |
| | | } |
| | | // æ£å表达å¼ï¼å¹é
æåä¸ä¸ª"-"åå
¶åé¢çææå
容 |
| | | String regex = "-[^-]*$"; |
| | | // æ¿æ¢å¹é
çå
容为空å符串 |
| | | return str.replaceAll(regex, ""); |
| | | } |
| | | |
| | | /** |
| | | * å°æ¥åçæ |
| | | * |
| | | * @param orderId |
| | |
| | | IfsPartPropsRecord ifsPartPropsRecord = ifsPartPropsRecordMapper.selectOne(Wrappers.<IfsPartPropsRecord>lambdaQuery() |
| | | .eq(IfsPartPropsRecord::getIfsInventoryId, ifsInventoryQuantity.getId())); |
| | | if (Objects.nonNull(ifsPartPropsRecord)) { |
| | | enterFactoryReport.setOuterColor(ifsPartPropsRecord.getOuterColor()); |
| | | enterFactoryReport.setOuterColor(StringUtils.equals(ifsPartPropsRecord.getOuterColor(),"/")?ifsPartPropsRecord.getInsulationColor():ifsPartPropsRecord.getOuterColor()); |
| | | } |
| | | enterFactoryReport.setQtyArrived(ifsInventoryQuantity.getQtyArrived() == null ? "" : |
| | | ifsInventoryQuantity.getQtyArrived().stripTrailingZeros().toPlainString() + ifsInventoryQuantity.getBuyUnitMeas()); |
| | |
| | | //æ¥è¯¢æ£éªåæ¶æ¯ |
| | | InsSampleUserVO insSampleUser = insSampleUserMapper.selectUserNameByOrderId(orderId); |
| | | if (Objects.nonNull(insSampleUser)) { |
| | | enterFactoryReport.setPartDesc(insSampleUser.getModel()); |
| | | enterFactoryReport.setPartDesc(removeLastHyphenAndContent(insSampleUser.getModel())); |
| | | enterFactoryReport.setInspector(insSampleUser.getInspector()); |
| | | enterFactoryReport.setInspectDate(insSampleUser.getInspectDate()); |
| | | } |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.hutool.core.io.IoUtil; |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.support.ExcelTypeEnum; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.oa.OAProcess; |
| | | import com.ruoyi.common.oa.OAProperty; |
| | | import com.ruoyi.common.oa.OAResult; |
| | |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.dto.PushOADto; |
| | | import com.ruoyi.inspect.dto.UnqualifiedHandlerDto; |
| | | import com.ruoyi.inspect.excel.InsUnqualifiedHandlerExcelData; |
| | | import com.ruoyi.inspect.mapper.InsOrderMapper; |
| | | import com.ruoyi.inspect.mapper.InsUnqualifiedHandlerMapper; |
| | | import com.ruoyi.inspect.pojo.CommonOa; |
| | |
| | | import com.ruoyi.inspect.service.InsUnqualifiedHandlerService; |
| | | import com.ruoyi.inspect.vo.UnqualifiedHandlerVO; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.system.service.ISysDictDataService; |
| | | import com.ruoyi.system.service.ISysDictTypeService; |
| | | import com.ruoyi.system.service.UserService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Isolation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.net.URLEncoder; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.time.LocalDate; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author 27233 |
| | |
| | | private InsUnqualifiedHandlerFileService insUnqualifiedHandlerFileService; |
| | | @Resource |
| | | private InsOrderMapper insOrderMapper; |
| | | @Resource |
| | | private ISysDictTypeService sysDictTypeService; |
| | | |
| | | |
| | | @Override |
| | | public IPage<UnqualifiedHandlerVO> pageList(Page page, UnqualifiedHandlerDto unqualifiedHandlerDto) { |
| | | return baseMapper.selectPageList(page, QueryWrappers.queryWrappers(unqualifiedHandlerDto)); |
| | | String feedbackStartDate = unqualifiedHandlerDto.getFeedbackStartTime(); |
| | | String feedbackEndDate = unqualifiedHandlerDto.getFeedbackEndTime(); |
| | | unqualifiedHandlerDto.setFeedbackStartTime(null); |
| | | unqualifiedHandlerDto.setFeedbackEndTime(null); |
| | | return baseMapper.selectPageList(page, QueryWrappers.queryWrappers(unqualifiedHandlerDto),feedbackStartDate,feedbackEndDate); |
| | | } |
| | | |
| | | @Override |
| | | public void exportUnqualifiedHandler(UnqualifiedHandlerDto unqualifiedHandlerDto, HttpServletResponse response) { |
| | | response.reset(); |
| | | try{ |
| | | //æ¥è¯¢åå
¸ |
| | | List<SysDictData> materialPropType = sysDictTypeService.selectDictDataByType("material_prop_type"); |
| | | //æ¥è¯¢ä¸åæ ¼å¤çè®°å½ |
| | | IPage<UnqualifiedHandlerVO> pageList = pageList(new Page<>(-1, -1), unqualifiedHandlerDto); |
| | | List<InsUnqualifiedHandlerExcelData> records = pageList.getRecords().stream().map(m->{ |
| | | InsUnqualifiedHandlerExcelData handlerExcelData = new InsUnqualifiedHandlerExcelData(); |
| | | BeanUtil.copyProperties(m,handlerExcelData); |
| | | handlerExcelData.setMaterialProp(materialPropType.stream().filter(f-> StringUtils.equals(f.getDictValue(),handlerExcelData.getMaterialProp())).findFirst().orElse(new SysDictData()).getDictLabel()); |
| | | if(StringUtils.equals(handlerExcelData.getClassification(),"0")){ |
| | | handlerExcelData.setClassification("ä¸ç±»ä¸åæ ¼"); |
| | | }else if(StringUtils.equals(handlerExcelData.getClassification(),"1")){ |
| | | handlerExcelData.setClassification("äºç±»ä¸åæ ¼"); |
| | | } |
| | | if(StringUtils.equals(handlerExcelData.getOffGradeAscription(),"0")){ |
| | | handlerExcelData.setOffGradeAscription("ç产åé¦ä¸åæ ¼"); |
| | | }else if(StringUtils.equals(handlerExcelData.getOffGradeAscription(),"1")){ |
| | | handlerExcelData.setOffGradeAscription("æ£æµä¸åæ ¼"); |
| | | } |
| | | return handlerExcelData; |
| | | }).collect(Collectors.toList()); |
| | | //设置response |
| | | String fileName = "ä¸åæ ¼å¤çè®°å½" + ExcelTypeEnum.XLSX.getValue(); |
| | | fileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8.toString()); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setHeader("Cache-Control", "no-cache"); |
| | | response.setHeader("Content-Disposition", "attachment;filename=" + fileName); |
| | | response.setHeader("Access-Control-Expose-Headers", "Content-Disposition"); |
| | | //å¯¼åº |
| | | |
| | | EasyExcel.write(response.getOutputStream(), InsUnqualifiedHandlerExcelData.class) |
| | | .sheet() |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) |
| | | .doWrite(records); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("ä¸åæ ¼å¤çè®°å½å¯¼åºå¤±è´¥"); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | |
| | | //è·åä¸åæ ¼å¤çè®°å½ |
| | | UnqualifiedHandlerVO vo = baseMapper.findById(pushOADto.getHandlerId()); |
| | | |
| | | if (vo.getRequestId() != null) { |
| | | throw new ErrorException("该ä¸åæ ¼å¤çå·²æäº¤è¿OA"); |
| | | } |
| | | System.out.println(vo); |
| | | // if (vo.getRequestId() != null) { |
| | | // throw new ErrorException("该ä¸åæ ¼å¤çå·²æäº¤è¿OA"); |
| | | // } |
| | | |
| | | //æäº¤oaç¸å
³å段èµå¼ |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class,isolation = Isolation.READ_COMMITTED) |
| | | public boolean updateUnqualifiedHandler(UnqualifiedHandlerDto unqualifiedHandlerDto) { |
| | | // å é¤éä»¶, éæ°æ·»å |
| | | insUnqualifiedHandlerFileService.remove(Wrappers.<InsUnqualifiedHandlerFile>lambdaQuery() |
| | |
| | | } |
| | | insUnqualifiedHandlerFileService.updateBatchById(unqualifiedHandlerDto.getUnqualifiedHandlerFiles()); |
| | | } |
| | | |
| | | return this.updateById(unqualifiedHandlerDto); |
| | | boolean isUpdated = this.updateById(unqualifiedHandlerDto); |
| | | if(isUpdated){ |
| | | //æ¨éOA |
| | | PushOADto pushOADto = new PushOADto(); |
| | | pushOADto.setHandlerId(unqualifiedHandlerDto.getId()); |
| | | pushOA(pushOADto); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty("å") |
| | | private String contract; |
| | | |
| | | @ApiModelProperty("ç©æå±æ§") |
| | | private String materialProp; |
| | | |
| | | @ApiModelProperty("订åå·") |
| | | private String orderNo; |
| | | |
| | |
| | | @ApiModelProperty("æåæ°é") |
| | | private Integer number; |
| | | |
| | | @ApiModelProperty("OAæµç¨ç¶æ") |
| | | private String operation; |
| | | |
| | | /** |
| | | * æ£éªç¶æ |
| | |
| | | group by io.id) a |
| | | </select> |
| | | <select id="selectOrderInfoById" resultType="com.ruoyi.inspect.vo.IfsOrderVO"> |
| | | select io.*, |
| | | iiq.contract, |
| | | select |
| | | io.id, |
| | | io.entrust_code, |
| | | io.custom, |
| | | io.company, |
| | | io.code, |
| | | io.type, |
| | | io.appointed, |
| | | io.state, |
| | | io.tell, |
| | | io.remark, |
| | | io.remark_en, |
| | | io.otc_code, |
| | | io.user_id, |
| | | io.mating, |
| | | io.create_user, |
| | | io.create_time, |
| | | io.update_user, |
| | | io.update_time, |
| | | io.send_time, |
| | | io.ins_state, |
| | | io.factory, |
| | | io.laboratory, |
| | | io.sample_type, |
| | | io.sample, |
| | | io.ins_result, |
| | | io.ins_time, |
| | | io.processing, |
| | | io.is_leave, |
| | | io.order_type, |
| | | io.send, |
| | | io.form_type, |
| | | io.phone, |
| | | io.examine_time, |
| | | io.engineering, |
| | | io.engineering_en, |
| | | io.production, |
| | | io.production_en, |
| | | io.company_id, |
| | | io.prepare_user_id, |
| | | io.prepare_user, |
| | | io.prepare_user_en, |
| | | io.prepare_code, |
| | | io.out_entrust_code, |
| | | io.is_revocation, |
| | | io.revocation_ins_product_ids, |
| | | io.type_source, |
| | | io.ifs_inventory_id, |
| | | io.test_quantity, |
| | | io.part_detail, |
| | | io.is_exemption, |
| | | io.temperature, |
| | | io.humidity, |
| | | io.sample_status, |
| | | io.quarter_item_id, |
| | | io.sample_view, |
| | | io.sample_view_en, |
| | | io.is_first_submit, |
| | | io.first_submit_date, |
| | | io.update_batch_no, |
| | | io.part_desc, |
| | | io.supplier_name, |
| | | iiq.is_split_order, |
| | | iiq.order_type AS ifs_order_type, |
| | | iiq.part_no, |
| | |
| | | when ipps.lettering_info is not null and ipps.lettering_info!='' then ipps.lettering_info |
| | | else isor.lettering_info |
| | | end AS lettering_info, |
| | | case |
| | | when io.ifs_inventory_id is not null and io.ifs_inventory_id!='' then iiq.contract |
| | | else io.contract |
| | | end AS contract, |
| | | ipps.start_meter_mark, |
| | | ipps.end_meter_mark |
| | | from ins_order io left join ifs_inventory_quantity iiq on io.ifs_inventory_id=iiq.id |
| | |
| | | unqualified_desc,inventory_quantity_id |
| | | </sql> |
| | | <select id="selectPageList" resultType="com.ruoyi.inspect.vo.UnqualifiedHandlerVO"> |
| | | select * from (select |
| | | iiq.*, |
| | | iuh.id as handler_id, |
| | | iuh.no, |
| | | iuh.material_name, |
| | | iuh.production_batch, |
| | | iuh.cargo_quantity, |
| | | iuh.specs_models, |
| | | iuh.inspect_time, |
| | | iuh.feedback_user, |
| | | iuh.feedback_time, |
| | | iuh.classification, |
| | | iuh.off_grade_ascription, |
| | | iuh.unqualified_desc, |
| | | iuh.inventory_quantity_id, |
| | | iuh.oa_state, |
| | | iuh.request_id, |
| | | iuh.file_url, |
| | | iuh.headline |
| | | from |
| | | ins_unqualified_handler iuh |
| | | inner join |
| | | ifs_inventory_quantity iiq |
| | | on |
| | | iuh.inventory_quantity_id = iiq.id)tempA |
| | | select |
| | | * |
| | | from ( |
| | | select |
| | | iiq.*, |
| | | iuh.id as handler_id, |
| | | iuh.no, |
| | | iuh.material_name, |
| | | iuh.production_batch, |
| | | iuh.cargo_quantity, |
| | | iuh.specs_models, |
| | | iuh.inspect_time, |
| | | iuh.feedback_user, |
| | | iuh.feedback_time, |
| | | iuh.classification, |
| | | iuh.off_grade_ascription, |
| | | iuh.unqualified_desc, |
| | | iuh.inventory_quantity_id, |
| | | iuh.oa_state, |
| | | iuh.request_id, |
| | | iuh.file_url, |
| | | iuh.headline, |
| | | coa.operation |
| | | from |
| | | ins_unqualified_handler iuh |
| | | inner join |
| | | ifs_inventory_quantity iiq |
| | | on |
| | | iuh.inventory_quantity_id = iiq.id |
| | | LEFT JOIN ( |
| | | SELECT |
| | | *, |
| | | ROW_NUMBER() OVER (PARTITION BY workflow_id ORDER BY approval_date DESC,approval_time DESC, id DESC) AS rn |
| | | FROM |
| | | common_oa |
| | | ) AS coa ON iuh.request_id = coa.workflow_id AND coa.rn = 1 |
| | | )tempA |
| | | <where> |
| | | <if test="feedbackStartDate!=null and feedbackEndDate !=null"> |
| | | AND feedback_time between #{feedbackStartDate} AND #{feedbackEndDate} |
| | | </if> |
| | | </where> |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | |
| | | - contract: ZTNS |
| | | ip: http://10.1.51.128 |
| | | user: lims |
| | | password: qCzOMJlqE8TYOHDWGva/Tw== |
| | | password: q1CItm6Zl7P4SQkfczu/oQ== |
| | | - contract: KJNS |
| | | ip: http://10.1.203.177 |
| | | user: lims |
| | | password: qCzOMJlqE8TYOHDWGva/Tw== |
| | | password: q1CItm6Zl7P4SQkfczu/oQ== |
| | | |
| | | # 夿³¨ 18083å¯ç ï¼zttZTT123!@ |
| | | mqtt: |