YYC
2023-06-15 a8da7c463224b9a5bc4628197afe4d9f7d05361c
igds-api-phone/src/main/java/com/ld/igds/phone35/service/impl/Phone35ServiceImpl5206.java
@@ -5,6 +5,7 @@
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;
@@ -39,7 +40,7 @@
    @Override
    public String getInterfaceId() {
        return Phone35Constant.API_PHONE_5203;
        return Phone35Constant.API_PHONE_5206;
    }
    @SuppressWarnings("unchecked")
@@ -66,7 +67,7 @@
        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);
        }
@@ -75,8 +76,12 @@
        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);