parent
254bdd150c
commit
c8c7597480
1 changed files with 50 additions and 0 deletions
@ -0,0 +1,50 @@ |
|||||||
|
package org.springblade.desk.common.service.impl; |
||||||
|
|
||||||
|
import org.springblade.core.tool.utils.Func; |
||||||
|
import org.springblade.desk.common.enums.MesApprovalRecordBizTypeEnum; |
||||||
|
import org.springblade.desk.common.service.ApprovalRecordDetailStrategy; |
||||||
|
import org.springblade.desk.order.pojo.entity.PlateGoodsApply; |
||||||
|
import org.springblade.desk.order.pojo.entity.PlateGoodsRecord; |
||||||
|
import org.springblade.desk.order.pojo.vo.PlateGoodsApplyVo; |
||||||
|
import org.springblade.desk.order.service.IPlateGoodsApplyDetailService; |
||||||
|
import org.springblade.desk.order.service.IPlateGoodsApplyService; |
||||||
|
import org.springblade.desk.order.wrapper.PlateGoodsApplyWrapper; |
||||||
|
import org.springblade.desk.order.wrapper.PlateGoodsRecordWrapper; |
||||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 物料添加量申报审核待办策略实现类 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class MesPlateGoodsApplyServiceImpl implements ApprovalRecordDetailStrategy<PlateGoodsApplyVo> { |
||||||
|
|
||||||
|
@Autowired |
||||||
|
IPlateGoodsApplyService plateGoodsApplyService; |
||||||
|
|
||||||
|
@Autowired |
||||||
|
IPlateGoodsApplyDetailService plateGoodsApplyDetailService; |
||||||
|
|
||||||
|
|
||||||
|
@Override |
||||||
|
public String getBizType() { |
||||||
|
return MesApprovalRecordBizTypeEnum.PLATE_GOODS_APPLY.getDesc(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public PlateGoodsApplyVo getDetail(Long bizId) { |
||||||
|
PlateGoodsApply apply = plateGoodsApplyService.getById(bizId); |
||||||
|
|
||||||
|
PlateGoodsApplyVo vo = PlateGoodsApplyWrapper.build().entityVO(apply); |
||||||
|
|
||||||
|
// 查询关联订单列表
|
||||||
|
List<PlateGoodsRecord> recordList = plateGoodsApplyDetailService.listRecordByApplyId(apply.getId()); |
||||||
|
if (Func.isNotEmpty(recordList)) { |
||||||
|
vo.setRecordVos(PlateGoodsRecordWrapper.build().listVO(recordList)); |
||||||
|
} |
||||||
|
|
||||||
|
return vo; |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue