16 changed files with 215 additions and 25 deletions
@ -0,0 +1,17 @@ |
|||||||
|
package com.logpm.distribution.vo; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
/** |
||||||
|
* @program: LogisticsPlatform-Service |
||||||
|
* @description: 客户货物托盘 |
||||||
|
* @author: cyz |
||||||
|
* @create: 2023-08-24 11:32 |
||||||
|
**/ |
||||||
|
@Data |
||||||
|
public class DistributionParcelTrayVO { |
||||||
|
private String trayId; //托盘id
|
||||||
|
private String trayCode; //托盘名称
|
||||||
|
private String trayPackNum; //托盘名称
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,26 @@ |
|||||||
|
package com.logpm.warehouse.feign; |
||||||
|
|
||||||
|
|
||||||
|
import com.logpm.warehouse.entity.WarehouseTaryAllocationEntity; |
||||||
|
import org.springblade.common.constant.ModuleNameConstant; |
||||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
@FeignClient( |
||||||
|
value = ModuleNameConstant.APPLICATION_WAREHOUSE_NAME |
||||||
|
) |
||||||
|
public interface IWarehouseTaryAllocationClient { |
||||||
|
|
||||||
|
String API_PREFIX = "/client"; |
||||||
|
String TOP = API_PREFIX + "/top"; |
||||||
|
String GETALLOCATIONID = API_PREFIX + "/allocationId"; |
||||||
|
|
||||||
|
|
||||||
|
@GetMapping(GETALLOCATIONID) |
||||||
|
List<WarehouseTaryAllocationEntity> getAllocationId(@RequestParam Long allocationId); |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,32 @@ |
|||||||
|
package com.logpm.warehouse.feign; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
||||||
|
import com.logpm.warehouse.entity.WarehouseTaryAllocationEntity; |
||||||
|
import com.logpm.warehouse.service.IWarehouseTaryAllocationService; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @program: LogisticsPlatform-Service |
||||||
|
* @description: |
||||||
|
* @author: cyz |
||||||
|
* @create: 2023-08-24 11:20 |
||||||
|
**/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
public class WarehouseTaryAllocationClient implements IWarehouseTaryAllocationClient { |
||||||
|
|
||||||
|
private IWarehouseTaryAllocationService warehouseTaryAllocationService; |
||||||
|
|
||||||
|
@Override |
||||||
|
@GetMapping(GETALLOCATIONID) |
||||||
|
public List<WarehouseTaryAllocationEntity> getAllocationId(Long allocationId) { |
||||||
|
return warehouseTaryAllocationService.list(Wrappers.<WarehouseTaryAllocationEntity>query().lambda() |
||||||
|
.eq(WarehouseTaryAllocationEntity::getAllocationId,allocationId) |
||||||
|
.eq(WarehouseTaryAllocationEntity::getBindStatus , "1") |
||||||
|
); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue