| | |
| | | if(ydProductVo.getSurplusT().compareTo(BigDecimal.ZERO) < 1) { |
| | | ydProductVo.setStatus(2); |
| | | } |
| | | |
| | | Integer shelvesDays = ydProductVo.getShelvesDays(); |
| | | String proUnit = ydProductVo.getProUnit(); |
| | | if(shelvesDays == 0){ |
| | | ydProductVo.setShelvesDaysStr("待定"); |
| | | }else{ |
| | | ydProductVo.setShelvesDaysStr(proUnit+"+"+shelvesDays); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /** |
| | | *产出规则 |
| | | */ |
| | | Date date = DateUtil.date(); |
| | | ydProductVo.setNowTime(date); |
| | | //上架天数 |
| | | Integer shelvesDays = ydProductVo.getShelvesDays(); |
| | | String proUnit = ydProductVo.getProUnit(); |
| | | if(shelvesDays == 0){ |
| | | ydProductVo.setGetType(2); |
| | | ydProductVo.setShelvesDaysStr("待定"); |
| | | }else{ |
| | | ydProductVo.setGetType(1); |
| | | ydProductVo.setShelvesDaysStr(proUnit+"+"+shelvesDays); |
| | | } |
| | | |
| | | Date date = DateUtil.date(); |
| | | ydProductVo.setNowTime(date); |
| | | Date workTime = DateUtil.offsetDay(date, shelvesDays); |
| | | ydProductVo.setWorkTime(workTime); |
| | | //服务周期 |