问题修复
This commit is contained in:
parent
1b81a44e01
commit
5add5d4215
|
|
@ -155,8 +155,8 @@ public class BomNewOriginalParentService extends ServiceImpl<BomNewOriginalParen
|
|||
child.setStatus(parentEntity.getStatus());
|
||||
child.setDeviseName(parentEntity.getDeviseName());
|
||||
child.setDeviseUserCode(parentEntity.getDeviseUserCode());
|
||||
child.setCreatedBy(parentEntity.getCreatedBy());
|
||||
child.setCreatedTime(parentEntity.getCreatedTime());
|
||||
// child.setCreatedBy(parentEntity.getCreatedBy());
|
||||
// child.setCreatedTime(parentEntity.getCreatedTime());
|
||||
child.setBomRowId(parentEntity.getRowId());
|
||||
child.setLevelNum(parentEntity.getLevelNum());
|
||||
child.setDeptName(parentEntity.getDeptName());
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ public abstract class BaseConvert {
|
|||
parentEntity.setDeptName(SessionUtil.getDepartName());
|
||||
|
||||
parentEntity.setSource(originalSourceEnum.getValue());
|
||||
parentEntity.setCreatedBy(material.getCreatedBy());
|
||||
parentEntity.setCreatedBy(SessionUtil.getUserCode());
|
||||
parentEntity.setCreatedTime(LocalDateTime.now());
|
||||
|
||||
if (StrUtil.isNotBlank(material.getMaterialCategoryCode()) &&(material.getMaterialCategoryCode().equals(OriginalConstant.COMMON_MATERIAL_CATEGORY_CODE) || material.getMaterialCategoryCode().startsWith("30") ||
|
||||
|
|
@ -152,7 +152,7 @@ public abstract class BaseConvert {
|
|||
childEntity.setMaterialDesc(material.getMaterialDesc());
|
||||
childEntity.setUnitWeight(material.getWeight());
|
||||
childEntity.setNum(Convert.toBigDecimal(material.getQty()) );
|
||||
childEntity.setCreatedBy(parent.getCreatedBy());
|
||||
childEntity.setCreatedBy(SessionUtil.getUserCode());
|
||||
this.resultChild.add(childEntity);
|
||||
return childEntity;
|
||||
|
||||
|
|
@ -175,7 +175,7 @@ public abstract class BaseConvert {
|
|||
childEntity.setMaterialDesc(material.getMaterialDesc());
|
||||
childEntity.setUnitWeight(parent.getUnitWeight());
|
||||
childEntity.setNum(parent.getUnitWeight());
|
||||
|
||||
childEntity.setCreatedBy(SessionUtil.getUserCode());
|
||||
this.resultChild.add(childEntity);
|
||||
return childEntity;
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
</foreach>
|
||||
</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