Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/main/java/com/glxp/api/controller/trace/TraceOrderController.java
#	src/main/java/com/glxp/api/service/trace/TraceOrderService.java
#	src/main/java/com/glxp/api/service/trace/impl/TraceOrderServiceImpl.java
cert
schry 2 years ago
commit 18ab4f6ac6

@ -378,7 +378,7 @@
</dependencies>
<build>
<finalName>UDI_WMS_MC</finalName>
<finalName>UDI_CPT_SERVER</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>

@ -151,7 +151,6 @@ public class UdiTraceController extends BaseController {
}
return ResultVOUtils.success(traceRecordLogEntity);
}

@ -23,4 +23,7 @@ public interface BasicUdiRelMapper extends BaseMapper<BasicUdiRelEntity> {
List<String> findDiList(@Param("uuid") String uuid);
List<String> findDiListByProduct(FilterUdiRelRequest filterUdiRelRequest);
}

@ -16,6 +16,7 @@ import lombok.Data;
@Data
@TableName(value = "trace_order")
public class TraceOrderEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Long id;
@ -67,6 +68,13 @@ public class TraceOrderEntity implements Serializable {
@TableField(value = "toCorpCreditNum")
private String toCorpCreditNum;
/**
* 使 使
*/
@TableField(value = "toUserInfo")
private String toUserInfo;
/**
*
*/
@ -79,6 +87,13 @@ public class TraceOrderEntity implements Serializable {
@TableField(value = "companyIdFk")
private Long companyIdFk;
/**
*
*/
@TableField(value = "companyCertNum")
private String companyCertNum;
/**
*
*/
@ -144,6 +159,11 @@ public class TraceOrderEntity implements Serializable {
@TableField(value = "traceProductIdFk")
private Long traceProductIdFk;
/**
* 1::) 2: :3:(使)
*/
@TableField(value = "sourceType")
private Long sourceType;
private static final long serialVersionUID = 1L;
}

@ -27,7 +27,7 @@ public class TraceTaskNoticeEntity implements Serializable {
private Long produdctRecordIdFk;
/**
* 12:
* 12:
*/
@TableField(value = "taskType")
private Integer taskType;

@ -21,7 +21,7 @@ public class TraceOrderResponse {
/**
* 1:2
*/
private Byte inOutType;
private Integer inOutType;
/**
*
@ -48,21 +48,28 @@ public class TraceOrderResponse {
*/
private String toCorpCreditNum;
private String toUserInfo;
/**
*
*/
private Long createUser;
/**
* ID
* ID
*/
private Long companyIdFk;
/**
*
*
*/
private String companyName;
/**
*
*/
private String companyCertNum;
/**
*
*/

@ -60,4 +60,14 @@ public class BasicUdiRelService extends ServiceImpl<BasicUdiRelMapper, BasicUdiR
return null;
}
public List<String> findDiListByProduct(FilterUdiRelRequest filterUdiRelRequest) {
if (StrUtil.isNotEmpty(filterUdiRelRequest.getNameCode())) {
BasicUdiRelResponse basicUdiRelResponse = findByProductNameCode(filterUdiRelRequest.getNameCode());
return basicUdiRelMapper.findDiList(basicUdiRelResponse.getUuid());
} else {
return basicUdiRelMapper.findDiListByProduct(filterUdiRelRequest);
}
}
}

@ -6,6 +6,7 @@ import com.glxp.api.entity.trace.MqTraceMessage;
import com.glxp.api.entity.trace.TraceProductDetailEntity;
import com.glxp.api.entity.trace.TraceRecordLogEntity;
import com.glxp.api.entity.trace.TraceTaskNoticeEntity;
import com.glxp.api.req.basic.FilterUdiRelRequest;
import com.glxp.api.req.trace.TraceRecordRequest;
import com.glxp.api.res.basic.BasicUdiRelResponse;
import com.glxp.api.service.basic.BasicUdiProductService;
@ -109,21 +110,28 @@ public class UdiTraceService {
//1.查询生产订单信息是否已上传
if (traceProductDetailEntity.getManuStatus() != 3) {
//生产订单关联关系
if (traceProductDetailEntity.getManuStatus() == 2) {
TraceTaskNoticeEntity taskNoticeEntity = traceTaskNoticeService.findTask(1, traceProductDetailEntity.getId());
if (taskNoticeEntity == null) {
createTraceNotice(1, traceProductDetailEntity, companyId);
pushMq(traceProductDetailEntity, companyId);
} else if (taskNoticeEntity.getStatus() == 4) {
//任务超时未处理,重新推送消息
pushMq(traceProductDetailEntity, companyId);
}
//生产订单关联关系
if (traceProductDetailEntity.getManuStatus() == 1) { //生产订单未处理
createTraceNotice(1, traceProductDetailEntity, companyId);
pushMq(traceProductDetailEntity, companyId);
} else if (traceProductDetailEntity.getManuStatus() == 2) { //生产订单处理未完成
TraceTaskNoticeEntity taskNoticeEntity = traceTaskNoticeService.findTask(1, traceProductDetailEntity.getId());
if (taskNoticeEntity == null) {
createTraceNotice(1, traceProductDetailEntity, companyId);
pushMq(traceProductDetailEntity, companyId);
} else if (taskNoticeEntity.getStatus() == 4) {
//任务超时未处理,重新推送消息
pushMq(traceProductDetailEntity, companyId);
}
}
//2.查询出入库单消息是否已经上传
if (traceProductDetailEntity.getStatus() == 1) { //出入库订单未处理
createTraceNotice(2, traceProductDetailEntity, companyId);
pushMq(traceProductDetailEntity, companyId);
} else if (traceProductDetailEntity.getStatus() == 2) { //出入库订单未处理完成
}
}
@ -146,8 +154,9 @@ public class UdiTraceService {
traceTaskNoticeEntity.setExpireDate(traceProductDetailEntity.getExpireDate());
traceTaskNoticeEntity.setSerialNo(traceProductDetailEntity.getSerialNo());
traceTaskNoticeEntity.setCreateTime(new Date());
// List<String> diList = basicUdiRelService.getBaseMapper().findDiList(basicUdiRelResponse.getUuid());
// traceTaskNoticeEntity.setDiList(diList);
FilterUdiRelRequest filterUdiRelRequest = new FilterUdiRelRequest();
List<String> diList = basicUdiRelService.findDiListByProduct(filterUdiRelRequest);
traceTaskNoticeEntity.setDiList(diList);
traceTaskNoticeService.save(traceTaskNoticeEntity);
return traceTaskNoticeEntity;
}

@ -3,7 +3,7 @@ server:
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://127.0.0.1:3306/udi_cpt?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
jdbc-url: jdbc:mysql://192.168.0.66:3364/udi_cpt?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: Glxp@6066
hikari:
@ -18,7 +18,7 @@ spring:
timeout: 300
jedis:
pool:
max-active: 8
max-active: 16
max-wait: -1
max-idle: 8
min-idle: 0
@ -43,12 +43,12 @@ logging:
level:
com.glxp.api.dao: debug
file_path: D:/udi/udiwms/udiwmsfile/
file_path: D:/udi/cpt/udiwmsfile/
UDI_KEY: 6b137c66-6286-46c6-8efa-c2f5dd9237df
UDI_SERVER_URL: https://www.udims.com/UDI_DL_Server_test
SPMS_KEY: lCOdWCBKS6Kw45wdnnqUTELXyuSKnXEs
back_file_path: D:/share/udisps/back/
back_file_path: D:/share/cpt/back/
API_KEY: 1101
API_SECRET: zBITspLNvuoEd4FaamlSoqxRHmNsmQ9L

@ -1,6 +1,6 @@
spring:
profiles:
active: dev
active: pro
jmx:
enabled: false
servlet:

@ -124,4 +124,14 @@
from basic_udi_product
where uuid = #{uuid}
</select>
<select id="findDiListByProduct"
resultType="java.lang.String">
select nameCode
from basic_udi_product
where basic_udi_product.ylqxzcrbarmc = #{ylqxzcrbarmc}
and basic_udi_product.cpmctymc = #{cpmctymc}
and basic_udi_product.ggxh = #{ggxh}
</select>
</mapper>

Loading…
Cancel
Save