diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppGoodsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppGoodsController.java index 795a2844..89ed0677 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppGoodsController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppGoodsController.java @@ -4,8 +4,10 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.app.domain.AppGoods; +import com.ruoyi.app.domain.AppLocation; import com.ruoyi.app.service.IAppGoodsService; import com.ruoyi.web.controller.section.EnhanceDataList; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -22,6 +24,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.core.page.TableDataInfo; +import org.springframework.web.multipart.MultipartFile; /** * 【请填写功能名称】Controller @@ -59,13 +62,30 @@ public class AppGoodsController extends BaseController { util.exportExcel(response, list, "【请填写功能名称】数据"); } + + @Log(title = "物料导入", businessType = BusinessType.IMPORT) + @PreAuthorize("@ss.hasPermi('system:goods:import')") + @PostMapping("/importData") + public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { + ExcelUtil util = new ExcelUtil(AppGoods.class); + List appGoodsList = util.importExcel(file.getInputStream()); + String message = appGoodsService.importGoods(appGoodsList, updateSupport); + return success(message); + } + + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil(AppGoods.class); + util.importTemplateExcel(response, "物料数据"); + } + /** * 获取【请填写功能名称】详细信息 */ @PreAuthorize("@ss.hasPermi('system:goods:query')") @GetMapping(value = "/{goodsId}") public AjaxResult getInfo(@PathVariable("goodsId") String goodsId) { - return success(appGoodsService.selectAppGoodsByGoodsId(goodsId)); + return success(appGoodsService.selectAppGoodsById(goodsId)); } /** @@ -75,6 +95,10 @@ public class AppGoodsController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody AppGoods appGoods) { + AppGoods oldAppGoods = appGoodsService.selectAppGoodsByGoodsId(appGoods.getGoodsId()); + if (ObjectUtils.isNotEmpty(oldAppGoods)) { + return error("物料编码已存在"); + } return toAjax(appGoodsService.insertAppGoods(appGoods)); } @@ -85,6 +109,10 @@ public class AppGoodsController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody AppGoods appGoods) { + AppGoods oldAppGoods = appGoodsService.selectAppGoodsByGoodsId(appGoods.getGoodsId()); + if (ObjectUtils.isNotEmpty(oldAppGoods) && !oldAppGoods.getId().equals(appGoods.getId())) { + return error("物料编码已存在"); + } return toAjax(appGoodsService.updateAppGoods(appGoods)); } @@ -95,7 +123,7 @@ public class AppGoodsController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) @DeleteMapping("/{goodsIds}") public AjaxResult remove(@PathVariable String[] goodsIds) { - return toAjax(appGoodsService.deleteAppGoodsByGoodsIds(goodsIds)); + return toAjax(appGoodsService.deleteAppGoodsByIds(goodsIds)); } /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppGoodsTypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppGoodsTypeController.java index 2b46ae39..0e509595 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppGoodsTypeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppGoodsTypeController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppLocationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppLocationController.java index d3a95579..9d7c1c3c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppLocationController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppLocationController.java @@ -4,14 +4,15 @@ import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletResponse; -import com.ruoyi.app.domain.AppLedConfig; import com.ruoyi.app.domain.AppLocation; +import com.ruoyi.app.domain.AppVehicle; import com.ruoyi.app.service.IAppLocationService; import com.ruoyi.common.annotation.Anonymous; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.web.controller.section.EnhanceDataList; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -28,6 +29,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.core.page.TableDataInfo; +import org.springframework.web.multipart.MultipartFile; /** * 【请填写功能名称】Controller @@ -66,13 +68,29 @@ public class AppLocationController extends BaseController { util.exportExcel(response, list, "【请填写功能名称】数据"); } + @Log(title = "库位导入", businessType = BusinessType.IMPORT) + @PreAuthorize("@ss.hasPermi('system:location:import')") + @PostMapping("/importData") + public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { + ExcelUtil util = new ExcelUtil(AppLocation.class); + List locationList = util.importExcel(file.getInputStream()); + String message = appLocationService.importLocation(locationList, updateSupport); + return success(message); + } + + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil(AppLocation.class); + util.importTemplateExcel(response, "库位数据"); + } + /** * 获取【请填写功能名称】详细信息 */ @PreAuthorize("@ss.hasPermi('system:location:query')") @GetMapping(value = "/{locationId}") public AjaxResult getInfo(@PathVariable("locationId") String locationId) { - return success(appLocationService.selectAppLocationByLocationId(locationId)); + return success(appLocationService.selectAppLocationById(locationId)); } /** @@ -82,6 +100,10 @@ public class AppLocationController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody AppLocation appLocation) { + AppLocation oldAppLocation = appLocationService.selectAppLocationByLocationId(appLocation.getLocationId()); + if (ObjectUtils.isNotEmpty(oldAppLocation)) { + return error("库位编码已存在"); + } return toAjax(appLocationService.insertAppLocation(appLocation)); } @@ -92,6 +114,10 @@ public class AppLocationController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody AppLocation appLocation) { + AppLocation oldAppLocation = appLocationService.selectAppLocationByLocationId(appLocation.getLocationId()); + if (ObjectUtils.isNotEmpty(oldAppLocation) && !oldAppLocation.getId().equals(appLocation.getId())) { + return error("库位编码已存在"); + } return toAjax(appLocationService.updateAppLocation(appLocation)); } @@ -102,14 +128,13 @@ public class AppLocationController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) @DeleteMapping("/{locationIds}") public AjaxResult remove(@PathVariable String[] locationIds) { - return toAjax(appLocationService.deleteAppLocationByLocationIds(locationIds)); + return toAjax(appLocationService.deleteAppLocationByIds(locationIds)); } /** * 获取【请填写功能名称】详细信息 */ @ApiOperation("生成库位") -// @PreAuthorize("@ss.hasPermi('system:location:query')") @GetMapping(value = "/genLocations/{areaId}") @Anonymous public AjaxResult genLocations(@PathVariable("areaId") Integer areaId) { diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppStandController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppStandController.java index be656d6f..3875b2a6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppStandController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppStandController.java @@ -7,6 +7,7 @@ import com.ruoyi.app.domain.AppProvider; import com.ruoyi.app.domain.AppStand; import com.ruoyi.app.service.IAppStandService; import com.ruoyi.web.controller.section.EnhanceDataList; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -76,6 +77,10 @@ public class AppStandController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody AppStand appStand) { + AppStand oldAppStand = appStandService.selectAppStandByStandCode(appStand.getStandCode()); + if (ObjectUtils.isNotEmpty(oldAppStand)) { + return error("站点编码已存在"); + } return toAjax(appStandService.insertAppStand(appStand)); } @@ -86,6 +91,10 @@ public class AppStandController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody AppStand appStand) { + AppStand oldAppStand = appStandService.selectAppStandByStandCode(appStand.getStandCode()); + if (ObjectUtils.isNotEmpty(oldAppStand) && !oldAppStand.getStandId().equals(appStand.getStandId())) { + return error("站点编码已存在"); + } return toAjax(appStandService.updateAppStand(appStand)); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppStorageController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppStorageController.java index 221819d2..b48ad0e0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppStorageController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppStorageController.java @@ -2,6 +2,8 @@ package com.ruoyi.web.controller.app; import java.util.List; import javax.servlet.http.HttpServletResponse; + +import org.apache.commons.lang3.ObjectUtils; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -75,8 +77,11 @@ public class AppStorageController extends BaseController @PreAuthorize("@ss.hasPermi('app:storage:add')") @Log(title = "仓库", businessType = BusinessType.INSERT) @PostMapping - public AjaxResult add(@RequestBody AppStorage appStorage) - { + public AjaxResult add(@RequestBody AppStorage appStorage) { + AppStorage oldAppStorage = appStorageService.selectAppStorageByStorageId(appStorage.getStorageId()); + if (ObjectUtils.isNotEmpty(oldAppStorage)) { + return error("仓库编码已存在"); + } return toAjax(appStorageService.insertAppStorage(appStorage)); } @@ -86,8 +91,11 @@ public class AppStorageController extends BaseController @PreAuthorize("@ss.hasPermi('app:storage:edit')") @Log(title = "仓库", businessType = BusinessType.UPDATE) @PutMapping - public AjaxResult edit(@RequestBody AppStorage appStorage) - { + public AjaxResult edit(@RequestBody AppStorage appStorage) { + AppStorage oldAppStorage = appStorageService.selectAppStorageByStorageId(appStorage.getStorageId()); + if (ObjectUtils.isNotEmpty(oldAppStorage) && !oldAppStorage.getId().equals(appStorage.getId())) { + return error("仓库编码已存在"); + } return toAjax(appStorageService.updateAppStorage(appStorage)); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppTaskController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppTaskController.java index 0fbc03e2..19661e66 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppTaskController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppTaskController.java @@ -863,7 +863,7 @@ public class AppTaskController extends BaseController } } - + /** * 请求出库 * @param outRequest 出库请求 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppVehicleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppVehicleController.java index d8181817..010cf834 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppVehicleController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppVehicleController.java @@ -8,6 +8,7 @@ import com.ruoyi.app.domain.DTO.AppAvailVehicle; import com.ruoyi.app.service.IAppVehicleService; import com.ruoyi.common.annotation.Anonymous; import com.ruoyi.web.controller.section.EnhanceDataList; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -62,7 +63,7 @@ public class AppVehicleController extends BaseController { util.exportExcel(response, list, "【请填写功能名称】数据"); } - @Log(title = "容器管理", businessType = BusinessType.IMPORT) + @Log(title = "容器导入", businessType = BusinessType.IMPORT) @PreAuthorize("@ss.hasPermi('system:vehicle:import')") @PostMapping("/importData") public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { @@ -75,7 +76,7 @@ public class AppVehicleController extends BaseController { @PostMapping("/importTemplate") public void importTemplate(HttpServletResponse response) { ExcelUtil util = new ExcelUtil(AppVehicle.class); - util.importTemplateExcel(response, "用户数据"); + util.importTemplateExcel(response, "容器数据"); } /** @@ -94,6 +95,10 @@ public class AppVehicleController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody AppVehicle appVehicle) { + AppVehicle oldAppVehicle = appVehicleService.selectAppVehicleByVehicleCode(appVehicle.getVehicleCode()); + if (ObjectUtils.isNotEmpty(oldAppVehicle)) { + return error("容器编码已存在"); + } return toAjax(appVehicleService.insertAppVehicle(appVehicle)); } @@ -104,6 +109,10 @@ public class AppVehicleController extends BaseController { @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody AppVehicle appVehicle) { + AppVehicle oldAppVehicle = appVehicleService.selectAppVehicleByVehicleCode(appVehicle.getVehicleCode()); + if (ObjectUtils.isNotEmpty(oldAppVehicle) && !oldAppVehicle.getVehicleId().equals(appVehicle.getVehicleId())) { + return error("容器编码已存在"); + } return toAjax(appVehicleService.updateAppVehicle(appVehicle)); } diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/AppConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/AppConstants.java index b33a3e0c..d85d863d 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/constant/AppConstants.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/AppConstants.java @@ -17,6 +17,16 @@ public class AppConstants { * 库位状态 0:正常 1:占用 */ public static final Integer LOCATION_STATUS_DISABLE = 1; + + /** + * 物料状态 0 启用 1 禁用 + */ + public static final Long GOODS_STATUS_ENABLE = 0L; + /** + * 物料状态 0 启用 1 禁用 + */ + public static final Long GOODS_STATUS_DISABLE = 1L; + /** * 出库状态 0 未完成 1 部分出库 2 全部出库 */ @@ -27,8 +37,6 @@ public class AppConstants { public static final Integer TASK_TYPE_OUT = 2; public static final Integer TASK_TYPE_IN = 1; public static final Integer TASK_TYPE_TRANSFER = 3; - public static final Long GOODS_STATUS_ENABLE = 0L; - public static final Long GOODS_STATUS_DISABLE = 1L; // } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppGoods.java b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppGoods.java index 00328a9c..158763a5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppGoods.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppGoods.java @@ -58,7 +58,7 @@ public class AppGoods extends BaseEntity { /** * 物料状态 0 启用 1 禁用 */ - @Excel(name = "状态") + @Excel(name = "状态", readConverterExp = "0=启用,1=禁用") private Long goodsStatus; /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppLocation.java b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppLocation.java index 24910755..a5379d53 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppLocation.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppLocation.java @@ -15,7 +15,13 @@ public class AppLocation extends BaseEntity { private static final Long serialVersionUID = 1L; - /** 排 */ + /** + * 主键 + */ + private Long id; + /** + * 排 + */ @Excel(name = "货架排") private Integer wRow; @@ -70,8 +76,15 @@ public class AppLocation extends BaseEntity /** 是否在工作中 */ private Integer isWorking; - public void setLocationId(String locationId) - { + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public void setLocationId(String locationId) { this.locationId = locationId; } @@ -133,8 +146,11 @@ public class AppLocation extends BaseEntity { return equipmentId; } - public void setwRow(Integer wRow) - { + + public void setwRow(Integer wRow) { + this.wRow = wRow; + } + public void setWRow(Integer wRow) { this.wRow = wRow; } @@ -142,17 +158,23 @@ public class AppLocation extends BaseEntity { return wRow; } - public void setwCol(Integer wCol) - { - this.wCol = wCol; - } public Integer getwCol() { return wCol; } - public void setwLayer(Integer wLayer) - { + + public void setwCol(Integer wCol) { + this.wCol = wCol; + } + public void setWCol(Integer wCol) { + this.wCol = wCol; + } + + public void setwLayer(Integer wLayer) { + this.wLayer = wLayer; + } + public void setWLayer(Integer wLayer) { this.wLayer = wLayer; } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppProvider.java b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppProvider.java index bac02bae..14ec3de7 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppProvider.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppProvider.java @@ -38,7 +38,7 @@ public class AppProvider extends BaseEntity private String providerAddress; /** 供应商状态 0 启用 1 停用*/ - @Excel(name = "状态") + @Excel(name = "状态", readConverterExp = "0=启用,1=禁用") private Long providerStatus; /** 类型 1 供应商 2 客户 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppStand.java b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppStand.java index 8b1b779e..ecd7af51 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppStand.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppStand.java @@ -43,7 +43,7 @@ public class AppStand extends BaseEntity private String remark; /** 状态 */ - @Excel(name = "状态") + @Excel(name = "状态", readConverterExp = "0=启用,1=禁用") private Long standStatus; /** 是否锁定 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppStorage.java b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppStorage.java index 40c7d292..05dcbfc6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppStorage.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppStorage.java @@ -50,16 +50,22 @@ public class AppStorage extends BaseEntity // @Excel(name = "仓库联系人方式") private String storageConcatsMobile; - /** 是否为立体库1:立体库 0:平库 */ - @Excel(name = "立体库") + /** + * 是否为立体库1:立体库 0:平库 + */ + @Excel(name = "立体库", readConverterExp = "0=平库,1=立体库") private String autoStatus; - /** 是否是AGV库 0:否 1:是 */ - @Excel(name = "AGV库") + /** + * 是否是AGV库 0:否 1:是 + */ + @Excel(name = "AGV库", readConverterExp = "0=否,1=是") private String isAgv; - /** 是否可用 */ - @Excel(name = "是否可用") + /** + * 是否可用 + */ + @Excel(name = "是否启用", readConverterExp = "0=启用,1=禁用") private String status; /** 仓储类型 1AGV 2堆垛机 3穿梭4 人工库 5 其他 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppVehicle.java b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppVehicle.java index 4e1abb0e..c34ae94d 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppVehicle.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/domain/AppVehicle.java @@ -29,8 +29,10 @@ public class AppVehicle extends BaseEntity @Excel(name = "容器类型") private String vehicleType; - /** 容器状态 0 空闲 1 占用 */ - @Excel(name = "容器状态") + /** + * 容器状态 0 空闲 1 占用 + */ + @Excel(name = "容器状态", readConverterExp = "0=空闲,1=占用") private Long vehicleStatus; /** 备注 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppGoodsMapper.java b/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppGoodsMapper.java index cf288f7d..4c73c4d1 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppGoodsMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppGoodsMapper.java @@ -18,7 +18,15 @@ public interface AppGoodsMapper * @param goodsId 【请填写功能名称】主键 * @return 【请填写功能名称】 */ - public AppGoods selectAppGoodsByGoodsId(String goodsId); + public AppGoods selectAppGoodsById(String goodsId); + + /** + * 根据物料编码查询物料 + * + * @param goodsId + * @return + */ + AppGoods selectAppGoodsByGoodsId(String goodsId); /** * 查询【请填写功能名称】列表 @@ -50,7 +58,7 @@ public interface AppGoodsMapper * @param goodsId 【请填写功能名称】主键 * @return 结果 */ - public int deleteAppGoodsByGoodsId(String goodsId); + public int deleteAppGoodsById(String goodsId); /** * 批量删除【请填写功能名称】 @@ -58,7 +66,7 @@ public interface AppGoodsMapper * @param goodsIds 需要删除的数据主键集合 * @return 结果 */ - public int deleteAppGoodsByGoodsIds(String[] goodsIds); + public int deleteAppGoodsByIds(String[] goodsIds); /** @@ -67,5 +75,6 @@ public interface AppGoodsMapper * @param goodsIds * @return */ - List selectAppGoodsListByGoodsIds(String[] goodsIds); + List selectAppGoodsListByIds(String[] goodsIds); + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppLocationMapper.java b/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppLocationMapper.java index 761771b5..9002ea46 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppLocationMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppLocationMapper.java @@ -19,7 +19,7 @@ public interface AppLocationMapper * @param locationId 【请填写功能名称】主键 * @return 【请填写功能名称】 */ - AppLocation selectAppLocationByLocationId(String locationId); + AppLocation selectAppLocationById(String locationId); /** * 查询【请填写功能名称】列表 @@ -58,7 +58,7 @@ public interface AppLocationMapper * @param locationId 【请填写功能名称】主键 * @return 结果 */ - int deleteAppLocationByLocationId(String locationId); + int deleteAppLocationById(String locationId); /** * 批量删除【请填写功能名称】 @@ -66,7 +66,7 @@ public interface AppLocationMapper * @param locationIds 需要删除的数据主键集合 * @return 结果 */ - int deleteAppLocationByLocationIds(String[] locationIds); + int deleteAppLocationByIds(String[] locationIds); Map countAvailableStock(); @@ -75,7 +75,15 @@ public interface AppLocationMapper * @param locationIds * @return */ - List selectAppLocationListByLocationIds(String[] locationIds); + List selectAppLocationListByIds(String[] locationIds); List selectFreeLoc(); + + /** + * 根据货位编码查询货位 + * @param locationId + * @return + */ + AppLocation selectAppLocationByLocationId(String locationId); + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppStandMapper.java b/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppStandMapper.java index e3d642be..880aa6f6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppStandMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppStandMapper.java @@ -59,4 +59,12 @@ public interface AppStandMapper * @return 结果 */ public int deleteAppStandByStandIds(String[] standIds); + + /** + * 根据编码获取站点 + * + * @param standCode + * @return + */ + AppStand selectAppStandByStandCode(String standCode); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppStorageMapper.java b/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppStorageMapper.java index 8696396f..2fc4157a 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppStorageMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/mapper/AppStorageMapper.java @@ -58,4 +58,12 @@ public interface AppStorageMapper * @return 结果 */ public int deleteAppStorageByIds(Long[] ids); + + /** + * 根据仓库id查询仓库 + * + * @param storageId + * @return + */ + AppStorage selectAppStorageByStorageId(String storageId); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppGoodsService.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppGoodsService.java index 9b0ed272..5cb43a50 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppGoodsService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppGoodsService.java @@ -18,6 +18,13 @@ public interface IAppGoodsService * @param goodsId 【请填写功能名称】主键 * @return 【请填写功能名称】 */ + public AppGoods selectAppGoodsById(String goodsId); + /** + * 根据物料编码查询物料 + * + * @param goodsId 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ public AppGoods selectAppGoodsByGoodsId(String goodsId); /** @@ -50,7 +57,7 @@ public interface IAppGoodsService * @param goodsIds 需要删除的【请填写功能名称】主键集合 * @return 结果 */ - public int deleteAppGoodsByGoodsIds(String[] goodsIds); + public int deleteAppGoodsByIds(String[] goodsIds); /** * 删除【请填写功能名称】信息 @@ -58,11 +65,20 @@ public interface IAppGoodsService * @param goodsId 【请填写功能名称】主键 * @return 结果 */ - public int deleteAppGoodsByGoodsId(String goodsId); + public int deleteAppGoodsById(String goodsId); /** * 批量修改物料启用禁用状态 * @param goodsIds */ void changeGoodsIsEnableStatus(String[] goodsIds); + + /** + * 物料导入 + * + * @param appGoodsList + * @param updateSupport + * @return + */ + String importGoods(List appGoodsList, boolean updateSupport); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppLocationService.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppLocationService.java index e999de3d..fd33eef2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppLocationService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppLocationService.java @@ -18,7 +18,7 @@ public interface IAppLocationService { * @param locationId 【请填写功能名称】主键 * @return 【请填写功能名称】 */ - AppLocation selectAppLocationByLocationId(String locationId); + AppLocation selectAppLocationById(String locationId); /** * 查询【请填写功能名称】列表 @@ -58,7 +58,7 @@ public interface IAppLocationService { * @param locationIds 需要删除的【请填写功能名称】主键集合 * @return 结果 */ - int deleteAppLocationByLocationIds(String[] locationIds); + int deleteAppLocationByIds(String[] locationIds); /** * 删除【请填写功能名称】信息 @@ -66,7 +66,7 @@ public interface IAppLocationService { * @param locationId 【请填写功能名称】主键 * @return 结果 */ - int deleteAppLocationByLocationId(String locationId); + int deleteAppLocationById(String locationId); /** * 请求库位 @@ -89,4 +89,20 @@ public interface IAppLocationService { void changeIsEnableStatus(String[] locationIds); List selectFreeLoc(); + + /** + * 根据库位编码查询库位 + * + * @param locId + * @return + */ + AppLocation selectAppLocationByLocationId(String locId); + + /** + * 库位导入 + * @param locationList + * @param updateSupport + * @return + */ + String importLocation(List locationList, boolean updateSupport); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppStandService.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppStandService.java index 8b166295..0290297d 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppStandService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppStandService.java @@ -20,6 +20,14 @@ public interface IAppStandService */ public AppStand selectAppStandByStandId(String standId); + /** + * 根据编码获取站点 + * + * @param standCode + * @return + */ + AppStand selectAppStandByStandCode(String standCode); + /** * 查询【请填写功能名称】列表 * diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppStorageService.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppStorageService.java index 511ba4ba..049c5595 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppStorageService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppStorageService.java @@ -58,4 +58,12 @@ public interface IAppStorageService * @return 结果 */ public int deleteAppStorageById(Long id); + + /** + * 根据仓库编码查询仓库 + * + * @param storageId + * @return + */ + AppStorage selectAppStorageByStorageId(String storageId); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppVehicleService.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppVehicleService.java index 9af4b068..846619e5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppVehicleService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/IAppVehicleService.java @@ -20,6 +20,14 @@ public interface IAppVehicleService { */ public AppVehicle selectAppVehicleByVehicleId(String vehicleId); + /** + * 根据容器编码查询容器 + * + * @param vehicleCode + * @return + */ + AppVehicle selectAppVehicleByVehicleCode(String vehicleCode); + /** * 查询【请填写功能名称】列表 * diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppGoodsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppGoodsServiceImpl.java index aab9e38c..0174b057 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppGoodsServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppGoodsServiceImpl.java @@ -4,9 +4,14 @@ import java.util.List; import cn.hutool.core.collection.CollectionUtil; import com.ruoyi.app.domain.AppGoods; +import com.ruoyi.app.domain.AppLocation; import com.ruoyi.app.mapper.AppGoodsMapper; import com.ruoyi.app.service.IAppGoodsService; import com.ruoyi.common.constant.AppConstants; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -17,8 +22,8 @@ import org.springframework.stereotype.Service; * @date 2025-01-15 */ @Service -public class AppGoodsServiceImpl implements IAppGoodsService -{ +public class AppGoodsServiceImpl implements IAppGoodsService { + private static final Logger log = LoggerFactory.getLogger(AppGoodsServiceImpl.class); @Autowired private AppGoodsMapper appGoodsMapper; @@ -29,11 +34,15 @@ public class AppGoodsServiceImpl implements IAppGoodsService * @return 【请填写功能名称】 */ @Override - public AppGoods selectAppGoodsByGoodsId(String goodsId) + public AppGoods selectAppGoodsById(String goodsId) { - return appGoodsMapper.selectAppGoodsByGoodsId(goodsId); + return appGoodsMapper.selectAppGoodsById(goodsId); } + @Override + public AppGoods selectAppGoodsByGoodsId(String goodsId) { + return appGoodsMapper.selectAppGoodsByGoodsId(goodsId); + } /** * 查询【请填写功能名称】列表 * @@ -77,9 +86,9 @@ public class AppGoodsServiceImpl implements IAppGoodsService * @return 结果 */ @Override - public int deleteAppGoodsByGoodsIds(String[] goodsIds) + public int deleteAppGoodsByIds(String[] goodsIds) { - return appGoodsMapper.deleteAppGoodsByGoodsIds(goodsIds); + return appGoodsMapper.deleteAppGoodsByIds(goodsIds); } /** @@ -89,14 +98,14 @@ public class AppGoodsServiceImpl implements IAppGoodsService * @return 结果 */ @Override - public int deleteAppGoodsByGoodsId(String goodsId) + public int deleteAppGoodsById(String goodsId) { - return appGoodsMapper.deleteAppGoodsByGoodsId(goodsId); + return appGoodsMapper.deleteAppGoodsById(goodsId); } @Override public void changeGoodsIsEnableStatus(String[] goodsIds) { - List appGoodsList = appGoodsMapper.selectAppGoodsListByGoodsIds(goodsIds); + List appGoodsList = appGoodsMapper.selectAppGoodsListByIds(goodsIds); if (CollectionUtil.isNotEmpty(appGoodsList)) { appGoodsList.forEach(appGoods -> { Long oldIsEnabled = appGoods.getGoodsStatus(); @@ -109,4 +118,45 @@ public class AppGoodsServiceImpl implements IAppGoodsService }); } } + + @Override + public String importGoods(List appGoodsList, boolean isUpdateSupport) { + if (CollectionUtil.isEmpty(appGoodsList)) { + throw new ServiceException("导入库位数据不能为空!"); + } + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + for (AppGoods appGoods : appGoodsList) { + try { + // 验证是否存在这个物料编码 + AppGoods u = appGoodsMapper.selectAppGoodsByGoodsId(appGoods.getGoodsId()); + if (StringUtils.isNull(u)) { + appGoodsMapper.insertAppGoods(appGoods); + successNum++; + successMsg.append("
" + successNum + "、物料 " + appGoods.getGoodsId() + " 导入成功"); + } else if (isUpdateSupport) { + appGoodsMapper.updateAppGoods(appGoods); + successNum++; + successMsg.append("
" + successNum + "、物料 " + appGoods.getGoodsId() + " 更新成功"); + } else { + failureNum++; + failureMsg.append("
" + failureNum + "、物料 " + appGoods.getGoodsId() + " 已存在"); + } + } catch (Exception e) { + failureNum++; + String msg = "
" + failureNum + "、物料 " + appGoods.getGoodsId() + " 导入失败:"; + failureMsg.append(msg + e.getMessage()); + log.error(msg, e); + } + } + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + } + return successMsg.toString(); + } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppLocationServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppLocationServiceImpl.java index fea6fb82..edb024e3 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppLocationServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppLocationServiceImpl.java @@ -12,6 +12,10 @@ import com.ruoyi.app.domain.AppLocation; import com.ruoyi.app.mapper.AppLocationMapper; import com.ruoyi.app.service.IAppLocationService; import com.ruoyi.common.constant.AppConstants; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -24,6 +28,8 @@ import org.springframework.transaction.annotation.Transactional; */ @Service public class AppLocationServiceImpl implements IAppLocationService { + private static final Logger log = LoggerFactory.getLogger(AppLocationServiceImpl.class); + @Autowired private AppLocationMapper appLocationMapper; @@ -34,8 +40,8 @@ public class AppLocationServiceImpl implements IAppLocationService { * @return 【请填写功能名称】 */ @Override - public AppLocation selectAppLocationByLocationId(String locationId) { - return appLocationMapper.selectAppLocationByLocationId(locationId); + public AppLocation selectAppLocationById(String locationId) { + return appLocationMapper.selectAppLocationById(locationId); } /** @@ -92,8 +98,8 @@ public class AppLocationServiceImpl implements IAppLocationService { * @return 结果 */ @Override - public int deleteAppLocationByLocationIds(String[] locationIds) { - return appLocationMapper.deleteAppLocationByLocationIds(locationIds); + public int deleteAppLocationByIds(String[] locationIds) { + return appLocationMapper.deleteAppLocationByIds(locationIds); } /** @@ -103,8 +109,8 @@ public class AppLocationServiceImpl implements IAppLocationService { * @return 结果 */ @Override - public int deleteAppLocationByLocationId(String locationId) { - return appLocationMapper.deleteAppLocationByLocationId(locationId); + public int deleteAppLocationById(String locationId) { + return appLocationMapper.deleteAppLocationById(locationId); } /** @@ -227,7 +233,7 @@ public class AppLocationServiceImpl implements IAppLocationService { @Override public void changeIsEnableStatus(String[] locationIds) { - List appLocationList = appLocationMapper.selectAppLocationListByLocationIds(locationIds); + List appLocationList = appLocationMapper.selectAppLocationListByIds(locationIds); if (CollectionUtil.isNotEmpty(appLocationList)) { appLocationList.forEach(appLocation -> { Integer oldIsEnabled = appLocation.getIsEnable(); @@ -245,4 +251,50 @@ public class AppLocationServiceImpl implements IAppLocationService { public List selectFreeLoc() { return appLocationMapper.selectFreeLoc(); } + + @Override + public AppLocation selectAppLocationByLocationId(String locationId) { + return appLocationMapper.selectAppLocationByLocationId(locationId); + } + + @Override + public String importLocation(List locationList, boolean isUpdateSupport) { + if (CollectionUtil.isEmpty(locationList)) { + throw new ServiceException("导入库位数据不能为空!"); + } + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + for (AppLocation appLocation : locationList) { + try { + // 验证是否存在这个容器编码 + AppLocation u = appLocationMapper.selectAppLocationByLocationId(appLocation.getLocationId()); + if (StringUtils.isNull(u)) { + appLocationMapper.insertAppLocation(appLocation); + successNum++; + successMsg.append("
" + successNum + "、库位 " + appLocation.getLocationId() + " 导入成功"); + } else if (isUpdateSupport) { + appLocationMapper.updateAppLocation(appLocation); + successNum++; + successMsg.append("
" + successNum + "、库位 " + appLocation.getLocationId() + " 更新成功"); + } else { + failureNum++; + failureMsg.append("
" + failureNum + "、库位 " + appLocation.getLocationId() + " 已存在"); + } + } catch (Exception e) { + failureNum++; + String msg = "
" + failureNum + "、库位 " + appLocation.getLocationId() + " 导入失败:"; + failureMsg.append(msg + e.getMessage()); + log.error(msg, e); + } + } + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + } + return successMsg.toString(); + } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppStandServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppStandServiceImpl.java index 554e2261..49006b7d 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppStandServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppStandServiceImpl.java @@ -32,6 +32,11 @@ public class AppStandServiceImpl implements IAppStandService return appStandMapper.selectAppStandByStandId(standId); } + @Override + public AppStand selectAppStandByStandCode(String standCode) { + return appStandMapper.selectAppStandByStandCode(standCode); + } + /** * 查询【请填写功能名称】列表 * diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppStorageServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppStorageServiceImpl.java index 34018cc5..82a1311e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppStorageServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppStorageServiceImpl.java @@ -32,6 +32,12 @@ public class AppStorageServiceImpl implements IAppStorageService return appStorageMapper.selectAppStorageById(id); } + + @Override + public AppStorage selectAppStorageByStorageId(String storageId) { + return appStorageMapper.selectAppStorageByStorageId(storageId); + } + /** * 查询仓库列表 * diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppVehicleServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppVehicleServiceImpl.java index 652391ca..01bad819 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppVehicleServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppVehicleServiceImpl.java @@ -41,6 +41,11 @@ public class AppVehicleServiceImpl implements IAppVehicleService { return appVehicleMapper.selectAppVehicleByVehicleId(vehicleId); } + @Override + public AppVehicle selectAppVehicleByVehicleCode(String vehicleCode) { + return appVehicleMapper.selectAppVehicleByVehicleCode(vehicleCode); + } + /** * 查询【请填写功能名称】列表 * @@ -136,11 +141,11 @@ public class AppVehicleServiceImpl implements IAppVehicleService { if (StringUtils.isNull(u)) { appVehicleMapper.insertAppVehicle(appVehicle); successNum++; - successMsg.append("
" + successNum + "、账号 " + appVehicle.getVehicleCode() + " 导入成功"); + successMsg.append("
" + successNum + "、容器 " + appVehicle.getVehicleCode() + " 导入成功"); } else if (isUpdateSupport) { appVehicleMapper.updateAppVehicle(appVehicle); successNum++; - successMsg.append("
" + successNum + "、账号 " + appVehicle.getVehicleCode() + " 更新成功"); + successMsg.append("
" + successNum + "、容器 " + appVehicle.getVehicleCode() + " 更新成功"); } else { failureNum++; failureMsg.append("
" + failureNum + "、容器 " + appVehicle.getVehicleCode() + " 已存在"); diff --git a/ruoyi-system/src/main/resources/mapper/app/AppGoodsMapper.xml b/ruoyi-system/src/main/resources/mapper/app/AppGoodsMapper.xml index 74f269fd..5dc2ffa8 100644 --- a/ruoyi-system/src/main/resources/mapper/app/AppGoodsMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/app/AppGoodsMapper.xml @@ -24,7 +24,7 @@ - where id = #{id} + + insert into app_goods @@ -84,18 +89,18 @@ where id = #{id} - + delete from app_goods where id = #{id} - + delete from app_goods where id in #{id} - where id in diff --git a/ruoyi-system/src/main/resources/mapper/app/AppLocationMapper.xml b/ruoyi-system/src/main/resources/mapper/app/AppLocationMapper.xml index 1880259c..81172562 100644 --- a/ruoyi-system/src/main/resources/mapper/app/AppLocationMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/app/AppLocationMapper.xml @@ -5,6 +5,7 @@ + @@ -24,7 +25,8 @@ - select location_id, + select id, + location_id, location_type, location_status, outer_id, @@ -46,6 +48,7 @@ + + diff --git a/ruoyi-system/src/main/resources/mapper/app/AppStandMapper.xml b/ruoyi-system/src/main/resources/mapper/app/AppStandMapper.xml index d89b6d4a..fdeb4cac 100644 --- a/ruoyi-system/src/main/resources/mapper/app/AppStandMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/app/AppStandMapper.xml @@ -37,6 +37,10 @@ where stand_id = #{standId} + insert into app_stand diff --git a/ruoyi-system/src/main/resources/mapper/app/AppStorageMapper.xml b/ruoyi-system/src/main/resources/mapper/app/AppStorageMapper.xml index 45f0ffa7..447e2cdb 100644 --- a/ruoyi-system/src/main/resources/mapper/app/AppStorageMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/app/AppStorageMapper.xml @@ -51,6 +51,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} + + insert into app_storage