master:去掉系统没用的冗余代码;
parent
b7c5ca8a7c
commit
69b4e08bbb
|
|
@ -29,68 +29,4 @@ import java.util.List;
|
|||
@RequestMapping("/rest/v1/barcode-matches")
|
||||
public class StoreProductBarcodeMatchController extends XktBaseController {
|
||||
|
||||
final IStoreProductBarcodeMatchService barcodeMatchService;
|
||||
|
||||
/**
|
||||
* 修改档口条形码和第三方系统条形码匹配结果
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:match:edit')")
|
||||
@Log(title = "档口条形码和第三方系统条形码匹配结果", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R updateBarcodeMatch(@Validated @RequestBody BarcodeMatchVO barcodeMatchVO) {
|
||||
return success(barcodeMatchService.updateBarcodeMatch(BeanUtil.toBean(barcodeMatchVO, BarcodeMatchDTO.class)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询档口条形码和第三方系统条形码匹配结果列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:match:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(StoreProductBarcodeMatch storeProductBarcodeMatch) {
|
||||
startPage();
|
||||
List<StoreProductBarcodeMatch> list = barcodeMatchService.selectStoreProductBarcodeMatchList(storeProductBarcodeMatch);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出档口条形码和第三方系统条形码匹配结果列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:match:export')")
|
||||
@Log(title = "档口条形码和第三方系统条形码匹配结果", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, StoreProductBarcodeMatch storeProductBarcodeMatch) {
|
||||
List<StoreProductBarcodeMatch> list = barcodeMatchService.selectStoreProductBarcodeMatchList(storeProductBarcodeMatch);
|
||||
ExcelUtil<StoreProductBarcodeMatch> util = new ExcelUtil<StoreProductBarcodeMatch>(StoreProductBarcodeMatch.class);
|
||||
util.exportExcel(response, list, "档口条形码和第三方系统条形码匹配结果数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取档口条形码和第三方系统条形码匹配结果详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:match:query')")
|
||||
@GetMapping(value = "/{storeProdBarcodeMatchId}")
|
||||
public R getInfo(@PathVariable("storeProdBarcodeMatchId") Long storeProdBarcodeMatchId) {
|
||||
return success(barcodeMatchService.selectStoreProductBarcodeMatchByStoreProdBarcodeMatchId(storeProdBarcodeMatchId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增档口条形码和第三方系统条形码匹配结果
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:match:add')")
|
||||
@Log(title = "档口条形码和第三方系统条形码匹配结果", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R add(@RequestBody StoreProductBarcodeMatch storeProductBarcodeMatch) {
|
||||
return success(barcodeMatchService.insertStoreProductBarcodeMatch(storeProductBarcodeMatch));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除档口条形码和第三方系统条形码匹配结果
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:match:remove')")
|
||||
@Log(title = "档口条形码和第三方系统条形码匹配结果", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{storeProdBarcodeMatchIds}")
|
||||
public R remove(@PathVariable Long[] storeProdBarcodeMatchIds) {
|
||||
return success(barcodeMatchService.deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchIds(storeProdBarcodeMatchIds));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,8 @@
|
|||
package com.ruoyi.web.controller.xkt;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.XktBaseController;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.xkt.domain.StoreProductBarcodeRecord;
|
||||
import com.ruoyi.xkt.service.IStoreProductBarcodeRecordService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 档口打印条形码记录Controller
|
||||
|
|
@ -23,72 +13,5 @@ import java.util.List;
|
|||
@RestController
|
||||
@RequestMapping("/rest/v1/barcode-records")
|
||||
public class StoreProductBarcodeRecordController extends XktBaseController {
|
||||
@Autowired
|
||||
private IStoreProductBarcodeRecordService storeProductBarcodeRecordService;
|
||||
|
||||
// TODO 商品 销售/出库 时扫条码查询信息
|
||||
// TODO 商品 销售/出库 时扫条码查询信息
|
||||
// TODO 商品 销售/出库 时扫条码查询信息
|
||||
|
||||
/**
|
||||
* 查询档口打印条形码记录列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:record:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(StoreProductBarcodeRecord storeProductBarcodeRecord) {
|
||||
startPage();
|
||||
List<StoreProductBarcodeRecord> list = storeProductBarcodeRecordService.selectStoreProductBarcodeRecordList(storeProductBarcodeRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出档口打印条形码记录列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:record:export')")
|
||||
@Log(title = "档口打印条形码记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, StoreProductBarcodeRecord storeProductBarcodeRecord) {
|
||||
List<StoreProductBarcodeRecord> list = storeProductBarcodeRecordService.selectStoreProductBarcodeRecordList(storeProductBarcodeRecord);
|
||||
ExcelUtil<StoreProductBarcodeRecord> util = new ExcelUtil<StoreProductBarcodeRecord>(StoreProductBarcodeRecord.class);
|
||||
util.exportExcel(response, list, "档口打印条形码记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取档口打印条形码记录详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:record:query')")
|
||||
@GetMapping(value = "/{storeProdBarcodeRecordId}")
|
||||
public R getInfo(@PathVariable("storeProdBarcodeRecordId") Long storeProdBarcodeRecordId) {
|
||||
return success(storeProductBarcodeRecordService.selectStoreProductBarcodeRecordByStoreProdBarcodeRecordId(storeProdBarcodeRecordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增档口打印条形码记录
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:record:add')")
|
||||
@Log(title = "档口打印条形码记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R add(@RequestBody StoreProductBarcodeRecord storeProductBarcodeRecord) {
|
||||
return success(storeProductBarcodeRecordService.insertStoreProductBarcodeRecord(storeProductBarcodeRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改档口打印条形码记录
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:record:edit')")
|
||||
@Log(title = "档口打印条形码记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R edit(@RequestBody StoreProductBarcodeRecord storeProductBarcodeRecord) {
|
||||
return success(storeProductBarcodeRecordService.updateStoreProductBarcodeRecord(storeProductBarcodeRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除档口打印条形码记录
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:record:remove')")
|
||||
@Log(title = "档口打印条形码记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{storeProdBarcodeRecordIds}")
|
||||
public R remove(@PathVariable Long[] storeProdBarcodeRecordIds) {
|
||||
return success(storeProductBarcodeRecordService.deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordIds(storeProdBarcodeRecordIds));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,131 +0,0 @@
|
|||
/*
|
||||
package com.ruoyi.web.controller.xkt;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.XktBaseController;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.xkt.domain.StoreRoleMenu;
|
||||
import com.ruoyi.xkt.service.IStoreRoleMenuService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
*/
|
||||
/**
|
||||
* 档口子角色菜单Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
* <p>
|
||||
* 查询档口子角色菜单列表
|
||||
* <p>
|
||||
* 导出档口子角色菜单列表
|
||||
* <p>
|
||||
* 获取档口子角色菜单详细信息
|
||||
* <p>
|
||||
* 新增档口子角色菜单
|
||||
* <p>
|
||||
* 修改档口子角色菜单
|
||||
* <p>
|
||||
* 删除档口子角色菜单
|
||||
* <p>
|
||||
* 查询档口子角色菜单列表
|
||||
* <p>
|
||||
* 导出档口子角色菜单列表
|
||||
* <p>
|
||||
* 获取档口子角色菜单详细信息
|
||||
* <p>
|
||||
* 新增档口子角色菜单
|
||||
* <p>
|
||||
* 修改档口子角色菜单
|
||||
* <p>
|
||||
* 删除档口子角色菜单
|
||||
*//*
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/rest/v1/store-role-menus")
|
||||
public class StoreRoleMenuController extends XktBaseController {
|
||||
@Autowired
|
||||
private IStoreRoleMenuService storeRoleMenuService;
|
||||
|
||||
*/
|
||||
/**
|
||||
* 查询档口子角色菜单列表
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(StoreRoleMenu storeRoleMenu) {
|
||||
startPage();
|
||||
List<StoreRoleMenu> list = storeRoleMenuService.selectStoreRoleMenuList(storeRoleMenu);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
*/
|
||||
/**
|
||||
* 导出档口子角色菜单列表
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:export')")
|
||||
@Log(title = "档口子角色菜单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, StoreRoleMenu storeRoleMenu) {
|
||||
List<StoreRoleMenu> list = storeRoleMenuService.selectStoreRoleMenuList(storeRoleMenu);
|
||||
ExcelUtil<StoreRoleMenu> util = new ExcelUtil<StoreRoleMenu>(StoreRoleMenu.class);
|
||||
util.exportExcel(response, list, "档口子角色菜单数据");
|
||||
}
|
||||
|
||||
*/
|
||||
/**
|
||||
* 获取档口子角色菜单详细信息
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:query')")
|
||||
@GetMapping(value = "/{storeRoleMenuId}")
|
||||
public R getInfo(@PathVariable("storeRoleMenuId") Long storeRoleMenuId) {
|
||||
return success(storeRoleMenuService.selectStoreRoleMenuByStoreRoleMenuId(storeRoleMenuId));
|
||||
}
|
||||
|
||||
*/
|
||||
/**
|
||||
* 新增档口子角色菜单
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:add')")
|
||||
@Log(title = "档口子角色菜单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R add(@RequestBody StoreRoleMenu storeRoleMenu) {
|
||||
return success(storeRoleMenuService.insertStoreRoleMenu(storeRoleMenu));
|
||||
}
|
||||
|
||||
*/
|
||||
/**
|
||||
* 修改档口子角色菜单
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:edit')")
|
||||
@Log(title = "档口子角色菜单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R edit(@RequestBody StoreRoleMenu storeRoleMenu) {
|
||||
return success(storeRoleMenuService.updateStoreRoleMenu(storeRoleMenu));
|
||||
}
|
||||
|
||||
*/
|
||||
/**
|
||||
* 删除档口子角色菜单
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:remove')")
|
||||
@Log(title = "档口子角色菜单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{storeRoleMenuIds}")
|
||||
public R remove(@PathVariable Long[] storeRoleMenuIds) {
|
||||
return success(storeRoleMenuService.deleteStoreRoleMenuByStoreRoleMenuIds(storeRoleMenuIds));
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
package com.ruoyi.xkt.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.XktBaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 档口子角色菜单对象 store_role_menu
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class StoreRoleMenu extends XktBaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 档口子角色菜单ID
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 档口角色ID
|
||||
*/
|
||||
@Excel(name = "档口角色ID")
|
||||
private Long storeRoleId;
|
||||
|
||||
/**
|
||||
* 档口ID
|
||||
*/
|
||||
@Excel(name = "档口ID")
|
||||
private Long storeId;
|
||||
|
||||
/**
|
||||
* 菜单名称
|
||||
*/
|
||||
@Excel(name = "菜单名称")
|
||||
private String menuName;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("storeRoleId", getStoreRoleId())
|
||||
.append("storeId", getStoreId())
|
||||
.append("menuName", getMenuName())
|
||||
.append("version", getVersion())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -12,13 +12,6 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface StoreFactoryMapper extends BaseMapper<StoreFactory> {
|
||||
/**
|
||||
* 查询档口合作工厂
|
||||
*
|
||||
* @param id 档口合作工厂主键
|
||||
* @return 档口合作工厂
|
||||
*/
|
||||
public StoreFactory selectStoreFactoryByStoreFacId(Long id);
|
||||
|
||||
/**
|
||||
* 查询档口合作工厂列表
|
||||
|
|
@ -28,21 +21,6 @@ public interface StoreFactoryMapper extends BaseMapper<StoreFactory> {
|
|||
*/
|
||||
public List<StoreFactory> selectStoreFactoryList(StoreFactory storeFactory);
|
||||
|
||||
/**
|
||||
* 新增档口合作工厂
|
||||
*
|
||||
* @param storeFactory 档口合作工厂
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreFactory(StoreFactory storeFactory);
|
||||
|
||||
/**
|
||||
* 修改档口合作工厂
|
||||
*
|
||||
* @param storeFactory 档口合作工厂
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreFactory(StoreFactory storeFactory);
|
||||
|
||||
/**
|
||||
* 删除档口合作工厂
|
||||
|
|
|
|||
|
|
@ -12,51 +12,5 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface StoreProductBarcodeMatchMapper extends BaseMapper<StoreProductBarcodeMatch> {
|
||||
/**
|
||||
* 查询档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param id 档口条形码和第三方系统条形码匹配结果主键
|
||||
* @return 档口条形码和第三方系统条形码匹配结果
|
||||
*/
|
||||
public StoreProductBarcodeMatch selectStoreProductBarcodeMatchByStoreProdBarcodeMatchId(Long id);
|
||||
|
||||
/**
|
||||
* 查询档口条形码和第三方系统条形码匹配结果列表
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 档口条形码和第三方系统条形码匹配结果集合
|
||||
*/
|
||||
public List<StoreProductBarcodeMatch> selectStoreProductBarcodeMatchList(StoreProductBarcodeMatch storeProductBarcodeMatch);
|
||||
|
||||
/**
|
||||
* 新增档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreProductBarcodeMatch(StoreProductBarcodeMatch storeProductBarcodeMatch);
|
||||
|
||||
/**
|
||||
* 修改档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreProductBarcodeMatch(StoreProductBarcodeMatch storeProductBarcodeMatch);
|
||||
|
||||
/**
|
||||
* 删除档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param id 档口条形码和第三方系统条形码匹配结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProdBarcodeMatchIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchIds(Long[] storeProdBarcodeMatchIds);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,51 +12,5 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface StoreProductBarcodeRecordMapper extends BaseMapper<StoreProductBarcodeRecord> {
|
||||
/**
|
||||
* 查询档口打印条形码记录
|
||||
*
|
||||
* @param id 档口打印条形码记录主键
|
||||
* @return 档口打印条形码记录
|
||||
*/
|
||||
public StoreProductBarcodeRecord selectStoreProductBarcodeRecordByStoreProdBarcodeRecordId(Long id);
|
||||
|
||||
/**
|
||||
* 查询档口打印条形码记录列表
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 档口打印条形码记录集合
|
||||
*/
|
||||
public List<StoreProductBarcodeRecord> selectStoreProductBarcodeRecordList(StoreProductBarcodeRecord storeProductBarcodeRecord);
|
||||
|
||||
/**
|
||||
* 新增档口打印条形码记录
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreProductBarcodeRecord(StoreProductBarcodeRecord storeProductBarcodeRecord);
|
||||
|
||||
/**
|
||||
* 修改档口打印条形码记录
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreProductBarcodeRecord(StoreProductBarcodeRecord storeProductBarcodeRecord);
|
||||
|
||||
/**
|
||||
* 删除档口打印条形码记录
|
||||
*
|
||||
* @param id 档口打印条形码记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除档口打印条形码记录
|
||||
*
|
||||
* @param storeProdBarcodeRecordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordIds(Long[] storeProdBarcodeRecordIds);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ package com.ruoyi.xkt.mapper;
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.StoreRoleAccount;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口子角色账号Mapper接口
|
||||
*
|
||||
|
|
@ -12,51 +10,5 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface StoreRoleAccountMapper extends BaseMapper<StoreRoleAccount> {
|
||||
/**
|
||||
* 查询档口子角色账号
|
||||
*
|
||||
* @param id 档口子角色账号主键
|
||||
* @return 档口子角色账号
|
||||
*/
|
||||
public StoreRoleAccount selectStoreRoleAccountByStoreRoleAccId(Long id);
|
||||
|
||||
/**
|
||||
* 查询档口子角色账号列表
|
||||
*
|
||||
* @param storeRoleAccount 档口子角色账号
|
||||
* @return 档口子角色账号集合
|
||||
*/
|
||||
public List<StoreRoleAccount> selectStoreRoleAccountList(StoreRoleAccount storeRoleAccount);
|
||||
|
||||
/**
|
||||
* 新增档口子角色账号
|
||||
*
|
||||
* @param storeRoleAccount 档口子角色账号
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreRoleAccount(StoreRoleAccount storeRoleAccount);
|
||||
|
||||
/**
|
||||
* 修改档口子角色账号
|
||||
*
|
||||
* @param storeRoleAccount 档口子角色账号
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreRoleAccount(StoreRoleAccount storeRoleAccount);
|
||||
|
||||
/**
|
||||
* 删除档口子角色账号
|
||||
*
|
||||
* @param id 档口子角色账号主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreRoleAccountByStoreRoleAccId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除档口子角色账号
|
||||
*
|
||||
* @param storeRoleAccIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreRoleAccountByStoreRoleAccIds(Long[] storeRoleAccIds);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,62 +0,0 @@
|
|||
package com.ruoyi.xkt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.StoreRole;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口子角色Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface StoreRoleMapper extends BaseMapper<StoreRole> {
|
||||
/**
|
||||
* 查询档口子角色
|
||||
*
|
||||
* @param id 档口子角色主键
|
||||
* @return 档口子角色
|
||||
*/
|
||||
public StoreRole selectStoreRoleByStoreRoleId(Long id);
|
||||
|
||||
/**
|
||||
* 查询档口子角色列表
|
||||
*
|
||||
* @param storeRole 档口子角色
|
||||
* @return 档口子角色集合
|
||||
*/
|
||||
public List<StoreRole> selectStoreRoleList(StoreRole storeRole);
|
||||
|
||||
/**
|
||||
* 新增档口子角色
|
||||
*
|
||||
* @param storeRole 档口子角色
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreRole(StoreRole storeRole);
|
||||
|
||||
/**
|
||||
* 修改档口子角色
|
||||
*
|
||||
* @param storeRole 档口子角色
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreRole(StoreRole storeRole);
|
||||
|
||||
/**
|
||||
* 删除档口子角色
|
||||
*
|
||||
* @param id 档口子角色主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreRoleByStoreRoleId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除档口子角色
|
||||
*
|
||||
* @param storeRoleIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreRoleByStoreRoleIds(Long[] storeRoleIds);
|
||||
}
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
package com.ruoyi.xkt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.StoreRoleMenu;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口子角色菜单Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface StoreRoleMenuMapper extends BaseMapper<StoreRoleMenu> {
|
||||
/**
|
||||
* 查询档口子角色菜单
|
||||
*
|
||||
* @param id 档口子角色菜单主键
|
||||
* @return 档口子角色菜单
|
||||
*/
|
||||
public StoreRoleMenu selectStoreRoleMenuByStoreRoleMenuId(Long id);
|
||||
|
||||
/**
|
||||
* 查询档口子角色菜单列表
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 档口子角色菜单集合
|
||||
*/
|
||||
public List<StoreRoleMenu> selectStoreRoleMenuList(StoreRoleMenu storeRoleMenu);
|
||||
|
||||
/**
|
||||
* 新增档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreRoleMenu(StoreRoleMenu storeRoleMenu);
|
||||
|
||||
/**
|
||||
* 修改档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreRoleMenu(StoreRoleMenu storeRoleMenu);
|
||||
|
||||
/**
|
||||
* 删除档口子角色菜单
|
||||
*
|
||||
* @param id 档口子角色菜单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreRoleMenuByStoreRoleMenuId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenuIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreRoleMenuByStoreRoleMenuIds(Long[] storeRoleMenuIds);
|
||||
}
|
||||
|
|
@ -3,8 +3,6 @@ package com.ruoyi.xkt.mapper;
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.StoreSaleRefundRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口销售返单Mapper接口
|
||||
*
|
||||
|
|
@ -12,51 +10,5 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface StoreSaleRefundRecordMapper extends BaseMapper<StoreSaleRefundRecord> {
|
||||
/**
|
||||
* 查询档口销售返单
|
||||
*
|
||||
* @param id 档口销售返单主键
|
||||
* @return 档口销售返单
|
||||
*/
|
||||
public StoreSaleRefundRecord selectStoreSaleRefundRecordByStoreSaleRefundRecordId(Long id);
|
||||
|
||||
/**
|
||||
* 查询档口销售返单列表
|
||||
*
|
||||
* @param storeSaleRefundRecord 档口销售返单
|
||||
* @return 档口销售返单集合
|
||||
*/
|
||||
public List<StoreSaleRefundRecord> selectStoreSaleRefundRecordList(StoreSaleRefundRecord storeSaleRefundRecord);
|
||||
|
||||
/**
|
||||
* 新增档口销售返单
|
||||
*
|
||||
* @param storeSaleRefundRecord 档口销售返单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreSaleRefundRecord(StoreSaleRefundRecord storeSaleRefundRecord);
|
||||
|
||||
/**
|
||||
* 修改档口销售返单
|
||||
*
|
||||
* @param storeSaleRefundRecord 档口销售返单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreSaleRefundRecord(StoreSaleRefundRecord storeSaleRefundRecord);
|
||||
|
||||
/**
|
||||
* 删除档口销售返单
|
||||
*
|
||||
* @param id 档口销售返单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSaleRefundRecordByStoreSaleRefundRecordId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除档口销售返单
|
||||
*
|
||||
* @param storeSaleRefundRecordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreSaleRefundRecordByStoreSaleRefundRecordIds(Long[] storeSaleRefundRecordIds);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||
import com.ruoyi.xkt.domain.SysFile;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* fileMapper接口
|
||||
*
|
||||
|
|
@ -14,51 +12,5 @@ import java.util.List;
|
|||
*/
|
||||
@Repository
|
||||
public interface SysFileMapper extends BaseMapper<SysFile> {
|
||||
/**
|
||||
* 查询file
|
||||
*
|
||||
* @param id file主键
|
||||
* @return file
|
||||
*/
|
||||
public SysFile selectSysFileByFileId(Long id);
|
||||
|
||||
/**
|
||||
* 查询file列表
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return file集合
|
||||
*/
|
||||
public List<SysFile> selectSysFileList(SysFile sysFile);
|
||||
|
||||
/**
|
||||
* 新增file
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysFile(SysFile sysFile);
|
||||
|
||||
/**
|
||||
* 修改file
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysFile(SysFile sysFile);
|
||||
|
||||
/**
|
||||
* 删除file
|
||||
*
|
||||
* @param id file主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysFileByFileId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除file
|
||||
*
|
||||
* @param fileIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysFileByFileIds(Long[] fileIds);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||
import com.ruoyi.xkt.domain.UserAddress;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户收货地址Mapper接口
|
||||
*
|
||||
|
|
@ -14,51 +12,5 @@ import java.util.List;
|
|||
*/
|
||||
@Repository
|
||||
public interface UserAddressMapper extends BaseMapper<UserAddress> {
|
||||
/**
|
||||
* 查询用户收货地址
|
||||
*
|
||||
* @param id 用户收货地址主键
|
||||
* @return 用户收货地址
|
||||
*/
|
||||
public UserAddress selectUserAddressByUserAddrId(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户收货地址列表
|
||||
*
|
||||
* @param userAddress 用户收货地址
|
||||
* @return 用户收货地址集合
|
||||
*/
|
||||
public List<UserAddress> selectUserAddressList(UserAddress userAddress);
|
||||
|
||||
/**
|
||||
* 新增用户收货地址
|
||||
*
|
||||
* @param userAddress 用户收货地址
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUserAddress(UserAddress userAddress);
|
||||
|
||||
/**
|
||||
* 修改用户收货地址
|
||||
*
|
||||
* @param userAddress 用户收货地址
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserAddress(UserAddress userAddress);
|
||||
|
||||
/**
|
||||
* 删除用户收货地址
|
||||
*
|
||||
* @param id 用户收货地址主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserAddressByUserAddrId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除用户收货地址
|
||||
*
|
||||
* @param userAddrIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserAddressByUserAddrIds(Long[] userAddrIds);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IStoreFactoryService {
|
||||
|
||||
/**
|
||||
* 查询档口合作工厂
|
||||
*
|
||||
|
|
@ -22,7 +23,7 @@ public interface IStoreFactoryService {
|
|||
* @param storeFacId 档口合作工厂主键
|
||||
* @return 档口合作工厂
|
||||
*/
|
||||
public StoreFactoryResDTO selectByStoreFacId(Long storeId, Long storeFacId);
|
||||
StoreFactoryResDTO selectByStoreFacId(Long storeId, Long storeFacId);
|
||||
|
||||
/**
|
||||
* 查询档口合作工厂列表
|
||||
|
|
@ -30,7 +31,7 @@ public interface IStoreFactoryService {
|
|||
* @param storeFactory 档口合作工厂
|
||||
* @return 档口合作工厂集合
|
||||
*/
|
||||
public List<StoreFactory> selectStoreFactoryList(StoreFactory storeFactory);
|
||||
List<StoreFactory> selectStoreFactoryList(StoreFactory storeFactory);
|
||||
|
||||
/**
|
||||
* 新增档口合作工厂
|
||||
|
|
@ -38,7 +39,7 @@ public interface IStoreFactoryService {
|
|||
* @param storeFactoryDTO 档口合作工厂
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreFactory(StoreFactoryDTO storeFactoryDTO);
|
||||
int insertStoreFactory(StoreFactoryDTO storeFactoryDTO);
|
||||
|
||||
/**
|
||||
* 修改档口合作工厂
|
||||
|
|
@ -46,23 +47,7 @@ public interface IStoreFactoryService {
|
|||
* @param storeFactoryDTO 档口合作工厂
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreFactory(StoreFactoryDTO storeFactoryDTO);
|
||||
|
||||
/**
|
||||
* 批量删除档口合作工厂
|
||||
*
|
||||
* @param storeFacIds 需要删除的档口合作工厂主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreFactoryByStoreFacIds(Long[] storeFacIds);
|
||||
|
||||
/**
|
||||
* 删除档口合作工厂信息
|
||||
*
|
||||
* @param storeFacId 档口合作工厂主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreFactoryByStoreFacId(Long storeFacId);
|
||||
int updateStoreFactory(StoreFactoryDTO storeFactoryDTO);
|
||||
|
||||
/**
|
||||
* 根据条件分页查询工厂信息
|
||||
|
|
|
|||
|
|
@ -12,55 +12,5 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IStoreProductBarcodeMatchService {
|
||||
/**
|
||||
* 查询档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProdBarcodeMatchId 档口条形码和第三方系统条形码匹配结果主键
|
||||
* @return 档口条形码和第三方系统条形码匹配结果
|
||||
*/
|
||||
public StoreProductBarcodeMatch selectStoreProductBarcodeMatchByStoreProdBarcodeMatchId(Long storeProdBarcodeMatchId);
|
||||
|
||||
/**
|
||||
* 查询档口条形码和第三方系统条形码匹配结果列表
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 档口条形码和第三方系统条形码匹配结果集合
|
||||
*/
|
||||
public List<StoreProductBarcodeMatch> selectStoreProductBarcodeMatchList(StoreProductBarcodeMatch storeProductBarcodeMatch);
|
||||
|
||||
/**
|
||||
* 新增档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreProductBarcodeMatch(StoreProductBarcodeMatch storeProductBarcodeMatch);
|
||||
|
||||
/**
|
||||
* 修改档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreProductBarcodeMatch(StoreProductBarcodeMatch storeProductBarcodeMatch);
|
||||
|
||||
/**
|
||||
* 批量删除档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProdBarcodeMatchIds 需要删除的档口条形码和第三方系统条形码匹配结果主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchIds(Long[] storeProdBarcodeMatchIds);
|
||||
|
||||
/**
|
||||
* 删除档口条形码和第三方系统条形码匹配结果信息
|
||||
*
|
||||
* @param storeProdBarcodeMatchId 档口条形码和第三方系统条形码匹配结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchId(Long storeProdBarcodeMatchId);
|
||||
|
||||
|
||||
int updateBarcodeMatch(BarcodeMatchDTO barcodeMatchDTO);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.domain.StoreProductBarcodeRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口打印条形码记录Service接口
|
||||
*
|
||||
|
|
@ -11,51 +7,5 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IStoreProductBarcodeRecordService {
|
||||
/**
|
||||
* 查询档口打印条形码记录
|
||||
*
|
||||
* @param storeProdBarcodeRecordId 档口打印条形码记录主键
|
||||
* @return 档口打印条形码记录
|
||||
*/
|
||||
public StoreProductBarcodeRecord selectStoreProductBarcodeRecordByStoreProdBarcodeRecordId(Long storeProdBarcodeRecordId);
|
||||
|
||||
/**
|
||||
* 查询档口打印条形码记录列表
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 档口打印条形码记录集合
|
||||
*/
|
||||
public List<StoreProductBarcodeRecord> selectStoreProductBarcodeRecordList(StoreProductBarcodeRecord storeProductBarcodeRecord);
|
||||
|
||||
/**
|
||||
* 新增档口打印条形码记录
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreProductBarcodeRecord(StoreProductBarcodeRecord storeProductBarcodeRecord);
|
||||
|
||||
/**
|
||||
* 修改档口打印条形码记录
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreProductBarcodeRecord(StoreProductBarcodeRecord storeProductBarcodeRecord);
|
||||
|
||||
/**
|
||||
* 批量删除档口打印条形码记录
|
||||
*
|
||||
* @param storeProdBarcodeRecordIds 需要删除的档口打印条形码记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordIds(Long[] storeProdBarcodeRecordIds);
|
||||
|
||||
/**
|
||||
* 删除档口打印条形码记录信息
|
||||
*
|
||||
* @param storeProdBarcodeRecordId 档口打印条形码记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordId(Long storeProdBarcodeRecordId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,55 +0,0 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.dto.storeRoleAccount.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口子角色账号Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IStoreRoleAccountService {
|
||||
|
||||
/**
|
||||
* 新增档口子账号
|
||||
*
|
||||
* @param accDTO 子账号入参
|
||||
* @return
|
||||
*/
|
||||
Integer insert(StoreRoleAccDTO accDTO);
|
||||
|
||||
/**
|
||||
* 编辑档口子账号
|
||||
*
|
||||
* @param accUpdateDTO 档口子账号编辑入参
|
||||
* @return
|
||||
*/
|
||||
Integer update(StoreRoleAccUpdateDTO accUpdateDTO);
|
||||
|
||||
/**
|
||||
* 档口子账号列表
|
||||
*
|
||||
* @param listDTO
|
||||
* @return
|
||||
*/
|
||||
List<StoreRoleAccResDTO> list(StoreRoleAccListDTO listDTO);
|
||||
|
||||
/**
|
||||
* 获取档口子账号详情
|
||||
*
|
||||
* @param storeRoleAccId 档口子账号ID
|
||||
* @return
|
||||
*/
|
||||
StoreRoleAccDetailResDTO selectByStoreRoleAccId(Long storeRoleAccId);
|
||||
|
||||
/**
|
||||
* 停用/启用档口子账号
|
||||
*
|
||||
* @param updateStatusDTO
|
||||
* @return
|
||||
*/
|
||||
Integer updateAccountStatus(StoreRoleAccUpdateStatusDTO updateStatusDTO);
|
||||
|
||||
}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.domain.StoreRoleMenu;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口子角色菜单Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IStoreRoleMenuService {
|
||||
/**
|
||||
* 查询档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenuId 档口子角色菜单主键
|
||||
* @return 档口子角色菜单
|
||||
*/
|
||||
public StoreRoleMenu selectStoreRoleMenuByStoreRoleMenuId(Long storeRoleMenuId);
|
||||
|
||||
/**
|
||||
* 查询档口子角色菜单列表
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 档口子角色菜单集合
|
||||
*/
|
||||
public List<StoreRoleMenu> selectStoreRoleMenuList(StoreRoleMenu storeRoleMenu);
|
||||
|
||||
/**
|
||||
* 新增档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreRoleMenu(StoreRoleMenu storeRoleMenu);
|
||||
|
||||
/**
|
||||
* 修改档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStoreRoleMenu(StoreRoleMenu storeRoleMenu);
|
||||
|
||||
/**
|
||||
* 批量删除档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenuIds 需要删除的档口子角色菜单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreRoleMenuByStoreRoleMenuIds(Long[] storeRoleMenuIds);
|
||||
|
||||
/**
|
||||
* 删除档口子角色菜单信息
|
||||
*
|
||||
* @param storeRoleMenuId 档口子角色菜单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStoreRoleMenuByStoreRoleMenuId(Long storeRoleMenuId);
|
||||
}
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.dto.storeRole.StoreRoleDTO;
|
||||
import com.ruoyi.xkt.dto.storeRole.StoreRoleListDTO;
|
||||
import com.ruoyi.xkt.dto.storeRole.StoreRoleResDTO;
|
||||
import com.ruoyi.xkt.dto.storeRole.StoreRoleUpdateStatusDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口子角色Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IStoreRoleService {
|
||||
|
||||
/**
|
||||
* 新增档口子角色
|
||||
*
|
||||
* @param storeRoleDTO 档口子角色
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStoreRole(StoreRoleDTO storeRoleDTO);
|
||||
|
||||
/**
|
||||
* 更新档口子角色
|
||||
*
|
||||
* @param storeRoleDTO 档口子角色信息
|
||||
* @return
|
||||
*/
|
||||
Integer update(StoreRoleDTO storeRoleDTO);
|
||||
|
||||
/**
|
||||
* 查询档口子角色菜单详情
|
||||
*
|
||||
* @param storeRoleId 档口子角色ID
|
||||
* @return
|
||||
*/
|
||||
StoreRoleDTO selectByStoreRoleId(Long storeRoleId);
|
||||
|
||||
/**
|
||||
* 档口子角色分页查询
|
||||
*
|
||||
* @param pageDTO 档口子角色分页查询入参
|
||||
* @return
|
||||
*/
|
||||
List<StoreRoleResDTO> list(StoreRoleListDTO pageDTO);
|
||||
|
||||
/**
|
||||
* 更新档口子角色状态
|
||||
*
|
||||
* @param updateStatusDTO 子角色状态更新入参
|
||||
* @return
|
||||
*/
|
||||
Integer updateRoleStatus(StoreRoleUpdateStatusDTO updateStatusDTO);
|
||||
|
||||
}
|
||||
|
|
@ -1,9 +1,5 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.domain.SysFile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* fileService接口
|
||||
*
|
||||
|
|
@ -11,51 +7,5 @@ import java.util.List;
|
|||
* @date 2025-03-26
|
||||
*/
|
||||
public interface ISysFileService {
|
||||
/**
|
||||
* 查询file
|
||||
*
|
||||
* @param fileId file主键
|
||||
* @return file
|
||||
*/
|
||||
public SysFile selectSysFileByFileId(Long fileId);
|
||||
|
||||
/**
|
||||
* 查询file列表
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return file集合
|
||||
*/
|
||||
public List<SysFile> selectSysFileList(SysFile sysFile);
|
||||
|
||||
/**
|
||||
* 新增file
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysFile(SysFile sysFile);
|
||||
|
||||
/**
|
||||
* 修改file
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysFile(SysFile sysFile);
|
||||
|
||||
/**
|
||||
* 批量删除file
|
||||
*
|
||||
* @param fileIds 需要删除的file主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysFileByFileIds(Long[] fileIds);
|
||||
|
||||
/**
|
||||
* 删除file信息
|
||||
*
|
||||
* @param fileId file主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysFileByFileId(Long fileId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,8 +94,8 @@ public class StoreFactoryServiceImpl implements IStoreFactoryService {
|
|||
/**
|
||||
* 获取所有的工厂列表
|
||||
*
|
||||
* @return 生产需求管理 工厂下拉列表
|
||||
* @param storeId 档口ID
|
||||
* @return 生产需求管理 工厂下拉列表
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
|
|
@ -134,29 +134,4 @@ public class StoreFactoryServiceImpl implements IStoreFactoryService {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* 批量删除档口合作工厂
|
||||
*
|
||||
* @param storeFacIds 需要删除的档口合作工厂主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteStoreFactoryByStoreFacIds(Long[] storeFacIds) {
|
||||
return storeFactoryMapper.deleteStoreFactoryByStoreFacIds(storeFacIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除档口合作工厂信息
|
||||
*
|
||||
* @param storeFacId 档口合作工厂主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteStoreFactoryByStoreFacId(Long storeFacId) {
|
||||
return storeFactoryMapper.deleteStoreFactoryByStoreFacId(storeFacId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,88 +19,4 @@ import java.util.List;
|
|||
*/
|
||||
@Service
|
||||
public class StoreProductBarcodeMatchServiceImpl implements IStoreProductBarcodeMatchService {
|
||||
@Autowired
|
||||
private StoreProductBarcodeMatchMapper storeProductBarcodeMatchMapper;
|
||||
|
||||
/**
|
||||
* 查询档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProdBarcodeMatchId 档口条形码和第三方系统条形码匹配结果主键
|
||||
* @return 档口条形码和第三方系统条形码匹配结果
|
||||
*/
|
||||
@Override
|
||||
public StoreProductBarcodeMatch selectStoreProductBarcodeMatchByStoreProdBarcodeMatchId(Long storeProdBarcodeMatchId) {
|
||||
return storeProductBarcodeMatchMapper.selectStoreProductBarcodeMatchByStoreProdBarcodeMatchId(storeProdBarcodeMatchId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询档口条形码和第三方系统条形码匹配结果列表
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 档口条形码和第三方系统条形码匹配结果
|
||||
*/
|
||||
@Override
|
||||
public List<StoreProductBarcodeMatch> selectStoreProductBarcodeMatchList(StoreProductBarcodeMatch storeProductBarcodeMatch) {
|
||||
return storeProductBarcodeMatchMapper.selectStoreProductBarcodeMatchList(storeProductBarcodeMatch);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertStoreProductBarcodeMatch(StoreProductBarcodeMatch storeProductBarcodeMatch) {
|
||||
storeProductBarcodeMatch.setCreateTime(DateUtils.getNowDate());
|
||||
return storeProductBarcodeMatchMapper.insertStoreProductBarcodeMatch(storeProductBarcodeMatch);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProductBarcodeMatch 档口条形码和第三方系统条形码匹配结果
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int updateStoreProductBarcodeMatch(StoreProductBarcodeMatch storeProductBarcodeMatch) {
|
||||
storeProductBarcodeMatch.setUpdateTime(DateUtils.getNowDate());
|
||||
return storeProductBarcodeMatchMapper.updateStoreProductBarcodeMatch(storeProductBarcodeMatch);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除档口条形码和第三方系统条形码匹配结果
|
||||
*
|
||||
* @param storeProdBarcodeMatchIds 需要删除的档口条形码和第三方系统条形码匹配结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchIds(Long[] storeProdBarcodeMatchIds) {
|
||||
return storeProductBarcodeMatchMapper.deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchIds(storeProdBarcodeMatchIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除档口条形码和第三方系统条形码匹配结果信息
|
||||
*
|
||||
* @param storeProdBarcodeMatchId 档口条形码和第三方系统条形码匹配结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchId(Long storeProdBarcodeMatchId) {
|
||||
return storeProductBarcodeMatchMapper.deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchId(storeProdBarcodeMatchId);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public int updateBarcodeMatch(BarcodeMatchDTO barcodeMatchDTO) {
|
||||
// 找到当前商品颜色所有的尺码,并转换为map
|
||||
|
||||
// 如果已经扫码过一次了,则更新,如果没有扫码过,则插入
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,7 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.xkt.domain.StoreProductBarcodeRecord;
|
||||
import com.ruoyi.xkt.mapper.StoreProductBarcodeRecordMapper;
|
||||
import com.ruoyi.xkt.service.IStoreProductBarcodeRecordService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口打印条形码记录Service业务层处理
|
||||
|
|
@ -18,76 +11,5 @@ import java.util.List;
|
|||
*/
|
||||
@Service
|
||||
public class StoreProductBarcodeRecordServiceImpl implements IStoreProductBarcodeRecordService {
|
||||
@Autowired
|
||||
private StoreProductBarcodeRecordMapper storeProductBarcodeRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询档口打印条形码记录
|
||||
*
|
||||
* @param storeProdBarcodeRecordId 档口打印条形码记录主键
|
||||
* @return 档口打印条形码记录
|
||||
*/
|
||||
@Override
|
||||
public StoreProductBarcodeRecord selectStoreProductBarcodeRecordByStoreProdBarcodeRecordId(Long storeProdBarcodeRecordId) {
|
||||
return storeProductBarcodeRecordMapper.selectStoreProductBarcodeRecordByStoreProdBarcodeRecordId(storeProdBarcodeRecordId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询档口打印条形码记录列表
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 档口打印条形码记录
|
||||
*/
|
||||
@Override
|
||||
public List<StoreProductBarcodeRecord> selectStoreProductBarcodeRecordList(StoreProductBarcodeRecord storeProductBarcodeRecord) {
|
||||
return storeProductBarcodeRecordMapper.selectStoreProductBarcodeRecordList(storeProductBarcodeRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增档口打印条形码记录
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertStoreProductBarcodeRecord(StoreProductBarcodeRecord storeProductBarcodeRecord) {
|
||||
storeProductBarcodeRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return storeProductBarcodeRecordMapper.insertStoreProductBarcodeRecord(storeProductBarcodeRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改档口打印条形码记录
|
||||
*
|
||||
* @param storeProductBarcodeRecord 档口打印条形码记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStoreProductBarcodeRecord(StoreProductBarcodeRecord storeProductBarcodeRecord) {
|
||||
storeProductBarcodeRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return storeProductBarcodeRecordMapper.updateStoreProductBarcodeRecord(storeProductBarcodeRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除档口打印条形码记录
|
||||
*
|
||||
* @param storeProdBarcodeRecordIds 需要删除的档口打印条形码记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordIds(Long[] storeProdBarcodeRecordIds) {
|
||||
return storeProductBarcodeRecordMapper.deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordIds(storeProdBarcodeRecordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除档口打印条形码记录信息
|
||||
*
|
||||
* @param storeProdBarcodeRecordId 档口打印条形码记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordId(Long storeProdBarcodeRecordId) {
|
||||
return storeProductBarcodeRecordMapper.deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordId(storeProdBarcodeRecordId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,152 +0,0 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.xkt.domain.StoreRole;
|
||||
import com.ruoyi.xkt.domain.StoreRoleAccount;
|
||||
import com.ruoyi.xkt.dto.storeRoleAccount.*;
|
||||
import com.ruoyi.xkt.mapper.StoreRoleAccountMapper;
|
||||
import com.ruoyi.xkt.mapper.StoreRoleMapper;
|
||||
import com.ruoyi.xkt.service.IStoreRoleAccountService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 档口子角色账号Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class StoreRoleAccountServiceImpl implements IStoreRoleAccountService {
|
||||
|
||||
final StoreRoleAccountMapper storeRoleAccMapper;
|
||||
final StoreRoleMapper storeRoleMapper;
|
||||
|
||||
/**
|
||||
* 新增档口子账号
|
||||
*
|
||||
* @param accDTO 子账号入参
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public Integer insert(StoreRoleAccDTO accDTO) {
|
||||
// 当前登录用户
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
StoreRoleAccount account = BeanUtil.toBean(accDTO, StoreRoleAccount.class);
|
||||
account.setOperatorId(loginUser.getUserId());
|
||||
account.setOperatorName(loginUser.getUsername());
|
||||
// 若为系统未注册用户,则重新走注册电商卖家角色流程
|
||||
if (ObjectUtils.isEmpty(accDTO.getUserId())) {
|
||||
|
||||
// TODO 走注册电商卖家角色流程
|
||||
// TODO 走注册电商卖家角色流程
|
||||
// TODO 走注册电商卖家角色流程
|
||||
// TODO 走注册电商卖家角色流程
|
||||
|
||||
account.setUserId(1000L);
|
||||
}
|
||||
return this.storeRoleAccMapper.insert(account);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑档口子账号
|
||||
*
|
||||
* @param accUpdateDTO 档口子账号
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public Integer update(StoreRoleAccUpdateDTO accUpdateDTO) {
|
||||
StoreRoleAccount account = Optional.ofNullable(this.storeRoleAccMapper.selectOne(new LambdaQueryWrapper<StoreRoleAccount>()
|
||||
.eq(StoreRoleAccount::getId, accUpdateDTO.getStoreRoleAccId()).eq(StoreRoleAccount::getDelFlag, Constants.UNDELETED)
|
||||
.eq(StoreRoleAccount::getStoreId, accUpdateDTO.getStoreId())))
|
||||
.orElseThrow(() -> new RuntimeException("未找到该子账号信息"));
|
||||
account.setAccountName(accUpdateDTO.getAccountName());
|
||||
account.setStoreRoleId(accUpdateDTO.getStoreRoleId());
|
||||
return this.storeRoleAccMapper.updateById(account);
|
||||
}
|
||||
|
||||
/**
|
||||
* 档口子账号列表
|
||||
*
|
||||
* @param listDTO
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public List<StoreRoleAccResDTO> list(StoreRoleAccListDTO listDTO) {
|
||||
List<StoreRoleAccount> accountList = this.storeRoleAccMapper.selectList(new LambdaQueryWrapper<StoreRoleAccount>()
|
||||
.eq(StoreRoleAccount::getStoreId, listDTO.getStoreId()).eq(StoreRoleAccount::getDelFlag, Constants.UNDELETED));
|
||||
if (CollectionUtils.isEmpty(accountList)) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
// 找到所有的子账号角色
|
||||
List<StoreRole> roleList = Optional.ofNullable(this.storeRoleMapper.selectList(new LambdaQueryWrapper<StoreRole>()
|
||||
.in(StoreRole::getId, accountList.stream().map(StoreRoleAccount::getStoreRoleId).collect(Collectors.toList()))
|
||||
.eq(StoreRole::getDelFlag, Constants.UNDELETED).eq(StoreRole::getStoreId, listDTO.getStoreId())))
|
||||
.orElseThrow(() -> new RuntimeException("未找到子账号角色信息"));
|
||||
Map<Long, StoreRole> roleMap = roleList.stream().collect(Collectors.toMap(StoreRole::getId, storeRole -> storeRole));
|
||||
return accountList.stream().map(account -> {
|
||||
StoreRoleAccResDTO accResDTO = BeanUtil.toBean(account, StoreRoleAccResDTO.class);
|
||||
accResDTO.setStoreRoleAccId(account.getId());
|
||||
accResDTO.setStoreRoleName(ObjectUtils.isNotEmpty(roleMap.get(account.getStoreRoleId()))
|
||||
? roleMap.get(account.getStoreRoleId()).getRoleName() : "");
|
||||
return accResDTO;
|
||||
}).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取档口子账号详情
|
||||
*
|
||||
* @param storeRoleAccId 档口子账号ID
|
||||
* @return StoreRoleAccDetailResDTO
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public StoreRoleAccDetailResDTO selectByStoreRoleAccId(Long storeRoleAccId) {
|
||||
StoreRoleAccount account = Optional.ofNullable(this.storeRoleAccMapper.selectOne(new LambdaQueryWrapper<StoreRoleAccount>()
|
||||
.eq(StoreRoleAccount::getId, storeRoleAccId).eq(StoreRoleAccount::getDelFlag, Constants.UNDELETED)))
|
||||
.orElseThrow(() -> new RuntimeException("未找到该子账号信息"));
|
||||
// 找打当前档口所有的子角色
|
||||
List<StoreRole> roleList = this.storeRoleMapper.selectList(new LambdaQueryWrapper<StoreRole>()
|
||||
.eq(StoreRole::getStoreId, account.getStoreId()).eq(StoreRole::getDelFlag, Constants.UNDELETED));
|
||||
return BeanUtil.toBean(account, StoreRoleAccDetailResDTO.class)
|
||||
.setStoreRoleAccId(account.getId())
|
||||
.setRoleList(roleList.stream().map(x -> new StoreRoleAccDetailResDTO.StoreRoleDTO() {{
|
||||
setStoreRoleId(x.getId());
|
||||
setStoreRoleName(x.getRoleName());
|
||||
}}).collect(Collectors.toList()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 停用/启用档口子账号
|
||||
*
|
||||
* @param updateStatusDTO 停用/启用账号子账号入参
|
||||
* @return Integer
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public Integer updateAccountStatus(StoreRoleAccUpdateStatusDTO updateStatusDTO) {
|
||||
StoreRoleAccount account = Optional.ofNullable(this.storeRoleAccMapper.selectOne(new LambdaQueryWrapper<StoreRoleAccount>()
|
||||
.eq(StoreRoleAccount::getId, updateStatusDTO.getStoreRoleAccId()).eq(StoreRoleAccount::getDelFlag, Constants.UNDELETED)))
|
||||
.orElseThrow(() -> new RuntimeException("未找到该子账号信息"));
|
||||
account.setDelFlag(updateStatusDTO.getDelFlag());
|
||||
return this.storeRoleAccMapper.updateById(account);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.xkt.domain.StoreRoleMenu;
|
||||
import com.ruoyi.xkt.mapper.StoreRoleMenuMapper;
|
||||
import com.ruoyi.xkt.service.IStoreRoleMenuService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口子角色菜单Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@Service
|
||||
public class StoreRoleMenuServiceImpl implements IStoreRoleMenuService {
|
||||
@Autowired
|
||||
private StoreRoleMenuMapper storeRoleMenuMapper;
|
||||
|
||||
/**
|
||||
* 查询档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenuId 档口子角色菜单主键
|
||||
* @return 档口子角色菜单
|
||||
*/
|
||||
@Override
|
||||
public StoreRoleMenu selectStoreRoleMenuByStoreRoleMenuId(Long storeRoleMenuId) {
|
||||
return storeRoleMenuMapper.selectStoreRoleMenuByStoreRoleMenuId(storeRoleMenuId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询档口子角色菜单列表
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 档口子角色菜单
|
||||
*/
|
||||
@Override
|
||||
public List<StoreRoleMenu> selectStoreRoleMenuList(StoreRoleMenu storeRoleMenu) {
|
||||
return storeRoleMenuMapper.selectStoreRoleMenuList(storeRoleMenu);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertStoreRoleMenu(StoreRoleMenu storeRoleMenu) {
|
||||
storeRoleMenu.setCreateTime(DateUtils.getNowDate());
|
||||
return storeRoleMenuMapper.insertStoreRoleMenu(storeRoleMenu);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenu 档口子角色菜单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int updateStoreRoleMenu(StoreRoleMenu storeRoleMenu) {
|
||||
storeRoleMenu.setUpdateTime(DateUtils.getNowDate());
|
||||
return storeRoleMenuMapper.updateStoreRoleMenu(storeRoleMenu);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除档口子角色菜单
|
||||
*
|
||||
* @param storeRoleMenuIds 需要删除的档口子角色菜单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteStoreRoleMenuByStoreRoleMenuIds(Long[] storeRoleMenuIds) {
|
||||
return storeRoleMenuMapper.deleteStoreRoleMenuByStoreRoleMenuIds(storeRoleMenuIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除档口子角色菜单信息
|
||||
*
|
||||
* @param storeRoleMenuId 档口子角色菜单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteStoreRoleMenuByStoreRoleMenuId(Long storeRoleMenuId) {
|
||||
return storeRoleMenuMapper.deleteStoreRoleMenuByStoreRoleMenuId(storeRoleMenuId);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,187 +0,0 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
import com.ruoyi.common.constant.HttpStatus;
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.xkt.domain.StoreRole;
|
||||
import com.ruoyi.xkt.domain.StoreRoleAccount;
|
||||
import com.ruoyi.xkt.domain.StoreRoleMenu;
|
||||
import com.ruoyi.xkt.dto.storeRole.StoreRoleDTO;
|
||||
import com.ruoyi.xkt.dto.storeRole.StoreRoleListDTO;
|
||||
import com.ruoyi.xkt.dto.storeRole.StoreRoleResDTO;
|
||||
import com.ruoyi.xkt.dto.storeRole.StoreRoleUpdateStatusDTO;
|
||||
import com.ruoyi.xkt.mapper.StoreRoleAccountMapper;
|
||||
import com.ruoyi.xkt.mapper.StoreRoleMapper;
|
||||
import com.ruoyi.xkt.mapper.StoreRoleMenuMapper;
|
||||
import com.ruoyi.xkt.service.IStoreRoleService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 档口子角色Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class StoreRoleServiceImpl implements IStoreRoleService {
|
||||
|
||||
final StoreRoleMapper storeRoleMapper;
|
||||
final StoreRoleMenuMapper storeRoleMenuMapper;
|
||||
final StoreRoleAccountMapper storeRoleAccMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 新增档口子角色
|
||||
*
|
||||
* @param storeRoleDTO 档口子角色
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertStoreRole(StoreRoleDTO storeRoleDTO) {
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
StoreRole storeRole = BeanUtil.toBean(storeRoleDTO, StoreRole.class);
|
||||
|
||||
// TODO 暂时列为-1
|
||||
// TODO 暂时列为-1
|
||||
// TODO 暂时列为-1
|
||||
storeRole.setRoleId(1000L);
|
||||
|
||||
|
||||
storeRole.setOperatorId(loginUser.getUserId());
|
||||
storeRole.setOperatorName(loginUser.getUsername());
|
||||
int count = this.storeRoleMapper.insert(storeRole);
|
||||
// 新增档口子角色菜单
|
||||
List<StoreRoleMenu> roleMenuList = storeRoleDTO.getMenuList().stream().map(menuName -> {
|
||||
StoreRoleMenu storeRoleMenu = new StoreRoleMenu();
|
||||
return storeRoleMenu.setStoreId(storeRoleDTO.getStoreId())
|
||||
.setStoreRoleId(storeRole.getId()).setMenuName(menuName);
|
||||
}).collect(Collectors.toList());
|
||||
this.storeRoleMenuMapper.insert(roleMenuList);
|
||||
return count;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新档口子角色
|
||||
*
|
||||
* @param storeRoleDTO 档口子角色信息
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public Integer update(StoreRoleDTO storeRoleDTO) {
|
||||
Optional.ofNullable(storeRoleDTO.getStoreRoleId()).orElseThrow(() -> new ServiceException("档口角色ID不能为空!", HttpStatus.ERROR));
|
||||
StoreRole storeRole = Optional.ofNullable(this.storeRoleMapper.selectOne(new LambdaQueryWrapper<StoreRole>()
|
||||
.eq(StoreRole::getId, storeRoleDTO.getStoreRoleId()).eq(StoreRole::getDelFlag, Constants.UNDELETED)
|
||||
.eq(StoreRole::getStoreId, storeRoleDTO.getStoreId())))
|
||||
.orElseThrow(() -> new ServiceException("档口角色不存在!", HttpStatus.ERROR));
|
||||
BeanUtil.copyProperties(storeRoleDTO, storeRole);
|
||||
int count = this.storeRoleMapper.updateById(storeRole);
|
||||
// 将旧的子角色菜单置为无效
|
||||
List<StoreRoleMenu> menuList = this.storeRoleMenuMapper.selectList(new LambdaQueryWrapper<StoreRoleMenu>()
|
||||
.eq(StoreRoleMenu::getStoreRoleId, storeRoleDTO.getStoreRoleId()).eq(StoreRoleMenu::getDelFlag, Constants.UNDELETED)
|
||||
.eq(StoreRoleMenu::getStoreId, storeRoleDTO.getStoreId()));
|
||||
if (CollectionUtils.isNotEmpty(menuList)) {
|
||||
menuList.forEach(x -> x.setDelFlag(Constants.DELETED));
|
||||
this.storeRoleMenuMapper.updateById(menuList);
|
||||
}
|
||||
// 新增档口子角色菜单
|
||||
List<StoreRoleMenu> roleMenuList = storeRoleDTO.getMenuList().stream().map(menuName -> {
|
||||
StoreRoleMenu storeRoleMenu = new StoreRoleMenu();
|
||||
return storeRoleMenu.setStoreId(storeRoleDTO.getStoreId())
|
||||
.setStoreRoleId(storeRole.getId()).setMenuName(menuName);
|
||||
}).collect(Collectors.toList());
|
||||
this.storeRoleMenuMapper.insert(roleMenuList);
|
||||
return count;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询档口子角色菜单详情
|
||||
*
|
||||
* @param storeRoleId 档口子角色ID
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public StoreRoleDTO selectByStoreRoleId(Long storeRoleId) {
|
||||
StoreRole storeRole = Optional.ofNullable(this.storeRoleMapper.selectOne(new LambdaQueryWrapper<StoreRole>()
|
||||
.eq(StoreRole::getId, storeRoleId).eq(StoreRole::getDelFlag, Constants.UNDELETED)))
|
||||
.orElseThrow(() -> new ServiceException("档口子角色不存在!", HttpStatus.ERROR));
|
||||
// 找到档口子角色菜单
|
||||
List<StoreRoleMenu> menuList = this.storeRoleMenuMapper.selectList(new LambdaQueryWrapper<StoreRoleMenu>()
|
||||
.eq(StoreRoleMenu::getStoreRoleId, storeRoleId).eq(StoreRoleMenu::getDelFlag, Constants.UNDELETED)
|
||||
.eq(StoreRoleMenu::getStoreId, storeRole.getStoreId()));
|
||||
|
||||
// TODO 还要返回档口角色所有的菜单
|
||||
// TODO 还要返回档口角色所有的菜单
|
||||
// TODO 还要返回档口角色所有的菜单
|
||||
// TODO 还要返回档口角色所有的菜单
|
||||
|
||||
|
||||
return BeanUtil.toBean(storeRole, StoreRoleDTO.class)
|
||||
.setMenuList(menuList.stream().map(StoreRoleMenu::getMenuName).collect(Collectors.toList()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 档口子角色分页查询
|
||||
*
|
||||
* @param pageDTO 档口子角色分页查询入参
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public List<StoreRoleResDTO> list(StoreRoleListDTO pageDTO) {
|
||||
List<StoreRole> storeRoleList = this.storeRoleMapper.selectList(new LambdaQueryWrapper<StoreRole>()
|
||||
.eq(StoreRole::getStoreId, pageDTO.getStoreId()).eq(StoreRole::getDelFlag, Constants.UNDELETED));
|
||||
return storeRoleList.stream().map(x -> BeanUtil.toBean(x, StoreRoleResDTO.class).setStoreRoleId(x.getId()))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新档口子角色状态
|
||||
*
|
||||
* @param updateStatusDTO 子角色状态更新入参
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public Integer updateRoleStatus(StoreRoleUpdateStatusDTO updateStatusDTO) {
|
||||
StoreRole storeRole = Optional.ofNullable(this.storeRoleMapper.selectOne(new LambdaQueryWrapper<StoreRole>()
|
||||
.eq(StoreRole::getId, updateStatusDTO.getStoreRoleId()).eq(StoreRole::getDelFlag, Constants.UNDELETED)))
|
||||
.orElseThrow(() -> new ServiceException("档口角色不存在!", HttpStatus.ERROR));
|
||||
storeRole.setDelFlag(updateStatusDTO.getDelFlag());
|
||||
// 如果是启用变为停用,则还需将子角色菜单置为无效,子角色账号置为无效
|
||||
if (Objects.equals(updateStatusDTO.getDelFlag(), Constants.DELETED)) {
|
||||
List<StoreRoleMenu> menuList = this.storeRoleMenuMapper.selectList(new LambdaQueryWrapper<StoreRoleMenu>()
|
||||
.eq(StoreRoleMenu::getStoreRoleId, updateStatusDTO.getStoreRoleId()).eq(StoreRoleMenu::getDelFlag, Constants.UNDELETED)
|
||||
.eq(StoreRoleMenu::getStoreId, storeRole.getStoreId()));
|
||||
if (CollectionUtils.isNotEmpty(menuList)) {
|
||||
menuList.forEach(x -> x.setDelFlag(Constants.DELETED));
|
||||
this.storeRoleMenuMapper.updateById(menuList);
|
||||
}
|
||||
// 找到子角色账号,并置为无效
|
||||
List<StoreRoleAccount> accountList = this.storeRoleAccMapper.selectList(new LambdaQueryWrapper<StoreRoleAccount>()
|
||||
.eq(StoreRoleAccount::getStoreRoleId, updateStatusDTO.getStoreRoleId()).eq(StoreRoleAccount::getDelFlag, Constants.UNDELETED)
|
||||
.eq(StoreRoleAccount::getStoreId, storeRole.getStoreId()));
|
||||
if (CollectionUtils.isNotEmpty(accountList)) {
|
||||
accountList.forEach(x -> x.setDelFlag(Constants.DELETED));
|
||||
this.storeRoleAccMapper.updateById(accountList);
|
||||
}
|
||||
}
|
||||
return this.storeRoleMapper.updateById(storeRole);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,14 +1,7 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.xkt.domain.SysFile;
|
||||
import com.ruoyi.xkt.mapper.SysFileMapper;
|
||||
import com.ruoyi.xkt.service.ISysFileService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* fileService业务层处理
|
||||
|
|
@ -18,80 +11,5 @@ import java.util.List;
|
|||
*/
|
||||
@Service
|
||||
public class SysFileServiceImpl implements ISysFileService {
|
||||
@Autowired
|
||||
private SysFileMapper sysFileMapper;
|
||||
|
||||
/**
|
||||
* 查询file
|
||||
*
|
||||
* @param fileId file主键
|
||||
* @return file
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public SysFile selectSysFileByFileId(Long fileId) {
|
||||
return sysFileMapper.selectSysFileByFileId(fileId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询file列表
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return file
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public List<SysFile> selectSysFileList(SysFile sysFile) {
|
||||
return sysFileMapper.selectSysFileList(sysFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增file
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertSysFile(SysFile sysFile) {
|
||||
sysFile.setCreateTime(DateUtils.getNowDate());
|
||||
return sysFileMapper.insertSysFile(sysFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改file
|
||||
*
|
||||
* @param sysFile file
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int updateSysFile(SysFile sysFile) {
|
||||
sysFile.setUpdateTime(DateUtils.getNowDate());
|
||||
return sysFileMapper.updateSysFile(sysFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除file
|
||||
*
|
||||
* @param fileIds 需要删除的file主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteSysFileByFileIds(Long[] fileIds) {
|
||||
return sysFileMapper.deleteSysFileByFileIds(fileIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除file信息
|
||||
*
|
||||
* @param fileId file主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deleteSysFileByFileId(Long fileId) {
|
||||
return sysFileMapper.deleteSysFileByFileId(fileId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM
|
||||
advert a
|
||||
WHERE
|
||||
del_flag = 0
|
||||
AND online_status = 1
|
||||
del_flag = 0 AND online_status = 1
|
||||
GROUP BY
|
||||
platform_id,
|
||||
tab_id,
|
||||
|
|
|
|||
|
|
@ -3,184 +3,5 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.StoreCertificateMapper">
|
||||
|
||||
<resultMap type="StoreCertificate" id="StoreCertificateResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeId" column="store_id" />
|
||||
<result property="realName" column="real_name" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="idCard" column="id_card" />
|
||||
<result property="idCardFrontFileId" column="id_card_front_file_id" />
|
||||
<result property="idCardBackFileId" column="id_card_back_file_id" />
|
||||
<result property="licenseFileId" column="license_file_id" />
|
||||
<result property="socialCreditCode" column="social_credit_code" />
|
||||
<result property="soleProprietorshipType" column="sole_proprietorship_type" />
|
||||
<result property="marketEntryType" column="market_entry_type" />
|
||||
<result property="licenseName" column="license_name" />
|
||||
<result property="registerOrg" column="register_org" />
|
||||
<result property="registerStatus" column="register_status" />
|
||||
<result property="legalName" column="legal_name" />
|
||||
<result property="realBusinessAddress" column="real_business_address" />
|
||||
<result property="businessScope" column="business_scope" />
|
||||
<result property="registerCapital" column="register_capital" />
|
||||
<result property="establishDate" column="establish_date" />
|
||||
<result property="businessTermStartDate" column="business_term_start_date" />
|
||||
<result property="businessTermEndDate" column="business_term_end_date" />
|
||||
<result property="approvalDate" column="approval_date" />
|
||||
<result property="certStatus" column="cert_status" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreCertificateVo">
|
||||
select id, store_id, real_name, phone, id_card, id_card_front_file_id, id_card_back_file_id, license_file_id, social_credit_code, sole_proprietorship_type, market_entry_type, license_name, register_org, register_status, legal_name, real_business_address, business_scope, register_capital, establish_date, business_term_start_date, business_term_end_date, approval_date, cert_status, version, del_flag, create_by, create_time, update_by, update_time from store_certificate
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreCertificateList" parameterType="StoreCertificate" resultMap="StoreCertificateResult">
|
||||
<include refid="selectStoreCertificateVo"/>
|
||||
<where>
|
||||
<if test="storeId != null "> and store_id = #{storeId}</if>
|
||||
<if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
|
||||
<if test="idCardFrontFileId != null "> and id_card_front_file_id = #{idCardFrontFileId}</if>
|
||||
<if test="idCardBackFileId != null "> and id_card_back_file_id = #{idCardBackFileId}</if>
|
||||
<if test="licenseFileId != null "> and license_file_id = #{licenseFileId}</if>
|
||||
<if test="socialCreditCode != null and socialCreditCode != ''"> and social_credit_code = #{socialCreditCode}</if>
|
||||
<if test="soleProprietorshipType != null "> and sole_proprietorship_type = #{soleProprietorshipType}</if>
|
||||
<if test="marketEntryType != null "> and market_entry_type = #{marketEntryType}</if>
|
||||
<if test="licenseName != null and licenseName != ''"> and license_name like concat('%', #{licenseName}, '%')</if>
|
||||
<if test="registerOrg != null and registerOrg != ''"> and register_org = #{registerOrg}</if>
|
||||
<if test="registerStatus != null "> and register_status = #{registerStatus}</if>
|
||||
<if test="legalName != null and legalName != ''"> and legal_name like concat('%', #{legalName}, '%')</if>
|
||||
<if test="realBusinessAddress != null and realBusinessAddress != ''"> and real_business_address = #{realBusinessAddress}</if>
|
||||
<if test="businessScope != null and businessScope != ''"> and business_scope = #{businessScope}</if>
|
||||
<if test="registerCapital != null "> and register_capital = #{registerCapital}</if>
|
||||
<if test="establishDate != null "> and establish_date = #{establishDate}</if>
|
||||
<if test="businessTermStartDate != null "> and business_term_start_date = #{businessTermStartDate}</if>
|
||||
<if test="businessTermEndDate != null "> and business_term_end_date = #{businessTermEndDate}</if>
|
||||
<if test="approvalDate != null "> and approval_date = #{approvalDate}</if>
|
||||
<if test="certStatus != null "> and cert_status = #{certStatus}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreCertificateByStoreCertId" parameterType="Long" resultMap="StoreCertificateResult">
|
||||
<include refid="selectStoreCertificateVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreCertificate" parameterType="StoreCertificate" useGeneratedKeys="true" keyProperty="storeCertId">
|
||||
insert into store_certificate
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeId != null">store_id,</if>
|
||||
<if test="realName != null and realName != ''">real_name,</if>
|
||||
<if test="phone != null and phone != ''">phone,</if>
|
||||
<if test="idCard != null and idCard != ''">id_card,</if>
|
||||
<if test="idCardFrontFileId != null">id_card_front_file_id,</if>
|
||||
<if test="idCardBackFileId != null">id_card_back_file_id,</if>
|
||||
<if test="licenseFileId != null">license_file_id,</if>
|
||||
<if test="socialCreditCode != null">social_credit_code,</if>
|
||||
<if test="soleProprietorshipType != null">sole_proprietorship_type,</if>
|
||||
<if test="marketEntryType != null">market_entry_type,</if>
|
||||
<if test="licenseName != null">license_name,</if>
|
||||
<if test="registerOrg != null">register_org,</if>
|
||||
<if test="registerStatus != null">register_status,</if>
|
||||
<if test="legalName != null">legal_name,</if>
|
||||
<if test="realBusinessAddress != null">real_business_address,</if>
|
||||
<if test="businessScope != null">business_scope,</if>
|
||||
<if test="registerCapital != null">register_capital,</if>
|
||||
<if test="establishDate != null">establish_date,</if>
|
||||
<if test="businessTermStartDate != null">business_term_start_date,</if>
|
||||
<if test="businessTermEndDate != null">business_term_end_date,</if>
|
||||
<if test="approvalDate != null">approval_date,</if>
|
||||
<if test="certStatus != null">cert_status,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeId != null">#{storeId},</if>
|
||||
<if test="realName != null and realName != ''">#{realName},</if>
|
||||
<if test="phone != null and phone != ''">#{phone},</if>
|
||||
<if test="idCard != null and idCard != ''">#{idCard},</if>
|
||||
<if test="idCardFrontFileId != null">#{idCardFrontFileId},</if>
|
||||
<if test="idCardBackFileId != null">#{idCardBackFileId},</if>
|
||||
<if test="licenseFileId != null">#{licenseFileId},</if>
|
||||
<if test="socialCreditCode != null">#{socialCreditCode},</if>
|
||||
<if test="soleProprietorshipType != null">#{soleProprietorshipType},</if>
|
||||
<if test="marketEntryType != null">#{marketEntryType},</if>
|
||||
<if test="licenseName != null">#{licenseName},</if>
|
||||
<if test="registerOrg != null">#{registerOrg},</if>
|
||||
<if test="registerStatus != null">#{registerStatus},</if>
|
||||
<if test="legalName != null">#{legalName},</if>
|
||||
<if test="realBusinessAddress != null">#{realBusinessAddress},</if>
|
||||
<if test="businessScope != null">#{businessScope},</if>
|
||||
<if test="registerCapital != null">#{registerCapital},</if>
|
||||
<if test="establishDate != null">#{establishDate},</if>
|
||||
<if test="businessTermStartDate != null">#{businessTermStartDate},</if>
|
||||
<if test="businessTermEndDate != null">#{businessTermEndDate},</if>
|
||||
<if test="approvalDate != null">#{approvalDate},</if>
|
||||
<if test="certStatus != null">#{certStatus},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreCertificate" parameterType="StoreCertificate">
|
||||
update store_certificate
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeId != null">store_id = #{storeId},</if>
|
||||
<if test="realName != null and realName != ''">real_name = #{realName},</if>
|
||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||
<if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
|
||||
<if test="idCardFrontFileId != null">id_card_front_file_id = #{idCardFrontFileId},</if>
|
||||
<if test="idCardBackFileId != null">id_card_back_file_id = #{idCardBackFileId},</if>
|
||||
<if test="licenseFileId != null">license_file_id = #{licenseFileId},</if>
|
||||
<if test="socialCreditCode != null">social_credit_code = #{socialCreditCode},</if>
|
||||
<if test="soleProprietorshipType != null">sole_proprietorship_type = #{soleProprietorshipType},</if>
|
||||
<if test="marketEntryType != null">market_entry_type = #{marketEntryType},</if>
|
||||
<if test="licenseName != null">license_name = #{licenseName},</if>
|
||||
<if test="registerOrg != null">register_org = #{registerOrg},</if>
|
||||
<if test="registerStatus != null">register_status = #{registerStatus},</if>
|
||||
<if test="legalName != null">legal_name = #{legalName},</if>
|
||||
<if test="realBusinessAddress != null">real_business_address = #{realBusinessAddress},</if>
|
||||
<if test="businessScope != null">business_scope = #{businessScope},</if>
|
||||
<if test="registerCapital != null">register_capital = #{registerCapital},</if>
|
||||
<if test="establishDate != null">establish_date = #{establishDate},</if>
|
||||
<if test="businessTermStartDate != null">business_term_start_date = #{businessTermStartDate},</if>
|
||||
<if test="businessTermEndDate != null">business_term_end_date = #{businessTermEndDate},</if>
|
||||
<if test="approvalDate != null">approval_date = #{approvalDate},</if>
|
||||
<if test="certStatus != null">cert_status = #{certStatus},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreCertificateByStoreCertId" parameterType="Long">
|
||||
delete from store_certificate where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreCertificateByStoreCertIds" parameterType="String">
|
||||
delete from store_certificate where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -4,91 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.StoreColorMapper">
|
||||
|
||||
<resultMap type="StoreColor" id="StoreColorResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeId" column="store_id" />
|
||||
<result property="colorName" column="color_name" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreColorVo">
|
||||
select id, store_id, color_name, order_num, version, del_flag, create_by, create_time, update_by, update_time from store_color
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreColorList" parameterType="StoreColor" resultMap="StoreColorResult">
|
||||
<include refid="selectStoreColorVo"/>
|
||||
<where>
|
||||
<if test="storeId != null "> and store_id = #{storeId}</if>
|
||||
<if test="colorName != null and colorName != ''"> and color_name like concat('%', #{colorName}, '%')</if>
|
||||
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreColorByStoreColorId" parameterType="Long" resultMap="StoreColorResult">
|
||||
<include refid="selectStoreColorVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreColor" parameterType="StoreColor" useGeneratedKeys="true" keyProperty="storeColorId">
|
||||
insert into store_color
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeId != null">store_id,</if>
|
||||
<if test="colorName != null and colorName != ''">color_name,</if>
|
||||
<if test="orderNum != null">order_num,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeId != null">#{storeId},</if>
|
||||
<if test="colorName != null and colorName != ''">#{colorName},</if>
|
||||
<if test="orderNum != null">#{orderNum},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreColor" parameterType="StoreColor">
|
||||
update store_color
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeId != null">store_id = #{storeId},</if>
|
||||
<if test="colorName != null and colorName != ''">color_name = #{colorName},</if>
|
||||
<if test="orderNum != null">order_num = #{orderNum},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreColorByStoreColorId" parameterType="Long">
|
||||
delete from store_color where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreColorByStoreColorIds" parameterType="String">
|
||||
delete from store_color where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectListByStoreProdId" parameterType="Long" resultType="com.ruoyi.xkt.dto.storeColor.StoreColorDTO">
|
||||
SELECT
|
||||
id AS storeColorId,
|
||||
|
|
@ -96,11 +11,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
order_num AS orderNum
|
||||
FROM
|
||||
store_color
|
||||
WHERE del_flag = 0 AND store_id = #{storeId}
|
||||
WHERE
|
||||
del_flag = 0 AND store_id = #{storeId}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -3,103 +3,5 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.StoreFactoryMapper">
|
||||
|
||||
<resultMap type="StoreFactory" id="StoreFactoryResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeId" column="store_id" />
|
||||
<result property="facName" column="fac_name" />
|
||||
<result property="facAddress" column="fac_address" />
|
||||
<result property="facPhone" column="fac_phone" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="facStatus" column="fac_status" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreFactoryVo">
|
||||
select id, store_id, fac_name, fac_address, fac_phone, remark, fac_status, version, del_flag, create_by, create_time, update_by, update_time from store_factory
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreFactoryList" parameterType="StoreFactory" resultMap="StoreFactoryResult">
|
||||
<include refid="selectStoreFactoryVo"/>
|
||||
<where>
|
||||
<if test="storeId != null "> and store_id = #{storeId}</if>
|
||||
<if test="facName != null and facName != ''"> and fac_name like concat('%', #{facName}, '%')</if>
|
||||
<if test="facAddress != null and facAddress != ''"> and fac_address = #{facAddress}</if>
|
||||
<if test="facPhone != null and facPhone != ''"> and fac_phone = #{facPhone}</if>
|
||||
<if test="facStatus != null and facStatus != ''"> and fac_status = #{facStatus}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreFactoryByStoreFacId" parameterType="Long" resultMap="StoreFactoryResult">
|
||||
<include refid="selectStoreFactoryVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreFactory" parameterType="StoreFactory" useGeneratedKeys="true" keyProperty="storeFacId">
|
||||
insert into store_factory
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeId != null">store_id,</if>
|
||||
<if test="facName != null">fac_name,</if>
|
||||
<if test="facAddress != null">fac_address,</if>
|
||||
<if test="facPhone != null">fac_phone,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="facStatus != null">fac_status,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeId != null">#{storeId},</if>
|
||||
<if test="facName != null">#{facName},</if>
|
||||
<if test="facAddress != null">#{facAddress},</if>
|
||||
<if test="facPhone != null">#{facPhone},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="facStatus != null">#{facStatus},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreFactory" parameterType="StoreFactory">
|
||||
update store_factory
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeId != null">store_id = #{storeId},</if>
|
||||
<if test="facName != null">fac_name = #{facName},</if>
|
||||
<if test="facAddress != null">fac_address = #{facAddress},</if>
|
||||
<if test="facPhone != null">fac_phone = #{facPhone},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="facStatus != null">fac_status = #{facStatus},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreFactoryByStoreFacId" parameterType="Long">
|
||||
delete from store_factory where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreFactoryByStoreFacIds" parameterType="String">
|
||||
delete from store_factory where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -3,94 +3,5 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.StoreProductBarcodeMatchMapper">
|
||||
|
||||
<resultMap type="StoreProductBarcodeMatch" id="StoreProductBarcodeMatchResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeProdId" column="store_prod_id" />
|
||||
<result property="storeProdColorSizeId" column="store_prod_color_size_id" />
|
||||
<result property="otherSysBarcodePrefix" column="other_sys_barcode_prefix" />
|
||||
<result property="otherSysBarcode" column="other_sys_barcode" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreProductBarcodeMatchVo">
|
||||
select id, store_prod_id, store_prod_color_size_id, other_sys_barcode_prefix, other_sys_barcode, version, del_flag, create_by, create_time, update_by, update_time from store_product_barcode_match
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreProductBarcodeMatchList" parameterType="StoreProductBarcodeMatch" resultMap="StoreProductBarcodeMatchResult">
|
||||
<include refid="selectStoreProductBarcodeMatchVo"/>
|
||||
<where>
|
||||
<if test="storeProdId != null "> and store_prod_id = #{storeProdId}</if>
|
||||
<if test="storeProdColorSizeId != null "> and store_prod_color_size_id = #{storeProdColorSizeId}</if>
|
||||
<if test="otherSysBarcodePrefix != null and otherSysBarcodePrefix != ''"> and other_sys_barcode_prefix = #{otherSysBarcodePrefix}</if>
|
||||
<if test="otherSysBarcode != null and otherSysBarcode != ''"> and other_sys_barcode = #{otherSysBarcode}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreProductBarcodeMatchByStoreProdBarcodeMatchId" parameterType="Long" resultMap="StoreProductBarcodeMatchResult">
|
||||
<include refid="selectStoreProductBarcodeMatchVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreProductBarcodeMatch" parameterType="StoreProductBarcodeMatch" useGeneratedKeys="true" keyProperty="storeProdBarcodeMatchId">
|
||||
insert into store_product_barcode_match
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeProdId != null">store_prod_id,</if>
|
||||
<if test="storeProdColorSizeId != null">store_prod_color_size_id,</if>
|
||||
<if test="otherSysBarcodePrefix != null">other_sys_barcode_prefix,</if>
|
||||
<if test="otherSysBarcode != null">other_sys_barcode,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeProdId != null">#{storeProdId},</if>
|
||||
<if test="storeProdColorSizeId != null">#{storeProdColorSizeId},</if>
|
||||
<if test="otherSysBarcodePrefix != null">#{otherSysBarcodePrefix},</if>
|
||||
<if test="otherSysBarcode != null">#{otherSysBarcode},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreProductBarcodeMatch" parameterType="StoreProductBarcodeMatch">
|
||||
update store_product_barcode_match
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeProdId != null">store_prod_id = #{storeProdId},</if>
|
||||
<if test="storeProdColorSizeId != null">store_prod_color_size_id = #{storeProdColorSizeId},</if>
|
||||
<if test="otherSysBarcodePrefix != null">other_sys_barcode_prefix = #{otherSysBarcodePrefix},</if>
|
||||
<if test="otherSysBarcode != null">other_sys_barcode = #{otherSysBarcode},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchId" parameterType="Long">
|
||||
delete from store_product_barcode_match where id = #{idid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreProductBarcodeMatchByStoreProdBarcodeMatchIds" parameterType="String">
|
||||
delete from store_product_barcode_match where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -3,89 +3,5 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.StoreProductBarcodeRecordMapper">
|
||||
|
||||
<resultMap type="StoreProductBarcodeRecord" id="StoreProductBarcodeRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeProdId" column="store_prod_id" />
|
||||
<result property="storeProdColorSizeId" column="store_prod_color_size_id" />
|
||||
<result property="barcode" column="barcode" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreProductBarcodeRecordVo">
|
||||
select id, store_prod_id, store_prod_color_size_id, barcode, version, del_flag, create_by, create_time, update_by, update_time from store_product_barcode_record
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreProductBarcodeRecordList" parameterType="StoreProductBarcodeRecord" resultMap="StoreProductBarcodeRecordResult">
|
||||
<include refid="selectStoreProductBarcodeRecordVo"/>
|
||||
<where>
|
||||
<if test="storeProdId != null "> and store_prod_id = #{storeProdId}</if>
|
||||
<if test="storeProdColorSizeId != null "> and store_prod_color_size_id = #{storeProdColorSizeId}</if>
|
||||
<if test="barcode != null and barcode != ''"> and barcode = #{barcode}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreProductBarcodeRecordByStoreProdBarcodeRecordId" parameterType="Long" resultMap="StoreProductBarcodeRecordResult">
|
||||
<include refid="selectStoreProductBarcodeRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreProductBarcodeRecord" parameterType="StoreProductBarcodeRecord" useGeneratedKeys="true" keyProperty="storeProdBarcodeRecordId">
|
||||
insert into store_product_barcode_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeProdId != null">store_prod_id,</if>
|
||||
<if test="storeProdColorSizeId != null">store_prod_color_size_id,</if>
|
||||
<if test="barcode != null">barcode,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeProdId != null">#{storeProdId},</if>
|
||||
<if test="storeProdColorSizeId != null">#{storeProdColorSizeId},</if>
|
||||
<if test="barcode != null">#{barcode},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreProductBarcodeRecord" parameterType="StoreProductBarcodeRecord">
|
||||
update store_product_barcode_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeProdId != null">store_prod_id = #{storeProdId},</if>
|
||||
<if test="storeProdColorSizeId != null">store_prod_color_size_id = #{storeProdColorSizeId},</if>
|
||||
<if test="barcode != null">barcode = #{barcode},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordId" parameterType="Long">
|
||||
delete from store_product_barcode_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreProductBarcodeRecordByStoreProdBarcodeRecordIds" parameterType="String">
|
||||
delete from store_product_barcode_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -18,6 +18,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -311,6 +311,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -58,7 +58,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,96 +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.ruoyi.xkt.mapper.StoreRoleAccountMapper">
|
||||
|
||||
<resultMap type="StoreRoleAccount" id="StoreRoleAccountResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeRoleId" column="store_role_id" />
|
||||
<result property="storeId" column="store_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="accStatus" column="acc_status" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreRoleAccountVo">
|
||||
select id, store_role_id, store_id, user_id, acc_status, version, del_flag, create_by, create_time, update_by, update_time from store_role_account
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreRoleAccountList" parameterType="StoreRoleAccount" resultMap="StoreRoleAccountResult">
|
||||
<include refid="selectStoreRoleAccountVo"/>
|
||||
<where>
|
||||
<if test="storeRoleId != null "> and store_role_id = #{storeRoleId}</if>
|
||||
<if test="storeId != null "> and store_id = #{storeId}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="accStatus != null and accStatus != ''"> and acc_status = #{accStatus}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreRoleAccountByStoreRoleAccId" parameterType="Long" resultMap="StoreRoleAccountResult">
|
||||
<include refid="selectStoreRoleAccountVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreRoleAccount" parameterType="StoreRoleAccount" useGeneratedKeys="true" keyProperty="storeRoleAccId">
|
||||
insert into store_role_account
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeRoleId != null">store_role_id,</if>
|
||||
<if test="storeId != null">store_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="accStatus != null">acc_status,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeRoleId != null">#{storeRoleId},</if>
|
||||
<if test="storeId != null">#{storeId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="accStatus != null">#{accStatus},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreRoleAccount" parameterType="StoreRoleAccount">
|
||||
update store_role_account
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeRoleId != null">store_role_id = #{storeRoleId},</if>
|
||||
<if test="storeId != null">store_id = #{storeId},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="accStatus != null">acc_status = #{accStatus},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreRoleAccountByStoreRoleAccId" parameterType="Long">
|
||||
delete from store_role_account where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreRoleAccountByStoreRoleAccIds" parameterType="String">
|
||||
delete from store_role_account where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -1,86 +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.ruoyi.xkt.mapper.StoreRoleMapper">
|
||||
|
||||
<resultMap type="StoreRole" id="StoreRoleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeId" column="store_id" />
|
||||
<result property="roleStatus" column="role_status" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreRoleVo">
|
||||
select id, store_id, role_status, version, del_flag, create_by, create_time, update_by, update_time from store_role
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreRoleList" parameterType="StoreRole" resultMap="StoreRoleResult">
|
||||
<include refid="selectStoreRoleVo"/>
|
||||
<where>
|
||||
<if test="storeId != null "> and store_id = #{storeId}</if>
|
||||
<if test="roleStatus != null and roleStatus != ''"> and role_status = #{roleStatus}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreRoleByStoreRoleId" parameterType="Long" resultMap="StoreRoleResult">
|
||||
<include refid="selectStoreRoleVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreRole" parameterType="StoreRole" useGeneratedKeys="true" keyProperty="storeRoleId">
|
||||
insert into store_role
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeId != null">store_id,</if>
|
||||
<if test="roleStatus != null">role_status,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeId != null">#{storeId},</if>
|
||||
<if test="roleStatus != null">#{roleStatus},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreRole" parameterType="StoreRole">
|
||||
update store_role
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeId != null">store_id = #{storeId},</if>
|
||||
<if test="roleStatus != null">role_status = #{roleStatus},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreRoleByStoreRoleId" parameterType="Long">
|
||||
delete from store_role where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreRoleByStoreRoleIds" parameterType="String">
|
||||
delete from store_role where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -1,96 +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.ruoyi.xkt.mapper.StoreRoleMenuMapper">
|
||||
|
||||
<resultMap type="StoreRoleMenu" id="StoreRoleMenuResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeRoleId" column="store_role_id" />
|
||||
<result property="storeId" column="store_id" />
|
||||
<result property="menuName" column="menu_name" />
|
||||
<result property="menuStatus" column="menu_status" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreRoleMenuVo">
|
||||
select id, store_role_id, store_id, menu_name, menu_status, version, del_flag, create_by, create_time, update_by, update_time from store_role_menu
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreRoleMenuList" parameterType="StoreRoleMenu" resultMap="StoreRoleMenuResult">
|
||||
<include refid="selectStoreRoleMenuVo"/>
|
||||
<where>
|
||||
<if test="storeRoleId != null "> and store_role_id = #{storeRoleId}</if>
|
||||
<if test="storeId != null "> and store_id = #{storeId}</if>
|
||||
<if test="menuName != null and menuName != ''"> and menu_name like concat('%', #{menuName}, '%')</if>
|
||||
<if test="menuStatus != null and menuStatus != ''"> and menu_status = #{menuStatus}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreRoleMenuByStoreRoleMenuId" parameterType="Long" resultMap="StoreRoleMenuResult">
|
||||
<include refid="selectStoreRoleMenuVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreRoleMenu" parameterType="StoreRoleMenu" useGeneratedKeys="true" keyProperty="storeRoleMenuId">
|
||||
insert into store_role_menu
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeRoleId != null">store_role_id,</if>
|
||||
<if test="storeId != null">store_id,</if>
|
||||
<if test="menuName != null">menu_name,</if>
|
||||
<if test="menuStatus != null">menu_status,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeRoleId != null">#{storeRoleId},</if>
|
||||
<if test="storeId != null">#{storeId},</if>
|
||||
<if test="menuName != null">#{menuName},</if>
|
||||
<if test="menuStatus != null">#{menuStatus},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreRoleMenu" parameterType="StoreRoleMenu">
|
||||
update store_role_menu
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeRoleId != null">store_role_id = #{storeRoleId},</if>
|
||||
<if test="storeId != null">store_id = #{storeId},</if>
|
||||
<if test="menuName != null">menu_name = #{menuName},</if>
|
||||
<if test="menuStatus != null">menu_status = #{menuStatus},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreRoleMenuByStoreRoleMenuId" parameterType="Long">
|
||||
delete from store_role_menu where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreRoleMenuByStoreRoleMenuIds" parameterType="String">
|
||||
delete from store_role_menu where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -4,122 +4,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.StoreSaleRefundRecordMapper">
|
||||
|
||||
<resultMap type="StoreSaleRefundRecord" id="StoreSaleRefundRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="storeSaleId" column="store_sale_id" />
|
||||
<result property="storeId" column="store_id" />
|
||||
<result property="storeCusId" column="store_cus_id" />
|
||||
<result property="storeProdId" column="store_prod_id" />
|
||||
<result property="saleType" column="sale_type" />
|
||||
<result property="code" column="code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="amount" column="amount" />
|
||||
<result property="payWay" column="pay_way" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectStoreSaleRefundRecordVo">
|
||||
select id, store_sale_id, store_id, store_cus_id, store_prod_id, sale_type, code, quantity, amount, pay_way, remark, version, del_flag, create_by, create_time, update_by, update_time from store_sale_refund_record
|
||||
</sql>
|
||||
|
||||
<select id="selectStoreSaleRefundRecordList" parameterType="StoreSaleRefundRecord" resultMap="StoreSaleRefundRecordResult">
|
||||
<include refid="selectStoreSaleRefundRecordVo"/>
|
||||
<where>
|
||||
<if test="storeSaleId != null "> and store_sale_id = #{storeSaleId}</if>
|
||||
<if test="storeId != null "> and store_id = #{storeId}</if>
|
||||
<if test="storeCusId != null "> and store_cus_id = #{storeCusId}</if>
|
||||
<if test="storeProdId != null "> and store_prod_id = #{storeProdId}</if>
|
||||
<if test="saleType != null "> and sale_type = #{saleType}</if>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="quantity != null "> and quantity = #{quantity}</if>
|
||||
<if test="amount != null "> and amount = #{amount}</if>
|
||||
<if test="payWay != null "> and pay_way = #{payWay}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStoreSaleRefundRecordByStoreSaleRefundRecordId" parameterType="Long" resultMap="StoreSaleRefundRecordResult">
|
||||
<include refid="selectStoreSaleRefundRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreSaleRefundRecord" parameterType="StoreSaleRefundRecord" useGeneratedKeys="true" keyProperty="storeSaleRefundRecordId">
|
||||
insert into store_sale_refund_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="storeSaleId != null">store_sale_id,</if>
|
||||
<if test="storeId != null">store_id,</if>
|
||||
<if test="storeCusId != null">store_cus_id,</if>
|
||||
<if test="storeProdId != null">store_prod_id,</if>
|
||||
<if test="saleType != null">sale_type,</if>
|
||||
<if test="code != null and code != ''">code,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="amount != null">amount,</if>
|
||||
<if test="payWay != null">pay_way,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="storeSaleId != null">#{storeSaleId},</if>
|
||||
<if test="storeId != null">#{storeId},</if>
|
||||
<if test="storeCusId != null">#{storeCusId},</if>
|
||||
<if test="storeProdId != null">#{storeProdId},</if>
|
||||
<if test="saleType != null">#{saleType},</if>
|
||||
<if test="code != null and code != ''">#{code},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="amount != null">#{amount},</if>
|
||||
<if test="payWay != null">#{payWay},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateStoreSaleRefundRecord" parameterType="StoreSaleRefundRecord">
|
||||
update store_sale_refund_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="storeSaleId != null">store_sale_id = #{storeSaleId},</if>
|
||||
<if test="storeId != null">store_id = #{storeId},</if>
|
||||
<if test="storeCusId != null">store_cus_id = #{storeCusId},</if>
|
||||
<if test="storeProdId != null">store_prod_id = #{storeProdId},</if>
|
||||
<if test="saleType != null">sale_type = #{saleType},</if>
|
||||
<if test="code != null and code != ''">code = #{code},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="amount != null">amount = #{amount},</if>
|
||||
<if test="payWay != null">pay_way = #{payWay},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStoreSaleRefundRecordByStoreSaleRefundRecordId" parameterType="Long">
|
||||
delete from store_sale_refund_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStoreSaleRefundRecordByStoreSaleRefundRecordIds" parameterType="String">
|
||||
delete from store_sale_refund_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -3,89 +3,5 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.SysFileMapper">
|
||||
|
||||
<resultMap type="SysFile" id="SysFileResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="fileName" column="file_name" />
|
||||
<result property="fileUrl" column="file_url" />
|
||||
<result property="fileSize" column="file_size" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectSysFileVo">
|
||||
select id, file_name, file_url, file_size, version, del_flag, create_by, create_time, update_by, update_time from sys_file
|
||||
</sql>
|
||||
|
||||
<select id="selectSysFileList" parameterType="SysFile" resultMap="SysFileResult">
|
||||
<include refid="selectSysFileVo"/>
|
||||
<where>
|
||||
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
|
||||
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
||||
<if test="fileSize != null "> and file_size = #{fileSize}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysFileByFileId" parameterType="Long" resultMap="SysFileResult">
|
||||
<include refid="selectSysFileVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysFile" parameterType="SysFile" useGeneratedKeys="true" keyProperty="fileId">
|
||||
insert into sys_file
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="fileName != null">file_name,</if>
|
||||
<if test="fileUrl != null">file_url,</if>
|
||||
<if test="fileSize != null">file_size,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="fileName != null">#{fileName},</if>
|
||||
<if test="fileUrl != null">#{fileUrl},</if>
|
||||
<if test="fileSize != null">#{fileSize},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateSysFile" parameterType="SysFile">
|
||||
update sys_file
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="fileName != null">file_name = #{fileName},</if>
|
||||
<if test="fileUrl != null">file_url = #{fileUrl},</if>
|
||||
<if test="fileSize != null">file_size = #{fileSize},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysFileByFileId" parameterType="Long">
|
||||
delete from sys_file where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysFileByFileIds" parameterType="String">
|
||||
delete from sys_file where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -3,111 +3,5 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.UserAddressMapper">
|
||||
|
||||
<resultMap type="UserAddress" id="UserAddressResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="receiveName" column="receive_name" />
|
||||
<result property="receivePhone" column="receive_phone" />
|
||||
<result property="provinceCode" column="province_code" />
|
||||
<result property="cityCode" column="city_code" />
|
||||
<result property="districtCode" column="district_code" />
|
||||
<result property="detailAddress" column="detail_address" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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="selectUserAddressVo">
|
||||
select id, user_id, receive_name, receive_phone, province_code, city_code, district_code, detail_address, version, del_flag, create_by, create_time, update_by, update_time from user_address
|
||||
</sql>
|
||||
|
||||
<select id="selectUserAddressList" parameterType="UserAddress" resultMap="UserAddressResult">
|
||||
<include refid="selectUserAddressVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="receiveName != null and receiveName != ''"> and receive_name like concat('%', #{receiveName}, '%')</if>
|
||||
<if test="receivePhone != null and receivePhone != ''"> and receive_phone = #{receivePhone}</if>
|
||||
<if test="provinceCode != null and provinceCode != ''"> and province_code = #{provinceCode}</if>
|
||||
<if test="cityCode != null and cityCode != ''"> and city_code = #{cityCode}</if>
|
||||
<if test="districtCode != null and districtCode != ''"> and district_code = #{districtCode}</if>
|
||||
<if test="detailAddress != null and detailAddress != ''"> and detail_address = #{detailAddress}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUserAddressByUserAddrId" parameterType="Long" resultMap="UserAddressResult">
|
||||
<include refid="selectUserAddressVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUserAddress" parameterType="UserAddress">
|
||||
insert into user_address
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userAddrId != null">user_addr_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="receiveName != null">receive_name,</if>
|
||||
<if test="receivePhone != null">receive_phone,</if>
|
||||
<if test="provinceCode != null">province_code,</if>
|
||||
<if test="cityCode != null">city_code,</if>
|
||||
<if test="districtCode != null">district_code,</if>
|
||||
<if test="detailAddress != null">detail_address,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="delFlag != null">del_flag,</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="userAddrId != null">#{userAddrId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="receiveName != null">#{receiveName},</if>
|
||||
<if test="receivePhone != null">#{receivePhone},</if>
|
||||
<if test="provinceCode != null">#{provinceCode},</if>
|
||||
<if test="cityCode != null">#{cityCode},</if>
|
||||
<if test="districtCode != null">#{districtCode},</if>
|
||||
<if test="detailAddress != null">#{detailAddress},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="delFlag != null">#{delFlag},</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="updateUserAddress" parameterType="UserAddress">
|
||||
update user_address
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="receiveName != null">receive_name = #{receiveName},</if>
|
||||
<if test="receivePhone != null">receive_phone = #{receivePhone},</if>
|
||||
<if test="provinceCode != null">province_code = #{provinceCode},</if>
|
||||
<if test="cityCode != null">city_code = #{cityCode},</if>
|
||||
<if test="districtCode != null">district_code = #{districtCode},</if>
|
||||
<if test="detailAddress != null">detail_address = #{detailAddress},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</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 id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUserAddressByUserAddrId" parameterType="Long">
|
||||
delete from user_address where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUserAddressByUserAddrIds" parameterType="String">
|
||||
delete from user_address where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -3,19 +3,6 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.UserFavoritesMapper">
|
||||
|
||||
<resultMap type="UserFavorites" id="UserFavoritesResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="storeId" column="store_id" />
|
||||
<result property="storeProdId" column="store_prod_id" />
|
||||
<result property="version" column="version" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<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>
|
||||
|
||||
<select id="selectUserFavPage" resultType="com.ruoyi.xkt.dto.userFavorite.UserFavoritePageResDTO">
|
||||
SELECT
|
||||
|
|
@ -33,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
JOIN store s ON uf.store_id = s.id
|
||||
WHERE
|
||||
uf.del_flag = 0 AND uf.user_id = #{userId}
|
||||
<if test="storeName != null and storeName != ''"> AND s.store_name = #{storeName}</if>
|
||||
<if test="storeName != null and storeName != ''"> AND s.store_name like concat('%', #{storeName}, '%')</if>
|
||||
<if test="prodArtNum != null and prodArtNum != ''"> AND sp.prod_art_num like concat('%', #{prodArtNum}, '%')</if>
|
||||
</select>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,18 +4,6 @@
|
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xkt.mapper.UserSubscriptionsMapper">
|
||||
|
||||
<resultMap type="UserSubscriptions" id="UserSubscriptionsResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="storeId" column="store_id"/>
|
||||
<result property="version" column="version"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<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>
|
||||
|
||||
<select id="selectUserSubscPage" resultType="com.ruoyi.xkt.dto.userSubscriptions.UserSubscPageResDTO">
|
||||
SELECT
|
||||
us.id AS userSubscId,
|
||||
|
|
@ -34,7 +22,7 @@
|
|||
JOIN store s ON us.store_id = s.id
|
||||
WHERE
|
||||
us.del_flag = 0 AND us.user_id = #{userId}
|
||||
<if test="storeName != null and storeName != ''">and s.store_name = #{storeName}</if>
|
||||
<if test="storeName != null and storeName != ''">and s.store_name LIKE CONCAT('%', #{storeName}, '%')</if>
|
||||
ORDER BY
|
||||
us.create_time DESC
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue