master:去掉系统没用的冗余代码;

pull/1121/head
liujiang 2025-09-20 17:05:45 +08:00
parent b7c5ca8a7c
commit 69b4e08bbb
44 changed files with 13 additions and 2977 deletions

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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));
}
}
*/

View File

@ -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();
}
}

View File

@ -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);
/**
*

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
/**
*

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}
}

View File

@ -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;
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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,

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -18,6 +18,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</mapper>

View File

@ -311,6 +311,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</mapper>

View File

@ -58,7 +58,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</mapper>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>