|
|
|
@ -152,7 +152,7 @@ public class PoReceiveServiceImpl implements PoReceiveService { |
|
|
|
} |
|
|
|
Date currentDate = new Date(); |
|
|
|
if(currentDate.after(inData.getExpiredDate())){ |
|
|
|
throw new RuntimeException("该物料已过期,失效日期为"+DateUtil.getStringDate(inData.getExpiredDate())); |
|
|
|
throw new RuntimeException("该物料已过期,失效日期为"+DateUtil.getStringDate(inData.getManufactureDate())); |
|
|
|
} |
|
|
|
Date futureDate = new Date(currentDate.getTime() - (45 * 24 * 60 * 60 * 1000)); |
|
|
|
if(futureDate.after(inData.getManufactureDate())){ |
|
|
|
|