refactor: 变量类型修改
This commit is contained in:
parent
3765bfcc8b
commit
c294457ccb
@ -62,7 +62,7 @@ public class WmsInPlanController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('wm:PLAN:query')")
|
@PreAuthorize("@ss.hasPermi('wm:PLAN:query')")
|
||||||
@GetMapping(value = "/{planId}")
|
@GetMapping(value = "/{planId}")
|
||||||
public AjaxResult getInfo(@PathVariable("planId") String planId) {
|
public AjaxResult getInfo(@PathVariable("planId") Long planId) {
|
||||||
return AjaxResult.success(wmsInPlanService.selectWmsInPlanByPlanId(planId));
|
return AjaxResult.success(wmsInPlanService.selectWmsInPlanByPlanId(planId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ public interface WmsInPlanMapper
|
|||||||
* @param planId 入库计划主键
|
* @param planId 入库计划主键
|
||||||
* @return 入库计划
|
* @return 入库计划
|
||||||
*/
|
*/
|
||||||
public WmsInPlan selectWmsInPlanByPlanId(String planId);
|
public WmsInPlan selectWmsInPlanByPlanId(Long planId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询入库计划列表
|
* 查询入库计划列表
|
||||||
|
@ -17,7 +17,7 @@ public interface IWmsInPlanService
|
|||||||
* @param planId 入库计划主键
|
* @param planId 入库计划主键
|
||||||
* @return 入库计划
|
* @return 入库计划
|
||||||
*/
|
*/
|
||||||
public WmsInPlan selectWmsInPlanByPlanId(String planId);
|
public WmsInPlan selectWmsInPlanByPlanId(Long planId);
|
||||||
|
|
||||||
WmsInPlan selectWmsInPlanByPlanCode(String planCode);
|
WmsInPlan selectWmsInPlanByPlanCode(String planCode);
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityS
|
|||||||
List<WmsInPlanDetailEntity> handleWmsInPlanDetailEntityList = new ArrayList<>();
|
List<WmsInPlanDetailEntity> handleWmsInPlanDetailEntityList = new ArrayList<>();
|
||||||
wmsInPlanDetailEntityList.forEach(entity -> {
|
wmsInPlanDetailEntityList.forEach(entity -> {
|
||||||
// 获取入库计划信息
|
// 获取入库计划信息
|
||||||
WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(entity.getPlanId().toString());
|
WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(entity.getPlanId());
|
||||||
// 获取入库计划
|
// 获取入库计划
|
||||||
WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsInPlan.getPlanTypeId().toString());
|
WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsInPlan.getPlanTypeId().toString());
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService {
|
|||||||
* @return 入库计划
|
* @return 入库计划
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public WmsInPlan selectWmsInPlanByPlanId(String planId) {
|
public WmsInPlan selectWmsInPlanByPlanId(Long planId) {
|
||||||
WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(planId);
|
WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(planId);
|
||||||
List<WmsInPlanDetails> wmsInPlanDetailsList = new ArrayList<>();
|
List<WmsInPlanDetails> wmsInPlanDetailsList = new ArrayList<>();
|
||||||
wmsInPlan.getWmsInPlanDetailsList().forEach(detail -> {
|
wmsInPlan.getWmsInPlanDetailsList().forEach(detail -> {
|
||||||
@ -143,7 +143,7 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService {
|
|||||||
}
|
}
|
||||||
if (!list.isEmpty()) {
|
if (!list.isEmpty()) {
|
||||||
wmsInPlanMapper.batchWmsInPlanDetails(list);
|
wmsInPlanMapper.batchWmsInPlanDetails(list);
|
||||||
WmsInPlan wmsInPlan1 = selectWmsInPlanByPlanId(planId.toString());
|
WmsInPlan wmsInPlan1 = selectWmsInPlanByPlanId(planId);
|
||||||
List<WmsInPlanDetails> wmsInPlanDetailsList1 = wmsInPlan1.getWmsInPlanDetailsList();
|
List<WmsInPlanDetails> wmsInPlanDetailsList1 = wmsInPlan1.getWmsInPlanDetailsList();
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
List<WmsInPlanDetailEntity> wmsInPlanDetailEntityList = list.get(i).getWmsInPlanDetailEntityList();
|
List<WmsInPlanDetailEntity> wmsInPlanDetailEntityList = list.get(i).getWmsInPlanDetailEntityList();
|
||||||
|
Loading…
Reference in New Issue
Block a user