Merge remote-tracking branch '惠信/dev_zhangke' into rakor

This commit is contained in:
曹鹏飞 2025-09-26 12:01:19 +08:00
commit 5d8f839272
5 changed files with 55 additions and 44 deletions

View File

@ -158,7 +158,8 @@ public class MaterialControllerService {
pics.add(name);
} 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()))
{
wmsMaterial = new WmsMaterial()
.setId(null)
.setVersion(Objects.isNull(wmsMaterial) ? 1 : wmsMaterial.getVersion() + 1)

View File

@ -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();

View File

@ -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>

View File

@ -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>

View File

@ -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)