basic-server/src/main/java/com/ruoyi/basic/controller/CapacityScopeController.java
@@ -60,7 +60,7 @@ private StandardTemplateService standardTemplateService; @ApiOperation(value = "è·åé¡¹ç®æ£éªåæ°å表") @PostMapping("/selectItemParameterList") @GetMapping("/selectItemParameterList") public Result selectItemParameterList(Page page,StructureItemParameter itemParameter) throws Exception { return Result.success(capacityScopeService.selectItemParameterList(page, itemParameter)); } @@ -72,7 +72,7 @@ } @ApiOperation(value = "å é¤é¡¹ç®æ£éªåæ°") @PostMapping("/delItemParameter") @DeleteMapping("/delItemParameter") public Result<?> delItemParameter(Integer id) { return Result.success(capacityScopeService.delItemParameter(id)); } @@ -84,7 +84,7 @@ } @ApiOperation(value = "è·åæ£éªå¯¹è±¡") @PostMapping("/selectTestObjectList") @GetMapping("/selectTestObjectList") public Result selectTestObjectList(Page page,PageTestObjectDto pageTestObjectDto) throws Exception { return Result.success(capacityScopeService.selectTestObjectList(page, pageTestObjectDto)); } @@ -96,7 +96,7 @@ } @ApiOperation(value = "å 餿£éªå¯¹è±¡") @PostMapping("/delTestObject") @DeleteMapping("/delTestObject") public Result<?> delTestObject(Integer id) { return Result.success(capacityScopeService.delTestObject(id)); } @@ -114,13 +114,13 @@ } @ApiOperation(value = "设å¤éé¢éæ©æ£éªé¡¹ç®(æ å½¢ç»æ)") @PostMapping("/getInsProduction") @GetMapping("/getInsProduction") public Result getInsProduction() { return Result.success(capacityScopeService.getInsProduction()); } @ApiOperation(value = "ç»´æ¤æ£éªå¯¹è±¡ç产å") @PostMapping("/selectProductListByObjectId") @GetMapping("/selectProductListByObjectId") public Result selectProductListByObjectId(Page page,ProductDTO1 productDTO) throws Exception { return Result.success(productService.selectProductListByObjectId(page, productDTO)); } @@ -138,7 +138,7 @@ } @ApiOperation(value = "å é¤äº§å") @PostMapping("/delProduct") @DeleteMapping("/delProduct") public Result delProduct(Integer id) { return Result.success(productService.delProduct(id)); } basic-server/src/main/java/com/ruoyi/basic/controller/CertificationController.java
@@ -7,10 +7,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.*; @Api(tags = "èµè´¨è¯´æ") @AllArgsConstructor @@ -23,7 +20,7 @@ @ApiOperation(value = "æ¥è¯¢èµè´¨æç»å表") @PostMapping("/getCertificationDetail") @GetMapping("/getCertificationDetail") public Result getCertificationDetail(Page page,Certification certification) { return Result.success(certificationService.getCertificationDetail(page, certification)); } @@ -34,8 +31,8 @@ return Result.success(certificationService.addCertificationDetail(certification)); } @ApiOperation(value = "å é¤èµè´¨æç»å表") @PostMapping("/delCertificationDetail") public Result<?> delCertificationDetail( String ids) { @DeleteMapping("/delCertificationDetail") public Result<?> delCertificationDetail(String ids) { return Result.success(certificationService.delCertificationDetail(ids)); } } basic-server/src/main/java/com/ruoyi/basic/controller/LaboratoryController.java
@@ -24,7 +24,7 @@ private LaboratoryService laboratoryService; @ApiOperation(value = "æ¥è¯¢å®éªå®¤ç®¡çå表") @PostMapping("/selectItemParameter") @GetMapping("/selectItemParameter") public Result selectItemParameter(Page page ,Laboratory itemParameter) { return Result.success(laboratoryService.selectItemParameter(page, itemParameter)); } @@ -36,7 +36,7 @@ } @ApiOperation(value = "å é¤å®éªå®¤åæ°") @PostMapping("/delParameter") @DeleteMapping("/delParameter") public Result<?> delParameter(Integer id) { return Result.success(laboratoryService.delParameter(id)); } basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java
@@ -7,10 +7,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.*; @RestController @AllArgsConstructor @@ -21,7 +18,7 @@ private ProductPartService productPartService; @ApiOperation(value = "æ ¹æ®äº§åidæ¥è¯¢é¶ä»¶") @PostMapping("/selectByProductId") @GetMapping("/selectByProductId") public Result selectByProductId(Page page,ProductPart productPart){ return Result.success(productPartService.selectByProductId(page,productPart)); } @@ -41,7 +38,7 @@ } @ApiOperation(value = "å é¤äº§åé¶ä»¶") @PostMapping("/deleteProductPart") @DeleteMapping("/deleteProductPart") public Result deleteProductPart(Integer id) { productPartService.removeById(id); return Result.success(); basic-server/src/main/java/com/ruoyi/basic/controller/ProductSupplierDensityController.java
@@ -8,10 +8,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.*; /** @@ -29,7 +26,7 @@ private ProductSupplierDensityService productSupplierDensityService; @ApiOperation(value = "æ ¹æ®äº§åidæ¥è¯¢åå®¶å¯åº¦ç»å®") @PostMapping("/selectSupplierDensityByProductId") @GetMapping("/selectSupplierDensityByProductId") public Result selectSupplierDensityByProductId(Page page,ProductSupplierDensity supplierDensity) { return Result.success(productSupplierDensityService.selectByProductId(page, supplierDensity)); } @@ -49,7 +46,7 @@ } @ApiOperation(value = "å é¤åå®¶å¯åº¦ç»å®") @PostMapping("/deleteProductSupplierDensity") @DeleteMapping("/deleteProductSupplierDensity") public Result deleteProductSupplierDensity(Integer id) { productSupplierDensityService.removeById(id); return Result.success(); basic-server/src/main/java/com/ruoyi/basic/controller/SealController.java
@@ -8,10 +8,7 @@ import com.ruoyi.common.utils.JackSonUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.util.List; @@ -43,7 +40,7 @@ } @ApiOperation(value="æ¥è¯¢å°ç« å表") @PostMapping("/selectSeal") @GetMapping("/selectSeal") public Result selectSeal(Page page,Seal seal) { return Result.success(sealService.selectSeal(page,seal)); } basic-server/src/main/java/com/ruoyi/basic/controller/StandardMethodController.java
@@ -21,7 +21,7 @@ private StandardMethodService standardMethodService; @ApiOperation(value = "è·åæ åæ¹æ³å表") @PostMapping("/selectStandardMethodList") @GetMapping("/selectStandardMethodList") public Result selectStandardMethodList(Page page,StandardMethod standardMethod) throws Exception { return Result.success(standardMethodService.selectStandardMethodList(page, standardMethod)); } @@ -39,7 +39,7 @@ } @ApiOperation(value = "å 餿 åæ¹æ³") @PostMapping("/delStandardMethod") @DeleteMapping("/delStandardMethod") public Result<?> delStandardMethod(Integer id) { return Result.success(standardMethodService.delStandardMethod(id)); } basic-server/src/main/java/com/ruoyi/basic/controller/StandardTemplateController.java
@@ -18,7 +18,7 @@ private StandardTemplateService standardTemplateService; @ApiOperation(value = "è·ååå§è®°å½æ¨¡æ¿å表") @PostMapping("/selectStandardTemplatePageList") @GetMapping("/selectStandardTemplatePageList") public Result selectStandardTemplatePageList(Page page,StandardTemplate standardTemplate) throws Exception { return Result.success(standardTemplateService.selectStandardTemplatePageList(page, standardTemplate)); } @@ -36,7 +36,7 @@ } @ApiOperation(value = "å é¤åå§è®°å½æ¨¡æ¿") @PostMapping("/delStandardTemplate") @DeleteMapping("/delStandardTemplate") public Result<?> delStandardTemplate(Integer id) { return Result.success(standardTemplateService.delStandardTemplate(id)); } @@ -48,7 +48,7 @@ } @ApiOperation(value = "éè¿æ¨¡æ¿idè·åæ£éªé¡¹æ¨¡æ¿å 容") @PostMapping("/getStandTempThingById") @GetMapping("/getStandTempThingById") public Result<?> getStandTempThingById(Integer id) { return Result.success(standardTemplateService.getStandTempThingById(id)); } basic-server/src/main/java/com/ruoyi/basic/controller/StandardTreeController.java
@@ -59,38 +59,42 @@ @ApiOperation(value = "ç»æ åæ æ·»å æ£éªæ å") @PostMapping("/addStandardMethodList") public Result addStandardMethodList(String tree, Integer standardId) { public Result addStandardMethodList(@RequestBody Map<String, Object> map) { Integer standardId = (Integer) map.get("standardId"); String tree = (String) map.get("tree"); return Result.success(standardMethodListService.addStandardMethodList(standardId, tree)); } @ApiOperation(value = "æ ¹æ®æ åæ è¿è¡æ åæ¥è¯¢") @PostMapping("/selectsStandardMethodByFLSSM") @GetMapping("/selectsStandardMethodByFLSSM") public Result selectsStandardMethodByFLSSM(String tree) { return Result.success(standardMethodListService.selectsStandardMethodByFLSSM(tree)); } @ApiOperation(value = "ä¿®æ¹æ ååºä¸çå 容") @PostMapping("/upStandardProductList") public Result upStandardProductList(String str) { public Result upStandardProductList(@RequestBody Map<String, String> map) { String str = map.get("str"); StandardProductList list = JSON.parseObject(str, StandardProductList.class); return Result.success(standardProductListService.upStandardProductList(list)); } @ApiOperation(value = "ä¿®æ¹æ ååºåºé´") @PostMapping("/updateSection") public Result updateSection(String str) { public Result updateSection(@RequestBody Map<String, String> map) { String str = map.get("str"); StandardProductList list = JSON.parseObject(str, StandardProductList.class); return Result.success(standardProductListService.updateSection(list)); } @ApiOperation(value = "å 餿 åæ ä¸çæ£éªæ å") @PostMapping("/delStandardMethodByFLSSM") @DeleteMapping("/delStandardMethodByFLSSM") public Result delStandardMethodByFLSSM(Integer id) { return Result.success(standardMethodListService.delStandardMethodByFLSSM(id)); } @ApiOperation(value = "å 餿 åæ ä¸çæ£éªé¡¹ç®") @PostMapping("/delStandardProductByIds") @DeleteMapping("/delStandardProductByIds") public Result delStandardProductByIds(String ids) { JSONArray lists = JSON.parseArray(ids); return Result.success(standardProductListService.delStandardProduct(lists)); @@ -98,12 +102,14 @@ @ApiOperation(value = "æ°å¢æ åæ ä¸çæ£éªé¡¹ç®") @PostMapping("/addStandardProduct") public Result addStandardProduct(String ids, String tree) { public Result addStandardProduct(@RequestBody Map<String, String> map) { String ids = map.get("ids"); String tree = map.get("tree"); return Result.success(standardTreeService.addStandardProduct(ids, tree)); } @ApiOperation(value = "å 餿 åæ çå±çº§") @PostMapping("/delStandardTree") @DeleteMapping("/delStandardTree") public Result delStandardTree(String tree) { return Result.success(standardTreeService.delStandardTree(tree)); } @@ -115,19 +121,19 @@ } @ApiOperation(value = "éè¿æ£éªæ åæ¥è¯¢æ£éªé¡¹ç®") @PostMapping("/selectStandardProductListByMethodId") @GetMapping("/selectStandardProductListByMethodId") public Result selectStandardProductListByMethodId(Integer id, String tree, Integer page) { return Result.success(standardProductListService.selectStandardProductListByMethodId(id, tree, page)); } @ApiOperation(value = "æ¹éç¼è¾æ¥è¯¢æ£éªé¡¹ç®") @PostMapping("/selectStandardProductByMethodId") @ApiOperation(value = "æ¹éæ¥è¯¢æ£éªé¡¹ç®") @GetMapping("/selectStandardProductByMethodId") public Result selectStandardProductByMethodId(Integer id, String tree, Integer page, String laboratory, String item, String items) { return Result.success(standardProductListService.selectStandardProductByMethodId(id, tree, page, laboratory, item, items)); } @ApiOperation(value = "æ¹éç¼è¾æ¥è¯¢æææ£éªé¡¹ç®åæ£éªå项æä¸¾") @PostMapping("/selectStandardProductEnumByMethodId") @ApiOperation(value = "æ¹éæ¥è¯¢æææ£éªé¡¹ç®åæ£éªå项æä¸¾") @GetMapping("/selectStandardProductEnumByMethodId") public Result selectStandardProductEnumByMethodId(Integer id, String tree, String item) { return Result.success(standardProductListService.selectStandardProductEnumByMethodId(id, tree, item)); } @@ -154,8 +160,8 @@ return Result.success(standardTreeService.upStandardProducts(product)); } @PostMapping("/getStandTreeBySampleType") @ApiOperation("ä» è·åå 纤çåå·") @GetMapping("/getStandTreeBySampleType") public Result<?> getStandTreeBySampleType(String laboratory, String sampleType) { return Result.success(standardTreeService.getStandTreeBySampleType(laboratory, sampleType)); } @@ -173,21 +179,27 @@ @ApiOperation("éç½®æ ååºåä»·") @PostMapping("/resetTreeOfPrice") public Result resetTreeOfPrice(String tree, Integer standardId) { public Result resetTreeOfPrice(@RequestBody Map<String, Object> map) { String tree = (String) map.get("tree"); Integer standardId = (Integer) map.get("standardId"); standardTreeService.resetTreeOfPrice(tree, standardId); return Result.success(); } @ApiOperation("éç½®æ ååºå·¥æ¶ç³»æ°") @PostMapping("/resetTreeOfHour") public Result resetTreeOfHour(String tree, Integer standardId) { public Result resetTreeOfHour(@RequestBody Map<String, Object> map) { String tree = (String) map.get("tree"); Integer standardId = (Integer) map.get("standardId"); standardTreeService.resetTreeOfHour(tree, standardId); return Result.success(); } @ApiOperation("éç½®æ ååºè¦æ±æè¿°åè¦æ±å¼") @PostMapping("/resetTreeOfAsk") public Result resetTreeOfAsk(String tree, Integer standardId) { public Result resetTreeOfAsk(@RequestBody Map<String, Object> map) { String tree = (String) map.get("tree"); Integer standardId = (Integer) map.get("standardId"); standardTreeService.resetTreeOfAsk(tree, standardId); return Result.success(); } @@ -217,27 +229,29 @@ @ApiOperation(value = "æ ¹æ®äº§åidæ¥è¯¢åå®¶è¦æ±å¼ç»å®") @PostMapping("/selectSupplierAsk") public Result selectSupplierAsk(StandardProductListSupplierAsk supplierAsk) throws Exception { public Result selectSupplierAsk(@RequestBody StandardProductListSupplierAsk supplierAsk) throws Exception { return Result.success(standardProductListSupplierAskService.selectByProductId(supplierAsk)); } @ApiOperation(value = "æ°å¢åå®¶è¦æ±å¼ç»å®") @PostMapping("/addProductSupplierAsk") public Result addProductSupplierAsk(String str) { public Result addProductSupplierAsk(@RequestBody Map<String, String> map) { String str = map.get("str"); StandardProductListSupplierAsk supplierAsk = JSON.parseObject(str, StandardProductListSupplierAsk.class); return Result.success(standardProductListSupplierAskService.addProductSupplierAsk(supplierAsk)); } @ApiOperation(value = "æ´æ°åå®¶è¦æ±å¼ç»å®") @PostMapping("/updateProductSupplierAsk") public Result updateProductSupplierAsk(String str) { public Result updateProductSupplierAsk(@RequestBody Map<String, String> map) { String str = map.get("str"); StandardProductListSupplierAsk supplierAsk = JSON.parseObject(str, StandardProductListSupplierAsk.class); standardProductListSupplierAskService.updateProductSupplierAsk(supplierAsk); return Result.success(); } @ApiOperation(value = "å é¤åå®¶è¦æ±å¼ç»å®") @PostMapping("/deleteProductSupplierAsk") @DeleteMapping("/deleteProductSupplierAsk") public Result deleteProductSupplierAsk(Integer supplierAskId) { standardProductListSupplierAskService.removeById(supplierAskId); return Result.success(); basic-server/src/main/java/com/ruoyi/basic/controller/StructureTestObjectPartController.java
@@ -8,10 +8,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.*; /** @@ -29,7 +26,7 @@ private StructureTestObjectPartService structureTestObjectPartService; @ApiOperation(value = "æ ¹æ®æ£éªå¯¹è±¡idæ¥è¯¢é¶ä»¶") @PostMapping("/selectByTestObjectId") @GetMapping("/selectByTestObjectId") public Result selectByTestObjectId(Page page,StructureTestObjectPart structureTestObjectPart){ return Result.success(structureTestObjectPartService.selectByTestObjectId(page,structureTestObjectPart)); } @@ -49,7 +46,7 @@ } @ApiOperation(value = "å 餿£éªå¯¹è±¡é¶ä»¶") @PostMapping("/deleteTestObjectPart") @DeleteMapping("/deleteTestObjectPart") public Result deleteTestObjectPart(Integer id) { structureTestObjectPartService.removeById(id); return Result.success(); basic-server/src/main/java/com/ruoyi/basic/service/impl/ProductSupplierDensityServiceImpl.java
@@ -32,15 +32,6 @@ if (supplierDensity.getProductId() == null) { throw new BaseException("缺å°äº§å对象id"); } // æ¥è¯¢æ¹åå®¶æ¯å¦ç»å®è¿ // Long count = baseMapper.selectCount(Wrappers.<ProductSupplierDensity>lambdaQuery() // .eq(ProductSupplierDensity::getProductId, supplierDensity.getProductId()) // .eq(ProductSupplierDensity::getModel, supplierDensity) // .eq(ProductSupplierDensity::getSupplierName, supplierDensity.getSupplierName())); // if (count > 0){ // throw new BaseException("该产åå·²ç»å®è¿è¯¥åå®¶"); // } baseMapper.insert(supplierDensity); } @@ -49,15 +40,6 @@ if (supplierDensity.getProductId() == null) { throw new BaseException("缺å°äº§å对象id"); } // æ¥è¯¢æ¹åå®¶æ¯å¦ç»å®è¿ // Long count = baseMapper.selectCount(Wrappers.<ProductSupplierDensity>lambdaQuery() // .ne(ProductSupplierDensity::getId, supplierDensity.getId()) // .eq(ProductSupplierDensity::getProductId, supplierDensity.getProductId()) // .eq(ProductSupplierDensity::getModel, supplierDensity) // .eq(ProductSupplierDensity::getSupplierName, supplierDensity.getSupplierName())); // if (count > 0){ // throw new BaseException("该产åå·²ç»å®è¿è¯¥åå®¶"); // } baseMapper.updateById(supplierDensity); } } inspect-server/src/main/java/com/ruoyi/basic/controller/InsOrderController.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,302 @@ //package com.ruoyi.basic.controller; // //import com.alibaba.fastjson.JSON; //import com.alibaba.fastjson.JSONArray; //import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; //import com.baomidou.mybatisplus.core.toolkit.Wrappers; //import com.baomidou.mybatisplus.extension.plugins.pagination.Page; //import io.swagger.annotations.Api; //import io.swagger.annotations.ApiImplicitParam; //import io.swagger.annotations.ApiImplicitParams; //import io.swagger.annotations.ApiOperation; //import lombok.AllArgsConstructor; //import org.springframework.scheduling.annotation.Scheduled; //import org.springframework.web.bind.annotation.*; // //import javax.servlet.http.HttpServletResponse; //import java.time.LocalDateTime; //import java.time.format.DateTimeFormatter; //import java.util.List; //import java.util.Map; //import java.util.Objects; // //@RestController //@AllArgsConstructor //@RequestMapping("/insOrder") //@Api(tags="æ£éªå模å") //public class InsOrderController { // // private InsOrderService insOrderService; // // private InsSampleService insSampleService; // // private InsProductService insProductService; // // private IfsInventoryQuantityMapper ifsInventoryQuantityMapper; // // private InsOrderTemplateService insOrderTemplateService; // // //è·åæ£éªä¸åæ°æ® // @ApiOperation(value = "æ¥è¯¢å使£éªå") // @PostMapping("/selectInsOrderParameter") // public Result selectInsOrderParameter(@RequestBody Map<String, Object> data) throws Exception { // Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); // SampleOrderDto sampleOrderDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), SampleOrderDto.class); // return Result.success(insOrderService.selectInsOrderParameter(page, sampleOrderDto)); // } // // //ç¨äºæ£éªä¸ååºå«æ¥çææè®¢åååªæ¥çåä¸ä¸ªå§æåä½ç订å // @ApiOperation(value = "æ¥è¯¢æææ£éªå") // @PostMapping("/selectAllInsOrderParameter") // public Result selectAllInsOrderParameter() { // return Result.success(); // } // // // @ApiOperation(value = "æ£éªåé ") // @PostMapping("/upInsOrder") // public Result<?> upInsOrder(Integer orderId, Integer sampleId, String appointed, Integer userId,String sonLaboratory) { // return Result.success(insOrderService.upInsOrder(orderId, sampleId, appointed, userId,sonLaboratory)); // } // // @ApiOperation(value = "æ·»å æ£éªä¸åæ°æ®") // @PostMapping("/addInsOrder") // public Result<?> addInsOrder(String str) { // Map<String, Object> map = JSON.parseObject(str, Map.class); // JSONArray jsonArray = JSON.parseArray(map.get("list")+""); // List<SampleProductDto> list = jsonArray.toJavaList(SampleProductDto.class); // InsOrder insOrder = JSON.parseObject(JSON.toJSONString(map.get("insOrder")), InsOrder.class); // List<List<Integer>> pairing = JSON.parseArray(map.get("pairing")+""); // return Result.success(insOrderService.addInsOrder(list, insOrder, pairing)); // } // // @ApiOperation(value = "æ¥è¯¢è®¢åæé¿é¢è®¡æ¶é´") // @PostMapping("/selectOrderManDay") // public Result<?> selectOrderManDay(Integer id) { // int day = insProductService.selectOrderManDay(id); // return Result.success("æå", LocalDateTime.now().plusHours(day).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); // } // // @ApiOperation(value = "æ¥è¯¢æ£éªä¸åå 容详æ ") // @PostMapping("/getInsOrder") // public Result<?> getInsOrder(Integer orderId) { // return Result.success(insOrderService.getInsOrder(orderId)); // } // @ValueClassify("æ£éªä¸å") // @ApiOperation(value = "å®¡æ ¸æ£éªåè¿è¡ç¶æä¿®æ¹") // @ApiImplicitParams({ // @ApiImplicitParam(name = "id", value = "æ£éªåid", dataTypeClass = Integer.class), // @ApiImplicitParam(name = "state", value = "å®¡æ ¸ç»æ 1:éè¿ 2ï¼ä¸éè¿", dataTypeClass = Integer.class) // }) // // @PostMapping("/upInsOrderOfState") // public Result<?> upInsOrderOfState(@RequestBody InsOrder insOrder) { // return Result.success(insOrderService.upInsOrderOfState(insOrder)); // } // // @ApiOperation(value = "æ·»å æ£éªå模æ¿") // @PostMapping("/addInsOrderTemplate") // public Result<?> addInsOrderTemplate(@RequestBody InsOrderTemplate insOrderTemplate) { // return Result.success(insOrderTemplateService.addInsOrderTemplate(insOrderTemplate)); // } // // @ApiOperation(value = "æ¥è¯¢æ£éªå模æ¿") // @GetMapping("/selectInsOrderTemplate") // public Result<?> selectInsOrderTemplate(String company) { // return Result.success(insOrderTemplateService.selectInsOrderTemplate(company)); // } // // @ApiOperation(value = "éè¿æ£éªå模æ¿idè·åæ£éªå模æ¿å 容") // @PostMapping("/selectInsOrderTemplateById") // public Result<?> selectInsOrderTemplateById(Integer id) { // return Result.success("æå", insOrderTemplateService.selectInsOrderTemplateById(id)); // } // // @ApiOperation(value = "å 餿£éªå模æ¿") // @PostMapping("/delInsOrderTemplate") // public Result<?> delInsOrderTemplate(Integer id) { // return Result.success(insOrderTemplateService.delInsOrderTemplate(id)); // } // // @ApiOperation(value = "éè¿æ£éªåæ¥è¯¢æ£éªæ°æ®ï¼æ°æ®æ¥çï¼") // @PostMapping("/selectSampleAndProductByOrderId") // public Result<?> selectSampleAndProductByOrderId(@RequestBody Map<String, Object> data) throws Exception { // Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); // SampleProductDto2 sampleProductDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), SampleProductDto2.class); // return Result.success(insOrderService.selectSampleAndProductByOrderId(page, sampleProductDto)); // } // // @ApiOperation(value = "è´¹ç¨ç»è®¡") // @PostMapping("/costStatistics") // public Result<?> costStatistics(@RequestBody Map<String, Object> data) throws Exception { // Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); // CostStatisticsDto costStatisticsDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), CostStatisticsDto.class); // return Result.success(insOrderService.costStatistics(page, costStatisticsDto)); // } // // @ApiOperation(value = "è´¹ç¨ç»è®¡è·åæ»ä»·") // @PostMapping("/costStatistics2") // public Result<?> costStatistics2(@RequestBody Map<String, Object> data) throws Exception { // CostStatisticsDto costStatisticsDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), CostStatisticsDto.class); // return Result.success(insOrderService.costStatistics2(costStatisticsDto)); // } // // // @ApiOperation(value = "æ ·åç¼ºé·ææ°") // @PostMapping("/selectSampleDefects") // public Result selectSampleDefects(Integer size, Integer current, String inspectionItems, String orderNumber) { // return Result.success(insOrderService.selectSampleDefects(new Page<>(current, size),inspectionItems, orderNumber)); // } // // // @ApiOperation(value = "æ¤é") // @PutMapping("/updateStatus") // public Result<?> updateStatus(Integer id) { // insOrderService.updateStatus(id); // return Result.success(); // } // // //å¾ æ£çæ¤éçæ¥è¯¢å¾ æ£é¡¹ç® // @PostMapping("/selectNoProducts") // public Result<?> selectNoProducts(@RequestBody Map<String, Object> data,Integer orderId ,String ids) throws Exception { // Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); // InsProduct insProduct = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InsProduct.class); // return Result.success(insProductService.selectNoProducts(page, insProduct,orderId,ids)); // } // // // @ApiOperation(value = "å¾ æ£çæ¤é") // @PutMapping("/updateInspected") // public Result<?> updateInspected(Integer orderId, String ids, // @RequestParam(value = "typeSource",required = false) Integer typeSource, // @RequestParam(value = "ifsInventoryId",required = false) Integer ifsInventoryId){ // if(Objects.nonNull(typeSource) && typeSource == 1){ // ifsInventoryQuantityMapper.update(null,new LambdaUpdateWrapper<IfsInventoryQuantity>() // .set(IfsInventoryQuantity::getState,0) // .eq(IfsInventoryQuantity::getId,ifsInventoryId)); // insOrderService.update(null,new LambdaUpdateWrapper<InsOrder>().set(InsOrder::getState,-1).eq(InsOrder::getId,orderId)); // æ¤é // } // insProductService.updateInspected(orderId,ids); // return Result.success(); // } // // @ApiOperation(value = "å®¡æ ¸å¾ æ£æ¤é") // @PostMapping("/checkUpdate") // public Result<?> checkUpdate(Integer orderId,Integer state){ // insProductService.checkUpdate(orderId,state); // return Result.success(); // } // // @ApiOperation(value = "æ ç¾æå°") // @PostMapping("/labelPrinting") // public Result<?> labelPrinting(String ids) { // return Result.success(insOrderService.labelPrinting(ids)); // } // // // @ApiOperation(value = "è´¹ç¨ç»è®¡å¯¼åº") // @PostMapping("/export") // public void export(@RequestBody Map<String, Object> data,HttpServletResponse response) throws Exception { // CostStatisticsDto costStatisticsDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), CostStatisticsDto.class); // insOrderService.export(costStatisticsDto,response); // } // // // @ApiOperation(value = "è·åifs订å") // @PostMapping("/getIfsOrder") // public Result<?> getIfsOrder() { // insOrderService.getIfsOrder(); // return Result.success(); // } // // @Scheduled(fixedDelay = 1200000) // public void getIfsOrderTiming() { // insOrderService.getIfsOrder(); // } // // // @ApiOperation(value = "ä¿®æ¹è®¢ååå·") // @PostMapping("/updateEntrustCode") // public Result<?> updateEntrustCode(@RequestBody InsOrder insOrder) { // insOrderService.updateEntrustCode(insOrder); // return Result.success(); // } // // @ApiOperation("æ¥è¯¢ä¸åæ ¼å¤æµä¿¡æ¯") // @GetMapping("/getRetestResult") // public Result<?> getRetestResult(Integer insProductId) { // return Result.success(insOrderService.getRetestResult(insProductId)); // } // // // // @ApiOperation(value = "éåä¸ä¸å") // @PostMapping("/addRawCopperOrder") // public Result<?> addRawCopperOrder(String str) { // Map<String, Object> map = JSON.parseObject(str, Map.class); // JSONArray jsonArray = JSON.parseArray(map.get("list")+""); // List<SampleProductDto> list = jsonArray.toJavaList(SampleProductDto.class); // CopperInsOrderDto CopperInsOrder = JSON.parseObject(JSON.toJSONString(map.get("insOrder")), CopperInsOrderDto.class); // return Result.success(insOrderService.addRawCopperOrder(list, CopperInsOrder)); // } // // // @ApiOperation(value = "ä¿®æ¹å§æç¼å·") // @PostMapping("/updateOrderEntrustCode") // public Result<?> updateOrderEntrustCode(@RequestBody InsOrder insOrder) { // insOrderService.updateOrderEntrustCode(insOrder); // return Result.success(); // } // // @ApiOperation(value = "ä¿®æ¹æ£éªä¸åå 容") // @PostMapping("/updateInsOrder") // public Result<?> updateInsOrder(@RequestBody InsOrderUpdateDto insOrderUpdateDto) { // return Result.success(insOrderService.updateInsOrder(insOrderUpdateDto)); // } // // @ApiOperation(value = "å é¤éå订å") // @GetMapping("/delInsOrder") // public Result<?> delInsOrder(Integer insOrderId) { // // æ¥è¯¢è®¢å // InsOrder order = insOrderService.getById(insOrderId); // if (!order.getState().equals(2)) { // throw new ErrorException("åªæéå订åæè½å é¤"); // } // // return Result.success(insOrderService.removeById(insOrderId)); // } // // @ApiOperation(value = "æåæ ç¾æå°") // @PostMapping("/labelOrderPrinting") // public Result<List<InsOrderPrintingVo>> labelOrderPrinting(@RequestBody Map<String, Object> param) { // List<Integer> ids = (List<Integer>) param.get("ids"); // return Result.success(insOrderService.labelOrderPrinting(ids)); // } // // @ApiOperation(value = "æ ¹æ®è®¢åidæ¥è¯¢æ ·å") // @GetMapping("/getSampleByOrderId") // public Result<List<InsSample>> getSampleByOrderId(Integer insOrderId) { // return Result.success(insSampleService.list(Wrappers.<InsSample>lambdaQuery() // .eq(InsSample::getInsOrderId, insOrderId))); // } // // @ApiOperation(value = "æ ¹æ®æ ·åidæ¥è¯¢æ£éªé¡¹æ ") // @GetMapping("/getProductTreeBySampleId") // public Result<List<StandardProductList>> getProductTreeBySampleId(Integer insSampleId) { // return Result.success(insOrderService.getProductTreeBySampleId(insSampleId)); // } // // // @ApiOperation(value = "æ·»å éæ¼çæ£éªé¡¹") // @PostMapping("/addOmitOrderProduct") // public Result addOmitOrderProduct(@RequestBody OmitOrderProductDto omitOrderProductDto) { // return Result.success(insOrderService.addOmitOrderProduct(omitOrderProductDto)); // } // // @ApiOperation(value = "æåæ£éªåå ¨é¨ä¿¡æ¯å¯¼åº") // @PostMapping("/rawAllInsOrderExport") // public void rawAllInsOrderExport(@RequestBody SampleOrderDto sampleOrderDto, HttpServletResponse response){ // insOrderService.rawAllInsOrderExport(sampleOrderDto,response); // } // //} inspect-server/src/main/java/com/ruoyi/basic/controller/RawMaterialOrderController.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,318 @@ //package com.ruoyi.basic.controller; // //import com.alibaba.fastjson.JSON; //import com.alibaba.fastjson.JSONArray; //import com.baomidou.mybatisplus.extension.plugins.pagination.Page; //import com.ruoyi.basic.dto.IfsInventoryQuantityCheckDto; //import com.ruoyi.basic.dto.IfsInventoryQuantityDto; //import com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto; //import com.ruoyi.basic.service.RawMaterialOrderService; //import com.ruoyi.basic.service.RawMaterialOrderTemplateService; //import com.ruoyi.common.core.domain.Result; //import io.swagger.annotations.Api; //import io.swagger.annotations.ApiOperation; //import lombok.AllArgsConstructor; //import org.springframework.web.bind.annotation.*; // //import javax.servlet.http.HttpServletResponse; //import java.io.File; //import java.util.List; //import java.util.Map; // ///** // * @Author zhuo // * @Date 2024/7/31 // */ //@RequestMapping("/rawMaterialOrder") //@RestController //@AllArgsConstructor //@Api(tags = "åææä¸å") //public class RawMaterialOrderController { // // private RawMaterialOrderService rawMaterialOrderService; // private RawMaterialOrderTemplateService rawMaterialOrderTemplateService; // // @ApiOperation(value = "æ´å ·é¶ä»¶å·è·åæ åæ ") // @GetMapping("/selectStandardTreeListByPartNo") // public Result selectStandardTreeListByPartNo(String partNo) { // return Result.success(rawMaterialOrderService.selectStandardTreeListByPartNo(partNo)); // } // // @ApiOperation(value = "åæææ£éªæ¥è¯¢ä»£ä¸å") // @GetMapping("/getPurchaseOrder") // public Result getPurchaseOrder(Page page, IfsInventoryQuantityCheckDto ifsInventoryQuantity){ // return Result.success(rawMaterialOrderService.selectIfsInventoryQuantity(page, ifsInventoryQuantity)); // } // // @ApiOperation(value = "åæææ£éªæ¥è¯¢æ£éªä¸") // @GetMapping("/getIfsByStateOne") // public Result getIfsByStateOne(Page page, IfsInventoryQuantityDto ifsInventoryQuantityDto) throws Exception { // return Result.success(rawMaterialOrderService.getIfsByStateOne(page, ifsInventoryQuantityDto)); // } // // @ApiOperation(value = "åæææ£éªæ¥è¯¢å·²æ£éª") // @GetMapping("/getIfsByOver") // public Result getIfsByOver(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto) throws Exception { // return Result.success(rawMaterialOrderService.getIfsByOver(page, ifsInventoryQuantityDto)); // } // // @ApiOperation(value = "æ·»å åæææ£éªå模æ¿") // @PostMapping("/addRawMaterOrderTemplate") // public Result<?> addRawMaterOrderTemplate(@RequestBody RawMaterialOrderTemplate rawMaterialOrderTemplate) { // return Result.success(rawMaterialOrderTemplateService.addRawMaterOrderTemplate(rawMaterialOrderTemplate)); // } // @ApiOperation(value = "æ¥è¯¢åæææ£éªå模æ¿å表") // @GetMapping("/selectRawMaterOrderTemplate") // public Result<?> selectRawMaterOrderTemplate(String partNo) { // return Result.success(rawMaterialOrderTemplateService.selectRawMaterOrderTemplate(partNo)); // } // // @ApiOperation(value = "éè¿åæææ£éªå模æ¿idè·åæ£éªå模æ¿å 容") // @GetMapping("/selectRawMaterOrderTemplateById") // public Result<?> selectRawMaterOrderTemplateById(Integer id) { // return Result.success("æå", rawMaterialOrderTemplateService.selectRawMaterOrderTemplateById(id)); // } // // @ApiOperation(value = "å é¤åæææ£éªå模æ¿") // @PostMapping("/delRawMaterOrderTemplate") // public Result<?> delRawMaterOrderTemplate(Integer id) { // return Result.success(rawMaterialOrderTemplateService.delRawMaterOrderTemplate(id)); // } // // // /** // * æ¥æ£æ¹é // * @param param åææid // * @return // */ // @ApiOperation(value = "æ¥æ£æ¹é") // @PostMapping("/inspectionReport") // public Result<?> inspectionReport(@RequestBody Map<String, Object> param) { // List<Integer> ids = (List<Integer>) param.get("ids"); // return Result.success(rawMaterialOrderService.inspectionReport(ids)); // } // // /** // * åæ¶æ¥æ£ // * @param id åææä¸å // * @return // */ // @ApiOperation(value = "æ¤éæ¥æ£") // @PostMapping("/revokeInspectionReport") // public Result<?> revokeInspectionReport(Integer id) { // return Result.success(rawMaterialOrderService.revokeInspectionReport(id)); // } // // /** // * æå°æ ç¾æ¥è¯¢ // * @param param åææid // * @return // */ // @ApiOperation(value = "æå°æ ç¾æ¥è¯¢") // @PostMapping("/printLabel") // public Result<?> printLabel(@RequestBody Map<String, Object> param) { // List<Integer> ids = (List<Integer>) param.get("ids"); // return Result.success(rawMaterialOrderService.printLabel(ids)); // } // // /** // * æ¥æ£ // * @param ifsInventoryQuantity åææ // * @return // */ // @ApiOperation(value = "æ¥æ£") // @PostMapping("/inspectionReportOne") // public Result<?> inspectionReportOne(@RequestBody IfsInventoryQuantity ifsInventoryQuantity) { // // return Result.success(rawMaterialOrderService.inspectionReportOne(ifsInventoryQuantity)); // } // // /** // * è·åé产ä¸é¾æ£æµæ°æ® // * @param id åææid // * @return // */ // @ApiOperation(value = "è·åé产ä¸é¾æ£æµæ°æ®") // @GetMapping("/getIndustryChain") // public Result<?> getIndustryChain(Integer id) { // return Result.success("æå", rawMaterialOrderService.getIndustryChain(id)); // } // // /** // * åæææ¤é // * @param ifsInventoryId // * @return // */ // @ApiOperation(value = "åæææ¤éä¸å") // @PutMapping("/repealRawOrder") // public Result<?> repealRawOrder(Integer ifsInventoryId){ // return Result.success(rawMaterialOrderService.repealRawOrder(ifsInventoryId)); // } // // // @ApiOperation(value = "åææä¸åå æ£") // @PostMapping("/addExemptionOrder") // public Result<?> addExemptionOrder(String str) { // Map<String, Object> map = JSON.parseObject(str, Map.class); // JSONArray jsonArray = JSON.parseArray(map.get("list")+""); // List<SampleProductDto> list = jsonArray.toJavaList(SampleProductDto.class); // InsOrder insOrder = JSON.parseObject(JSON.toJSONString(map.get("insOrder")), InsOrder.class); // return Result.success(rawMaterialOrderService.addExemptionOrder(list, insOrder)); // } // // // @ApiOperation(value = "ä»åºæ¥æ£æ¥è¯¢") // @PostMapping("/getWarehouseSubmit") // public Result getWarehouseSubmit(@RequestBody Map<String, Object> data) throws Exception { // Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); // IfsInventoryQuantity ifsInventoryQuantity = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), IfsInventoryQuantity.class); // return Result.success(rawMaterialOrderService.getWarehouseSubmit(page, ifsInventoryQuantity)); // } // // /** // * åæ¶æ¥æ£ // * @param id åææä¸å // * @return // */ // @ApiOperation(value = "å é¤åæææ¥æ£ä¿¡æ¯") // @PostMapping("/delIfsInventory") // public Result<?> delIfsInventory(Integer id) { // return Result.success(rawMaterialOrderService.delIfsInventory(id)); // } // // /** // * åææä¸åæ¾è¡ // * @param param // * @return // */ // @ApiOperation(value = "åææä¸åæ¾è¡å æ£") // @PostMapping("/rawOrderRelease") // public Result<?> rawOrderRelease(@RequestBody Map<String, Object> param){ // Integer ifsInventoryId = (Integer) param.get("ifsInventoryId"); // String partDetail = (String) param.get("partDetail"); // return Result.success(rawMaterialOrderService.rawOrderRelease(ifsInventoryId, partDetail)); // } // // /** // * åææä¸åéç¥å æ£æè 夿¬¡æ£éª // * @param ifsInventoryId // * @return // */ // @ApiOperation(value = "åææä¸åéç¥å æ£æè 夿¬¡æ£éª") // @GetMapping("/notificationRawOrder") // public Result<?> notificationRawOrder(Integer ifsInventoryId){ // return Result.success(rawMaterialOrderService.notificationRawOrder(ifsInventoryId)); // } // // @ValueClassify("åææä¸å") // @ApiOperation(value = "åæææ¥æ£æ¥è¯¢å ¨é¨") // @PostMapping("/getIfsByAll") // public Result getIfsByAll(@RequestBody Map<String, Object> data) throws Exception { // Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); // IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), IfsInventoryQuantitySupplierDto.class); // return Result.success(rawMaterialOrderService.getIfsByOver(page, ifsInventoryQuantityDto)); // } // // // @ApiOperation(value = "æ°å¢åæææ¥æ£ä¿¡æ¯") // @PostMapping("/addIfsInventoryQuantity") // public Result addIfsInventoryQuantity(@RequestBody IfsInventoryQuantity ifsInventoryQuantity) { // rawMaterialOrderService.addIfsInventoryQuantity(ifsInventoryQuantity); // return Result.success(); // } // // @ApiOperation(value = "åææä¸åæ¥çå·²å®æä¿¡æ¯") // @PostMapping("/getIfsByFinish") // public Result getIfsByFinish(@RequestBody Map<String, Object> data) throws Exception { // Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); // IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), IfsInventoryQuantitySupplierDto.class); // ifsInventoryQuantityDto.setIsFinish(1); // return Result.success(rawMaterialOrderService.getIfsByOver(page, ifsInventoryQuantityDto)); // } // // @ApiOperation(value = "æµè¯ç§»åº") // @PostMapping("/shiftingParking") // public Result shiftingParking(@RequestBody List<Integer> ids){ // rawMaterialOrderService.shiftingParking(ids); // return Result.success(); // } // // @ApiOperation(value = "微信åéæä»¶") // @GetMapping("/wxSend") // public Result wxSend(String user, String content, String filePath) throws Exception { // WxCpUtils.inform(user, content, new File(filePath)); // return Result.success(); // } // // @ValueClassify("åææä¸å") // @ApiOperation(value = "éåä¸ä¸åå æ£") // @PostMapping("/addRawCopperOrderExemptionOrder") // public Result<?> addRawCopperOrderExemptionOrder(String str) { // Map<String, Object> map = JSON.parseObject(str, Map.class); // JSONArray jsonArray = JSON.parseArray(map.get("list")+""); // List<SampleProductDto> list = jsonArray.toJavaList(SampleProductDto.class); // CopperInsOrderDto CopperInsOrder = JSON.parseObject(JSON.toJSONString(map.get("insOrder")), CopperInsOrderDto.class); // return Result.success(rawMaterialOrderService.addRawCopperOrderExemptionOrder(list, CopperInsOrder)); // } // // /** // * è®©æ¥æ¾è¡ // * @param ifsInventoryId // * @return // */ // @ValueClassify("åææä¸å") // @ApiOperation(value = "è®©æ¥æ¾è¡") // @PostMapping("/concessionRelease") // public Result<?> concessionRelease(Integer ifsInventoryId){ // return Result.success(rawMaterialOrderService.concessionRelease(ifsInventoryId)); // } // // /** // * åææè¿åæ¤éä¸å // * @param enterOrderId // * @return // */ // @ApiOperation(value = "åææè¿åæ¤éä¸å") // @PostMapping("/repealEnterRawOrder") // public Result<?> repealEnterRawOrder(Integer enterOrderId){ // return Result.success(rawMaterialOrderService.repealEnterRawOrder(enterOrderId)); // } // // /** // * åææå£åº¦æ¤éä¸å // * @param quarterOrderId // * @return // */ // @ApiOperation(value = "åææå£åº¦æ¤éä¸å") // @PostMapping("/repealQuarterRawOrder") // public Result<?> repealQuarterRawOrder(Integer quarterOrderId){ // return Result.success(rawMaterialOrderService.repealQuarterRawOrder(quarterOrderId)); // } // // @ApiOperation(value = "å ¨é¨ä¿¡æ¯å¯¼åº") // @PostMapping("/rawAllExport") // public void rawAllExport(@RequestBody Map<String, Object> data, HttpServletResponse response) throws Exception { // IfsInventoryQuantitySupplierDto dto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), IfsInventoryQuantitySupplierDto.class); // rawMaterialOrderService.rawAllExport(dto,response); // } // // @ApiOperation(value = "åæææ£éªæ¥è¯¢å£åº¦æ£éª") // @PostMapping("/getIfsByQuarter") // public Result getIfsByQuarter(@RequestBody Map<String, Object> data) throws Exception { // Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); // IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), IfsInventoryQuantitySupplierDto.class); // return Result.success(rawMaterialOrderService.getIfsByQuarter(page, ifsInventoryQuantityDto)); // } // // /** // * æåå ¥åº // * @param ifsInventoryId // * @return // */ // @ApiOperation(value = "æåå ¥åº") // @PostMapping("/advancedGodown") // public Result<?> advancedGodown(Integer ifsInventoryId){ // return Result.success(rawMaterialOrderService.advancedGodown(ifsInventoryId)); // } // //} inspect-server/src/main/java/com/ruoyi/basic/dto/IfsInventoryQuantityCheckDto.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,183 @@ //package com.ruoyi.basic.dto; // //import com.fasterxml.jackson.annotation.JsonFormat; //import io.swagger.annotations.ApiModelProperty; //import lombok.Data; // //import java.io.Serializable; //import java.math.BigDecimal; //import java.time.LocalDateTime; // ///** // * åæææ¥è¯¢, æé¤äºä¾åºå // * @Author zhuo // * @Date 2024/8/28 // */ //@Data //public class IfsInventoryQuantityCheckDto implements Serializable { // // private Integer id; // // @ApiModelProperty("å") // private String contract; // // @ApiModelProperty("订åå·") // private String orderNo; // // // @ApiModelProperty("è¡å·") // private String lineNo; // // @ApiModelProperty("ä¸è¾¾å·") // private String releaseNo; // // @ApiModelProperty("æ¥æ¶å·") // private Integer receiptNo; // // @ApiModelProperty("é¶ä»¶å·") // private String partNo; // // @ApiModelProperty("é¶ä»¶æè¿°") // private String partDesc; // // @ApiModelProperty("ç¶ææè¿°") // private String status; // // @ApiModelProperty("ç¶æ") // private String statusDb; // // @ApiModelProperty("æµè¾¾çéè´æ°é") // private BigDecimal qtyArrived; // // @ApiModelProperty("å·²æ£éªçè´ä¹°æ°é") // private BigDecimal qtyInspected; // // @ApiModelProperty("è¦æ£éªçéè´æ°é") // private BigDecimal qtyToInspect; // // @ApiModelProperty("æµè¾¾çåºåæ°é") // private BigDecimal invQtyInStore; // // @ApiModelProperty("æµè¾¾çéè´æ°é") // private BigDecimal purQtyInStore; // // @ApiModelProperty("é ç½®æ è¯") // private String configurationId; // // @ApiModelProperty("æ¹å·") // private String lotBatchNo; // // @ApiModelProperty("wdrå·") // private String waivDevRejNo; // // @ApiModelProperty("æ´»å¨åºå") // private Integer activitySeq; // // // @ApiModelProperty("åºåå·") // private String serialNo; // // @ApiModelProperty("åºä½å·") // private String locationNo; // // @ApiModelProperty("çæ¬å·") // private String engChgLevel; // // @ApiModelProperty("æ¥æ¶äºº") // private String receiver; // // @ApiModelProperty("æ¥æ¶äººå§å") // private String receiverName; // // @ApiModelProperty("éè´å") // private String buyerCode; // // @ApiModelProperty("éè´åå§å") // private String buyerName; // // @ApiModelProperty("å®é å°è´§æ¥æ") // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") // private LocalDateTime arriveDate; // // @ApiModelProperty("å®é äº¤è´§æ¥æ") // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") // private LocalDateTime deliveryDate; // // @ApiModelProperty("çäº§æ¥æ") // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") // private LocalDateTime productDate; // // @ApiModelProperty("å¤±ææ¥æ") // @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 reqCeater; // // @ApiModelProperty("éè´ç³è¯·å建人å§å") // private String reqCeaterName; // // @ApiModelProperty("éè´è®¢åè¡å¤æ³¨") // private String lineRemarks; // // @ApiModelProperty("åä½") // private String buyUnitMeas; // // // private Integer isSource; // // private Integer number; // // // private Integer state; // // @ApiModelProperty("æ¥æ¶æ¶é´") // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") // private LocalDateTime receiverDate; // // @ApiModelProperty("æ¯å¦ä¸ºé¦æ¬¡åºç° 0 å¦ 1 æ¯") // private Integer isFirst; // // @ApiModelProperty("ç®æ åºä½å·") // private String toLocation; // // @ApiModelProperty("æ¯å¦æ¯æ¥æ£ 0 å¦ 1 æ¯") // private Integer isInspect; // // @ApiModelProperty("æ¥æ£äºº") // private String declareUser; // // // @ApiModelProperty("æ¥æ£äººid") // private Integer declareUserId; // // @ApiModelProperty("åä½") // private String partUnit; // // @ApiModelProperty("产ä¸é¾æ£æµæ°æ®") // private String industryChain; // // @ApiModelProperty("æ¥æ£æ¶é´") // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") // private LocalDateTime declareDate; // // @ApiModelProperty("æ¯å¦å¡å¯ä»¥å£åº¦æ£éª 0 å¦ 1 æ¯") // private Integer isQuarter; // // // ä¿®æ¹åç // @ApiModelProperty("æ¹å·") // private String updateBatchNo; // // @ApiModelProperty("æ¯å¦æ¯éåä¸, 0å¦, 1æ¯") // private Integer isCopper; // // @ValueTableShow(8) // @ApiModelProperty("ç©æç±»å") // private Integer isExpire; // //} inspect-server/src/main/java/com/ruoyi/basic/dto/IfsInventoryQuantityDto.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,82 @@ //package com.ruoyi.basic.dto; // //import com.fasterxml.jackson.annotation.JsonFormat; //import io.swagger.annotations.ApiModelProperty; //import lombok.Data; // //import java.time.LocalDateTime; // //@Data //public class IfsInventoryQuantityDto extends IfsInventoryQuantityCheckDto { // // /** // * å§æç¼å· // */ // @ApiModelProperty("å§æç¼å·") // private String entrustCode; // // @ApiModelProperty("æ£éªå¯¹è±¡") // private String sampleType; // // @ApiModelProperty("æ ·ååç§°") // private String sampleName; // // @ApiModelProperty("æ ·ååå·") // private String sampleModel; // // @ApiModelProperty("æ ·åç¼å·") // private String sampleCode; // // // è¿å // @ApiModelProperty("订åid") // private Integer enterOrderId; // // @ApiModelProperty("æ¥åid") // private String enterReportId; // // @ApiModelProperty("ç³»ç»çææ¥åå°å") // private String enterUrl; // // @ApiModelProperty("æå¨ä¸ä¼ æ¥åå°å") // private String enterUrlS; // // // å£åº¦ // @ApiModelProperty("订åid") // private Integer quarterOrderId; // // @ApiModelProperty("æ¥åid") // private String quarterReportId; // // @ApiModelProperty("ç³»ç»çææ¥åå°å") // private String quarterUrl; // // @ApiModelProperty("æå¨ä¸ä¼ æ¥åå°å") // private String quarterUrlS; // // private Integer orderState; // // @ApiModelProperty("ä¸åæ¶é´") // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // private LocalDateTime sendTime; // // @ApiModelProperty("ææåå®¶") // private String supplierName; // // @ApiModelProperty("å§æäºº") // private String prepareUser; // // @ApiModelProperty("é¢è²") // private String color; // // @ApiModelProperty("æ ç¾ç¶æ") // private String labelStatus; // // @ApiModelProperty("æ ç¾æ¡å½¢ç ") // private String labelBarCode; // // @ApiModelProperty("å建人") // private Integer createUser; // // @ApiModelProperty("æ£éªäºº") // private String userName; //} inspect-server/src/main/java/com/ruoyi/basic/dto/IfsInventoryQuantitySupplierDto.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,125 @@ //package com.ruoyi.basic.dto; // //import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; //import com.alibaba.excel.annotation.ExcelProperty; //import com.fasterxml.jackson.annotation.JsonFormat; //import com.yuanchu.mom.annotation.ValueTableShow; //import com.yuanchu.mom.pojo.IfsInventoryQuantity; //import io.swagger.annotations.ApiModelProperty; //import lombok.Data; // //import java.time.LocalDateTime; // ///** // * è½æ¥è¯¢å°ä¾åºå // */ //@Data //@ExcelIgnoreUnannotated //public class IfsInventoryQuantitySupplierDto extends IfsInventoryQuantity { // // /** // * å§æç¼å· // */ // @ExcelProperty(index = 2, value = "å§æç¼å·") // @ApiModelProperty("å§æç¼å·") // private String entrustCode; // // @ApiModelProperty("æ ·åid") // private Integer sampleId; // // @ApiModelProperty("æ£éªå¯¹è±¡") // private String sampleType; // // @ExcelProperty(index = 7, value = "æ ·ååç§°") // @ApiModelProperty("æ ·ååç§°") // private String sampleName; // // @ExcelProperty(index = 8, value = "æ ·ååå·") // @ApiModelProperty("æ ·ååå·") // private String sampleModel; // // @ApiModelProperty("æ ·åç¼å·") // private String sampleCode; // // // è¿å // @ApiModelProperty("è¿å订åid") // private Integer enterOrderId; // // @ApiModelProperty("æ¥åid") // private String enterReportId; // // @ApiModelProperty("ç³»ç»çææ¥åå°å") // private String enterUrl; // // @ApiModelProperty("æå¨ä¸ä¼ æ¥åå°å") // private String enterUrlS; // // // å£åº¦ // @ApiModelProperty("å£åº¦è®¢åid") // private Integer quarterOrderId; // // @ApiModelProperty("æ¥åid") // private String quarterReportId; // // @ApiModelProperty("ç³»ç»çææ¥åå°å") // private String quarterUrl; // // @ApiModelProperty("æå¨ä¸ä¼ æ¥åå°å") // private String quarterUrlS; // // private Integer orderState; // // @ApiModelProperty("ä¸åæ¶é´") // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // private LocalDateTime sendTime; // // @ApiModelProperty("å§æäºº") // private String prepareUser; // // @ApiModelProperty("é¢è²") // private String color; // // @ApiModelProperty("æ ç¾ç¶æ") // private String labelStatus; // // @ApiModelProperty("æ ç¾æ¡å½¢ç ") // private String labelBarCode; // // @ApiModelProperty("å建人") // private Integer createUser; // // @ExcelProperty(index = 9, value = "æ£éªäºº") // @ApiModelProperty("æ£éªäºº") // private String userName; // // @ExcelProperty(index = 10, value = "ä¸åæ¶é´") // private String sendTimeString; // // @ExcelProperty(index = 14, value = "æ¥æ¶æ¶é´") // private String receiverDateString; // // @ExcelProperty(index = 15, value = "æ¥æ£æ¶é´") // private String declareDateString; // // // åæ ¼ç¶æ,: 0 æ£éªä¸, 1åæ ¼, 2ä¸åæ ¼, 3æªä¸å,4è®©æ¥æ¾è¡ // @ExcelProperty(index = 6, value = "æ£éªç¶æ") // private String inspectStatusString; // // @ApiModelProperty("æ¥æ£å¼å§æ¶é´") // private String beginDeclareDate; // // @ApiModelProperty("æ¥æ£ç»ææ¶é´") // private String endDeclareDate; // // @ApiModelProperty("ä¸åæ ¼æè¿°") // @ExcelProperty(index = 16, value = "ä¸åæ ¼æè¿°") // private String unqualifiedDesc; // // // @ApiModelProperty("ä¸åæ ¼é¡¹") // @ExcelProperty(index = 17, value = "ä¸åæ ¼é¡¹") // private String unqualifiedItem; // // @ApiModelProperty("å æ£") // private Integer isExemption; //} inspect-server/src/main/java/com/ruoyi/basic/dto/IfsStockQueryDTO.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,65 @@ //package com.ruoyi.basic.dto; // //import lombok.Data; // //@Data //public class IfsStockQueryDTO { // private String partNo; // private String partDescription; // é¶ä»¶æè¿° // private String partDesc; // private String locNo; // åºä½å· // private String locDesc; // åºä½æè¿° // private String lotBatchNo; // æ¹å· // private String wdrNo; // WDRç¼å· // private String warehouse; // ä»åº // private String quantityFlag; // æ°éæ è¯(ç°ææ°é) // private String locationGroup; // åºä½ç» // private String locationGroupDesc; // åºä½ç»æè¿° // private String reelNumber; // è½½å ·ç¼å· // private String startMeter; // èµ·å§ç±³æ // private String endMeter; // æªæ¢ç±³æ // private String outerColor; // 夿¤é¢è² // private String insulationColor; // ç»ç¼é¢è² // private String otcOrderNo; // ç©æå±æ§éé¢çOTC订åå· // private String mpsNo; // ç产计åå· // private String letteringInfo; // å°åä¿¡æ¯ // private String sStockQuantity; // åºåæ°é2 // private String availableStockQuantity; // å¯ç¨åºåæ°é // private String sAvailableStockQuantity; // åºç¨åºåæ°é2 // private String sunit; // åä½2 // private String stockSource; // æ¥æº // private String inspInstorageTime; // æ£æµå ¥åºæ¥æ // private String testRemark; // æ£æµå¤æ³¨ // private String grossWeight; // æ¯é // private String netWeight; // åé // private String packingManner; // å è£ æ¹å¼ // private String cylinderNumber; //æåä¸ªæ° // private String systemNo; //ç³»ç»å· // private String remark; //夿³¨ // private String customerName; //客æ·åç§° // private String reserveQuantity; //é¢çæ°é // private String lengthRequirement; // å¤æè¦æ± // private String inSource;//å ¥åºæ¥æº // private String splitQuality;//åå²é¢çæ°é // // //æ¥å£ getIfsStockReport ç¨å°çåæ®µ // private String attr23;//å ¥åºæ¥æº // private String attr6;//otc订åå· // private String attr21;//客æ·åç§° // private String attr4;//夿¤é¢è² // private String attr5;//ç»ç¼é¢è² // private String attr8;//å°åä¿¡æ¯ // private String lot_batch_no;//æ¹æ¬¡å· // private String location_no;//åºä½å· // private String attr17;//å è£ æ¹å¼ // private String attr1;//è½½å ·ç¼å· // // //æ¥å£queryColReservedInfoStd ç¨å°çä¸¤ä¸ªåæ®µ // private String cotcOrderNo; // 表éé¢çOTC订åå· // private String cotcLineNo; // 表éé¢çOTCè¡å· // // private Boolean isAll;//æ¯å¦æ¥è¯¢å ¨é¨åºå // // private Long page; // private Long limit; //} inspect-server/src/main/java/com/ruoyi/basic/pojo/InsSample.java
@@ -1,123 +1,123 @@ package com.ruoyi.basic.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; /** * æ£éªæ ·å * @TableName ins_sample */ @TableName(value ="ins_sample") @Data public class InsSample implements Serializable { /** * */ @TableId(type = IdType.AUTO) private Integer id; /** * 1ï¼åæ ¼ 0ï¼ä¸åæ ¼ */ private Integer insResult; /** * å¤é®ï¼ins_order表id */ private Integer insOrderId; /** * é 奿 ·ååå· */ private String joinModel; /** * é 奿 ·ååç§° */ private String joinName; /** * é 奿 ·åæ°é */ private Integer joinNum; /** * æ ·åç¼ç */ private String sampleCode; /** * æ£éªå·¥å */ private String factory; /** * å®éªå®¤åç§° */ private String laboratory; /** * æ ·åç±»å */ private String sampleType; /** * æ ·ååç§° */ private String sample; /** * è§æ ¼åå· */ private String model; /** * æ£éªç¶æ(0ï¼å¾ æ£éª1:æ£éªä¸ 2:å·²æ£éª3ï¼å¾ 夿 ¸4ï¼å¤æ ¸æªéè¿5ï¼å¤æ ¸éè¿) */ private Integer insState; /** * 夿³¨ */ private String remark; private Integer standardMethodListId; @ApiModelProperty("æ ·ååä½") private String unit; private Integer cellId; @TableField(fill = FieldFill.INSERT) private Integer createUser; @ApiModelProperty("å建æ¶é´") @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @ApiModelProperty("ä¿®æ¹æ¶é´") @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; private Integer parentId; @ApiModelProperty("æ°é") private Integer quantity; @ApiModelProperty("ç¹æ®æ åæ¹æ³") private String specialStandardMethod; @TableField(select = false,exist = false) private Integer num=1; } //package com.ruoyi.basic.pojo; // //import com.baomidou.mybatisplus.annotation.*; //import com.fasterxml.jackson.annotation.JsonFormat; //import io.swagger.annotations.ApiModelProperty; //import lombok.Data; // //import java.io.Serializable; //import java.time.LocalDateTime; // ///** // * æ£éªæ ·å // * @TableName ins_sample // */ //@TableName(value ="ins_sample") //@Data //public class InsSample implements Serializable { // /** // * // */ // @TableId(type = IdType.AUTO) // private Integer id; // // /** // * 1ï¼åæ ¼ 0ï¼ä¸åæ ¼ // */ // private Integer insResult; // // /** // * å¤é®ï¼ins_order表id // */ // private Integer insOrderId; // // /** // * é 奿 ·ååå· // */ // private String joinModel; // // /** // * é 奿 ·ååç§° // */ // private String joinName; // // /** // * é 奿 ·åæ°é // */ // private Integer joinNum; // // /** // * æ ·åç¼ç // */ // private String sampleCode; // // /** // * æ£éªå·¥å // */ // private String factory; // // /** // * å®éªå®¤åç§° // */ // private String laboratory; // // /** // * æ ·åç±»å // */ // private String sampleType; // // /** // * æ ·ååç§° // */ // private String sample; // // /** // * è§æ ¼åå· // */ // private String model; // // /** // * æ£éªç¶æ(0ï¼å¾ æ£éª1:æ£éªä¸ 2:å·²æ£éª3ï¼å¾ 夿 ¸4ï¼å¤æ ¸æªéè¿5ï¼å¤æ ¸éè¿) // */ // private Integer insState; // // /** // * 夿³¨ // */ // private String remark; // // private Integer standardMethodListId; // // @ApiModelProperty("æ ·ååä½") // private String unit; // // private Integer cellId; // // @TableField(fill = FieldFill.INSERT) // private Integer createUser; // // @ApiModelProperty("å建æ¶é´") // @TableField(fill = FieldFill.INSERT) // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // private LocalDateTime createTime; // // @TableField(fill = FieldFill.INSERT_UPDATE) // private Integer updateUser; // // @ApiModelProperty("ä¿®æ¹æ¶é´") // @TableField(fill = FieldFill.INSERT_UPDATE) // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // private LocalDateTime updateTime; // // private Integer parentId; // // @ApiModelProperty("æ°é") // private Integer quantity; // // @ApiModelProperty("ç¹æ®æ åæ¹æ³") // private String specialStandardMethod; // // @TableField(select = false,exist = false) // private Integer num=1; // //} inspect-server/src/main/java/com/ruoyi/basic/service/RawMaterialOrderService.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,143 @@ //package com.ruoyi.basic.service; // //import com.baomidou.mybatisplus.core.metadata.IPage; //import com.baomidou.mybatisplus.extension.plugins.pagination.Page; // //import javax.servlet.http.HttpServletResponse; //import java.io.UnsupportedEncodingException; //import java.util.List; //import java.util.Map; // ///** // * @Author zhuo // * @Date 2024/7/31 // */ //public interface RawMaterialOrderService { // // RawMaterialStandardTreeDto selectStandardTreeListByPartNo(String partNo); // // /** // * æ¥æ£æ¥è¯¢ // * @param page // * @param ifsInventoryQuantity // * @return // */ // Map<String,Object> getWarehouseSubmit(IPage<IfsInventoryQuantity> page, IfsInventoryQuantity ifsInventoryQuantity); // // /** // * æ¥è¯¢æ£éªå¼ // * @param page // * @param ifsInventoryQuantityDto // * @return // */ // Map<String,Object> getIfsByStateOne(IPage<IfsInventoryQuantityDto> page, IfsInventoryQuantityDto ifsInventoryQuantityDto); // // int inspectionReport(List<Integer> ids); // // int revokeInspectionReport(Integer id); // // List<IfsInventoryQuantityDto> printLabel(List<Integer> ids); // // int inspectionReportOne(IfsInventoryQuantity ifsInventoryQuantity); // // String getIndustryChain(Integer id); // // /** // * åæææ¤éä¸å // * @param ifsInventoryId // * @return // */ // boolean repealRawOrder(Integer ifsInventoryId); // // /** // * æ·»å å æ£è®¢å // * @param list // * @param insOrder // * @return // */ // int addExemptionOrder(List<SampleProductDto> list, InsOrder insOrder); // // Map<String,Object> selectIfsInventoryQuantity(Page<IfsInventoryQuantityCheckDto> page, IfsInventoryQuantityCheckDto ifsInventoryQuantity); // // /** // * æ¥è¯¢å·²æ£éª // * @param page // * @param ifsInventoryQuantityDto // * @return // */ // Map<String,Object> getIfsByOver(Page<IfsInventoryQuantitySupplierDto> page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto); // // int delIfsInventory(Integer id); // // /** // * åæææ¾è¡å æ£ // * @param ifsInventoryId // * @return // */ // boolean rawOrderRelease(Integer ifsInventoryId, String partDetail); // // /** // * åææä¸åéç¥å æ£æè 夿¬¡æ£éª // * @param ifsInventoryId // * @return // */ // int notificationRawOrder(Integer ifsInventoryId); // // /** // * æå¨æ·»å åæä¿¡æ¯ // * @param ifsInventoryQuantity // */ // void addIfsInventoryQuantity(IfsInventoryQuantity ifsInventoryQuantity); // // void shiftingParking(List<Integer> ids); // // /** // * éåä¸ä¸åå æ£ // * @param list // * @param copperInsOrder // */ // int addRawCopperOrderExemptionOrder(List<SampleProductDto> list, CopperInsOrderDto copperInsOrder); // // /** // * 让æ¥uæ¾è¡ // * @param ifsInventoryId // * @return // */ // boolean concessionRelease(Integer ifsInventoryId); // // /** // * åææè¿åæ¤éä¸å // * @param enterOrderId // * @return // */ // boolean repealEnterRawOrder(Integer enterOrderId); // // /** // * åææå£åº¦æ¤éä¸å // * @param quarterOrderId // * @return // */ // boolean repealQuarterRawOrder(Integer quarterOrderId); // // /** // * åæææ¥æ£å ¨é¨ä¿¡æ¯å¯¼åº // * @param dto // * @param response // */ // void rawAllExport(IfsInventoryQuantitySupplierDto dto, HttpServletResponse response) throws UnsupportedEncodingException; // // /** // * åæææ¥è¯¢å¯ä»¥å£åº¦æ£éªçå 容 // * @param page // * @param ifsInventoryQuantityDto // * @return // */ // Map<String,Object> getIfsByQuarter(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto); // // /** // * advancedGodown // * @param ifsInventoryId // * @return // */ // boolean advancedGodown(Integer ifsInventoryId); //} inspect-server/src/main/java/com/ruoyi/basic/service/RawMaterialOrderTemplateService.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ //package com.ruoyi.basic.service; // //import com.baomidou.mybatisplus.extension.service.IService; //import com.yuanchu.mom.pojo.RawMaterialOrderTemplate; // //import java.util.List; // ///** // * åææä¸åæ¨¡æ¿ // * // * @author zhuo // * @since 2024-08-05 // */ //public interface RawMaterialOrderTemplateService extends IService<RawMaterialOrderTemplate> { // // int addRawMaterOrderTemplate(RawMaterialOrderTemplate rawMaterialOrderTemplate); // // List<RawMaterialOrderTemplate> selectRawMaterOrderTemplate(String partNo); // // String selectRawMaterOrderTemplateById(Integer id); // // int delRawMaterOrderTemplate(Integer id); // //} // inspect-server/src/main/java/com/ruoyi/basic/service/impl/RawMaterialOrderServiceImpl.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,850 @@ //package com.ruoyi.basic.service.impl; // //import cn.hutool.core.collection.CollUtil; //import cn.hutool.core.collection.CollectionUtil; //import cn.hutool.core.date.DateTime; //import cn.hutool.core.date.DateUtil; //import cn.hutool.core.util.StrUtil; //import com.alibaba.excel.EasyExcel; //import com.alibaba.excel.ExcelWriter; //import com.alibaba.excel.write.metadata.WriteSheet; //import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; //import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; //import com.baomidou.mybatisplus.core.metadata.IPage; //import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; //import com.baomidou.mybatisplus.core.toolkit.StringUtils; //import com.baomidou.mybatisplus.core.toolkit.Wrappers; //import com.baomidou.mybatisplus.extension.plugins.pagination.Page; //import com.ruoyi.basic.service.RawMaterialOrderService; //import lombok.AllArgsConstructor; //import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; //import org.springframework.stereotype.Service; //import org.springframework.transaction.annotation.Transactional; // //import javax.servlet.http.HttpServletResponse; //import java.io.IOException; //import java.io.UnsupportedEncodingException; //import java.math.BigDecimal; //import java.net.URLEncoder; //import java.text.SimpleDateFormat; //import java.time.LocalDateTime; //import java.time.format.DateTimeFormatter; //import java.util.*; //import java.util.concurrent.atomic.AtomicInteger; // ///** // * @Author zhuo // * @Date 2024/7/31 // */ //@Service //@AllArgsConstructor //public class RawMaterialOrderServiceImpl implements RawMaterialOrderService { // // private StandardTreeMapper standardTreeMapper; // private IfsInventoryQuantityMapper ifsInventoryQuantityMapper; // private GetLook getLook; // private UserMapper userMapper; // private InsOrderService insOrderService; // private InsOrderMapper insOrderMapper; // private InsSampleMapper insSampleMapper; // private final NumberGenerator<InsOrder> numberGenerator; // private InsReportService insReportService; // private WechatProperty wechatProperty; // private ThreadPoolTaskExecutor threadPoolTaskExecutor; // private InsProductMapper insProductMapper; // private AuxiliaryOutputWorkingHoursMapper auxiliaryOutputWorkingHoursMapper; // // // @Override // public RawMaterialStandardTreeDto selectStandardTreeListByPartNo(String partNo) { // if (StringUtils.isBlank(partNo)) { // throw new ErrorException("é¶ä»¶å·ä¸¢å¤±"); // } // List<FactoryDto> factoryDtos = standardTreeMapper.selectStandardTreeListByPartNo(partNo); // if (CollectionUtil.isEmpty(factoryDtos)) { // throw new ErrorException("é¶ä»¶å·ä¸º" + partNo + "çåæææ²¡æå¯¹åºçæ ååºé ç½®"); // } // RawMaterialStandardTreeDto rawMaterialStandardTreeDto = new RawMaterialStandardTreeDto(); // for (FactoryDto factoryDto : factoryDtos) { // for (LaboratoryDto laboratoryDto : factoryDto.getChildren()) { // for (SampleTypeDto sampleTypeDto : laboratoryDto.getChildren()) { // if (sampleTypeDto.getChildren().size() == 0) { // sampleTypeDto.setChildren(standardTreeMapper.getStandardTree3(sampleTypeDto.getValue())); // } // // 夿ç»å®çæ¯å¦æ¯å½åé¶ä»¶å· // if (sampleTypeDto.getPartNo() != null && sampleTypeDto.getPartNo().equals(partNo)) { // // æ·»å 对象 // rawMaterialStandardTreeDto.setTreeName(factoryDto.getValue() + "-" // + laboratoryDto.getValue() + "-" // + sampleTypeDto.getValue()); // rawMaterialStandardTreeDto.setCode(sampleTypeDto.getCode()); // rawMaterialStandardTreeDto.setLabel(sampleTypeDto.getLabel()); // rawMaterialStandardTreeDto.setValue(sampleTypeDto.getValue()); // rawMaterialStandardTreeDto.setChildren1(sampleTypeDto.getChildren()); // } else { // for (SampleDto sampleDto : sampleTypeDto.getChildren()) { // if (sampleDto.getPartNo() != null && sampleDto.getPartNo().equals(partNo)) { // // æ·»å 对象 // rawMaterialStandardTreeDto.setTreeName(factoryDto.getValue() + "-" // + laboratoryDto.getValue() + "-" // + sampleTypeDto.getValue() + "-" // + sampleDto.getValue()); // rawMaterialStandardTreeDto.setCode(sampleDto.getCode()); // rawMaterialStandardTreeDto.setLabel(sampleDto.getLabel()); // rawMaterialStandardTreeDto.setValue(sampleDto.getValue()); // rawMaterialStandardTreeDto.setChildren2(sampleDto.getChildren()); // } // } // } // } // } // } // return rawMaterialStandardTreeDto; // } // // @Override // public Map<String, Object> getWarehouseSubmit(IPage<IfsInventoryQuantity> page, IfsInventoryQuantity ifsInventoryQuantity) { // Map<String, Object> map = new HashMap<>(); // map.put("head", PrintChina.printChina(IfsInventoryQuantity.class)); // map.put("body", standardTreeMapper.selectIfsPage(page, QueryWrappers.queryWrappers(ifsInventoryQuantity))); // return map; // } // // @Override // public Map<String, Object> getIfsByStateOne(IPage<IfsInventoryQuantityDto> page, IfsInventoryQuantityDto ifsInventoryQuantityDto) { // Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("getIfsByStateOne"); // if (map1.get("look") == 1) { // //个人 // ifsInventoryQuantityDto.setCreateUser(map1.get("userId")); // } // Map<String, Object> map = new HashMap<>(); //// ifsInventoryQuantityDto.setOrderState(null); // map.put("head", PrintChina.printChina(IfsInventoryQuantityDto.class)); // map.put("body", standardTreeMapper.getIfsByStateOne(page, QueryWrappers.queryWrappers(ifsInventoryQuantityDto))); // return map; // } // // // /** // * æ¥æ£ // * @param ids // * @return // */ // @Override // public int inspectionReport(List<Integer> ids) { // Integer userId = getLook.selectPowerByMethodAndUserId(null).get("userId"); // ifsInventoryQuantityMapper.update(null, Wrappers.<IfsInventoryQuantity>lambdaUpdate() // .in(IfsInventoryQuantity::getId, ids) // .set(IfsInventoryQuantity::getDeclareUser, userMapper.selectById(userId).getName()) // .set(IfsInventoryQuantity::getDeclareUserId, userId) // .set(IfsInventoryQuantity::getIsInspect, 1) // .set(IfsInventoryQuantity::getDeclareDate, LocalDateTime.now()) // ); // threadPoolTaskExecutor.execute(() -> { // List<IfsInventoryQuantity> quantityList = ifsInventoryQuantityMapper.selectList(Wrappers.<IfsInventoryQuantity>lambdaQuery() // .in(IfsInventoryQuantity::getId, ids)); // // ä¼ä¸å¾®ä¿¡éç¥ // String message = ""; // message += "æ°å¢æ¥æ£éç¥"; // for (IfsInventoryQuantity inventoryQuantity : quantityList) { // message += "\næ¹æ¬¡å·: " + inventoryQuantity.getUpdateBatchNo(); // message += "\né¶ä»¶æè¿°: " + inventoryQuantity.getPartDesc(); // message += "\næµè¾¾æ°é: " + inventoryQuantity.getQtyArrived().stripTrailingZeros().toPlainString() + inventoryQuantity.getBuyUnitMeas(); // // // å¤æææ²¡æå°20å¨. æè è½å¦å æ£ // int result = notificationRawOrder(inventoryQuantity.getId()); // switch (result) { // case 1: // message += "\nå½åæ ·åå·²æ£éªè¿, å¯ä»¥å æ£"; // break; // case 2: // message += "\nå½åæ ·åå·²è¶ è¿20å¨"; // break; // } // message += "\n"; // } // WxCpUtils.informWebHook(wechatProperty.getExaminingUrl(), message); // }); // return 1; // } // // /** // * æ¤éæ¥æ£ // * @param id // * @return // */ // @Override // public int revokeInspectionReport(Integer id) { // return ifsInventoryQuantityMapper.update(null, Wrappers.<IfsInventoryQuantity>lambdaUpdate() // .eq(IfsInventoryQuantity::getId, id) // .set(IfsInventoryQuantity::getIsInspect, 0) // ); // } // // /** // * æå°æ ç¾æ¥è¯¢ // * @param ids // * @return // */ // @Override // public List<IfsInventoryQuantityDto> printLabel(List<Integer> ids) { // return ifsInventoryQuantityMapper.printLabel(ids); // } // // /** // * æ¥æ£ // * @param ifsInventoryQuantity // * @return // */ // @Override // public int inspectionReportOne(IfsInventoryQuantity ifsInventoryQuantity) { // Integer userId = getLook.selectPowerByMethodAndUserId(null).get("userId"); // ifsInventoryQuantityMapper.update(null, Wrappers.<IfsInventoryQuantity>lambdaUpdate() // .eq(IfsInventoryQuantity::getId, ifsInventoryQuantity.getId()) // .set(IfsInventoryQuantity::getDeclareUser, userMapper.selectById(userId).getName()) // .set(IfsInventoryQuantity::getDeclareUserId, userId) // .set(IfsInventoryQuantity::getIsInspect, 1) // .set(IfsInventoryQuantity::getDeclareDate, LocalDateTime.now()) // .set(IfsInventoryQuantity::getUpdateBatchNo, ifsInventoryQuantity.getUpdateBatchNo()) // ); // // threadPoolTaskExecutor.execute(() -> { // IfsInventoryQuantity inventoryQuantity = ifsInventoryQuantityMapper.selectById(ifsInventoryQuantity.getId()); // // ä¼ä¸å¾®ä¿¡éç¥ // String message = ""; // message += "æ°å¢æ¥æ£éç¥"; // message += "\næ¹æ¬¡å·: " + inventoryQuantity.getUpdateBatchNo(); // message += "\né¶ä»¶æè¿°: " + inventoryQuantity.getPartDesc(); // message += "\næµè¾¾æ°é: " + inventoryQuantity.getQtyArrived().stripTrailingZeros().toPlainString() + inventoryQuantity.getBuyUnitMeas(); // WxCpUtils.informWebHook(wechatProperty.getExaminingUrl(), message); // }); // return 1; // } // // /** // * è·åé产ä¸é¾æ£æµæ°æ® // * @param id // * @return // */ // @Override // public String getIndustryChain(Integer id) { // return ifsInventoryQuantityMapper.selectById(id).getIndustryChain(); // } // // /** // * åæææ¤éæ¥å£ // * @param ifsInventoryId // * @return // */ // @Override // public boolean repealRawOrder(Integer ifsInventoryId) { // // æ¥è¯¢å¤ææ¯å¦æ¯éåä¸ // IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(ifsInventoryId); // if (ifsInventoryQuantity.getIsCopper() != null && ifsInventoryQuantity.getIsCopper().equals(1)) { // // éåä¸ç´æ¥å é¤å°±è¡ // ifsInventoryQuantityMapper.deleteById(ifsInventoryId); // } else { // ifsInventoryQuantityMapper.update(null, new LambdaUpdateWrapper<IfsInventoryQuantity>() // .set(IfsInventoryQuantity::getState, 0) // .set(IfsInventoryQuantity::getIsQuarter, 1) // .eq(IfsInventoryQuantity::getId, ifsInventoryId)); // } // // insOrderService.update(Wrappers.<InsOrder>lambdaUpdate() // .eq(InsOrder::getIfsInventoryId, ifsInventoryId) // .set(InsOrder::getState, -1) // .set(InsOrder::getEntrustCode, ""));// æ¤é // return true; // } // // /** // * åææå æ£ä¸å // * @param list // * @param insOrder // * @return // */ // @Override // @Transactional(rollbackFor = Exception.class) // public int addExemptionOrder(List<SampleProductDto> list, InsOrder insOrder) { // if (!insOrder.getOrderType().equals(InsOrderTypeConstants.ENTER_THE_FACTORY)) { // throw new ErrorException("åªæè¿åæ£éªæè½å æ£"); // } // insOrder.setSendTime(LocalDateTime.now()); // // ä¿®æ¹è®¢åè¡¨ç´æ¥ä¸ºå·²æ£éª // insOrder.setState(4); // insOrder.setTypeSource(1); // // String code = "Y"; // // çæç¼å· // String no = numberGenerator.generateNumberWithPrefix(3, // "JCZX/ZB-" + code + LimsDateUtil.resetDate(LocalDateTime.now()), // InsOrder::getEntrustCode); // // insOrderMapper.insert(insOrder); // 主表 // // AtomicInteger count = new AtomicInteger(); // list.forEach(a -> { // count.getAndIncrement(); // a.setId(null); // a.setInsOrderId(insOrder.getId()); // if (StrUtil.isEmpty(a.getSampleCode())) { // // å¦æåªæä¸ä¸ªæ ·åå°±ä¸éè¦æ¼æ¥æ°å // if (list.size() != 1) { // a.setSampleCode(no + "-" + count.get()); // } else { // a.setSampleCode(no); // } // } // insSampleMapper.insert(a); // // if (!CollectionUtil.isEmpty(a.getInsProduct())) { // throw new ErrorException("å æ£ä¸éè¦å¡«åæ£éªé¡¹"); // } // }); // // // åææä¸å: å§æäººå°±æ¯æ¥æ£äºº, ç产åä½å°±æ¯ä¾åºååä½ // IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(insOrder.getIfsInventoryId()); // Integer declareUserId = ifsInventoryQuantity.getDeclareUserId(); // User user = userMapper.selectById(declareUserId); // // ä¾åºååç§° // insOrder.setProduction(ifsInventoryQuantity.getSupplierName()); // // å§æäººåç§° // insOrder.setPrepareUser(user.getName()); // insOrder.setPhone(user.getPhone()); // // // ä¿®æ¹åæææ°æ®ç´æ¥ä¸ºå·²æ£éª // ifsInventoryQuantityMapper.update(null, new LambdaUpdateWrapper<IfsInventoryQuantity>().set(IfsInventoryQuantity::getState, 2) // .eq(IfsInventoryQuantity::getId, insOrder.getIfsInventoryId())); // // insOrder.setExamineTime(LocalDateTime.now()); // // insOrder.setEntrustCode(no); // insOrder.setIsExemption(1); // // insOrderMapper.updateById(insOrder); // // // æ·»å å·¥æ¶ // addAuxiliary(insOrder, ifsInventoryQuantity); // // // todo: ifsç´æ¥ç§»åº // insReportService.isRawMaterial(insOrder); // // return insOrder.getId(); // } // // // /** // * æ¥è¯¢å¾ ä¸å // * @param page // * @param ifsInventoryQuantity // * @return // */ // @Override // public Map<String, Object> selectIfsInventoryQuantity(Page<IfsInventoryQuantityCheckDto> page, IfsInventoryQuantityCheckDto ifsInventoryQuantity) { // Map<String, Object> map = new HashMap<>(); // map.put("head", PrintChina.printChina(IfsInventoryQuantityCheckDto.class)); // map.put("body", standardTreeMapper.selectIfsInventoryQuantity(page, QueryWrappers.queryWrappers(ifsInventoryQuantity))); // return map; // } // // /** // * æ¥è¯¢å·²æ£éª // * @param page // * @param ifsInventoryQuantityDto // * @return // */ // @Override // public Map<String, Object> getIfsByOver(Page<IfsInventoryQuantitySupplierDto> page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto) { // Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("getIfsByStateOne"); // if (map1.get("look") == 1) { // //个人 // ifsInventoryQuantityDto.setCreateUser(map1.get("userId")); // } // String beginDeclareDate = ifsInventoryQuantityDto.getBeginDeclareDate(); // String endDeclareDate = ifsInventoryQuantityDto.getEndDeclareDate(); // ifsInventoryQuantityDto.setBeginDeclareDate(null); // ifsInventoryQuantityDto.setEndDeclareDate(null); // // Map<String, Object> map = new HashMap<>(); // map.put("head", PrintChina.printChina(IfsInventoryQuantitySupplierDto.class)); // map.put("body", standardTreeMapper.getIfsByOver(page, QueryWrappers.queryWrappers(ifsInventoryQuantityDto), beginDeclareDate, endDeclareDate)); // return map; // } // // /** // * å é¤åæææ¥æ£ä¿¡æ¯ // * @param id // * @return // */ // @Override // public int delIfsInventory(Integer id) { // return ifsInventoryQuantityMapper.deleteById(id); // } // // /** // * åæææ¾è¡å æ£ // * @param ifsInventoryId // * @return // */ // @Override // @Transactional(rollbackFor = Exception.class) // public boolean rawOrderRelease(Integer ifsInventoryId, String partDetail) { // // ä¿®æ¹åæææ°æ®ç´æ¥ä¸ºå·²æ£éª // ifsInventoryQuantityMapper.update(null, new LambdaUpdateWrapper<IfsInventoryQuantity>() // .set(IfsInventoryQuantity::getState, 2) // .set(IfsInventoryQuantity::getIsQuarter, 0) // .eq(IfsInventoryQuantity::getId, ifsInventoryId)); // // // æ¥è¯¢åææä¿¡æ¯ // IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(ifsInventoryId); // // å§æäººå°±æ¯æ¥æ£äºº, ç产åä½å°±æ¯ä¾åºååä½ // Integer declareUserId = ifsInventoryQuantity.getDeclareUserId(); // User user = userMapper.selectById(declareUserId); // // InsOrder insOrder = new InsOrder(); // insOrder.setState(4); // insOrder.setTypeSource(1); // String code = "Y"; // // çæç¼å· // String no = numberGenerator.generateNumberWithPrefix(3, // "JCZX/ZB-" + code + LimsDateUtil.resetDate(LocalDateTime.now()), // InsOrder::getEntrustCode); // insOrder.setExamineTime(LocalDateTime.now()); // insOrder.setEntrustCode(no); // insOrder.setIsExemption(1); // // ä¾åºååç§° // insOrder.setProduction(ifsInventoryQuantity.getSupplierName()); // // å§æäººåç§° // insOrder.setPrepareUser(user.getName()); // insOrder.setPhone(user.getPhone()); // insOrder.setIfsInventoryId(ifsInventoryId); // insOrder.setPartDetail(partDetail); // insOrder.setSendTime(LocalDateTime.now()); // insOrder.setSample(ifsInventoryQuantity.getPartDesc()); // // è¿åæ£éª // insOrder.setOrderType(InsOrderTypeConstants.ENTER_THE_FACTORY); // // insOrderMapper.insert(insOrder); // // // æ·»å å·¥æ¶ // addAuxiliary(insOrder, ifsInventoryQuantity); // // // todo: ifsç´æ¥ç§»åº // insReportService.isRawMaterial(insOrder); // return true; // } // // /** // * 0, æ æç¤º, 1æç¤º å½åæ¹æ¬¡çæ ·åå·²æ£éªè¿, å¯ä»¥å æ£, 2 æç¤º å½åæ¹æ¬¡çæ ·åå·²è¶ 20å¨, éè¦å¤çº§å¤æ¬¡æ£éª // * // * åææä¸åéç¥å æ£æè 夿¬¡æ£éª // * @param ifsInventoryId // * @return // */ // @Override // public int notificationRawOrder(Integer ifsInventoryId) { // IfsInventoryQuantity ifsInventory = ifsInventoryQuantityMapper.selectById(ifsInventoryId); // // æ¥è¯¢å½åæ¹æ¬¡, ä¾åºå, é¶ä»¶å·çåæææ¯å¦è¶ è¿äº20å¨, è¶ è¿äº20å¨éè¦è¿è¡å¤æ¬¡æ£éªæé // List<IfsInventoryQuantity> quantityList = ifsInventoryQuantityMapper.selectList(Wrappers.<IfsInventoryQuantity>lambdaQuery() // .eq(IfsInventoryQuantity::getPartNo, ifsInventory.getPartNo()) // .eq(IfsInventoryQuantity::getUpdateBatchNo, ifsInventory.getUpdateBatchNo()) // .eq(IfsInventoryQuantity::getSupplierId, ifsInventory.getSupplierId()) // .eq(IfsInventoryQuantity::getSupplierName, ifsInventory.getSupplierName())); // // // 夿æ¯å¦å¤§äº20å¨ // BigDecimal bigDecimal = new BigDecimal("20000"); // BigDecimal count = BigDecimal.ZERO; // for (IfsInventoryQuantity inventoryQuantity : quantityList) { // // 夿å使¯kgæè t // if (inventoryQuantity.getBuyUnitMeas().equalsIgnoreCase("t")) { // count = count.add(inventoryQuantity.getQtyArrived().multiply(new BigDecimal("1000"))); // } else if (inventoryQuantity.getBuyUnitMeas().equalsIgnoreCase("kg")) { // count = count.add(inventoryQuantity.getQtyArrived()); // } // } // // if (count.compareTo(bigDecimal) >= 0) { // return 2; // } else { // // 夿ä¹åæ¯å¦åºè¿æ¥å, åºè¿æ¥åå¯ä»¥å æ£ // int reportCount = ifsInventoryQuantityMapper.selectReportCountById(ifsInventoryId); // if (reportCount > 0) { // return 1; // } // } // return 0; // } // // /** // * æ¥æ£å¯ä»¥æ°å¢æ¥æ£ä¿¡æ¯ // * @param ifsInventoryQuantity // */ // @Override // public void addIfsInventoryQuantity(IfsInventoryQuantity ifsInventoryQuantity) { // ifsInventoryQuantity.setIsSource(0); // ifsInventoryQuantity.setState(0); // ifsInventoryQuantity.setIsFinish(0); // ifsInventoryQuantityMapper.insert(ifsInventoryQuantity); // } // // @Override // public void shiftingParking(List<Integer> ids) { // for (Integer id : ids) { // InsOrder order = insOrderService.getById(id); // // todo: ifsç´æ¥ç§»åº // insReportService.isRawMaterial(order); // } // } // // /** // * éåä¸ä¸åå æ£ // * @param list // * @param insOrder // */ // @Override // @Transactional(rollbackFor = Exception.class) // public int addRawCopperOrderExemptionOrder(List<SampleProductDto> list, CopperInsOrderDto insOrder) { // if (!insOrder.getOrderType().equals(InsOrderTypeConstants.ENTER_THE_FACTORY)) { // throw new ErrorException("åªæè¿åæ£éªæè½å æ£"); // } // insOrder.setSendTime(LocalDateTime.now()); // // ä¿®æ¹è®¢åè¡¨ç´æ¥ä¸ºå·²æ£éª // insOrder.setState(4); // insOrder.setTypeSource(1); // // String code = "Y"; // // çæç¼å· // String no = numberGenerator.generateNumberWithPrefix(3, // "JCZX/ZB-" + code + LimsDateUtil.resetDate(LocalDateTime.now()), // InsOrder::getEntrustCode); // // insOrderMapper.insert(insOrder); // 主表 // // AtomicInteger count = new AtomicInteger(); // list.forEach(a -> { // count.getAndIncrement(); // a.setId(null); // a.setInsOrderId(insOrder.getId()); // if (StrUtil.isEmpty(a.getSampleCode())) { // // å¦æåªæä¸ä¸ªæ ·åå°±ä¸éè¦æ¼æ¥æ°å // if (list.size() != 1) { // a.setSampleCode(no + "-" + count.get()); // } else { // a.setSampleCode(no); // } // } // insSampleMapper.insert(a); // // if (!CollectionUtil.isEmpty(a.getInsProduct())) { // throw new ErrorException("å æ£ä¸éè¦å¡«åæ£éªé¡¹"); // } // }); // // æ·»å åææä¿¡æ¯ // IfsInventoryQuantity ifsInventoryQuantity = new IfsInventoryQuantity(); // // åºæ¬ä¿¡æ¯ // ifsInventoryQuantity.setIsSource(0); // ifsInventoryQuantity.setState(2); // ifsInventoryQuantity.setIsInspect(1); // ifsInventoryQuantity.setIsFinish(1); // ifsInventoryQuantity.setIsCopper(1); // ifsInventoryQuantity.setInspectStatus(1); // ifsInventoryQuantity.setIsQuarter(0); // // ifsInventoryQuantity.setQtyArrived(insOrder.getQtyArrived()); // ifsInventoryQuantity.setBuyUnitMeas(insOrder.getBuyUnitMeas()); // ifsInventoryQuantity.setSupplierName(insOrder.getSupplierName()); // ifsInventoryQuantity.setUpdateBatchNo(insOrder.getUpdateBatchNo()); // ifsInventoryQuantity.setDeclareDate(insOrder.getDeclareDate()); // // ifsInventoryQuantityMapper.insert(ifsInventoryQuantity); // // insOrder.setIfsInventoryId(ifsInventoryQuantity.getId()); // insOrder.setExamineTime(LocalDateTime.now()); // // insOrder.setEntrustCode(no); // insOrder.setIsExemption(1); // // insOrderMapper.updateById(insOrder); // // // æ·»å å·¥æ¶ // addAuxiliary(insOrder, ifsInventoryQuantity); // // return insOrder.getId(); // } // // @Override // @Transactional(rollbackFor = Exception.class) // public boolean concessionRelease(Integer ifsInventoryId) { // // æ¥è¯¢åææä¿¡æ¯ // IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(ifsInventoryId); // if (!ifsInventoryQuantity.getInspectStatus().equals(2)) { // throw new ErrorException("ä¸åæ ¼çåæææè½è®©æ¥æ¾è¡"); // } // // // todo:éè¦å¤æoaæµç¨æ¯å¦æ¯è®©æ¥æ¾è¡ // String toLocation = insReportService.moveRawMaterial(ifsInventoryQuantity); // // ifsInventoryQuantityMapper.update(null, new LambdaUpdateWrapper<IfsInventoryQuantity>() // .set(IfsInventoryQuantity::getInspectStatus, 4) // .set(IfsInventoryQuantity::getToLocation, toLocation) // .eq(IfsInventoryQuantity::getId, ifsInventoryId)); // // return true; // } // // /** // * åææè¿åæ¤éä¸å // * @param enterOrderId // * @return // */ // @Override // @Transactional(rollbackFor = Exception.class) // public boolean repealEnterRawOrder(Integer enterOrderId) { // // æ¥è¯¢è®¢å // InsOrder order = insOrderMapper.selectById(enterOrderId); // // // æ¥è¯¢å¤ææ¯å¦æ¯éåä¸ // IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(order.getIfsInventoryId()); // if (ifsInventoryQuantity.getIsCopper() != null && ifsInventoryQuantity.getIsCopper().equals(1)) { // // éåä¸ç´æ¥å é¤å°±è¡ // ifsInventoryQuantityMapper.deleteById(order.getIfsInventoryId()); // } else { // ifsInventoryQuantityMapper.update(null, new LambdaUpdateWrapper<IfsInventoryQuantity>() // .set(IfsInventoryQuantity::getState, 0) // .set(IfsInventoryQuantity::getIsQuarter, 1) // .eq(IfsInventoryQuantity::getId, order.getIfsInventoryId())); // } // insOrderService.update(Wrappers.<InsOrder>lambdaUpdate() // .eq(InsOrder::getId, enterOrderId) // .set(InsOrder::getState, -1) // .set(InsOrder::getEntrustCode, ""));// æ¤é // // // æ¸ é¤ä¹åçå·¥æ¶ // auxiliaryOutputWorkingHoursMapper.delete(Wrappers.<AuxiliaryOutputWorkingHours>lambdaQuery() // .eq(AuxiliaryOutputWorkingHours::getOrderId, enterOrderId)); // // // æ¸ é¤ä¹åæ¥å // insReportService.remove(Wrappers.<InsReport>lambdaQuery() // .eq(InsReport::getInsOrderId, enterOrderId)); // // return true; // } // // /** // * åææå£åº¦æ¤éä¸å // * @param quarterOrderId // * @return // */ // @Override // @Transactional(rollbackFor = Exception.class) // public boolean repealQuarterRawOrder(Integer quarterOrderId) { // // æ¥è¯¢è®¢å // InsOrder order = insOrderMapper.selectById(quarterOrderId); // // Long count = insOrderMapper.selectCount(Wrappers.<InsOrder>lambdaQuery() // .eq(InsOrder::getIfsInventoryId, order.getIfsInventoryId()) // .ne(InsOrder::getState, -1) // .eq(InsOrder::getOrderType, InsOrderTypeConstants.ENTER_THE_FACTORY) // .ne(InsOrder::getId, order.getId())); // // 夿ä¹åæ¯å¦æè¿åæ£éª, 没æéè¦ä¿®æ¹åææä¿¡æ¯ // if (count == 0) { // ifsInventoryQuantityMapper.update(null, new LambdaUpdateWrapper<IfsInventoryQuantity>() // .set(IfsInventoryQuantity::getState, 0) // .set(IfsInventoryQuantity::getIsQuarter, 1) // .eq(IfsInventoryQuantity::getId, order.getIfsInventoryId())); // } else { // ifsInventoryQuantityMapper.update(null, new LambdaUpdateWrapper<IfsInventoryQuantity>() // .set(IfsInventoryQuantity::getIsQuarter, 1) // .eq(IfsInventoryQuantity::getId, order.getIfsInventoryId())); // } // // insOrderService.update(Wrappers.<InsOrder>lambdaUpdate() // .eq(InsOrder::getId, quarterOrderId) // .set(InsOrder::getState, -1) // .set(InsOrder::getEntrustCode, ""));// æ¤é // auxiliaryOutputWorkingHoursMapper.delete(Wrappers.<AuxiliaryOutputWorkingHours>lambdaQuery() // .eq(AuxiliaryOutputWorkingHours::getOrderId, quarterOrderId)); // // æ¸ é¤ä¹åæ¥å // insReportService.remove(Wrappers.<InsReport>lambdaQuery() // .eq(InsReport::getInsOrderId, quarterOrderId)); // return true; // } // // /** // * åæææ¥æ£å ¨é¨ä¿¡æ¯å¯¼åº // * @param ifsInventoryQuantityDto // * @param response // */ // @Override // public void rawAllExport(IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto, HttpServletResponse response) throws UnsupportedEncodingException { // //æ¥è¯¢å¯¼åºçè´¹ç¨ç»è®¡æ°æ® // String beginDeclareDate = ifsInventoryQuantityDto.getBeginDeclareDate(); // String endDeclareDate = ifsInventoryQuantityDto.getEndDeclareDate(); // ifsInventoryQuantityDto.setBeginDeclareDate(null); // ifsInventoryQuantityDto.setEndDeclareDate(null); // List<IfsInventoryQuantitySupplierDto> ifsByOverList = standardTreeMapper.getIfsByOverList(QueryWrappers.queryWrappers(ifsInventoryQuantityDto), beginDeclareDate, endDeclareDate); // // for (IfsInventoryQuantitySupplierDto dto : ifsByOverList) { // dto.setSendTimeString(dto.getSendTime() == null ? "" : dto.getSendTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); // dto.setReceiverDateString(dto.getReceiverDate() == null ? "" : dto.getReceiverDate().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); // dto.setDeclareDateString(dto.getDeclareDate() == null ? "" : dto.getDeclareDate().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); // switch (dto.getInspectStatus()) { // case 1: // dto.setInspectStatusString("åæ ¼"); // break; // case 2: // dto.setInspectStatusString("ä¸åæ ¼"); // // æ¥è¯¢ä¸åæ ¼é¡¹ // List<String> unqualifiedList = insProductMapper.selectUnqualifiedList(dto.getEnterOrderId() == null ? dto.getQuarterOrderId() : dto.getEnterOrderId()); // dto.setUnqualifiedItem(CollUtil.join(unqualifiedList, ",")); // break; // case 3: // dto.setInspectStatusString("æªä¸å"); // break; // case 4: // dto.setInspectStatusString("è®©æ¥æ¾è¡"); // break; // case 0: // dto.setInspectStatusString("æ£éªä¸"); // break; // // } // } // // // response.setContentType("application/vnd.ms-excel"); // response.setCharacterEncoding("UTF-8"); // // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå ³ç³» // String fileName = URLEncoder.encode("åæææ£æµä¿¡æ¯å¯¼åº", "UTF-8"); // response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); // try { // //æ°å»ºExcelWriter // ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); // //è·åsheet0对象 // WriteSheet mainSheet = EasyExcel.writerSheet(0, "åæææ£æµä¿¡æ¯å¯¼åº").head(IfsInventoryQuantitySupplierDto.class).build(); // // //åsheet0åå ¥æ°æ® ä¼ å ¥ç©ºlistè¿æ ·åªå¯¼åºè¡¨å¤´ // excelWriter.write(ifsByOverList, mainSheet); // //å ³éæµ // excelWriter.finish(); // } catch (IOException e) { // throw new RuntimeException("导åºå¤±è´¥"); // } // } // // /** // * åæææ¥è¯¢å¯ä»¥å£åº¦æ£éªçå 容 // * @param page // * @param ifsInventoryQuantityDto // * @return // */ // @Override // public Map<String, Object> getIfsByQuarter(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto) { // Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("getIfsByStateOne"); // if (map1.get("look") == 1) { // //个人 // ifsInventoryQuantityDto.setCreateUser(map1.get("userId")); // } // String beginDeclareDate = ifsInventoryQuantityDto.getBeginDeclareDate(); // String endDeclareDate = ifsInventoryQuantityDto.getEndDeclareDate(); // ifsInventoryQuantityDto.setBeginDeclareDate(null); // ifsInventoryQuantityDto.setEndDeclareDate(null); // // Map<String, Object> map = new HashMap<>(); // map.put("head", PrintChina.printChina(IfsInventoryQuantitySupplierDto.class)); // map.put("body", standardTreeMapper.getIfsByQuarter(page, QueryWrappers.queryWrappers(ifsInventoryQuantityDto), beginDeclareDate, endDeclareDate)); // return map; // } // // /** // * æåå ¥åº // * @param ifsInventoryId // * @return // */ // @Override // public boolean advancedGodown(Integer ifsInventoryId) { // // æ¥è¯¢åææä¿¡æ¯ // IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(ifsInventoryId); // if (!ifsInventoryQuantity.getInspectStatus().equals(0) // && !ifsInventoryQuantity.getInspectStatus().equals(3)) { // throw new ErrorException("æªæ£æµå®ææ°æ®æè½æåå ¥åº"); // } // // // todo:éè¦å¤æoaæµç¨æ¯å¦æ¯è®©æ¥æ¾è¡ // String toLocation = insReportService.moveRawMaterial(ifsInventoryQuantity); // // ifsInventoryQuantityMapper.update(null, new LambdaUpdateWrapper<IfsInventoryQuantity>() // .set(IfsInventoryQuantity::getInspectStatus, 1) // .set(IfsInventoryQuantity::getIsFinish, 1) // .set(IfsInventoryQuantity::getToLocation, toLocation) // .eq(IfsInventoryQuantity::getId, ifsInventoryId)); // // return true; // } // // // /** // * æ·»å å·¥æ¶ // * @param insOrder // * @param ifsInventoryQuantity // */ // private void addAuxiliary(InsOrder insOrder, IfsInventoryQuantity ifsInventoryQuantity) { // AuxiliaryOutputWorkingHours auxiliaryOutputWorkingHours = new AuxiliaryOutputWorkingHours(); // auxiliaryOutputWorkingHours.setInspectionItemClass(ifsInventoryQuantity.getUpdateBatchNo() + "å æ£");//æ£æµé¡¹åç±» // auxiliaryOutputWorkingHours.setSample(insOrder.getEntrustCode());//æ ·åç¼å· // auxiliaryOutputWorkingHours.setOrderId(insOrder.getId());//订åid // auxiliaryOutputWorkingHours.setOrderNo(insOrder.getEntrustCode());//éå çå§æåå· // // // å æ£é»è®¤2 // auxiliaryOutputWorkingHours.setWorkTime(new BigDecimal("2"));//éå çå·¥æ¶ // auxiliaryOutputWorkingHours.setAmount(1);//éå çæ°é // auxiliaryOutputWorkingHours.setOutputWorkTime((ObjectUtils.isNotEmpty(auxiliaryOutputWorkingHours.getOvertimeWorkTime()) ? auxiliaryOutputWorkingHours.getOvertimeWorkTime() : BigDecimal.ZERO).add(ObjectUtils.isNotEmpty(auxiliaryOutputWorkingHours.getWorkTime()) ? auxiliaryOutputWorkingHours.getWorkTime() : BigDecimal.ZERO));//产éå·¥æ¶ // DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); // DateTimeFormatter formatters = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); // auxiliaryOutputWorkingHours.setDateTime(LocalDateTime.now().toLocalDate().atStartOfDay().format(formatters));//æ¥æ // LocalDateTime localDateTime = LocalDateTime.now(); // DateTime parse = DateUtil.parse(localDateTime.format(formatter)); // auxiliaryOutputWorkingHours.setWeekDay(getWeek(localDateTime.format(formatters)));//ææ // auxiliaryOutputWorkingHours.setWeek(String.valueOf(DateUtil.weekOfYear(DateUtil.offsetDay(parse, 1))));//卿¬¡ // auxiliaryOutputWorkingHours.setCheck(getLook.selectPowerByMethodAndUserId(null).get("userId"));//æ£æµäºº // auxiliaryOutputWorkingHours.setPrice(new BigDecimal("1"));//åä»· // // auxiliaryOutputWorkingHoursMapper.insert(auxiliaryOutputWorkingHours); // } // // public static String getWeek(String dayStr) { // SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // try { // Date date = sdf.parse(dayStr); // Calendar calendar = Calendar.getInstance(); // calendar.setTime(date); // int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK); // int day = calendar.get(Calendar.DAY_OF_MONTH); // return getWeekDay(dayOfWeek); // } catch (Exception e) { // e.printStackTrace(); // } // return null; // } // // public static String getWeekDay(int dayOfWeek) { // switch (dayOfWeek) { // case Calendar.MONDAY: // return "å¨ä¸"; // case Calendar.TUESDAY: // return "å¨äº"; // case Calendar.WEDNESDAY: // return "å¨ä¸"; // case Calendar.THURSDAY: // return "å¨å"; // case Calendar.FRIDAY: // return "å¨äº"; // case Calendar.SATURDAY: // return "å¨å "; // case Calendar.SUNDAY: // return "卿¥"; // default: // return "æªç¥"; // } // } //} inspect-server/src/main/java/com/ruoyi/basic/service/impl/RawMaterialOrderTemplateServiceImpl.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,68 @@ //package com.ruoyi.basic.service.impl; // //import com.baomidou.mybatisplus.core.toolkit.StringUtils; //import com.baomidou.mybatisplus.core.toolkit.Wrappers; //import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //import com.ruoyi.basic.service.RawMaterialOrderTemplateService; //import lombok.AllArgsConstructor; //import org.springframework.stereotype.Service; // //import java.util.List; // ///** // * åææä¸åæ¨¡æ¿ // * // * @author zhuo // * @since 2024-08-05 // */ //@Service //@AllArgsConstructor //public class RawMaterialOrderTemplateServiceImpl extends ServiceImpl<RawMaterialOrderTemplateMapper, RawMaterialOrderTemplate> implements RawMaterialOrderTemplateService { // // // /** // * æ·»å åæææ£éªåæ¨¡æ¿ // * @param rawMaterialOrderTemplate // * @return // */ // @Override // public int addRawMaterOrderTemplate(RawMaterialOrderTemplate rawMaterialOrderTemplate) { // if (StringUtils.isBlank(rawMaterialOrderTemplate.getPartNo())) { // throw new RuntimeException("缺å°é¶ä»¶å·"); // } // return baseMapper.insert(rawMaterialOrderTemplate); // } // // /** // * æ¥è¯¢åæææ£éªå模æ¿å表 // * @param partNo // * @return // */ // @Override // public List<RawMaterialOrderTemplate> selectRawMaterOrderTemplate(String partNo) { // return baseMapper.selectList(Wrappers.<RawMaterialOrderTemplate>lambdaQuery() // .eq(RawMaterialOrderTemplate::getPartNo, partNo)); // } // // /** // * éè¿åæææ£éªå模æ¿idè·åæ£éªå模æ¿å 容 // * @param id // * @return // */ // @Override // public String selectRawMaterOrderTemplateById(Integer id) { // return baseMapper.selectById(id).getThing(); // } // // /** // * å é¤åæææ£éªåæ¨¡æ¿ // * @param id // * @return // */ // @Override // public int delRawMaterOrderTemplate(Integer id) { // return baseMapper.deleteById(id); // } // //} // inspect-server/src/main/resources/lib/aspose-words-15.12.0-jdk16.jarBinary files differ
inspect-server/src/main/resources/lib/license.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,13 @@ <License> <Data> <Products> <Product>Aspose.Total for Java</Product> <Product>Aspose.Words for Java</Product> </Products> <EditionType>Enterprise</EditionType> <SubscriptionExpiry>20991231</SubscriptionExpiry> <LicenseExpiry>20991231</LicenseExpiry> <SerialNumber>8bfe198c-7f0c-4ef8-8ff0-acc3237bf0d7</SerialNumber> </Data> <Signature>sNLLKGMUdF0r8O1kKilWAGdgfs2BvJb/2Xp8p5iuDVfZXmhppo+d0Ran1P9TKdjV4ABwAgKXxJ3jcQTqE/2IRfqwnPf8itN8aFZlV3TJPYeD3yWE7IT55Gz6EijUpC7aKeoohTb4w2fpox58wWoF3SNp6sK6jDfiAUGEHYJ9pjU=</Signature> </License> ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/CustomController.java
@@ -34,7 +34,7 @@ return Result.success(customService.selectCustomPageList(page, custom)); } @ApiOperation(value = "å é¤å®¢æ·ä¿¡æ¯") @PostMapping("/delCustomById") @DeleteMapping("/delCustomById") public Result delCustomById(Long id) { return Result.success(customService.delCustomById(id)); }