|
|
@ -247,7 +247,7 @@ public class WmsApiController extends BaseController {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping(("/synchronizeInventoryInformationToERP"))
|
|
|
|
@PostMapping(("/synchronizeInventoryInformationToERP"))
|
|
|
|
@Log(title = "同步原材料入库信息", businessType = BusinessType.INSERT)
|
|
|
|
// @Log(title = "同步原材料入库信息", businessType = BusinessType.INSERT)
|
|
|
|
public R<AjaxResult> synchronizeInventoryInformationToERP() {
|
|
|
|
public R<AjaxResult> synchronizeInventoryInformationToERP() {
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|
Map<Long, List<WmsRawInstock>> purchaseOrderIdMap = wmsErpScheduledTaskService.synchronizeInventoryInformationToERP();
|
|
|
|
Map<Long, List<WmsRawInstock>> purchaseOrderIdMap = wmsErpScheduledTaskService.synchronizeInventoryInformationToERP();
|
|
|
@ -263,7 +263,7 @@ public class WmsApiController extends BaseController {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping(("/synchronizeRawMaterialDeliveryInformationToERP"))
|
|
|
|
@PostMapping(("/synchronizeRawMaterialDeliveryInformationToERP"))
|
|
|
|
@Log(title = "同步原材料出库信息", businessType = BusinessType.INSERT)
|
|
|
|
// @Log(title = "同步原材料出库信息", businessType = BusinessType.INSERT)
|
|
|
|
public R<AjaxResult> synchronizeRawMaterialDeliveryInformationToERP() {
|
|
|
|
public R<AjaxResult> synchronizeRawMaterialDeliveryInformationToERP() {
|
|
|
|
Map<Long, List<WmsRawOutstockDetail>> otherMaterialIdMap = wmsErpScheduledTaskService.synchronizeOtherMaterialDeliveryInformationToERP();
|
|
|
|
Map<Long, List<WmsRawOutstockDetail>> otherMaterialIdMap = wmsErpScheduledTaskService.synchronizeOtherMaterialDeliveryInformationToERP();
|
|
|
|
for (Long materialId : otherMaterialIdMap.keySet()) {
|
|
|
|
for (Long materialId : otherMaterialIdMap.keySet()) {
|
|
|
@ -285,7 +285,7 @@ public class WmsApiController extends BaseController {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping(("/synchronizeRawReturnInformationToERP"))
|
|
|
|
@PostMapping(("/synchronizeRawReturnInformationToERP"))
|
|
|
|
@Log(title = "同步原材料退库信息", businessType = BusinessType.INSERT)
|
|
|
|
// @Log(title = "同步原材料退库信息", businessType = BusinessType.INSERT)
|
|
|
|
public R<AjaxResult> synchronizeRawReturnInformationToERP() {
|
|
|
|
public R<AjaxResult> synchronizeRawReturnInformationToERP() {
|
|
|
|
Map<Long, List<WmsRawReturnDetail>> purchaseOrderIdMap = wmsErpScheduledTaskService.synchronizeRawReturnInformationToERP();
|
|
|
|
Map<Long, List<WmsRawReturnDetail>> purchaseOrderIdMap = wmsErpScheduledTaskService.synchronizeRawReturnInformationToERP();
|
|
|
|
int result= 0;
|
|
|
|
int result= 0;
|
|
|
@ -302,7 +302,7 @@ public class WmsApiController extends BaseController {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping(("/synchronizeProductInstockInformationToERP/{days}"))
|
|
|
|
@PostMapping(("/synchronizeProductInstockInformationToERP/{days}"))
|
|
|
|
@Log(title = "同步成品入库信息", businessType = BusinessType.INSERT)
|
|
|
|
// @Log(title = "同步成品入库信息", businessType = BusinessType.INSERT)
|
|
|
|
public R<AjaxResult> synchronizeProductInstockInformationToERP(@PathVariable Integer days) {
|
|
|
|
public R<AjaxResult> synchronizeProductInstockInformationToERP(@PathVariable Integer days) {
|
|
|
|
Map<Long, List<WmsProductInstock>> productIdMap = wmsErpScheduledTaskService.synchronizeProductInstockInformationToERP(days);
|
|
|
|
Map<Long, List<WmsProductInstock>> productIdMap = wmsErpScheduledTaskService.synchronizeProductInstockInformationToERP(days);
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
@ -319,7 +319,7 @@ public class WmsApiController extends BaseController {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping(("/synchronizeProductOutstockInformationToERP/{days}"))
|
|
|
|
@PostMapping(("/synchronizeProductOutstockInformationToERP/{days}"))
|
|
|
|
@Log(title = "同步成品出库信息", businessType = BusinessType.INSERT)
|
|
|
|
// @Log(title = "同步成品出库信息", businessType = BusinessType.INSERT)
|
|
|
|
public R<AjaxResult> synchronizeProductOutstockInformationToERP(@PathVariable Integer days) {
|
|
|
|
public R<AjaxResult> synchronizeProductOutstockInformationToERP(@PathVariable Integer days) {
|
|
|
|
Map<Long, List<WmsProductOutstock>> productIdMap = wmsErpScheduledTaskService.synchronizeProductOutstockInformationToERP(days);
|
|
|
|
Map<Long, List<WmsProductOutstock>> productIdMap = wmsErpScheduledTaskService.synchronizeProductOutstockInformationToERP(days);
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|