灯组剂量单位修改

dev_xcgl
yewj 6 months ago
parent a1118b316a
commit b9e8dea931

@ -24,6 +24,7 @@ import com.glxp.api.service.collect.IoCollectCodeService;
import com.glxp.api.service.collect.IoCollectLedGroupService; import com.glxp.api.service.collect.IoCollectLedGroupService;
import com.glxp.api.service.collect.IoCollectOrderBizService; import com.glxp.api.service.collect.IoCollectOrderBizService;
import com.glxp.api.service.inout.IoSplitCodeService; import com.glxp.api.service.inout.IoSplitCodeService;
import com.glxp.api.util.IntUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -96,6 +97,9 @@ public class IoCollectLedGroupController extends BaseController {
bizId = collectLedGroup.getGreen(); bizId = collectLedGroup.getGreen();
collectLedGroup.setGreen(0l); collectLedGroup.setGreen(0l);
} }
if (IntUtil.value(bizId) == 0){
return ResultVOUtils.error("无订单");
}
ioCollectLedGroupService.updateById(collectLedGroup); ioCollectLedGroupService.updateById(collectLedGroup);
IoCollectOrderBiz collectOrderBiz = ioCollectOrderBizService.getById(bizId); IoCollectOrderBiz collectOrderBiz = ioCollectOrderBizService.getById(bizId);
splitCodeService.confirmBizAutiTagCode(collectOrderBiz, sysWorkplaceQueue.getCode()); splitCodeService.confirmBizAutiTagCode(collectOrderBiz, sysWorkplaceQueue.getCode());

@ -1,5 +1,6 @@
package com.glxp.api.service.collect; package com.glxp.api.service.collect;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
@ -92,6 +93,7 @@ public class IoCollectLedGroupService extends ServiceImpl<IoCollectLedGroupMappe
} }
// http://192.168.0.166:9099/wms/associate/lighttagsled // http://192.168.0.166:9099/wms/associate/lighttagsled
String json = JSONUtil.toJsonStr(ledGroupRequest); String json = JSONUtil.toJsonStr(ledGroupRequest);
log.error("json:{}" + json); log.error("json:{}" + json);
String result = okHttpCli.doPostJson("http://192.168.0.166:9099/wms/associate/lighttagsled", json); String result = okHttpCli.doPostJson("http://192.168.0.166:9099/wms/associate/lighttagsled", json);
@ -115,6 +117,6 @@ public class IoCollectLedGroupService extends ServiceImpl<IoCollectLedGroupMappe
return LedColorStatusEnum.DEFAULT.getReturnValue(); return LedColorStatusEnum.DEFAULT.getReturnValue();
} }
throw new JsonException("灯组已满"); return LedColorStatusEnum.DEFAULT.getReturnValue();
} }
} }

@ -142,9 +142,11 @@ public class ThrOrderDownload implements IDownload {
UdiRelevanceEntity basicUdirelEntity = udiRelevanceDao.selectOne(new LambdaQueryWrapper<UdiRelevanceEntity>().eq(UdiRelevanceEntity::getMainId, entity.getThrCode()).last("limit 1")); UdiRelevanceEntity basicUdirelEntity = udiRelevanceDao.selectOne(new LambdaQueryWrapper<UdiRelevanceEntity>().eq(UdiRelevanceEntity::getMainId, entity.getThrCode()).last("limit 1"));
if (basicUdirelEntity != null) { if (basicUdirelEntity != null) {
collectOrderBiz.setRelId(basicUdirelEntity.getId()); collectOrderBiz.setRelId(basicUdirelEntity.getId());
BasicProductsEntity basicProductsEntity = basicProductsDao.selectOne(new LambdaQueryWrapper<BasicProductsEntity>().eq(BasicProductsEntity::getUuid, basicUdirelEntity.getUuid()).last("limit 1")); BasicProductsEntity basicProductsEntity = basicProductsDao.selectOne(new LambdaQueryWrapper<BasicProductsEntity>().eq(BasicProductsEntity::getUuid, basicUdirelEntity.getUuid()).eq(BasicProductsEntity::getPackLevel, "1").last("limit 1"));
if (basicProductsEntity == null || StrUtil.isEmpty(basicProductsEntity.getNameCode())) { if (basicProductsEntity == null || StrUtil.isEmpty(basicProductsEntity.getNameCode())) {
errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";"); errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";");
} else {
collectOrderBiz.setMeasureUnit(basicProductsEntity.getXjdw());
} }
} else { } else {
errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";"); errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";");

@ -1,6 +1,7 @@
package com.glxp.api.service.inout; package com.glxp.api.service.inout;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
@ -562,7 +563,11 @@ public class IoSplitCodeService extends ServiceImpl<IoSplitCodeMapper, IoSplitCo
} else } else
collectOrderBiz.setAutoTagStatus(1); collectOrderBiz.setAutoTagStatus(1);
} }
ioCollectLedGroupService.openLed(collectOrderBizs); ThreadUtil.execAsync(() -> {
ioCollectLedGroupService.openLed(collectOrderBizs);
}
);
collectOrderBizService.updateBatchById(collectOrderBizs); collectOrderBizService.updateBatchById(collectOrderBizs);
} }

@ -4,7 +4,7 @@ server:
spring: spring:
datasource: datasource:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver driver-class-name: com.p6spy.engine.spy.P6SpyDriver
jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_hlfy_pro?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true jdbc-url: jdbc:p6spy:mysql://192.168.0.43:3306/udi_wms_hlfy_pro?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root username: root
password: 123456 password: 123456
hikari: hikari:

@ -24,7 +24,7 @@
ico.fromCorpName, ico.fromCorpName,
ico.tagMsg, ico.tagMsg,
sys_workplace_document.busName busTypeName, sys_workplace_document.busName busTypeName,
COALESCE(thr_bustype_origin.name, basic_bussiness_type.name) as actionName, COALESCE(thr_bustype_origin.name, basic_bussiness_type.name) as actionName,
sw.workplaceName, sw.workplaceName,
ico.id, ico.id,
ico.orderTime, ico.orderTime,
@ -177,6 +177,8 @@
TRUNCATE io_collect_order_biz_origin; TRUNCATE io_collect_order_biz_origin;
TRUNCATE io_collect_order_backup; TRUNCATE io_collect_order_backup;
TRUNCATE io_collect_order_biz_backup; TRUNCATE io_collect_order_biz_backup;
TRUNCATE io_collect_code_backup;
</select> </select>
<update id="updateInvAlert" parameterType="map"> <update id="updateInvAlert" parameterType="map">

@ -5079,10 +5079,10 @@ CREATE TABLE IF NOT EXISTS `io_collect_led_group`
`id` bigint NOT NULL COMMENT '主键id', `id` bigint NOT NULL COMMENT '主键id',
`mac` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '标签id', `mac` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '标签id',
`ledNum` int NULL DEFAULT NULL COMMENT 'led灯编号', `ledNum` int NULL DEFAULT NULL COMMENT 'led灯编号',
`red` tinyint NULL DEFAULT NULL COMMENT '红灯', `red` bigint NULL DEFAULT NULL COMMENT '红灯',
`orange` tinyint NULL DEFAULT NULL COMMENT '橘灯', `orange` bigint NULL DEFAULT NULL COMMENT '橘灯',
`blue` tinyint NULL DEFAULT NULL COMMENT '蓝色', `blue` bigint NULL DEFAULT NULL COMMENT '蓝色',
`green` tinyint NULL DEFAULT NULL COMMENT '绿色', `green` bigint NULL DEFAULT NULL COMMENT '绿色',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注', `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
`createTime` datetime NULL DEFAULT NULL, `createTime` datetime NULL DEFAULT NULL,
`updateTime` datetime NULL DEFAULT NULL, `updateTime` datetime NULL DEFAULT NULL,

Loading…
Cancel
Save