| | |
| | | import com.ld.igds.constant.FoodVariety; |
| | | import com.ld.igds.constant.RespCodeEnum; |
| | | import com.ld.igds.inout.InoutConstant; |
| | | import com.ld.igds.models.Depot; |
| | | import com.ld.igds.models.InoutRecord; |
| | | import com.ld.igds.phone35.constant.Phone35Constant; |
| | | import com.ld.igds.phone35.dto.Phone35AuthUser; |
| | |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return Phone35Constant.API_PHONE_5203; |
| | | return Phone35Constant.API_PHONE_5206; |
| | | } |
| | | |
| | | @SuppressWarnings("unchecked") |
| | |
| | | param.setProgress(InoutConstant.PROGRESS_HANDLE); |
| | | List<InoutRecord> list = hPhoneService.listInoutRecord(param); |
| | | |
| | | if(null == list || list.isEmpty()){ |
| | | if (null == list || list.isEmpty()) { |
| | | return PhoneRespUtil.success(null, req); |
| | | } |
| | | |
| | |
| | | for (InoutRecord record : list) { |
| | | inoutData = new Phone35InoutDto(); |
| | | BeanUtils.copyProperties(record, inoutData); |
| | | //设置仓库、粮食品种、粮食等级等名称 |
| | | inoutData.setDepotName(phone35Util.getDepotName(phone35AuthUser.getCompanyId(), record.getDepotId())); |
| | | Depot depot = phone35Util.getDepot(phone35AuthUser.getCompanyId(), record.getDepotId()); |
| | | |
| | | //设置仓库、粮食品种、粮食等级、保管员等名称 |
| | | inoutData.setDepotName(depot.getName()); |
| | | inoutData.setStoreKeeper(depot.getStoreKeeper()); |
| | | inoutData.setStoreKeeperName(depot.getStoreKeeperName()); |
| | | inoutData.setFoodVarietyName(FoodVariety.getMsg(record.getFoodVariety())); |
| | | inoutData.setFoodLevelName(FoodLevel.getMsg(record.getFoodLevel())); |
| | | listDto.add(inoutData); |