完成技术验证代码
This commit is contained in:
parent
2739b0c695
commit
e407905d3c
@ -8,6 +8,7 @@ import com.ktg.common.core.domain.AjaxResult;
|
|||||||
import com.ktg.common.core.page.TableDataInfo;
|
import com.ktg.common.core.page.TableDataInfo;
|
||||||
import com.ktg.common.enums.BusinessType;
|
import com.ktg.common.enums.BusinessType;
|
||||||
import com.ktg.common.utils.poi.ExcelUtil;
|
import com.ktg.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ktg.mes.md.domain.AP0AE;
|
||||||
import com.ktg.mes.md.domain.WmsOutPlan;
|
import com.ktg.mes.md.domain.WmsOutPlan;
|
||||||
import com.ktg.mes.md.domain.WmsOutPlanDetailEntity;
|
import com.ktg.mes.md.domain.WmsOutPlanDetailEntity;
|
||||||
import com.ktg.mes.md.service.IAP0AEService;
|
import com.ktg.mes.md.service.IAP0AEService;
|
||||||
@ -32,9 +33,6 @@ public class WmsOutPlanController extends BaseController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IWmsOutPlanService wmsOutPlanService;
|
private IWmsOutPlanService wmsOutPlanService;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private IAP0AEService aP0AEService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询出库计划管理列表
|
* 查询出库计划管理列表
|
||||||
*/
|
*/
|
||||||
@ -51,10 +49,6 @@ public class WmsOutPlanController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('md:PLAN:list')")
|
@PreAuthorize("@ss.hasPermi('md:PLAN:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(WmsOutPlan wmsOutPlan) {
|
public TableDataInfo list(WmsOutPlan wmsOutPlan) {
|
||||||
System.out.println("===================================================");
|
|
||||||
System.out.println(JSON.toJSONString(this.aP0AEService.selectAllAP0AE()));
|
|
||||||
System.out.println("===================================================");
|
|
||||||
|
|
||||||
startPage();
|
startPage();
|
||||||
List<WmsOutPlan> list = wmsOutPlanService.selectWmsOutPlanList(wmsOutPlan);
|
List<WmsOutPlan> list = wmsOutPlanService.selectWmsOutPlanList(wmsOutPlan);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -113,7 +107,14 @@ public class WmsOutPlanController extends BaseController {
|
|||||||
return toAjax(wmsOutPlanService.runWmsOutPlan(wmsOutPlanIds));
|
return toAjax(wmsOutPlanService.runWmsOutPlan(wmsOutPlanIds));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("@ss.hasPermi('md:PLAN:edit')")
|
@PreAuthorize("@ss.hasPermi('md:PLAN:add')")
|
||||||
|
@Log(title = "出库计划管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping("/synchronization-mini-box")
|
||||||
|
public AjaxResult synchronizationMiniBox() {
|
||||||
|
return AjaxResult.success(wmsOutPlanService.synchronizationMiniBox(getUsername()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('md:PLAN:add')")
|
||||||
@Log(title = "出库计划管理", businessType = BusinessType.UPDATE)
|
@Log(title = "出库计划管理", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping("/auto-scrap-out")
|
@PutMapping("/auto-scrap-out")
|
||||||
public AjaxResult autoScrapOut() {
|
public AjaxResult autoScrapOut() {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.ktg.mes.md.service;
|
package com.ktg.mes.md.service;
|
||||||
|
|
||||||
|
import com.ktg.mes.md.domain.AP0AE;
|
||||||
import com.ktg.mes.md.domain.WmsOutPlan;
|
import com.ktg.mes.md.domain.WmsOutPlan;
|
||||||
import com.ktg.mes.md.domain.WmsOutPlanDetailEntity;
|
import com.ktg.mes.md.domain.WmsOutPlanDetailEntity;
|
||||||
|
|
||||||
@ -65,6 +66,8 @@ public interface IWmsOutPlanService {
|
|||||||
|
|
||||||
List<HashMap<String, Object>> selectWmsOutPlanDetailEntityList(WmsOutPlanDetailEntity wmsOutPlanDetailEntity);
|
List<HashMap<String, Object>> selectWmsOutPlanDetailEntityList(WmsOutPlanDetailEntity wmsOutPlanDetailEntity);
|
||||||
|
|
||||||
|
int synchronizationMiniBox(String username);
|
||||||
|
|
||||||
int autoScrapOut(String username);
|
int autoScrapOut(String username);
|
||||||
|
|
||||||
public String checkPlanCodeUnique(WmsOutPlan wmsOutPlan);
|
public String checkPlanCodeUnique(WmsOutPlan wmsOutPlan);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.ktg.mes.md.service.impl;
|
package com.ktg.mes.md.service.impl;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.ktg.common.constant.UserConstants;
|
import com.ktg.common.constant.UserConstants;
|
||||||
import com.ktg.common.utils.DateUtils;
|
import com.ktg.common.utils.DateUtils;
|
||||||
import com.ktg.common.utils.StringUtils;
|
import com.ktg.common.utils.StringUtils;
|
||||||
@ -45,6 +46,9 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private WmStorageAreaMapper wmStorageAreaMapper;
|
private WmStorageAreaMapper wmStorageAreaMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AP0AEMapper ap0AEMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询出库计划管理
|
* 查询出库计划管理
|
||||||
*
|
*
|
||||||
@ -262,6 +266,21 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService {
|
|||||||
return hashMapList;
|
return hashMapList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int synchronizationMiniBox(String username) {
|
||||||
|
List<AP0AE> ap0AEList = ap0AEMapper.selectOutNewData();
|
||||||
|
System.out.println("=========================================");
|
||||||
|
System.out.println(JSON.toJSONString(ap0AEList));
|
||||||
|
System.out.println("=========================================");
|
||||||
|
|
||||||
|
List<WmsOutPlan> wmsOutPlanList = wmsOutPlanMapper.selectWmsOutPlanList(new WmsOutPlan());
|
||||||
|
System.out.println("=========================================");
|
||||||
|
System.out.println(JSON.toJSONString(wmsOutPlanList));
|
||||||
|
System.out.println("=========================================");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
@Override
|
@Override
|
||||||
public int autoScrapOut(String username) {
|
public int autoScrapOut(String username) {
|
||||||
|
Loading…
Reference in New Issue
Block a user