1.转EBOM
This commit is contained in:
parent
b98cfb6157
commit
9edd49a637
|
|
@ -33,10 +33,12 @@ public class CheckEBomException {
|
||||||
public CheckEBomException(Long bomRowId) throws ExecutionException, InterruptedException {
|
public CheckEBomException(Long bomRowId) throws ExecutionException, InterruptedException {
|
||||||
allBomDetail = SpringUtil.getBean(BomNewEbomParentService.class).getBomTree(bomRowId);
|
allBomDetail = SpringUtil.getBean(BomNewEbomParentService.class).getBomTree(bomRowId);
|
||||||
BomNewEbomParentEntity parent = SpringUtil.getBean(BomNewEbomParentService.class).getById(bomRowId);
|
BomNewEbomParentEntity parent = SpringUtil.getBean(BomNewEbomParentService.class).getById(bomRowId);
|
||||||
BomNewEbomParentVO convert = Convert.convert(BomNewEbomParentVO.class, parent);
|
if(Objects.nonNull(parent)) {
|
||||||
convert.setBomRowId(convert.getRowId());
|
BomNewEbomParentVO convert = Convert.convert(BomNewEbomParentVO.class, parent);
|
||||||
convert.setParentRowId(0L);
|
convert.setBomRowId(convert.getRowId());
|
||||||
allBomDetail.add(convert);
|
convert.setParentRowId(0L);
|
||||||
|
allBomDetail.add(convert);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
and status=2
|
and status=2
|
||||||
|
|
||||||
<if test="query.startDate==null or query.startDate==''">
|
<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>
|
</if>
|
||||||
<if test="query.status==1">
|
<if test="query.status==1">
|
||||||
|
|
@ -111,7 +111,7 @@
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<update id="updateBomState">
|
<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
|
row_id in
|
||||||
<foreach collection="rowIds" item="rowId" open="(" separator="," close=")">
|
<foreach collection="rowIds" item="rowId" open="(" separator="," close=")">
|
||||||
#{rowId}
|
#{rowId}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue