|
|
|
@ -495,7 +495,7 @@ public class CRollinfoServiceImpl extends ServiceImpl<CRollinfoDao, CRollinfoEnt |
|
|
|
// 失效日期等于 入库日期加 part的有效期 |
|
|
|
// 获取有效天数 |
|
|
|
Part part = partService.getPart(cRollInfoStorageVo.getPartNo()); |
|
|
|
if (part != null && part.getToexpiredays() != null) { |
|
|
|
if (part != null && part.getToexpiredays() != null && "Y".equals(part.getExpiredatecontrolflag())) { |
|
|
|
Date expDate = DateUtils.addDateDays(date, part.getToexpiredays().intValue()); |
|
|
|
cRollinfoEntity.setExpireddate(expDate); |
|
|
|
} |
|
|
|
|