Compare commits
4 Commits
44d06ad46d
...
c8722c267a
| Author | SHA1 | Date |
|---|---|---|
|
|
c8722c267a | |
|
|
5d8f839272 | |
|
|
e2b5bb6778 | |
|
|
c5ecfd8409 |
|
|
@ -0,0 +1 @@
|
|||
lombok.equalsandhashcode.callSuper = SKIP
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
<dependency>
|
||||
<groupId>org.xhtmlrenderer</groupId>
|
||||
<artifactId>flying-saucer-pdf</artifactId>
|
||||
<version>9.11.2</version>
|
||||
<version>9.13.3</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>bcprov-jdk14</artifactId>
|
||||
|
|
@ -93,13 +93,14 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.itextpdf</groupId>
|
||||
<artifactId>itextpdf</artifactId>
|
||||
<version>5.5.13.4</version>
|
||||
<artifactId>itext7-core</artifactId>
|
||||
<version>7.2.6</version>
|
||||
<type>pom</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.itextpdf</groupId>
|
||||
<artifactId>itext-asian</artifactId>
|
||||
<version>5.2.0</version>
|
||||
<artifactId>font-asian</artifactId>
|
||||
<version>7.2.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sap.conn.jco</groupId>
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ public class InCostCenterBackController extends BaseController {
|
|||
.setMatnr(item.getMatnr())
|
||||
.setNum(item.getLeft());
|
||||
if (StrUtil.isBlank(vo.getLgort2())) {
|
||||
vo.setLgort2(storageService.getWarehouseNo(order.getWerks(), item.getMatnr()));
|
||||
vo.setLgort2(CollectionUtil.get(storageService.getWarehouseNo(order.getWerks(), item.getMatnr()), 0));
|
||||
}
|
||||
if (StrUtil.isNotBlank(vo.getLgort2()) && StrUtil.isBlank(vo.getLgpbe())) {
|
||||
vo.setLgpbe(StrUtil.join("/", storageService.getBinNos(item.getMatnr(), order.getWerks(), vo.getLgort2())));
|
||||
|
|
@ -324,20 +324,21 @@ public class InCostCenterBackController extends BaseController {
|
|||
WmsInCostcenterBack info = inCostcenterBackService.getById(id);
|
||||
VUtil.trueThrowBusinessError(Objects.isNull(info)).throwMessage("退料单不存在");
|
||||
InCostcenterBackInfoVO order = Convert.convert(InCostcenterBackInfoVO.class, info);
|
||||
List<WmsInCostcenterBackItem> list = inCostcenterBackItemService.getList(id);
|
||||
List<InCostcenterBackItemVO> list = Convert.toList(InCostcenterBackItemVO.class, inCostcenterBackItemService.getList(id));
|
||||
// InCostcenterBackInfoVO order = new InCostcenterBackInfoVO();
|
||||
// order.setNo(NoUtil.getOutCostcenterNo());
|
||||
// List<WmsInCostcenterBackItem> list = new ArrayList<>();
|
||||
// for (int i = 0, count = RandomUtil.randomInt(1, 100); i < count; i++) {
|
||||
// list.add(new WmsInCostcenterBackItem().setMatnr(RandomUtil.randomNumbers(11)).setMaktx("非金属联件和紧固件等 M6 DIN 982 不锈钢304"));
|
||||
// }
|
||||
list.forEach(item -> item.setLgort(order.getLgort()));
|
||||
Map<String, String> base = new HashMap<>();
|
||||
base.put("date", DateUtil.format(LocalDateTime.now(), "yyyy-MM-dd"));
|
||||
base.put("qrcode", QRCodeUtil.generateQRCodeBase64(order.getNo(), 100, 100));
|
||||
Map<String, Object> variables = new HashMap<>();
|
||||
variables.put("info", order);
|
||||
variables.put("base", base);
|
||||
variables.put("pages", PdfPageDTO.create(list, 17, new WmsInCostcenterBackItem()));
|
||||
variables.put("pages", PdfPageDTO.create(list, 17, new InCostcenterBackItemVO()));
|
||||
String html = ThymeleafUtil.generator("/template/", "成本中心退料单", ".html", variables);
|
||||
PdfGeneratorUtil.generatePdf("成本中心领料单" + order.getNo(), html, response);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ public class InProduceOrderController extends BaseController {
|
|||
materialNos.add(it.getMaterialNo());
|
||||
}
|
||||
//是否更改了储位
|
||||
syncStorage(it,materialQO.getBinNos());
|
||||
syncStorage(it, StrUtil.split(materialQO.getBinNos(), "/"));
|
||||
}
|
||||
});
|
||||
VUtil.trueThrowBusinessError(CollectionUtil.isNotEmpty(materialNos))
|
||||
|
|
@ -457,7 +457,7 @@ public class InProduceOrderController extends BaseController {
|
|||
return ApiResult.success();
|
||||
}
|
||||
|
||||
private void syncStorage(InProduceOrderItemVO it, Set<String> binNos) {
|
||||
private void syncStorage(InProduceOrderItemVO it, Collection<String> binNos) {
|
||||
produceOrderItemService.lambdaUpdate()
|
||||
.set(WmsInProduceOrderItem::getBinNos, StrUtil.join(",", binNos))
|
||||
.eq(WmsInProduceOrderItem::getId, it.getId())
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ public class MaterialController extends BaseController {
|
|||
*/
|
||||
@Transactional
|
||||
@PostMapping("uploadZip")
|
||||
public ApiResult uploadZip(HttpServletResponse response, @Valid @RequestParam("file") @NotEmpty MultipartFile file) throws Exception {
|
||||
public ApiResult uploadZip(HttpServletResponse response, @Valid @RequestParam("file") @NotNull MultipartFile file) throws Exception {
|
||||
return materialControllerService.uploadZip(response,file);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -678,7 +678,7 @@ public class StructuralPackageOrderController extends BaseController {
|
|||
imageData.setRelativeLastColumnIndex(0);
|
||||
writeCellData.setImageDataList(List.of(imageData));
|
||||
info.put("qrCodeUrl", writeCellData);
|
||||
UserSupplier supplier = userSupplierService.getByUserId(deliverOrder.getSupplierId());
|
||||
UserSupplier supplier = userSupplierService.getById(deliverOrder.getSupplierId());
|
||||
VUtil.trueThrowBusinessError(Objects.isNull(supplier)).throwMessage("供应商不存在");
|
||||
info.put("supplierName", supplier.getSupplierName());
|
||||
info.put("abbreviation", supplier.getAbbreviation());
|
||||
|
|
@ -725,6 +725,9 @@ public class StructuralPackageOrderController extends BaseController {
|
|||
} else {
|
||||
it.setWarehouseNo(dto.getWarehouseNo());
|
||||
it.setBinNos(binService.getBinNos(it.getPackageNo(), dto.getWerks(), dto.getWarehouseNo()));
|
||||
// if (dto.getTransportNum().compareTo(new BigDecimal(it.getNum()))<0){
|
||||
// it.setNum(dto.getTransportNum().intValue());
|
||||
// }
|
||||
}
|
||||
});
|
||||
DeliverStructuralPackageOrderForPackageVO vo = new DeliverStructuralPackageOrderForPackageVO();
|
||||
|
|
@ -765,6 +768,9 @@ public class StructuralPackageOrderController extends BaseController {
|
|||
.eq(WmsStructuralPackageOrderTray::getState, OrderState.InTransit.getState())
|
||||
.update();
|
||||
structuralPackageDeliverOrderService.updateStateByOrderId(request.getId());
|
||||
SAPMaterialInfoInOrderDTO dto = CollectionUtil.get(sapService.zim004(order.getExternalOrderNo(), order.getSupplierCode(), order.getPackageNo()), 0);
|
||||
VUtil.trueThrowBusinessError(Objects.isNull(dto)).throwMessage("ZIM_004未查询到数据");
|
||||
VUtil.trueThrowBusinessError(StrUtil.isBlank(dto.getWarehouseNo())).throwMessage("ZIM_004接口查询到仓库为空");
|
||||
//创建上架任务
|
||||
VUtil.trueThrowBusinessError(!inTaskService.generateTask(List.of(new WmsInTaskItem()
|
||||
.setPoNum(order.getExternalOrderNo())
|
||||
|
|
@ -779,9 +785,9 @@ public class StructuralPackageOrderController extends BaseController {
|
|||
.setUnqualifiedQty(BigDecimal.ZERO)
|
||||
.setQualifiedQty(BigDecimal.valueOf(order.getNum()))
|
||||
.setInspectionQty(BigDecimal.valueOf(order.getNum()))
|
||||
.setFactory("1010")
|
||||
.setFactory(dto.getWerks())
|
||||
.setDataStatus((short) 0)
|
||||
.setReceivedWarehouse(storageService.getWarehouseNo("1010", order.getPackageNo()))
|
||||
.setReceivedWarehouse(dto.getWarehouseNo())
|
||||
.setOperationUserId(UserUtil.getUserId())
|
||||
.setOperationUserName(UserUtil.getUserName())
|
||||
.setBatchNumber(order.getWorkbenchCode())
|
||||
|
|
@ -838,6 +844,7 @@ public class StructuralPackageOrderController extends BaseController {
|
|||
it.setReceivedQty(it.getInspectionQty().subtract(qo.getNum()));
|
||||
it.setBins(StrUtil.join(",", qo.getBinNos()));
|
||||
it.setDataStatus((short) 1);
|
||||
it.setReceivedWarehouse(qo.getReceivedWarehouse());
|
||||
});
|
||||
inTaskItemService.updateBatchById(datas);
|
||||
inTaskService.updateState(request.getTaskNo());
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ public class MaterialControllerService {
|
|||
wmsMaterial.setCreateTime(LocalDateTime.now());
|
||||
wmsMaterial.setId(null);
|
||||
materialService.add(wmsMaterial);
|
||||
}else {
|
||||
} else {
|
||||
wmsMaterial.setUpdateBy(UserUtil.getUserName());
|
||||
wmsMaterial.setUpdateTime(LocalDateTime.now());
|
||||
materialService.update(wmsMaterial);
|
||||
|
|
@ -113,16 +113,16 @@ public class MaterialControllerService {
|
|||
}
|
||||
|
||||
public void exportSelect(HttpServletResponse response, List<Long> ids) throws IOException {
|
||||
if (CollectionUtil.isEmpty(ids)){
|
||||
if (CollectionUtil.isEmpty(ids)) {
|
||||
exportTemplate(response);
|
||||
}else {
|
||||
} else {
|
||||
List<WmsMaterial> wmsMaterials = materialService.listByIds(ids);
|
||||
List<MaterialAllExcelExportDTO> datas = wmsMaterials.stream().map(model -> Convert.convert(MaterialAllExcelExportDTO.class, model)).collect(Collectors.toList());
|
||||
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
|
||||
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment;filename=" + URLEncoder.encode("图纸导出.xlsx", StandardCharsets.UTF_8));
|
||||
if (CollectionUtil.isEmpty(datas)) {
|
||||
exportTemplate(response);
|
||||
}else {
|
||||
} else {
|
||||
new Workbook()
|
||||
.addSheet(new ListSheet<>(datas).setRowHeight(100))
|
||||
.writeTo(response.getOutputStream());
|
||||
|
|
@ -150,24 +150,25 @@ public class MaterialControllerService {
|
|||
public ApiResult uploadPics(HttpServletResponse response, @Valid @NotEmpty List<MultipartFile> files) throws Exception {
|
||||
List<String> pics = new ArrayList<>();
|
||||
List<WmsMaterial> materials = new ArrayList<>();
|
||||
for (MultipartFile file : files){
|
||||
for (MultipartFile file : files) {
|
||||
String name = file.getOriginalFilename();
|
||||
String materialNo = name.substring(0, name.lastIndexOf("."));
|
||||
BomMaterialDTO bomMaterialDTO = bomMaterialService.getMaterialInfo(materialNo);
|
||||
if (Objects.isNull(bomMaterialDTO)) {
|
||||
pics.add(name);
|
||||
} else {
|
||||
WmsMaterial wmsMaterial=materialService.getCurrent(materialNo);
|
||||
if (Objects.isNull(wmsMaterial) || !(StrUtil.isNotBlank(wmsMaterial.getImage()) && Objects.nonNull(wmsMaterial.getWeight()))){
|
||||
wmsMaterial=new WmsMaterial()
|
||||
WmsMaterial wmsMaterial = materialService.getCurrent(materialNo);
|
||||
if (Objects.isNull(wmsMaterial) || StrUtil.isNotBlank(wmsMaterial.getImage()))
|
||||
{
|
||||
wmsMaterial = new WmsMaterial()
|
||||
.setId(null)
|
||||
.setVersion(Objects.isNull(wmsMaterial)?1:wmsMaterial.getVersion()+1)
|
||||
.setVersion(Objects.isNull(wmsMaterial) ? 1 : wmsMaterial.getVersion() + 1)
|
||||
.setNo(bomMaterialDTO.getMaterialNo())
|
||||
.setDescribe(bomMaterialDTO.getMaterialDesc())
|
||||
.setDrawingNo(bomMaterialDTO.getDrawingNo())
|
||||
.setCreateBy(UserUtil.getUserName())
|
||||
.setCreateTime(LocalDateTime.now());
|
||||
}else {
|
||||
}else{
|
||||
wmsMaterial.setDescribe(bomMaterialDTO.getMaterialDesc());
|
||||
wmsMaterial.setDrawingNo(bomMaterialDTO.getDrawingNo());
|
||||
wmsMaterial.setUpdateBy(UserUtil.getUserName());
|
||||
|
|
@ -183,18 +184,18 @@ public class MaterialControllerService {
|
|||
materialService.saveOrUpdateBatch(materials);
|
||||
}
|
||||
return ApiResult.success();
|
||||
}else {
|
||||
return ApiResult.error("以下图片SAP料号无效:"+StrUtil.join(",", pics));
|
||||
} else {
|
||||
return ApiResult.error("以下图片SAP料号无效:" + StrUtil.join(",", pics));
|
||||
}
|
||||
}
|
||||
|
||||
private String buildFilePath(String fileName) {
|
||||
String fileType="." + FilenameUtils.getExtension(fileName);
|
||||
String fileType = "." + FilenameUtils.getExtension(fileName);
|
||||
return StrUtil.format("admin/{}/{}/{}/{}{}", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMdd")), UserUtil.getUserId()
|
||||
, RandomUtil.randomString(4), IdUtil.fastUUID(), fileType);
|
||||
}
|
||||
|
||||
public ApiResult uploadZip(HttpServletResponse response, @Valid @NotEmpty MultipartFile file) throws Exception{
|
||||
public ApiResult uploadZip(HttpServletResponse response, @Valid @NotEmpty MultipartFile file) throws Exception {
|
||||
String name = file.getOriginalFilename();
|
||||
VUtil.trueThrowBusinessError(!StrUtil.endWith(name, ".zip")).throwMessage("请上传zip格式的压缩包");
|
||||
String url = fileUploadService.upload(buildFilePath(name), file);
|
||||
|
|
@ -202,7 +203,7 @@ public class MaterialControllerService {
|
|||
query.setJobNameEq("图纸zip导入");
|
||||
ResultDTO<List<JobInfoDTO>> result = powerJobClient.queryJob(query);
|
||||
if (result.isSuccess()) {
|
||||
powerJobClient.runJob(result.getData().get(0).getId(),url+"|"+UserUtil.getUserName(),0);
|
||||
powerJobClient.runJob(result.getData().get(0).getId(), url + "|" + UserUtil.getUserName(), 0);
|
||||
return ApiResult.success("任务已提交");
|
||||
} else {
|
||||
return ApiResult.error(result.getMessage());
|
||||
|
|
@ -225,14 +226,14 @@ public class MaterialControllerService {
|
|||
if (checkAndImport(data)) {
|
||||
return ApiResult.success();
|
||||
} else {
|
||||
try(ByteArrayOutputStream osOut = new ByteArrayOutputStream()) {
|
||||
try (ByteArrayOutputStream osOut = new ByteArrayOutputStream()) {
|
||||
new Workbook()
|
||||
.addSheet(new ListSheet<>(data))
|
||||
.writeTo(osOut);
|
||||
try(ByteArrayInputStream isIn = new ByteArrayInputStream(osOut.toByteArray())) {
|
||||
try (ByteArrayInputStream isIn = new ByteArrayInputStream(osOut.toByteArray())) {
|
||||
return ApiResult.error(STATE.DataNoCheckPass, "导入文件失败", fileUploadService.upload("temp/" + DateTimeUtil.format(LocalDate.now(), "yyyyMMdd") + "/" + IdUtil.fastUUID() + ".xlsx", isIn, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"));
|
||||
}
|
||||
}catch (Exception e){
|
||||
} catch (Exception e) {
|
||||
return ApiResult.error(STATE.BusinessError, "保存文件出错");
|
||||
}
|
||||
}
|
||||
|
|
@ -242,28 +243,28 @@ public class MaterialControllerService {
|
|||
public boolean checkAndImport(List<MaterialExcelImportDTO> data) {
|
||||
List<WmsMaterial> forAdd = new ArrayList<>();
|
||||
List<WmsMaterial> forupdate = new ArrayList<>();
|
||||
MaterialSearchQO qo=new MaterialSearchQO();
|
||||
MaterialSearchQO qo = new MaterialSearchQO();
|
||||
qo.setPageSize(Integer.MAX_VALUE);
|
||||
List<MaterialVO> dbMaterials=materialService.search(qo).getRecords();
|
||||
List<BomMaterialDTO> bomMaterials=bomMaterialService.getList(data.stream().map(MaterialExcelImportDTO::getNo).collect(Collectors.toSet()));
|
||||
int index=0;
|
||||
List<MaterialVO> dbMaterials = materialService.search(qo).getRecords();
|
||||
List<BomMaterialDTO> bomMaterials = bomMaterialService.getList(data.stream().map(MaterialExcelImportDTO::getNo).collect(Collectors.toSet()));
|
||||
int index = 0;
|
||||
for (MaterialExcelImportDTO dto : data) {
|
||||
System.out.println((++index)+" 处理物料:"+dto.getNo());
|
||||
System.out.println((++index) + " 处理物料:" + dto.getNo());
|
||||
WmsMaterial material = new WmsMaterial();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (StrUtil.isBlank(dto.getNo())) {
|
||||
sb.append("SAP料号不能为空;");
|
||||
} else {
|
||||
BomMaterialDTO bomMaterial = bomMaterials.stream().filter(m->StrUtil.equals(dto.getNo(),m.getMaterialNo())).findFirst().orElse(null);
|
||||
BomMaterialDTO bomMaterial = bomMaterials.stream().filter(m -> StrUtil.equals(dto.getNo(), m.getMaterialNo())).findFirst().orElse(null);
|
||||
if (Objects.isNull(bomMaterial)) {
|
||||
sb.append("SAP料号无效;");
|
||||
} else {
|
||||
MaterialVO currentMaterial = dbMaterials.stream().filter(m->StrUtil.equals(m.getNo(),dto.getNo())).findFirst().orElse(null);
|
||||
if (Objects.isNull(currentMaterial) || (StrUtil.isNotBlank(currentMaterial.getImage()) && Objects.nonNull(currentMaterial.getWeight()))){
|
||||
MaterialVO currentMaterial = dbMaterials.stream().filter(m -> StrUtil.equals(m.getNo(), dto.getNo())).findFirst().orElse(null);
|
||||
if (Objects.isNull(currentMaterial) || (StrUtil.isNotBlank(currentMaterial.getImage()) && Objects.nonNull(currentMaterial.getWeight()))) {
|
||||
material.setCreateBy(UserUtil.getUserName());
|
||||
material.setCreateTime(LocalDateTime.now());
|
||||
forAdd.add(material);
|
||||
}else {
|
||||
} else {
|
||||
material.setId(currentMaterial.getId());
|
||||
material.setUpdateBy(UserUtil.getUserName());
|
||||
material.setUpdateTime(LocalDateTime.now());
|
||||
|
|
@ -276,41 +277,41 @@ public class MaterialControllerService {
|
|||
}
|
||||
if (StrUtil.isBlank(dto.getWeight())) {
|
||||
sb.append("重量不能为空;");
|
||||
} else if (!NumberUtils.isCreatable(dto.getWeight())){
|
||||
} else if (!NumberUtils.isCreatable(dto.getWeight())) {
|
||||
sb.append("重量无效;");
|
||||
}else {
|
||||
} else {
|
||||
material.setWeight(new BigDecimal(dto.getWeight()));
|
||||
}
|
||||
if (StrUtil.isBlank(dto.getHeight())) {
|
||||
sb.append("高度不能为空;");
|
||||
} else if (!NumberUtils.isCreatable(dto.getHeight())){
|
||||
} else if (!NumberUtils.isCreatable(dto.getHeight())) {
|
||||
sb.append("高度无效;");
|
||||
}else {
|
||||
} else {
|
||||
material.setHeight(new BigDecimal(dto.getHeight()));
|
||||
}
|
||||
if (StrUtil.isBlank(dto.getLength())) {
|
||||
sb.append("长度不能为空;");
|
||||
} else if (!NumberUtils.isCreatable(dto.getLength())){
|
||||
} else if (!NumberUtils.isCreatable(dto.getLength())) {
|
||||
sb.append("长度无效;");
|
||||
}else {
|
||||
} else {
|
||||
material.setLength(new BigDecimal(dto.getLength()));
|
||||
}
|
||||
if (StrUtil.isBlank(dto.getWidth())) {
|
||||
sb.append("宽度不能为空;");
|
||||
} else if (!NumberUtils.isCreatable(dto.getWidth())){
|
||||
} else if (!NumberUtils.isCreatable(dto.getWidth())) {
|
||||
sb.append("宽度无效;");
|
||||
}else {
|
||||
} else {
|
||||
material.setWidth(new BigDecimal(dto.getWidth()));
|
||||
}
|
||||
material.setRequirement(dto.getRequirement());
|
||||
dto.setError(sb.toString());
|
||||
}
|
||||
if (data.stream().noneMatch(it -> StrUtil.isNotBlank(it.getError()))) {
|
||||
if (CollectionUtil.isNotEmpty(forAdd)){
|
||||
materialService.saveBatch(forAdd,1000);
|
||||
if (CollectionUtil.isNotEmpty(forAdd)) {
|
||||
materialService.saveBatch(forAdd, 1000);
|
||||
}
|
||||
if (CollectionUtil.isNotEmpty(forupdate)){
|
||||
materialService.updateBatchById(forupdate,1000);
|
||||
if (CollectionUtil.isNotEmpty(forupdate)) {
|
||||
materialService.updateBatchById(forupdate, 1000);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -318,7 +319,7 @@ public class MaterialControllerService {
|
|||
}
|
||||
|
||||
public void exportSearch(HttpServletResponse response, @Valid MaterialSearchQO request) throws IOException {
|
||||
List<MaterialVO> list=materialService.searchNonPage(request);
|
||||
List<MaterialVO> list = materialService.searchNonPage(request);
|
||||
List<MaterialAllExcelExportDTO> datas = list.stream().map(model -> Convert.convert(MaterialAllExcelExportDTO.class, model)).collect(Collectors.toList());
|
||||
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
|
||||
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment;filename=" + URLEncoder.encode("图纸导出.xlsx", StandardCharsets.UTF_8));
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ public class PositionControllerService {
|
|||
public PageData<PositionVO> search(PositionSearchQO request) {
|
||||
return PageUtil.convert(positionService.lambdaQuery()
|
||||
.like(StrUtil.isNotBlank(request.getName()), Position::getName, request.getName())
|
||||
.orderByDesc(Position::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize())),
|
||||
d -> Convert.convert(PositionVO.class, d));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
td {
|
||||
border: 1px solid #000;
|
||||
padding: 8px;
|
||||
padding: 7px;
|
||||
}
|
||||
|
||||
tr:first-child td {
|
||||
|
|
@ -82,7 +82,14 @@
|
|||
|
||||
.cell {
|
||||
border-bottom: 1px solid #000;
|
||||
padding: 8px;
|
||||
padding: 7px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cell1 {
|
||||
border-bottom: 1px solid #000;
|
||||
padding: 7px;
|
||||
height: 25px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
|
@ -124,15 +131,19 @@
|
|||
</table>
|
||||
<div class="data-item" th:each="item,itemStat : ${page.datas}"
|
||||
th:classappend="${itemStat.index % 3 == 0} ? 'data-item-row-first'">
|
||||
<div class="cell" style="height: 160px;">
|
||||
<div class="cell" style="height: 150px;">
|
||||
<div class="cell-img">
|
||||
<img style="width: 200px;height: 140px;" alt=""
|
||||
<img style="width: 200px;height: 130px;" alt=""
|
||||
th:src="${!#strings.isEmpty(item.image)} ? ${item.image} : (${#strings.isEmpty(item.no)} ? '' : 'http://192.168.163.83:9090/nflg-wms/template/none.png')"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell">SAP编码:<span th:text="${item.no}">2222222222</span></div>
|
||||
<div class="cell">图号:<span th:text="${item.drawingNo}">12255665451615</span></div>
|
||||
<div class="cell">名称:<span th:text="${item.name}">2222222222</span></div>
|
||||
<div class="cell1">图号:<span
|
||||
th:text="${item.drawingNo}">图号图号图号图号图号图号图号图号图号图号图号图号图号图号图号图号</span>
|
||||
</div>
|
||||
<div class="cell1">名称:<span
|
||||
th:text="${item.name}">名称名称名称名称名称名称名称名称名称名名称名名称名称名称称名称名称名称称名称名称名称</span>
|
||||
</div>
|
||||
<div class="cell">数量:<span th:text="${item.num}">1</span> 重量:<span
|
||||
th:text="${item.weight}">348.41</span></div>
|
||||
</div>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -38,7 +38,7 @@ public class DeployTest {
|
|||
//处理字体目录
|
||||
handleDir(sshUtil, localPath, remotePath, "fonts");
|
||||
//处理lib目录
|
||||
// handleDir(sshUtil, localPath, remotePath, "lib");
|
||||
handleDir(sshUtil, localPath, remotePath, "lib");
|
||||
//执行脚本启动服务
|
||||
sshUtil.exec("cd " + remotePath + " && ./restart.sh");
|
||||
sshUtil.disconnect();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.nflg.wms.common.pojo.qo;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
|
@ -18,8 +19,8 @@ public class InCostcenterBackSubmitItemQO {
|
|||
/**
|
||||
* 实际入库储位编号列表
|
||||
*/
|
||||
@NotEmpty
|
||||
private List<String> binNos;
|
||||
@NotBlank
|
||||
private String binNos;
|
||||
|
||||
/**
|
||||
* 二维码列表
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import jakarta.validation.constraints.NotEmpty;
|
|||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@Data
|
||||
public class InProduceOrderReceiveMaterialQO {
|
||||
|
|
@ -19,8 +18,8 @@ public class InProduceOrderReceiveMaterialQO {
|
|||
/**
|
||||
* 储位编号列表
|
||||
*/
|
||||
@NotEmpty
|
||||
private Set<String> binNos;
|
||||
@NotBlank
|
||||
private String binNos;
|
||||
|
||||
/**
|
||||
* 二维码列表
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import jakarta.validation.constraints.NotEmpty;
|
|||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Set;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class MaterialStorageItemQO {
|
||||
|
|
@ -38,7 +38,7 @@ public class MaterialStorageItemQO {
|
|||
* 储位列表
|
||||
*/
|
||||
@NotEmpty
|
||||
private Set<String> binNos;
|
||||
private List<String> binNos;
|
||||
|
||||
/**
|
||||
* 越库数量
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import java.io.Serializable;
|
|||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@Accessors
|
||||
@Accessors(chain = true)
|
||||
public class DeliverStructuralPackageOrderTrayItemVO implements Serializable {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import lombok.experimental.Accessors;
|
|||
import java.util.Collection;
|
||||
|
||||
@Data
|
||||
@Accessors
|
||||
@Accessors(chain = true)
|
||||
public class UserSupplierItemVO {
|
||||
//所属角色
|
||||
private Collection<Long> roleIds;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public interface WmsStorageMapper extends BaseMapper<WmsStorage> {
|
|||
|
||||
List<StorageVO> searchNonPage(@Param("request") StorageSearchQO request);
|
||||
|
||||
String getWarehouseNo(String factoryNo, String materialNo);
|
||||
List<String> getWarehouseNo(String factoryNo, String materialNo);
|
||||
|
||||
String getBinNos(String materialNo, String factoryNo, String warehouseNo);
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public interface IWmsStorageService extends IService<WmsStorage> {
|
|||
|
||||
List<StorageVO> searchNonPage(@Valid StorageSearchQO request);
|
||||
|
||||
String getWarehouseNo(String factoryNo,String materialNo);
|
||||
List<String> getWarehouseNo(String factoryNo, String materialNo);
|
||||
|
||||
Set<String> getBinNos(String materialNo, @NotBlank String factoryNo, String warehouseNo);
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ public class ParamConfigServiceImpl extends ServiceImpl<ParamConfigMapper, Param
|
|||
.like(StrUtil.isNotBlank(request.getName()), ParamConfig::getName, request.getName())
|
||||
.like(StrUtil.isNotBlank(request.getCode()), ParamConfig::getCode, request.getCode())
|
||||
.like(StrUtil.isNotBlank(request.getGroupName()), ParamConfig::getGroupName, request.getGroupName())
|
||||
.orderByDesc(ParamConfig::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
if (CollectionUtil.isEmpty(page.getRecords())) {
|
||||
return new PageData<>();
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ public class WebComponentServiceImpl extends ServiceImpl<WebComponentMapper, Web
|
|||
.like(StrUtil.isNotBlank(request.getName()), WebComponent::getComponentName, request.getName())
|
||||
.eq(StrUtil.isNotBlank(request.getModuleName()), WebComponent::getModuleName, request.getModuleName())
|
||||
.eq(StrUtil.isNotBlank(request.getPageName()), WebComponent::getPageName, request.getPageName())
|
||||
.orderByDesc(WebComponent::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
Map<Long, String> userMap = new HashMap<>();
|
||||
return PageUtil.convert(page, (d) -> {
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ public class WmsGongzhuangTaizhangCheckServiceImpl extends ServiceImpl<WmsGongzh
|
|||
public IPage<WmsGongzhuangTaizhangCheck> search(GongZhuangTaiZhangCheckListQO request) {
|
||||
return lambdaQuery()
|
||||
.eq(WmsGongzhuangTaizhangCheck::getNo, request.getNo())
|
||||
.orderByDesc(WmsGongzhuangTaizhangCheck::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ public class WmsGongzhuangTaizhangServiceImpl extends ServiceImpl<WmsGongzhuangT
|
|||
return lambdaQuery()
|
||||
.like(StrUtil.isNotBlank(request.getNo()), WmsGongzhuangTaizhang::getNo, request.getNo())
|
||||
.like(StrUtil.isNotBlank(request.getName()), WmsGongzhuangTaizhang::getName, request.getName())
|
||||
.orderByDesc(WmsGongzhuangTaizhang::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ public class WmsInCostcenterBackServiceImpl extends ServiceImpl<WmsInCostcenterB
|
|||
.like(StrUtil.isNotBlank(request.getKostl()), WmsInCostcenterBack::getKostl, request.getKostl())
|
||||
.ge(request.getStartDate() != null, WmsInCostcenterBack::getCreateTime, request.getStartDate())
|
||||
.le(request.getEndDate() != null, WmsInCostcenterBack::getCreateTime, request.getEndDate())
|
||||
.orderByDesc(WmsInCostcenterBack::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ public class WmsInProduceOrderServiceImpl extends ServiceImpl<WmsInProduceOrderM
|
|||
)
|
||||
.ge(Objects.nonNull(request.getStartDate()), WmsInProduceOrder::getCreateTime, request.getStartDate())
|
||||
.le(Objects.nonNull(request.getEndDate()), WmsInProduceOrder::getCreateTime, request.getEndDate())
|
||||
.orderByDesc(WmsInProduceOrder::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ public class WmsOutPurchaseServiceImpl extends ServiceImpl<WmsOutPurchaseMapper,
|
|||
.eq(StrUtil.isNotBlank(request.getLifnr()), WmsOutPurchase::getLifnr, request.getLifnr())
|
||||
.ge(Objects.nonNull(request.getStartDate()), WmsOutPurchase::getCreateTime, request.getStartDate())
|
||||
.le(Objects.nonNull(request.getEndDate()), WmsOutPurchase::getCreateTime, request.getEndDate())
|
||||
.orderByDesc(WmsOutPurchase::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.nflg.wms.common.pojo.qo.SRMOrderSearchQO;
|
||||
import com.nflg.wms.common.pojo.qo.SearchDeliverOrderQO;
|
||||
import com.nflg.wms.common.pojo.vo.PoReceiveTaskItemVO;
|
||||
import com.nflg.wms.common.pojo.vo.PoReceiveTaskVO;
|
||||
import com.nflg.wms.common.pojo.vo.SrmOrderVO;
|
||||
import com.nflg.wms.repository.entity.WmsSrmOrder;
|
||||
|
|
@ -34,6 +33,7 @@ public class WmsSrmOrderServiceImpl extends ServiceImpl<WmsSrmOrderMapper, WmsSr
|
|||
.eq(StrUtil.isNotBlank(request.getOrderNo()),WmsSrmOrder::getNoteNum, request.getOrderNo())
|
||||
.ge(Objects.nonNull(request.getStartDate()), WmsSrmOrder::getCreateTime, request.getStartDate())
|
||||
.le(Objects.nonNull(request.getEndDate()), WmsSrmOrder::getCreateTime, request.getEndDate())
|
||||
.orderByDesc(WmsSrmOrder::getId)
|
||||
.page(new Page<>(request.getPage(),request.getPageSize()));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ public class WmsStorageServiceImpl extends ServiceImpl<WmsStorageMapper, WmsStor
|
|||
}
|
||||
|
||||
@Override
|
||||
public String getWarehouseNo(String factoryNo,String materialNo) {
|
||||
public List<String> getWarehouseNo(String factoryNo, String materialNo) {
|
||||
return baseMapper.getWarehouseNo(factoryNo,materialNo);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@ public class WmsToolMaterialCheckServiceImpl extends ServiceImpl<WmsToolMaterial
|
|||
|
||||
@Override
|
||||
public IPage<WmsToolMaterialCheck> search(GongZhuangTaiZhangCheckListQO request) {
|
||||
return lambdaQuery().eq(WmsToolMaterialCheck::getNo, request.getNo())
|
||||
return lambdaQuery()
|
||||
.eq(WmsToolMaterialCheck::getNo, request.getNo())
|
||||
.orderByDesc(WmsToolMaterialCheck::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@ public class WmsToolMaterialMaintainServiceImpl extends ServiceImpl<WmsToolMater
|
|||
|
||||
@Override
|
||||
public IPage<WmsToolMaterialMaintain> search(GongZhuangTaiZhangCheckListQO request) {
|
||||
return lambdaQuery().eq(WmsToolMaterialMaintain::getNo, request.getNo())
|
||||
return lambdaQuery()
|
||||
.eq(WmsToolMaterialMaintain::getNo, request.getNo())
|
||||
.orderByDesc(WmsToolMaterialMaintain::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ public class WmsToolMaterialServiceImpl extends ServiceImpl<WmsToolMaterialMappe
|
|||
public IPage<WmsToolMaterial> search(ToolMaterialSearchQO request) {
|
||||
return lambdaQuery()
|
||||
.like(StrUtil.isNotBlank(request.getNo()), WmsToolMaterial::getNo, request.getNo())
|
||||
.orderByDesc(WmsToolMaterial::getId)
|
||||
.page(new Page<>(request.getPage(), request.getPageSize()));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
from ad a
|
||||
inner join ad_sync ac on a.id = ac.ad_id
|
||||
where a.enable
|
||||
order by a."id" desc
|
||||
</select>
|
||||
|
||||
<select id="getInfo" resultType="com.nflg.wms.common.pojo.dto.AdDTO">
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
FROM dictionary_item_translate t
|
||||
LEFT JOIN language l ON t.language_code=l.code
|
||||
WHERE t.dictionary_item_id=#{id}
|
||||
ORDER BY t.id
|
||||
</select>
|
||||
|
||||
<select id="getAllByDictionaryCode" resultType="com.nflg.wms.common.pojo.vo.DictionaryItemTranslateVO">
|
||||
|
|
@ -25,6 +26,7 @@
|
|||
LEFT JOIN dictionary_item_translate t ON t.dictionary_item_id=di.id AND t.language_code=#{language}
|
||||
LEFT JOIN "language" l ON t.language_code=l.code
|
||||
WHERE d.code=#{code}
|
||||
ORDER BY t.id
|
||||
</select>
|
||||
|
||||
<select id="getByDictionaryCode" resultType="com.nflg.wms.repository.entity.DictionaryItemTranslate">
|
||||
|
|
@ -33,5 +35,6 @@
|
|||
INNER JOIN dictionary_item di on di.id=dit.dictionary_item_id
|
||||
inner join dictionary d on di.dictionary_id=d.id
|
||||
WHERE d.code=#{dictionaryCode}
|
||||
ORDER BY dit.id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@
|
|||
FROM "dictionary" d
|
||||
INNER JOIN dictionary_item di ON d."id"=di.dictionary_id
|
||||
WHERE d.code=#{code} AND di.code=#{itemCode}
|
||||
order by di.id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
WHERE mb.enable = TRUE
|
||||
AND mb.menu_id = #{menuId}
|
||||
AND urm.user_id = #{userId}
|
||||
order by mb.id
|
||||
</select>
|
||||
|
||||
<select id="menuIsSelected" resultType="java.lang.Boolean">
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
AND name ilike CONCAT('%',#{request.name},'%')
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY id DESC
|
||||
</select>
|
||||
|
||||
<select id="getMenusByRoleCodes" resultType="com.nflg.wms.common.pojo.vo.MenuVO">
|
||||
|
|
@ -22,5 +23,6 @@
|
|||
AND r.enable = TRUE
|
||||
AND urm.user_id = #{userId}
|
||||
AND m.service_desc_id = #{serviceId}
|
||||
order by m.id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -33,5 +33,6 @@
|
|||
and vu.create_time <= #{request.endDate}
|
||||
</if>
|
||||
</where>
|
||||
order by vu.id desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
FROM user_role_map urm
|
||||
INNER JOIN "role" r ON urm.role_id=r."id"
|
||||
WHERE urm.user_id=#{id}
|
||||
ORDER BY r."id"
|
||||
</select>
|
||||
|
||||
<select id="getAuthorizeUser" resultType="com.nflg.wms.common.pojo.vo.UserVO">
|
||||
|
|
@ -16,6 +17,7 @@
|
|||
left join user_interior b on u."id"=b.user_id
|
||||
left join department c on b.dept_id=c."id"
|
||||
where urm.role_id = #{roleId}
|
||||
order by u.id
|
||||
</select>
|
||||
|
||||
<select id="getAuthorizeRole" resultType="com.nflg.wms.common.pojo.vo.RoleSimpleVO">
|
||||
|
|
@ -23,5 +25,6 @@
|
|||
from user_role_map urm
|
||||
inner join role r on urm.role_id = r.id
|
||||
where urm.user_id = #{userId}
|
||||
order by r.id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<foreach item="item" collection="ids" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
order by bin.id desc
|
||||
</select>
|
||||
|
||||
<select id="searchNonPage" resultType="com.nflg.wms.common.pojo.vo.BinVO">
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@
|
|||
FROM wms_bom b1
|
||||
INNER JOIN wms_bom b2 ON b2.parent_id=b1."id"
|
||||
WHERE b1."no"=#{materialNo}
|
||||
ORDER BY b2.id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
and datum <= #{request.endDate}
|
||||
</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
<select id="getOutboundTask" resultType="com.nflg.wms.common.pojo.vo.ComponentPackingPdaVO">
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@
|
|||
FROM wms_in_costcenter_back_ticket_item icbti
|
||||
INNER JOIN wms_in_costcenter_back_item icbi ON icbti.order_item_id=icbi."id"
|
||||
WHERE icbti.ticket_id=#{id}
|
||||
ORDER BY icbti.id desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@
|
|||
select *
|
||||
from wms_in_produce_back_item
|
||||
where order_id=#{id}
|
||||
order by id desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -8,5 +8,6 @@
|
|||
INNER JOIN wms_in_produce_back_item ipbi ON ipbti.produce_back_item_id=ipbi."id"
|
||||
inner join wms_in_produce_back ipb on ipb.id=ipbi.order_id
|
||||
WHERE ipbti.ticket_id=#{id}
|
||||
ORDER BY ipbti.id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
and ipbt.create_time <= #{request.endDate}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY ipbt.id DESC
|
||||
</select>
|
||||
|
||||
<select id="getInfo" resultType="com.nflg.wms.common.pojo.vo.InProduceBackTicketVO">
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@
|
|||
FROM wms_in_produce_order ipo
|
||||
INNER JOIN wms_in_produce_order_item ipoi ON ipo."id"=ipoi.order_id
|
||||
WHERE ipo."id"=#{id}
|
||||
ORDER BY ipoi.id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,12 @@
|
|||
from wms_po_receipt
|
||||
where is_completed=false and source_type=0
|
||||
<if test="orederNo !=null and orederNo !='' ">
|
||||
and ( order_no ilike #{orederNo} or in_num ilike #{orederNo} )
|
||||
and (
|
||||
order_no like concat('%', #{orederNo}, '%')
|
||||
or in_num like concat('%', #{orederNo}, '%')
|
||||
or exists (select 1 from wms_po_receipt_item where wms_po_receipt.id=wms_po_receipt_item.receive_id
|
||||
and wms_po_receipt_item.po_num like concat('%', #{orederNo}, '%'))
|
||||
)
|
||||
</if>
|
||||
order by id desc
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,12 @@
|
|||
from wms_qc_receive
|
||||
where is_completed !=2 and is_check = true and source_type=0
|
||||
<if test="orderNo != null and orderNo != ''">
|
||||
and ( in_no ilike concat( '%',#{orderNo},'%') or order_no ilike concat( '%',#{orderNo},'%') )
|
||||
and ( in_no like concat( '%',#{orderNo},'%')
|
||||
or order_no like concat( '%',#{orderNo},'%')
|
||||
or exists (select 1 from wms_qc_receive_item where wms_qc_receive.id=wms_qc_receive_item.receive_id
|
||||
and wms_qc_receive_item.po_num
|
||||
ilike concat('%', #{orderNo}, '%'))
|
||||
)
|
||||
</if>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
and t."binNos" like concat('%', #{request.binNo}, '%')
|
||||
</if>
|
||||
</where>
|
||||
order by id desc
|
||||
order by t.id desc
|
||||
</select>
|
||||
|
||||
<select id="getList" resultType="com.nflg.wms.common.pojo.vo.StorageVO">
|
||||
|
|
@ -41,6 +41,7 @@
|
|||
<foreach item="item" collection="ids" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
order by s.id desc
|
||||
</select>
|
||||
|
||||
<select id="searchNonPage" resultType="com.nflg.wms.common.pojo.vo.StorageVO">
|
||||
|
|
@ -68,6 +69,7 @@
|
|||
and t."binNos" like concat('%', #{request.binNo}, '%')
|
||||
</if>
|
||||
</where>
|
||||
order by t.id desc
|
||||
</select>
|
||||
|
||||
<select id="getWarehouseNo" resultType="java.lang.String">
|
||||
|
|
@ -95,6 +97,7 @@
|
|||
FROM wms_storage s
|
||||
LEFT JOIN wms_warehouse wh ON s.warehouse_id = wh.id
|
||||
LEFT JOIN dictionary_item di ON wh.factory_id = di."id"
|
||||
where s.sap_state != 1;
|
||||
where s.sap_state != 1
|
||||
order by s.id desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -19,5 +19,6 @@
|
|||
from wms_structural_package_order_tray ot
|
||||
inner join wms_structural_package_order_tray_item oti on ot."id"=oti.tray_id
|
||||
where ot.no=#{trayNo}
|
||||
order by oti.id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@
|
|||
<foreach item="item" collection="ids" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
order by o.id desc
|
||||
</select>
|
||||
|
||||
<select id="getInfo" resultType="com.nflg.wms.common.pojo.vo.DeliverStructuralPackageOrderExtendVO">
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
and w.name ilike concat('%',#{request.name},'%')
|
||||
</if>
|
||||
</where>
|
||||
order by w.id desc
|
||||
</select>
|
||||
|
||||
<select id="getList" resultType="com.nflg.wms.common.pojo.vo.WarehouseVO">
|
||||
|
|
@ -27,6 +28,7 @@
|
|||
<foreach item="item" collection="ids" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
order by w.id desc
|
||||
</select>
|
||||
|
||||
<select id="searchNonPage" resultType="com.nflg.wms.common.pojo.vo.WarehouseVO">
|
||||
|
|
@ -41,6 +43,7 @@
|
|||
and w.name ilike concat('%',#{request.name},'%')
|
||||
</if>
|
||||
</where>
|
||||
order by w.id desc
|
||||
</select>
|
||||
|
||||
<select id="getEnableList" resultType="com.nflg.wms.common.pojo.vo.WarehouseVO">
|
||||
|
|
@ -51,7 +54,7 @@
|
|||
<if test="factoryNo!=null and factoryNo!=''">
|
||||
and di.code=#{factoryNo}
|
||||
</if>
|
||||
order by w.id
|
||||
order by di.code,w.id desc
|
||||
</select>
|
||||
|
||||
<select id="getListByIds" resultType="com.nflg.wms.common.pojo.vo.WarehouseVO">
|
||||
|
|
@ -62,5 +65,6 @@
|
|||
<foreach item="item" collection="list" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
order by w.id desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public class MaterialZipImportProcessor implements BasicProcessor {
|
|||
omsLogger.error("主数据中未查找到该物料:{}", materialNo);
|
||||
} else {
|
||||
WmsMaterial wmsMaterial = materialService.getCurrent(materialNo);
|
||||
if (Objects.isNull(wmsMaterial) || !(StrUtil.isNotBlank(wmsMaterial.getImage()) && Objects.nonNull(wmsMaterial.getWeight()))) {
|
||||
if (Objects.isNull(wmsMaterial) || StrUtil.isNotBlank(wmsMaterial.getImage())) {
|
||||
omsLogger.info("添加图纸");
|
||||
wmsMaterial = new WmsMaterial()
|
||||
.setId(null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue