1.转EBOM

This commit is contained in:
大米 2023-12-24 10:00:33 +08:00
parent b98cfb6157
commit 9edd49a637
2 changed files with 8 additions and 6 deletions

View File

@ -33,11 +33,13 @@ public class CheckEBomException {
public CheckEBomException(Long bomRowId) throws ExecutionException, InterruptedException {
allBomDetail = SpringUtil.getBean(BomNewEbomParentService.class).getBomTree(bomRowId);
BomNewEbomParentEntity parent = SpringUtil.getBean(BomNewEbomParentService.class).getById(bomRowId);
if(Objects.nonNull(parent)) {
BomNewEbomParentVO convert = Convert.convert(BomNewEbomParentVO.class, parent);
convert.setBomRowId(convert.getRowId());
convert.setParentRowId(0L);
allBomDetail.add(convert);
}
}
/**
*

View File

@ -48,7 +48,7 @@
and status=2
<if test="query.startDate==null or query.startDate==''">
and created_time> DATE_ADD(now(), INTERVAL -3 DAY)
and convert_to_ebom_time> DATE_ADD(now(), INTERVAL -3 DAY)
</if>
</if>
<if test="query.status==1">
@ -111,7 +111,7 @@
</delete>
<update id="updateBomState">
update t_bom_new_original_parent set status = #{status} where
update t_bom_new_original_parent set status = #{status},convert_to_ebom_time=now() where
row_id in
<foreach collection="rowIds" item="rowId" open="(" separator="," close=")">
#{rowId}