单位仓库
This commit is contained in:
parent
0234ca086f
commit
890357723c
|
|
@ -1,119 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.common.log.enums.OperaType;
|
||||
//import com.bonus.canteen.core.supply.common.annotation.PreventRepeatSubmit;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.bonus.common.log.annotation.SysLog;
|
||||
import com.bonus.common.security.annotation.RequiresPermissions;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyProductUnit;
|
||||
import com.bonus.canteen.core.supply.service.ISupplyProductUnitService;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 计量单位Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
@Api(tags = "计量单位接口")
|
||||
@RestController
|
||||
@RequestMapping("/supply_product_unit")
|
||||
public class SupplyProductUnitController extends BaseController {
|
||||
@Autowired
|
||||
private ISupplyProductUnitService supplyProductUnitService;
|
||||
|
||||
/**
|
||||
* 查询计量单位列表
|
||||
*/
|
||||
@ApiOperation(value = "查询计量单位列表")
|
||||
//@RequiresPermissions("supply:unit:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SupplyProductUnit supplyProductUnit) {
|
||||
startPage();
|
||||
List<SupplyProductUnit> list = supplyProductUnitService.selectSupplyProductUnitList(supplyProductUnit);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出计量单位列表
|
||||
*/
|
||||
@ApiOperation(value = "导出计量单位列表")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:unit:export")
|
||||
@SysLog(title = "计量单位", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出计量单位")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SupplyProductUnit supplyProductUnit) {
|
||||
List<SupplyProductUnit> list = supplyProductUnitService.selectSupplyProductUnitList(supplyProductUnit);
|
||||
ExcelUtil<SupplyProductUnit> util = new ExcelUtil<SupplyProductUnit>(SupplyProductUnit.class);
|
||||
util.exportExcel(response, list, "计量单位数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取计量单位详细信息
|
||||
*/
|
||||
@ApiOperation(value = "获取计量单位详细信息")
|
||||
//@RequiresPermissions("supply:unit:query")
|
||||
@GetMapping(value = "/{unitId}")
|
||||
public AjaxResult getInfo(@PathVariable("unitId") Long unitId) {
|
||||
return success(supplyProductUnitService.selectSupplyProductUnitByUnitId(unitId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增计量单位
|
||||
*/
|
||||
@ApiOperation(value = "新增计量单位")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:unit:add")
|
||||
@SysLog(title = "计量单位", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增计量单位")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SupplyProductUnit supplyProductUnit) {
|
||||
try {
|
||||
return toAjax(supplyProductUnitService.insertSupplyProductUnit(supplyProductUnit));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改计量单位
|
||||
*/
|
||||
@ApiOperation(value = "修改计量单位")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:unit:edit")
|
||||
@SysLog(title = "计量单位", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改计量单位")
|
||||
@PostMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody SupplyProductUnit supplyProductUnit) {
|
||||
try {
|
||||
return toAjax(supplyProductUnitService.updateSupplyProductUnit(supplyProductUnit));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除计量单位
|
||||
*/
|
||||
@ApiOperation(value = "删除计量单位")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:unit:remove")
|
||||
@SysLog(title = "计量单位", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除计量单位")
|
||||
@PostMapping("/del/{unitIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] unitIds) {
|
||||
return toAjax(supplyProductUnitService.deleteSupplyProductUnitByUnitIds(unitIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,119 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.common.log.enums.OperaType;
|
||||
//import com.bonus.canteen.core.supply.common.annotation.PreventRepeatSubmit;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.bonus.common.log.annotation.SysLog;
|
||||
import com.bonus.common.security.annotation.RequiresPermissions;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyWarehouseFetchUser;
|
||||
import com.bonus.canteen.core.supply.service.ISupplyWarehouseFetchUserService;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 仓库绑定档口领料人Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
@Api(tags = "仓库绑定档口领料人接口")
|
||||
@RestController
|
||||
@RequestMapping("/supply_warehouse_fetch_user")
|
||||
public class SupplyWarehouseFetchUserController extends BaseController {
|
||||
@Autowired
|
||||
private ISupplyWarehouseFetchUserService supplyWarehouseFetchUserService;
|
||||
|
||||
/**
|
||||
* 查询仓库绑定档口领料人列表
|
||||
*/
|
||||
@ApiOperation(value = "查询仓库绑定档口领料人列表")
|
||||
//@RequiresPermissions("supply:user:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SupplyWarehouseFetchUser supplyWarehouseFetchUser) {
|
||||
startPage();
|
||||
List<SupplyWarehouseFetchUser> list = supplyWarehouseFetchUserService.selectSupplyWarehouseFetchUserList(supplyWarehouseFetchUser);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出仓库绑定档口领料人列表
|
||||
*/
|
||||
@ApiOperation(value = "导出仓库绑定档口领料人列表")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:user:export")
|
||||
@SysLog(title = "仓库绑定档口领料人", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出仓库绑定档口领料人")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SupplyWarehouseFetchUser supplyWarehouseFetchUser) {
|
||||
List<SupplyWarehouseFetchUser> list = supplyWarehouseFetchUserService.selectSupplyWarehouseFetchUserList(supplyWarehouseFetchUser);
|
||||
ExcelUtil<SupplyWarehouseFetchUser> util = new ExcelUtil<SupplyWarehouseFetchUser>(SupplyWarehouseFetchUser.class);
|
||||
util.exportExcel(response, list, "仓库绑定档口领料人数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取仓库绑定档口领料人详细信息
|
||||
*/
|
||||
@ApiOperation(value = "获取仓库绑定档口领料人详细信息")
|
||||
//@RequiresPermissions("supply:user:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(supplyWarehouseFetchUserService.selectSupplyWarehouseFetchUserById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增仓库绑定档口领料人
|
||||
*/
|
||||
@ApiOperation(value = "新增仓库绑定档口领料人")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:user:add")
|
||||
@SysLog(title = "仓库绑定档口领料人", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增仓库绑定档口领料人")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SupplyWarehouseFetchUser supplyWarehouseFetchUser) {
|
||||
try {
|
||||
return toAjax(supplyWarehouseFetchUserService.insertSupplyWarehouseFetchUser(supplyWarehouseFetchUser));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改仓库绑定档口领料人
|
||||
*/
|
||||
@ApiOperation(value = "修改仓库绑定档口领料人")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:user:edit")
|
||||
@SysLog(title = "仓库绑定档口领料人", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改仓库绑定档口领料人")
|
||||
@PostMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody SupplyWarehouseFetchUser supplyWarehouseFetchUser) {
|
||||
try {
|
||||
return toAjax(supplyWarehouseFetchUserService.updateSupplyWarehouseFetchUser(supplyWarehouseFetchUser));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除仓库绑定档口领料人
|
||||
*/
|
||||
@ApiOperation(value = "删除仓库绑定档口领料人")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:user:remove")
|
||||
@SysLog(title = "仓库绑定档口领料人", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除仓库绑定档口领料人")
|
||||
@PostMapping("/del/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(supplyWarehouseFetchUserService.deleteSupplyWarehouseFetchUserByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,119 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.common.log.enums.OperaType;
|
||||
//import com.bonus.canteen.core.supply.common.annotation.PreventRepeatSubmit;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.bonus.common.log.annotation.SysLog;
|
||||
import com.bonus.common.security.annotation.RequiresPermissions;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyWarehouseInfo;
|
||||
import com.bonus.canteen.core.supply.service.ISupplyWarehouseInfoService;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 仓库信息Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
@Api(tags = "仓库信息接口")
|
||||
@RestController
|
||||
@RequestMapping("/supply_warehouse_info")
|
||||
public class SupplyWarehouseInfoController extends BaseController {
|
||||
@Autowired
|
||||
private ISupplyWarehouseInfoService supplyWarehouseInfoService;
|
||||
|
||||
/**
|
||||
* 查询仓库信息列表
|
||||
*/
|
||||
@ApiOperation(value = "查询仓库信息列表")
|
||||
//@RequiresPermissions("supply:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SupplyWarehouseInfo supplyWarehouseInfo) {
|
||||
startPage();
|
||||
List<SupplyWarehouseInfo> list = supplyWarehouseInfoService.selectSupplyWarehouseInfoList(supplyWarehouseInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出仓库信息列表
|
||||
*/
|
||||
@ApiOperation(value = "导出仓库信息列表")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:info:export")
|
||||
@SysLog(title = "仓库信息", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出仓库信息")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SupplyWarehouseInfo supplyWarehouseInfo) {
|
||||
List<SupplyWarehouseInfo> list = supplyWarehouseInfoService.selectSupplyWarehouseInfoList(supplyWarehouseInfo);
|
||||
ExcelUtil<SupplyWarehouseInfo> util = new ExcelUtil<SupplyWarehouseInfo>(SupplyWarehouseInfo.class);
|
||||
util.exportExcel(response, list, "仓库信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取仓库信息详细信息
|
||||
*/
|
||||
@ApiOperation(value = "获取仓库信息详细信息")
|
||||
//@RequiresPermissions("supply:info:query")
|
||||
@GetMapping(value = "/{warehouseId}")
|
||||
public AjaxResult getInfo(@PathVariable("warehouseId") Long warehouseId) {
|
||||
return success(supplyWarehouseInfoService.selectSupplyWarehouseInfoByWarehouseId(warehouseId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增仓库信息
|
||||
*/
|
||||
@ApiOperation(value = "新增仓库信息")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:info:add")
|
||||
@SysLog(title = "仓库信息", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增仓库信息")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SupplyWarehouseInfo supplyWarehouseInfo) {
|
||||
try {
|
||||
return toAjax(supplyWarehouseInfoService.insertSupplyWarehouseInfo(supplyWarehouseInfo));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改仓库信息
|
||||
*/
|
||||
@ApiOperation(value = "修改仓库信息")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:info:edit")
|
||||
@SysLog(title = "仓库信息", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改仓库信息")
|
||||
@PostMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody SupplyWarehouseInfo supplyWarehouseInfo) {
|
||||
try {
|
||||
return toAjax(supplyWarehouseInfoService.updateSupplyWarehouseInfo(supplyWarehouseInfo));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除仓库信息
|
||||
*/
|
||||
@ApiOperation(value = "删除仓库信息")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("supply:info:remove")
|
||||
@SysLog(title = "仓库信息", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除仓库信息")
|
||||
@PostMapping("/del/{warehouseIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] warehouseIds) {
|
||||
return toAjax(supplyWarehouseInfoService.deleteSupplyWarehouseInfoByWarehouseIds(warehouseIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import com.bonus.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 计量单位对象 supply_product_unit
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SupplyProductUnit extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 计量单位id */
|
||||
private Long unitId;
|
||||
|
||||
/** 计量单位名称 */
|
||||
@Excel(name = "计量单位名称")
|
||||
@ApiModelProperty(value = "计量单位名称")
|
||||
private String unitName;
|
||||
|
||||
/** 换算比率(换算成g) */
|
||||
@Excel(name = "换算比率(换算成g)")
|
||||
@ApiModelProperty(value = "换算比率(换算成g)")
|
||||
private BigDecimal rate;
|
||||
|
||||
/** 单位类型(1-按份,2-称重) */
|
||||
@Excel(name = "单位类型(1-按份,2-称重)")
|
||||
@ApiModelProperty(value = "单位类型(1-按份,2-称重)")
|
||||
private Integer weighType;
|
||||
}
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.domain;
|
||||
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import com.bonus.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 仓库绑定档口领料人对象 supply_warehouse_fetch_user
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SupplyWarehouseFetchUser extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 仓库ID */
|
||||
@Excel(name = "仓库ID")
|
||||
@ApiModelProperty(value = "仓库ID")
|
||||
private Long warehouseId;
|
||||
|
||||
/** 食堂id */
|
||||
@Excel(name = "食堂id")
|
||||
@ApiModelProperty(value = "食堂id")
|
||||
private Long canteenId;
|
||||
|
||||
/** 档口id */
|
||||
@Excel(name = "档口id")
|
||||
@ApiModelProperty(value = "档口id")
|
||||
private Long stallId;
|
||||
|
||||
/** 领料人id */
|
||||
@Excel(name = "领料人id")
|
||||
@ApiModelProperty(value = "领料人id")
|
||||
private Long fetchUserId;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.domain;
|
||||
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import com.bonus.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 仓库信息对象 supply_warehouse_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SupplyWarehouseInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 仓库id */
|
||||
private Long warehouseId;
|
||||
|
||||
/** 父级id */
|
||||
@Excel(name = "父级id")
|
||||
@ApiModelProperty(value = "父级id")
|
||||
private Long parentId;
|
||||
|
||||
/** 仓库类别id warehouse_category */
|
||||
@Excel(name = "仓库类别id warehouse_category")
|
||||
@ApiModelProperty(value = "仓库类别id warehouse_category")
|
||||
private Long categoryId;
|
||||
|
||||
/** 区域id */
|
||||
@Excel(name = "区域id")
|
||||
@ApiModelProperty(value = "区域id")
|
||||
private Long areaId;
|
||||
|
||||
/** 食堂ID */
|
||||
@Excel(name = "食堂ID")
|
||||
@ApiModelProperty(value = "食堂ID")
|
||||
private Long canteenId;
|
||||
|
||||
/** 仓库编号 */
|
||||
@Excel(name = "仓库编号")
|
||||
@ApiModelProperty(value = "仓库编号")
|
||||
private String warehouseCode;
|
||||
|
||||
/** 仓库名称 */
|
||||
@Excel(name = "仓库名称")
|
||||
@ApiModelProperty(value = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
/** 仓库管理员id */
|
||||
@Excel(name = "仓库管理员id")
|
||||
@ApiModelProperty(value = "仓库管理员id")
|
||||
private Long userId;
|
||||
|
||||
/** 仓库管理员 */
|
||||
@Excel(name = "仓库管理员")
|
||||
@ApiModelProperty(value = "仓库管理员")
|
||||
private String manager;
|
||||
|
||||
/** 领取人id */
|
||||
@Excel(name = "领取人id")
|
||||
@ApiModelProperty(value = "领取人id")
|
||||
private Long fetchUserId;
|
||||
|
||||
/** 区域-省 */
|
||||
@Excel(name = "区域-省")
|
||||
@ApiModelProperty(value = "区域-省")
|
||||
private String regionProvince;
|
||||
|
||||
/** 区域-市 */
|
||||
@Excel(name = "区域-市")
|
||||
@ApiModelProperty(value = "区域-市")
|
||||
private String regionCity;
|
||||
|
||||
/** 区域-区 */
|
||||
@Excel(name = "区域-区")
|
||||
@ApiModelProperty(value = "区域-区")
|
||||
private String regionDistrict;
|
||||
|
||||
/** 详细地址 */
|
||||
@Excel(name = "详细地址")
|
||||
@ApiModelProperty(value = "详细地址")
|
||||
private String address;
|
||||
|
||||
/** 仓库类型(1原料,2商品) */
|
||||
@Excel(name = "仓库类型(1原料,2商品)")
|
||||
@ApiModelProperty(value = "仓库类型(1原料,2商品)")
|
||||
private Long warehouseType;
|
||||
|
||||
/** 是否启用库区(1是2否) */
|
||||
@Excel(name = "是否启用库区(1是2否)")
|
||||
@ApiModelProperty(value = "是否启用库区(1是2否)")
|
||||
private Long ifUseWarehouseArea;
|
||||
|
||||
/** 是否启用库位(1是2否) */
|
||||
@Excel(name = "是否启用库位(1是2否)")
|
||||
@ApiModelProperty(value = "是否启用库位(1是2否)")
|
||||
private Long ifUseWarehouseLocation;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyProductUnit;
|
||||
|
||||
/**
|
||||
* 计量单位Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
public interface SupplyProductUnitMapper {
|
||||
/**
|
||||
* 查询计量单位
|
||||
*
|
||||
* @param unitId 计量单位主键
|
||||
* @return 计量单位
|
||||
*/
|
||||
public SupplyProductUnit selectSupplyProductUnitByUnitId(Long unitId);
|
||||
|
||||
/**
|
||||
* 查询计量单位列表
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 计量单位集合
|
||||
*/
|
||||
public List<SupplyProductUnit> selectSupplyProductUnitList(SupplyProductUnit supplyProductUnit);
|
||||
|
||||
/**
|
||||
* 新增计量单位
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplyProductUnit(SupplyProductUnit supplyProductUnit);
|
||||
|
||||
/**
|
||||
* 修改计量单位
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplyProductUnit(SupplyProductUnit supplyProductUnit);
|
||||
|
||||
/**
|
||||
* 删除计量单位
|
||||
*
|
||||
* @param unitId 计量单位主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyProductUnitByUnitId(Long unitId);
|
||||
|
||||
/**
|
||||
* 批量删除计量单位
|
||||
*
|
||||
* @param unitIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyProductUnitByUnitIds(Long[] unitIds);
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyWarehouseFetchUser;
|
||||
|
||||
/**
|
||||
* 仓库绑定档口领料人Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
public interface SupplyWarehouseFetchUserMapper {
|
||||
/**
|
||||
* 查询仓库绑定档口领料人
|
||||
*
|
||||
* @param id 仓库绑定档口领料人主键
|
||||
* @return 仓库绑定档口领料人
|
||||
*/
|
||||
public SupplyWarehouseFetchUser selectSupplyWarehouseFetchUserById(Long id);
|
||||
|
||||
/**
|
||||
* 查询仓库绑定档口领料人列表
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 仓库绑定档口领料人集合
|
||||
*/
|
||||
public List<SupplyWarehouseFetchUser> selectSupplyWarehouseFetchUserList(SupplyWarehouseFetchUser supplyWarehouseFetchUser);
|
||||
|
||||
/**
|
||||
* 新增仓库绑定档口领料人
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplyWarehouseFetchUser(SupplyWarehouseFetchUser supplyWarehouseFetchUser);
|
||||
|
||||
/**
|
||||
* 修改仓库绑定档口领料人
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplyWarehouseFetchUser(SupplyWarehouseFetchUser supplyWarehouseFetchUser);
|
||||
|
||||
/**
|
||||
* 删除仓库绑定档口领料人
|
||||
*
|
||||
* @param id 仓库绑定档口领料人主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyWarehouseFetchUserById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除仓库绑定档口领料人
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyWarehouseFetchUserByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyWarehouseInfo;
|
||||
|
||||
/**
|
||||
* 仓库信息Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
public interface SupplyWarehouseInfoMapper {
|
||||
/**
|
||||
* 查询仓库信息
|
||||
*
|
||||
* @param warehouseId 仓库信息主键
|
||||
* @return 仓库信息
|
||||
*/
|
||||
public SupplyWarehouseInfo selectSupplyWarehouseInfoByWarehouseId(Long warehouseId);
|
||||
|
||||
public int getSupplyWarehouseCountByAreaIds(Long[] areaIds);
|
||||
|
||||
/**
|
||||
* 查询仓库信息列表
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 仓库信息集合
|
||||
*/
|
||||
public List<SupplyWarehouseInfo> selectSupplyWarehouseInfoList(SupplyWarehouseInfo supplyWarehouseInfo);
|
||||
|
||||
/**
|
||||
* 新增仓库信息
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplyWarehouseInfo(SupplyWarehouseInfo supplyWarehouseInfo);
|
||||
|
||||
/**
|
||||
* 修改仓库信息
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplyWarehouseInfo(SupplyWarehouseInfo supplyWarehouseInfo);
|
||||
|
||||
/**
|
||||
* 删除仓库信息
|
||||
*
|
||||
* @param warehouseId 仓库信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyWarehouseInfoByWarehouseId(Long warehouseId);
|
||||
|
||||
/**
|
||||
* 批量删除仓库信息
|
||||
*
|
||||
* @param warehouseIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyWarehouseInfoByWarehouseIds(Long[] warehouseIds);
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyProductUnit;
|
||||
|
||||
/**
|
||||
* 计量单位Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
public interface ISupplyProductUnitService {
|
||||
/**
|
||||
* 查询计量单位
|
||||
*
|
||||
* @param unitId 计量单位主键
|
||||
* @return 计量单位
|
||||
*/
|
||||
public SupplyProductUnit selectSupplyProductUnitByUnitId(Long unitId);
|
||||
|
||||
/**
|
||||
* 查询计量单位列表
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 计量单位集合
|
||||
*/
|
||||
public List<SupplyProductUnit> selectSupplyProductUnitList(SupplyProductUnit supplyProductUnit);
|
||||
|
||||
/**
|
||||
* 新增计量单位
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplyProductUnit(SupplyProductUnit supplyProductUnit);
|
||||
|
||||
/**
|
||||
* 修改计量单位
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplyProductUnit(SupplyProductUnit supplyProductUnit);
|
||||
|
||||
/**
|
||||
* 批量删除计量单位
|
||||
*
|
||||
* @param unitIds 需要删除的计量单位主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyProductUnitByUnitIds(Long[] unitIds);
|
||||
|
||||
/**
|
||||
* 删除计量单位信息
|
||||
*
|
||||
* @param unitId 计量单位主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyProductUnitByUnitId(Long unitId);
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyWarehouseFetchUser;
|
||||
|
||||
/**
|
||||
* 仓库绑定档口领料人Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
public interface ISupplyWarehouseFetchUserService {
|
||||
/**
|
||||
* 查询仓库绑定档口领料人
|
||||
*
|
||||
* @param id 仓库绑定档口领料人主键
|
||||
* @return 仓库绑定档口领料人
|
||||
*/
|
||||
public SupplyWarehouseFetchUser selectSupplyWarehouseFetchUserById(Long id);
|
||||
|
||||
/**
|
||||
* 查询仓库绑定档口领料人列表
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 仓库绑定档口领料人集合
|
||||
*/
|
||||
public List<SupplyWarehouseFetchUser> selectSupplyWarehouseFetchUserList(SupplyWarehouseFetchUser supplyWarehouseFetchUser);
|
||||
|
||||
/**
|
||||
* 新增仓库绑定档口领料人
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplyWarehouseFetchUser(SupplyWarehouseFetchUser supplyWarehouseFetchUser);
|
||||
|
||||
/**
|
||||
* 修改仓库绑定档口领料人
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplyWarehouseFetchUser(SupplyWarehouseFetchUser supplyWarehouseFetchUser);
|
||||
|
||||
/**
|
||||
* 批量删除仓库绑定档口领料人
|
||||
*
|
||||
* @param ids 需要删除的仓库绑定档口领料人主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyWarehouseFetchUserByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除仓库绑定档口领料人信息
|
||||
*
|
||||
* @param id 仓库绑定档口领料人主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyWarehouseFetchUserById(Long id);
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyWarehouseInfo;
|
||||
|
||||
/**
|
||||
* 仓库信息Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
public interface ISupplyWarehouseInfoService {
|
||||
/**
|
||||
* 查询仓库信息
|
||||
*
|
||||
* @param warehouseId 仓库信息主键
|
||||
* @return 仓库信息
|
||||
*/
|
||||
public SupplyWarehouseInfo selectSupplyWarehouseInfoByWarehouseId(Long warehouseId);
|
||||
|
||||
/**
|
||||
* 查询仓库信息列表
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 仓库信息集合
|
||||
*/
|
||||
public List<SupplyWarehouseInfo> selectSupplyWarehouseInfoList(SupplyWarehouseInfo supplyWarehouseInfo);
|
||||
|
||||
/**
|
||||
* 新增仓库信息
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplyWarehouseInfo(SupplyWarehouseInfo supplyWarehouseInfo);
|
||||
|
||||
/**
|
||||
* 修改仓库信息
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplyWarehouseInfo(SupplyWarehouseInfo supplyWarehouseInfo);
|
||||
|
||||
/**
|
||||
* 批量删除仓库信息
|
||||
*
|
||||
* @param warehouseIds 需要删除的仓库信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyWarehouseInfoByWarehouseIds(Long[] warehouseIds);
|
||||
|
||||
/**
|
||||
* 删除仓库信息信息
|
||||
*
|
||||
* @param warehouseId 仓库信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplyWarehouseInfoByWarehouseId(Long warehouseId);
|
||||
}
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.canteen.core.supply.mapper.SupplyProductUnitMapper;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyProductUnit;
|
||||
import com.bonus.canteen.core.supply.service.ISupplyProductUnitService;
|
||||
|
||||
/**
|
||||
* 计量单位Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
@Service
|
||||
public class SupplyProductUnitServiceImpl implements ISupplyProductUnitService {
|
||||
@Autowired
|
||||
private SupplyProductUnitMapper supplyProductUnitMapper;
|
||||
|
||||
/**
|
||||
* 查询计量单位
|
||||
*
|
||||
* @param unitId 计量单位主键
|
||||
* @return 计量单位
|
||||
*/
|
||||
@Override
|
||||
public SupplyProductUnit selectSupplyProductUnitByUnitId(Long unitId) {
|
||||
return supplyProductUnitMapper.selectSupplyProductUnitByUnitId(unitId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询计量单位列表
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 计量单位
|
||||
*/
|
||||
@Override
|
||||
public List<SupplyProductUnit> selectSupplyProductUnitList(SupplyProductUnit supplyProductUnit) {
|
||||
return supplyProductUnitMapper.selectSupplyProductUnitList(supplyProductUnit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增计量单位
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSupplyProductUnit(SupplyProductUnit supplyProductUnit) {
|
||||
supplyProductUnit.setCreateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return supplyProductUnitMapper.insertSupplyProductUnit(supplyProductUnit);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改计量单位
|
||||
*
|
||||
* @param supplyProductUnit 计量单位
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSupplyProductUnit(SupplyProductUnit supplyProductUnit) {
|
||||
supplyProductUnit.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return supplyProductUnitMapper.updateSupplyProductUnit(supplyProductUnit);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除计量单位
|
||||
*
|
||||
* @param unitIds 需要删除的计量单位主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplyProductUnitByUnitIds(Long[] unitIds) {
|
||||
return supplyProductUnitMapper.deleteSupplyProductUnitByUnitIds(unitIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除计量单位信息
|
||||
*
|
||||
* @param unitId 计量单位主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplyProductUnitByUnitId(Long unitId) {
|
||||
return supplyProductUnitMapper.deleteSupplyProductUnitByUnitId(unitId);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.canteen.core.supply.mapper.SupplyWarehouseFetchUserMapper;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyWarehouseFetchUser;
|
||||
import com.bonus.canteen.core.supply.service.ISupplyWarehouseFetchUserService;
|
||||
|
||||
/**
|
||||
* 仓库绑定档口领料人Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
@Service
|
||||
public class SupplyWarehouseFetchUserServiceImpl implements ISupplyWarehouseFetchUserService {
|
||||
@Autowired
|
||||
private SupplyWarehouseFetchUserMapper supplyWarehouseFetchUserMapper;
|
||||
|
||||
/**
|
||||
* 查询仓库绑定档口领料人
|
||||
*
|
||||
* @param id 仓库绑定档口领料人主键
|
||||
* @return 仓库绑定档口领料人
|
||||
*/
|
||||
@Override
|
||||
public SupplyWarehouseFetchUser selectSupplyWarehouseFetchUserById(Long id) {
|
||||
return supplyWarehouseFetchUserMapper.selectSupplyWarehouseFetchUserById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询仓库绑定档口领料人列表
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 仓库绑定档口领料人
|
||||
*/
|
||||
@Override
|
||||
public List<SupplyWarehouseFetchUser> selectSupplyWarehouseFetchUserList(SupplyWarehouseFetchUser supplyWarehouseFetchUser) {
|
||||
return supplyWarehouseFetchUserMapper.selectSupplyWarehouseFetchUserList(supplyWarehouseFetchUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增仓库绑定档口领料人
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSupplyWarehouseFetchUser(SupplyWarehouseFetchUser supplyWarehouseFetchUser) {
|
||||
try {
|
||||
return supplyWarehouseFetchUserMapper.insertSupplyWarehouseFetchUser(supplyWarehouseFetchUser);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改仓库绑定档口领料人
|
||||
*
|
||||
* @param supplyWarehouseFetchUser 仓库绑定档口领料人
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSupplyWarehouseFetchUser(SupplyWarehouseFetchUser supplyWarehouseFetchUser) {
|
||||
try {
|
||||
return supplyWarehouseFetchUserMapper.updateSupplyWarehouseFetchUser(supplyWarehouseFetchUser);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除仓库绑定档口领料人
|
||||
*
|
||||
* @param ids 需要删除的仓库绑定档口领料人主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplyWarehouseFetchUserByIds(Long[] ids) {
|
||||
return supplyWarehouseFetchUserMapper.deleteSupplyWarehouseFetchUserByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除仓库绑定档口领料人信息
|
||||
*
|
||||
* @param id 仓库绑定档口领料人主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplyWarehouseFetchUserById(Long id) {
|
||||
return supplyWarehouseFetchUserMapper.deleteSupplyWarehouseFetchUserById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
package com.bonus.canteen.core.supply.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.canteen.core.supply.mapper.SupplyWarehouseInfoMapper;
|
||||
import com.bonus.canteen.core.supply.domain.SupplyWarehouseInfo;
|
||||
import com.bonus.canteen.core.supply.service.ISupplyWarehouseInfoService;
|
||||
|
||||
/**
|
||||
* 仓库信息Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-05-25
|
||||
*/
|
||||
@Service
|
||||
public class SupplyWarehouseInfoServiceImpl implements ISupplyWarehouseInfoService {
|
||||
@Autowired
|
||||
private SupplyWarehouseInfoMapper supplyWarehouseInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询仓库信息
|
||||
*
|
||||
* @param warehouseId 仓库信息主键
|
||||
* @return 仓库信息
|
||||
*/
|
||||
@Override
|
||||
public SupplyWarehouseInfo selectSupplyWarehouseInfoByWarehouseId(Long warehouseId) {
|
||||
return supplyWarehouseInfoMapper.selectSupplyWarehouseInfoByWarehouseId(warehouseId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询仓库信息列表
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 仓库信息
|
||||
*/
|
||||
@Override
|
||||
public List<SupplyWarehouseInfo> selectSupplyWarehouseInfoList(SupplyWarehouseInfo supplyWarehouseInfo) {
|
||||
return supplyWarehouseInfoMapper.selectSupplyWarehouseInfoList(supplyWarehouseInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增仓库信息
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSupplyWarehouseInfo(SupplyWarehouseInfo supplyWarehouseInfo) {
|
||||
supplyWarehouseInfo.setCreateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return supplyWarehouseInfoMapper.insertSupplyWarehouseInfo(supplyWarehouseInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改仓库信息
|
||||
*
|
||||
* @param supplyWarehouseInfo 仓库信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSupplyWarehouseInfo(SupplyWarehouseInfo supplyWarehouseInfo) {
|
||||
supplyWarehouseInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return supplyWarehouseInfoMapper.updateSupplyWarehouseInfo(supplyWarehouseInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除仓库信息
|
||||
*
|
||||
* @param warehouseIds 需要删除的仓库信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplyWarehouseInfoByWarehouseIds(Long[] warehouseIds) {
|
||||
return supplyWarehouseInfoMapper.deleteSupplyWarehouseInfoByWarehouseIds(warehouseIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除仓库信息信息
|
||||
*
|
||||
* @param warehouseId 仓库信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplyWarehouseInfoByWarehouseId(Long warehouseId) {
|
||||
return supplyWarehouseInfoMapper.deleteSupplyWarehouseInfoByWarehouseId(warehouseId);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.canteen.core.supply.mapper.SupplyProductUnitMapper">
|
||||
<resultMap type="com.bonus.canteen.core.supply.domain.SupplyProductUnit" id="SupplyProductUnitResult">
|
||||
<result property="unitId" column="unit_id" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="rate" column="rate" />
|
||||
<result property="weighType" column="weigh_type" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSupplyProductUnitVo">
|
||||
select unit_id, unit_name, rate, weigh_type, create_by, create_time, update_by, update_time
|
||||
from supply_product_unit
|
||||
</sql>
|
||||
|
||||
<select id="selectSupplyProductUnitList" parameterType="com.bonus.canteen.core.supply.domain.SupplyProductUnit" resultMap="SupplyProductUnitResult">
|
||||
<include refid="selectSupplyProductUnitVo"/>
|
||||
<where>
|
||||
<if test="unitName != null and unitName != ''"> and unit_name like concat('%', #{unitName}, '%')</if>
|
||||
<if test="rate != null "> and rate = #{rate}</if>
|
||||
<if test="weighType != null "> and weigh_type = #{weighType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSupplyProductUnitByUnitId" parameterType="Long" resultMap="SupplyProductUnitResult">
|
||||
<include refid="selectSupplyProductUnitVo"/>
|
||||
where unit_id = #{unitId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSupplyProductUnit" parameterType="com.bonus.canteen.core.supply.domain.SupplyProductUnit" useGeneratedKeys="true" keyProperty="unitId">
|
||||
insert into supply_product_unit
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="unitName != null and unitName != ''">unit_name,</if>
|
||||
<if test="rate != null">rate,</if>
|
||||
<if test="weighType != null">weigh_type,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="unitName != null and unitName != ''">#{unitName},</if>
|
||||
<if test="rate != null">#{rate},</if>
|
||||
<if test="weighType != null">#{weighType},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSupplyProductUnit" parameterType="com.bonus.canteen.core.supply.domain.SupplyProductUnit">
|
||||
update supply_product_unit
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="unitName != null and unitName != ''">unit_name = #{unitName},</if>
|
||||
<if test="rate != null">rate = #{rate},</if>
|
||||
<if test="weighType != null">weigh_type = #{weighType},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where unit_id = #{unitId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSupplyProductUnitByUnitId" parameterType="Long">
|
||||
delete from supply_product_unit where unit_id = #{unitId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSupplyProductUnitByUnitIds" parameterType="String">
|
||||
delete from supply_product_unit where unit_id in
|
||||
<foreach item="unitId" collection="array" open="(" separator="," close=")">
|
||||
#{unitId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -1,70 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.canteen.core.supply.mapper.SupplyWarehouseFetchUserMapper">
|
||||
<resultMap type="com.bonus.canteen.core.supply.domain.SupplyWarehouseFetchUser" id="SupplyWarehouseFetchUserResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="canteenId" column="canteen_id" />
|
||||
<result property="stallId" column="stall_id" />
|
||||
<result property="fetchUserId" column="fetch_user_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSupplyWarehouseFetchUserVo">
|
||||
select id, warehouse_id, canteen_id, stall_id, fetch_user_id from supply_warehouse_fetch_user
|
||||
</sql>
|
||||
|
||||
<select id="selectSupplyWarehouseFetchUserList" parameterType="com.bonus.canteen.core.supply.domain.SupplyWarehouseFetchUser" resultMap="SupplyWarehouseFetchUserResult">
|
||||
<include refid="selectSupplyWarehouseFetchUserVo"/>
|
||||
<where>
|
||||
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
|
||||
<if test="canteenId != null "> and canteen_id = #{canteenId}</if>
|
||||
<if test="stallId != null "> and stall_id = #{stallId}</if>
|
||||
<if test="fetchUserId != null "> and fetch_user_id = #{fetchUserId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSupplyWarehouseFetchUserById" parameterType="Long" resultMap="SupplyWarehouseFetchUserResult">
|
||||
<include refid="selectSupplyWarehouseFetchUserVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSupplyWarehouseFetchUser" parameterType="com.bonus.canteen.core.supply.domain.SupplyWarehouseFetchUser" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into supply_warehouse_fetch_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="canteenId != null">canteen_id,</if>
|
||||
<if test="stallId != null">stall_id,</if>
|
||||
<if test="fetchUserId != null">fetch_user_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="canteenId != null">#{canteenId},</if>
|
||||
<if test="stallId != null">#{stallId},</if>
|
||||
<if test="fetchUserId != null">#{fetchUserId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSupplyWarehouseFetchUser" parameterType="com.bonus.canteen.core.supply.domain.SupplyWarehouseFetchUser">
|
||||
update supply_warehouse_fetch_user
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="canteenId != null">canteen_id = #{canteenId},</if>
|
||||
<if test="stallId != null">stall_id = #{stallId},</if>
|
||||
<if test="fetchUserId != null">fetch_user_id = #{fetchUserId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSupplyWarehouseFetchUserById" parameterType="Long">
|
||||
delete from supply_warehouse_fetch_user where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSupplyWarehouseFetchUserByIds" parameterType="String">
|
||||
delete from supply_warehouse_fetch_user where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -1,159 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.canteen.core.supply.mapper.SupplyWarehouseInfoMapper">
|
||||
<resultMap type="com.bonus.canteen.core.supply.domain.SupplyWarehouseInfo" id="SupplyWarehouseInfoResult">
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="categoryId" column="category_id" />
|
||||
<result property="areaId" column="area_id" />
|
||||
<result property="canteenId" column="canteen_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="manager" column="manager" />
|
||||
<result property="fetchUserId" column="fetch_user_id" />
|
||||
<result property="regionProvince" column="region_province" />
|
||||
<result property="regionCity" column="region_city" />
|
||||
<result property="regionDistrict" column="region_district" />
|
||||
<result property="address" column="address" />
|
||||
<result property="warehouseType" column="warehouse_type" />
|
||||
<result property="ifUseWarehouseArea" column="if_use_warehouse_area" />
|
||||
<result property="ifUseWarehouseLocation" column="if_use_warehouse_location" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSupplyWarehouseInfoVo">
|
||||
select warehouse_id, parent_id, category_id, area_id, canteen_id, warehouse_code,
|
||||
warehouse_name, user_id, manager, fetch_user_id, region_province, region_city,
|
||||
region_district, address, warehouse_type, if_use_warehouse_area,
|
||||
if_use_warehouse_location, create_by, create_time, update_by, update_time
|
||||
from supply_warehouse_info
|
||||
</sql>
|
||||
|
||||
<select id="selectSupplyWarehouseInfoList" parameterType="com.bonus.canteen.core.supply.domain.SupplyWarehouseInfo" resultMap="SupplyWarehouseInfoResult">
|
||||
<include refid="selectSupplyWarehouseInfoVo"/>
|
||||
<where>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="categoryId != null "> and category_id = #{categoryId}</if>
|
||||
<if test="areaId != null "> and area_id = #{areaId}</if>
|
||||
<if test="canteenId != null "> and canteen_id = #{canteenId}</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''"> and warehouse_code = #{warehouseCode}</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="manager != null "> and manager = #{manager}</if>
|
||||
<if test="fetchUserId != null "> and fetch_user_id = #{fetchUserId}</if>
|
||||
<if test="regionProvince != null and regionProvince != ''"> and region_province = #{regionProvince}</if>
|
||||
<if test="regionCity != null and regionCity != ''"> and region_city = #{regionCity}</if>
|
||||
<if test="regionDistrict != null and regionDistrict != ''"> and region_district = #{regionDistrict}</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="warehouseType != null "> and warehouse_type = #{warehouseType}</if>
|
||||
<if test="ifUseWarehouseArea != null "> and if_use_warehouse_area = #{ifUseWarehouseArea}</if>
|
||||
<if test="ifUseWarehouseLocation != null "> and if_use_warehouse_location = #{ifUseWarehouseLocation}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSupplyWarehouseInfoByWarehouseId" parameterType="Long" resultMap="SupplyWarehouseInfoResult">
|
||||
<include refid="selectSupplyWarehouseInfoVo"/>
|
||||
where warehouse_id = #{warehouseId}
|
||||
</select>
|
||||
|
||||
<select id="getSupplyWarehouseCountByAreaIds" resultType="Integer">
|
||||
select count(1)
|
||||
from supply_warehouse_info
|
||||
where area_id in
|
||||
<foreach item="areaId" collection="array" open="(" separator="," close=")">
|
||||
#{areaId}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<insert id="insertSupplyWarehouseInfo" parameterType="com.bonus.canteen.core.supply.domain.SupplyWarehouseInfo" useGeneratedKeys="true" keyProperty="warehouseId">
|
||||
insert into supply_warehouse_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="categoryId != null">category_id,</if>
|
||||
<if test="areaId != null">area_id,</if>
|
||||
<if test="canteenId != null">canteen_id,</if>
|
||||
<if test="warehouseCode != null">warehouse_code,</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">warehouse_name,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="manager != null">manager,</if>
|
||||
<if test="fetchUserId != null">fetch_user_id,</if>
|
||||
<if test="regionProvince != null">region_province,</if>
|
||||
<if test="regionCity != null">region_city,</if>
|
||||
<if test="regionDistrict != null">region_district,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="warehouseType != null">warehouse_type,</if>
|
||||
<if test="ifUseWarehouseArea != null">if_use_warehouse_area,</if>
|
||||
<if test="ifUseWarehouseLocation != null">if_use_warehouse_location,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="categoryId != null">#{categoryId},</if>
|
||||
<if test="areaId != null">#{areaId},</if>
|
||||
<if test="canteenId != null">#{canteenId},</if>
|
||||
<if test="warehouseCode != null">#{warehouseCode},</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">#{warehouseName},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="manager != null">#{manager},</if>
|
||||
<if test="fetchUserId != null">#{fetchUserId},</if>
|
||||
<if test="regionProvince != null">#{regionProvince},</if>
|
||||
<if test="regionCity != null">#{regionCity},</if>
|
||||
<if test="regionDistrict != null">#{regionDistrict},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="warehouseType != null">#{warehouseType},</if>
|
||||
<if test="ifUseWarehouseArea != null">#{ifUseWarehouseArea},</if>
|
||||
<if test="ifUseWarehouseLocation != null">#{ifUseWarehouseLocation},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSupplyWarehouseInfo" parameterType="com.bonus.canteen.core.supply.domain.SupplyWarehouseInfo">
|
||||
update supply_warehouse_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="categoryId != null">category_id = #{categoryId},</if>
|
||||
<if test="areaId != null">area_id = #{areaId},</if>
|
||||
<if test="canteenId != null">canteen_id = #{canteenId},</if>
|
||||
<if test="warehouseCode != null">warehouse_code = #{warehouseCode},</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">warehouse_name = #{warehouseName},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="manager != null">manager = #{manager},</if>
|
||||
<if test="fetchUserId != null">fetch_user_id = #{fetchUserId},</if>
|
||||
<if test="regionProvince != null">region_province = #{regionProvince},</if>
|
||||
<if test="regionCity != null">region_city = #{regionCity},</if>
|
||||
<if test="regionDistrict != null">region_district = #{regionDistrict},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
|
||||
<if test="ifUseWarehouseArea != null">if_use_warehouse_area = #{ifUseWarehouseArea},</if>
|
||||
<if test="ifUseWarehouseLocation != null">if_use_warehouse_location = #{ifUseWarehouseLocation},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where warehouse_id = #{warehouseId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSupplyWarehouseInfoByWarehouseId" parameterType="Long">
|
||||
delete from supply_warehouse_info where warehouse_id = #{warehouseId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSupplyWarehouseInfoByWarehouseIds" parameterType="String">
|
||||
delete from supply_warehouse_info where warehouse_id in
|
||||
<foreach item="warehouseId" collection="array" open="(" separator="," close=")">
|
||||
#{warehouseId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue