|
|
@ -3,8 +3,10 @@ package com.ruoyi.web.controller.basic;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.BaseEfficiencyLevel;
|
|
|
|
import com.ruoyi.system.domain.BaseEfficiencyLevel;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.BaseMaterialStore;
|
|
|
|
import com.ruoyi.system.domain.BaseStoreInfo;
|
|
|
|
import com.ruoyi.system.domain.BaseStoreInfo;
|
|
|
|
import com.ruoyi.system.service.IBaseEfficiencyLevelService;
|
|
|
|
import com.ruoyi.system.service.IBaseEfficiencyLevelService;
|
|
|
|
|
|
|
|
import com.ruoyi.system.service.IBaseMaterialStoreService;
|
|
|
|
import com.ruoyi.system.service.IBaseStoreInfoService;
|
|
|
|
import com.ruoyi.system.service.IBaseStoreInfoService;
|
|
|
|
import com.ruoyi.web.controller.tool.UUIDTool;
|
|
|
|
import com.ruoyi.web.controller.tool.UUIDTool;
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
@ -46,6 +48,9 @@ public class BaseLocationInfoController extends BaseController
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private IBaseStoreInfoService baseStoreInfoService;
|
|
|
|
private IBaseStoreInfoService baseStoreInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBaseMaterialStoreService baseMaterialStoreService;
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("system:baselocationinfo:view")
|
|
|
|
@RequiresPermissions("system:baselocationinfo:view")
|
|
|
|
@GetMapping()
|
|
|
|
@GetMapping()
|
|
|
|
public String baselocationinfo()
|
|
|
|
public String baselocationinfo()
|
|
|
@ -129,8 +134,23 @@ public class BaseLocationInfoController extends BaseController
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public AjaxResult editSave(BaseLocationInfo baseLocationInfo)
|
|
|
|
public AjaxResult editSave(BaseLocationInfo baseLocationInfo)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
BaseMaterialStore baseMaterialStore = new BaseMaterialStore();
|
|
|
|
|
|
|
|
baseMaterialStore.setLocationCode(baseLocationInfo.getLocationCode());
|
|
|
|
|
|
|
|
baseMaterialStore.setMaterialType(baseLocationInfo.getMaterialType());
|
|
|
|
|
|
|
|
baseMaterialStore.setLocationCode(baseLocationInfo.getLocationCode());
|
|
|
|
|
|
|
|
baseMaterialStore.setLocationStatus(baseLocationInfo.getLocationStatus());
|
|
|
|
|
|
|
|
baseMaterialStore.setLocationArea(baseLocationInfo.getLocationArea());
|
|
|
|
|
|
|
|
baseMaterialStore.setDeleteFlag(baseLocationInfo.getDeleteFlag());
|
|
|
|
|
|
|
|
baseMaterialStore.setRecordTime(baseLocationInfo.getRecordTime());
|
|
|
|
|
|
|
|
int baseMaterialStoreCounts = baseMaterialStoreService.updateBaseMaterialStoreByPosition(baseMaterialStore);
|
|
|
|
|
|
|
|
int baseLocationInfoCounts = baseLocationInfoService.updateBaseLocationInfo(baseLocationInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(baseMaterialStoreCounts >0 && baseLocationInfoCounts>0){
|
|
|
|
return toAjax(baseLocationInfoService.updateBaseLocationInfo(baseLocationInfo));
|
|
|
|
return toAjax(baseLocationInfoService.updateBaseLocationInfo(baseLocationInfo));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return toAjax(baseLocationInfoService.updateBaseLocationInfo(baseLocationInfo));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 删除库位信息
|
|
|
|
* 删除库位信息
|
|
|
|