1.转Ebom
This commit is contained in:
parent
747ab69c96
commit
a5a10166b7
|
|
@ -205,4 +205,13 @@ public class OriginalBomApi extends BaseApi {
|
|||
}
|
||||
|
||||
|
||||
@ApiOperation("导出-bom异常物料")
|
||||
@PostMapping("downLoadErrorMaterial")
|
||||
public void downLoadErrorMaterial(HttpServletResponse response){
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -268,6 +268,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
child.setDeviseUserCode(parent.getDeviseUserCode());
|
||||
child.setDeviseName(parent.getDeviseName());
|
||||
child.setDeptName(parent.getDeptName());
|
||||
child.setStatus(parent.getStatus());
|
||||
child.setEditStatus(parent.getEditStatus());
|
||||
if (MaterialshouldBomExistUtil.checkShouldBomExist(child)) {
|
||||
child.setCurrentVersion(OriginalConstant.NO_BOM_VERSION);
|
||||
child.setStatus(parent.getStatus());
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ public class BomNewOriginalParentService extends ServiceImpl<BomNewOriginalParen
|
|||
try {
|
||||
if (MaterialshouldBomExistUtil.checkShouldBomExist(child)) {
|
||||
child.setCurrentVersion(OriginalConstant.NO_BOM_VERSION);
|
||||
child.setStatus(OriginalStatusEnum.UN_CONVERT.getValue());
|
||||
//child.setStatus(OriginalStatusEnum.UN_CONVERT.getValue());
|
||||
// child.setEditStatus(OriginalEditStatusEnum.HANDLER_CREATED.getValue());
|
||||
}
|
||||
}catch (Exception e){
|
||||
|
|
|
|||
|
|
@ -280,7 +280,7 @@ public class OriginalBomToEBomConvert extends BaseConvert {
|
|||
childEntity.setMaterialDesc(material.getMaterialDesc());
|
||||
childEntity.setMaterialTexture(material.getMaterial());
|
||||
childEntity.setUnitWeight(parent.getUnitWeight());
|
||||
childEntity.setNum(parent.getUnitWeight());
|
||||
childEntity.setNum(new BigDecimal(parent.getNum()) );
|
||||
childEntity.setCreatedBy(SessionUtil.getUserCode());
|
||||
// this.eBomChildResult.add(childEntity);
|
||||
return childEntity;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
and devise_name=#{query.deviseName}
|
||||
</if>
|
||||
<if test="query.startDate!=null and query.startDate!=''">
|
||||
and created_time between #{query.startDate} and #{query.endDate}
|
||||
and created_time between #{query.startDate} and DATE_ADD(#{query.endDate}, INTERVAL 1 DAY)
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue