master:去掉没有的代码,减轻系统体量;
parent
75b33d952f
commit
5ec1f3915e
|
|
@ -4,13 +4,9 @@ import cn.hutool.core.bean.BeanUtil;
|
|||
import com.ruoyi.common.core.controller.XktBaseController;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.page.Page;
|
||||
import com.ruoyi.web.controller.xkt.vo.advert.AdvertPageVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.advertStoreFile.AdvertStoreFilePageVO;
|
||||
import com.ruoyi.xkt.dto.advert.AdvertPageDTO;
|
||||
import com.ruoyi.xkt.dto.advert.AdvertResDTO;
|
||||
import com.ruoyi.xkt.dto.advertStoreFile.AdvertStoreFilePageDTO;
|
||||
import com.ruoyi.xkt.dto.advertStoreFile.AdvertStoreFileResDTO;
|
||||
import com.ruoyi.xkt.service.IAdvertService;
|
||||
import com.ruoyi.xkt.service.IAdvertStoreFileService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import com.ruoyi.common.enums.BusinessType;
|
|||
import com.ruoyi.web.controller.xkt.vo.feedback.FeedbackPageVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.feedback.FeedbackResVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.feedback.FeedbackVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.notice.NoticeResVO;
|
||||
import com.ruoyi.xkt.dto.feedback.FeedbackDTO;
|
||||
import com.ruoyi.xkt.dto.feedback.FeedbackPageDTO;
|
||||
import com.ruoyi.xkt.dto.feedback.FeedbackResDTO;
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
package com.ruoyi.web.controller.xkt;
|
||||
|
||||
import com.ruoyi.common.core.controller.XktBaseController;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 图搜热款Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rest/v1/search-hots")
|
||||
public class PictureSearchHotController extends XktBaseController {
|
||||
|
||||
}
|
||||
|
|
@ -1,91 +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.PictureSearchResult;
|
||||
import com.ruoyi.xkt.service.IPictureSearchResultService;
|
||||
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
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rest/v1/search-results")
|
||||
public class PictureSearchResultController extends XktBaseController {
|
||||
@Autowired
|
||||
private IPictureSearchResultService pictureSearchResultService;
|
||||
|
||||
/**
|
||||
* 查询以图搜款结果列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:result:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PictureSearchResult pictureSearchResult) {
|
||||
startPage();
|
||||
List<PictureSearchResult> list = pictureSearchResultService.selectPictureSearchResultList(pictureSearchResult);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出以图搜款结果列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:result:export')")
|
||||
@Log(title = "以图搜款结果", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PictureSearchResult pictureSearchResult) {
|
||||
List<PictureSearchResult> list = pictureSearchResultService.selectPictureSearchResultList(pictureSearchResult);
|
||||
ExcelUtil<PictureSearchResult> util = new ExcelUtil<PictureSearchResult>(PictureSearchResult.class);
|
||||
util.exportExcel(response, list, "以图搜款结果数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取以图搜款结果详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:result:query')")
|
||||
@GetMapping(value = "/{picSearchResId}")
|
||||
public R getInfo(@PathVariable("picSearchResId") Long picSearchResId) {
|
||||
return success(pictureSearchResultService.selectPictureSearchResultByPicSearchResId(picSearchResId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增以图搜款结果
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:result:add')")
|
||||
@Log(title = "以图搜款结果", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R add(@RequestBody PictureSearchResult pictureSearchResult) {
|
||||
return success(pictureSearchResultService.insertPictureSearchResult(pictureSearchResult));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改以图搜款结果
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:result:edit')")
|
||||
@Log(title = "以图搜款结果", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R edit(@RequestBody PictureSearchResult pictureSearchResult) {
|
||||
return success(pictureSearchResultService.updatePictureSearchResult(pictureSearchResult));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除以图搜款结果
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:result:remove')")
|
||||
@Log(title = "以图搜款结果", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{picSearchResIds}")
|
||||
public R remove(@PathVariable Long[] picSearchResIds) {
|
||||
return success(pictureSearchResultService.deletePictureSearchResultByPicSearchResIds(picSearchResIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -10,8 +10,8 @@ import com.ruoyi.common.enums.BusinessType;
|
|||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.framework.web.service.TokenService;
|
||||
import com.ruoyi.system.service.ISysUserService;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeCertificate.StoreCertResVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeCertificate.StoreCertCreateVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeCertificate.StoreCertResVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeCertificate.StoreCertStepResVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeCertificate.StoreCertUpdateVO;
|
||||
import com.ruoyi.xkt.dto.storeCertificate.StoreCertDTO;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import com.ruoyi.common.core.domain.R;
|
|||
import com.ruoyi.common.core.page.Page;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeCusProdDiscount.*;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProd.StoreProdSkuResVO;
|
||||
import com.ruoyi.xkt.dto.storeCusProdDiscount.*;
|
||||
import com.ruoyi.xkt.service.IStoreCustomerProductDiscountService;
|
||||
import io.swagger.annotations.Api;
|
||||
|
|
|
|||
|
|
@ -27,15 +27,11 @@ import com.ruoyi.web.controller.xkt.vo.express.ExpressWaybillNosVO;
|
|||
import com.ruoyi.web.controller.xkt.vo.order.*;
|
||||
import com.ruoyi.xkt.domain.StoreOrder;
|
||||
import com.ruoyi.xkt.domain.StoreOrderDetail;
|
||||
import com.ruoyi.xkt.dto.express.ExpressCancelReqDTO;
|
||||
import com.ruoyi.xkt.dto.express.ExpressInterceptReqDTO;
|
||||
import com.ruoyi.xkt.dto.express.ExpressShippingLabelDTO;
|
||||
import com.ruoyi.xkt.dto.order.*;
|
||||
import com.ruoyi.xkt.enums.EExpressStatus;
|
||||
import com.ruoyi.xkt.enums.EOrderStatus;
|
||||
import com.ruoyi.xkt.enums.EPayChannel;
|
||||
import com.ruoyi.xkt.enums.EPayPage;
|
||||
import com.ruoyi.xkt.manager.ExpressManager;
|
||||
import com.ruoyi.xkt.manager.PaymentManager;
|
||||
import com.ruoyi.xkt.service.IExpressService;
|
||||
import com.ruoyi.xkt.service.IStoreOrderService;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ import com.ruoyi.xkt.domain.StoreProductBarcodeMatch;
|
|||
import com.ruoyi.xkt.dto.storeProdBarcodeMatch.BarcodeMatchDTO;
|
||||
import com.ruoyi.xkt.service.IStoreProductBarcodeMatchService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ 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.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import com.ruoyi.xkt.service.IStoreProductColorService;
|
|||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
|
|
|||
|
|
@ -4,13 +4,10 @@ import cn.hutool.core.bean.BeanUtil;
|
|||
import com.ruoyi.common.core.controller.XktBaseController;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.page.Page;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProd.StoreProdPageVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProdColorPrice.StoreProdColorPricePageVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProdColorPrice.StoreProdColorPriceVO;
|
||||
import com.ruoyi.xkt.dto.storeProdColorPrice.StoreProdColorPricePageDTO;
|
||||
import com.ruoyi.xkt.dto.storeProdColorPrice.StoreProdColorPriceResDTO;
|
||||
import com.ruoyi.xkt.dto.storeProduct.StoreProdPageDTO;
|
||||
import com.ruoyi.xkt.dto.storeProduct.StoreProdPageResDTO;
|
||||
import com.ruoyi.xkt.service.IStoreProductColorPriceService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@ import com.ruoyi.common.enums.BusinessType;
|
|||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProdStock.*;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProdStorage.StoreStorageExportVO;
|
||||
import com.ruoyi.xkt.dto.storeProdStorage.StoreStorageDetailDownloadDTO;
|
||||
import com.ruoyi.xkt.dto.storeProdStorage.StoreStorageExportDTO;
|
||||
import com.ruoyi.xkt.dto.storeProductStock.*;
|
||||
import com.ruoyi.xkt.service.IStoreProductStockService;
|
||||
import io.swagger.annotations.Api;
|
||||
|
|
@ -107,11 +104,10 @@ public class StoreProductStockController extends XktBaseController {
|
|||
List<StoreProdStockDownloadDTO> downloadList = storeProdStockService.export(BeanUtil.toBean(exportVO, StoreProdStockExportDTO.class));
|
||||
ExcelUtil<StoreProdStockDownloadDTO> util = new ExcelUtil<>(StoreProdStockDownloadDTO.class);
|
||||
// 设置下载excel名
|
||||
String encodedFileName = URLEncoder.encode("库存明细" + DateUtils.getDate(), "UTF-8").replaceAll("\\+", "%20");
|
||||
String encodedFileName = URLEncoder.encode("库存明细" + DateUtils.getDate(), "UTF-8").replaceAll("\\+", "%20");
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + encodedFileName + ".xlsx");
|
||||
util.exportExcel(response, downloadList, "库存明细");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,16 +6,12 @@ import com.ruoyi.common.core.controller.XktBaseController;
|
|||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.page.Page;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProdStorage.StoreProdStoragePageVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProdStorage.StoreProdStorageResVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProdStorage.StoreProdStorageVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeSale.StoreSaleExportVO;
|
||||
import com.ruoyi.xkt.dto.storeProdStorage.StoreProdStorageDTO;
|
||||
import com.ruoyi.xkt.dto.storeProdStorage.StoreProdStoragePageDTO;
|
||||
import com.ruoyi.xkt.dto.storeProdStorage.StoreProdStoragePageResDTO;
|
||||
import com.ruoyi.xkt.dto.storeSale.StoreSaleDownloadDTO;
|
||||
import com.ruoyi.xkt.dto.storeSale.StoreSaleExportDTO;
|
||||
import com.ruoyi.xkt.service.IStoreProductStorageService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
|
@ -24,9 +20,6 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
|||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口商品入库Controller
|
||||
*
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ import javax.servlet.http.HttpServletResponse;
|
|||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* 档口商品入库明细Controller
|
||||
|
|
@ -49,7 +48,7 @@ public class StoreProductStorageDetailController extends XktBaseController {
|
|||
List<StoreStorageDetailDownloadDTO> downloadList = storageDetailService.export(BeanUtil.toBean(exportVO, StoreStorageExportDTO.class));
|
||||
ExcelUtil<StoreStorageDetailDownloadDTO> util = new ExcelUtil<>(StoreStorageDetailDownloadDTO.class);
|
||||
// 设置下载excel名
|
||||
String encodedFileName = URLEncoder.encode("入库记录" + DateUtils.getDate(), "UTF-8").replaceAll("\\+", "%20");
|
||||
String encodedFileName = URLEncoder.encode("入库记录" + DateUtils.getDate(), "UTF-8").replaceAll("\\+", "%20");
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + encodedFileName + ".xlsx");
|
||||
util.exportExcel(response, downloadList, "入库记录");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,16 @@ import java.util.List;
|
|||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
* <p>
|
||||
* 新增档口子账号
|
||||
* <p>
|
||||
* 修改档口子账号
|
||||
* <p>
|
||||
* 获取档口子账号列表
|
||||
* <p>
|
||||
* 获取档口子账号详情
|
||||
* <p>
|
||||
* 停用/启用档口子账号
|
||||
*//*
|
||||
|
||||
@Api(tags = "档口子账号")
|
||||
|
|
@ -39,8 +49,8 @@ public class StoreRoleAccountController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 新增档口子账号
|
||||
*//*
|
||||
* 新增档口子账号
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:add')")
|
||||
@ApiOperation(value = "新增档口子账号", httpMethod = "POST", response = R.class)
|
||||
|
|
@ -52,8 +62,8 @@ public class StoreRoleAccountController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 修改档口子账号
|
||||
*//*
|
||||
* 修改档口子账号
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:edit')")
|
||||
@ApiOperation(value = "修改档口子账号", httpMethod = "PUT", response = R.class)
|
||||
|
|
@ -65,8 +75,8 @@ public class StoreRoleAccountController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 获取档口子账号列表
|
||||
*//*
|
||||
* 获取档口子账号列表
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:role:list')")
|
||||
@ApiOperation(value = "获取档口子账号列表", httpMethod = "POST", response = R.class)
|
||||
|
|
@ -77,8 +87,8 @@ public class StoreRoleAccountController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 获取档口子账号详情
|
||||
*//*
|
||||
* 获取档口子账号详情
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:query')")
|
||||
@ApiOperation(value = "获取档口子账号详情", httpMethod = "POST", response = R.class)
|
||||
|
|
@ -89,8 +99,8 @@ public class StoreRoleAccountController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 停用/启用档口子账号
|
||||
*//*
|
||||
* 停用/启用档口子账号
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
||||
@ApiOperation(value = "停用/启用档口子账号", httpMethod = "PUT", response = R.class)
|
||||
|
|
|
|||
|
|
@ -29,6 +29,16 @@ import java.util.List;
|
|||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
* <p>
|
||||
* 新增档口子角色
|
||||
* <p>
|
||||
* 编辑档口子角色
|
||||
* <p>
|
||||
* 获取档口子角色详细信息
|
||||
* <p>
|
||||
* 获取档口子角色列表
|
||||
* <p>
|
||||
* 停用/启用档口子角色
|
||||
*//*
|
||||
|
||||
@Api(tags = "档口子角色")
|
||||
|
|
@ -46,8 +56,8 @@ public class StoreRoleController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 新增档口子角色
|
||||
*//*
|
||||
* 新增档口子角色
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:role:add')")
|
||||
@ApiOperation(value = "新增档口子角色", httpMethod = "POST", response = R.class)
|
||||
|
|
@ -60,8 +70,8 @@ public class StoreRoleController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 编辑档口子角色
|
||||
*//*
|
||||
* 编辑档口子角色
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
||||
@ApiOperation(value = "编辑档口子角色", httpMethod = "PUT", response = R.class)
|
||||
|
|
@ -73,8 +83,8 @@ public class StoreRoleController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 获取档口子角色详细信息
|
||||
*//*
|
||||
* 获取档口子角色详细信息
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:role:query')")
|
||||
@ApiOperation(value = "获取档口子角色详细信息", httpMethod = "GET", response = R.class)
|
||||
|
|
@ -91,8 +101,8 @@ public class StoreRoleController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 获取档口子角色列表
|
||||
*//*
|
||||
* 获取档口子角色列表
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:role:list')")
|
||||
@ApiOperation(value = "查询档口销售出库列表", httpMethod = "POST", response = R.class)
|
||||
|
|
@ -103,8 +113,8 @@ public class StoreRoleController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 停用/启用档口子角色
|
||||
*//*
|
||||
* 停用/启用档口子角色
|
||||
*//*
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
||||
@ApiOperation(value = "停用/启用档口子角色", httpMethod = "PUT", response = R.class)
|
||||
|
|
|
|||
|
|
@ -22,6 +22,18 @@ import java.util.List;
|
|||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
* <p>
|
||||
* 查询档口子角色菜单列表
|
||||
* <p>
|
||||
* 导出档口子角色菜单列表
|
||||
* <p>
|
||||
* 获取档口子角色菜单详细信息
|
||||
* <p>
|
||||
* 新增档口子角色菜单
|
||||
* <p>
|
||||
* 修改档口子角色菜单
|
||||
* <p>
|
||||
* 删除档口子角色菜单
|
||||
*//*
|
||||
|
||||
@RestController
|
||||
|
|
@ -32,8 +44,8 @@ public class StoreRoleMenuController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 查询档口子角色菜单列表
|
||||
*//*
|
||||
* 查询档口子角色菜单列表
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:list')")
|
||||
@GetMapping("/list")
|
||||
|
|
@ -45,8 +57,8 @@ public class StoreRoleMenuController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 导出档口子角色菜单列表
|
||||
*//*
|
||||
* 导出档口子角色菜单列表
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:export')")
|
||||
@Log(title = "档口子角色菜单", businessType = BusinessType.EXPORT)
|
||||
|
|
@ -59,8 +71,8 @@ public class StoreRoleMenuController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 获取档口子角色菜单详细信息
|
||||
*//*
|
||||
* 获取档口子角色菜单详细信息
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:query')")
|
||||
@GetMapping(value = "/{storeRoleMenuId}")
|
||||
|
|
@ -70,8 +82,8 @@ public class StoreRoleMenuController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 新增档口子角色菜单
|
||||
*//*
|
||||
* 新增档口子角色菜单
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:add')")
|
||||
@Log(title = "档口子角色菜单", businessType = BusinessType.INSERT)
|
||||
|
|
@ -82,8 +94,8 @@ public class StoreRoleMenuController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 修改档口子角色菜单
|
||||
*//*
|
||||
* 修改档口子角色菜单
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:edit')")
|
||||
@Log(title = "档口子角色菜单", businessType = BusinessType.UPDATE)
|
||||
|
|
@ -94,8 +106,8 @@ public class StoreRoleMenuController extends XktBaseController {
|
|||
|
||||
*/
|
||||
/**
|
||||
* 删除档口子角色菜单
|
||||
*//*
|
||||
* 删除档口子角色菜单
|
||||
*//*
|
||||
|
||||
// // @PreAuthorize("@ss.hasPermi('system:menu:remove')")
|
||||
@Log(title = "档口子角色菜单", businessType = BusinessType.DELETE)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import com.ruoyi.common.core.page.Page;
|
|||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.system.domain.SysOperLog;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeCustomer.StoreCusGeneralSaleVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeSale.*;
|
||||
import com.ruoyi.xkt.dto.storeSale.*;
|
||||
|
|
@ -116,7 +115,7 @@ public class StoreSaleController extends XktBaseController {
|
|||
List<StoreSaleDownloadDTO> downloadList = storeSaleService.export(BeanUtil.toBean(exportVO, StoreSaleExportDTO.class));
|
||||
ExcelUtil<StoreSaleDownloadDTO> util = new ExcelUtil<>(StoreSaleDownloadDTO.class);
|
||||
// 设置下载excel名
|
||||
String encodedFileName = URLEncoder.encode("销售出库" + DateUtils.getDate(), "UTF-8").replaceAll("\\+", "%20");
|
||||
String encodedFileName = URLEncoder.encode("销售出库" + DateUtils.getDate(), "UTF-8").replaceAll("\\+", "%20");
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + encodedFileName + ".xlsx");
|
||||
util.exportExcel(response, downloadList, "销售出库");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,91 +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.UserAccount;
|
||||
import com.ruoyi.xkt.service.IUserAccountService;
|
||||
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
|
||||
*/
|
||||
//@RestController
|
||||
//@RequestMapping("/rest/v1/user-accs")
|
||||
public class UserAccountController extends XktBaseController {
|
||||
@Autowired
|
||||
private IUserAccountService userAccountService;
|
||||
|
||||
/**
|
||||
* 查询用户账户(支付宝、微信等)列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(UserAccount userAccount) {
|
||||
startPage();
|
||||
List<UserAccount> list = userAccountService.selectUserAccountList(userAccount);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出用户账户(支付宝、微信等)列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:export')")
|
||||
@Log(title = "用户账户(支付宝、微信等)", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, UserAccount userAccount) {
|
||||
List<UserAccount> list = userAccountService.selectUserAccountList(userAccount);
|
||||
ExcelUtil<UserAccount> util = new ExcelUtil<UserAccount>(UserAccount.class);
|
||||
util.exportExcel(response, list, "用户账户(支付宝、微信等)数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户账户(支付宝、微信等)详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:query')")
|
||||
@GetMapping(value = "/{userAccId}")
|
||||
public R getInfo(@PathVariable("userAccId") Long userAccId) {
|
||||
return success(userAccountService.selectUserAccountByUserAccId(userAccId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户账户(支付宝、微信等)
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:add')")
|
||||
@Log(title = "用户账户(支付宝、微信等)", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R add(@RequestBody UserAccount userAccount) {
|
||||
return success(userAccountService.insertUserAccount(userAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户账户(支付宝、微信等)
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:edit')")
|
||||
@Log(title = "用户账户(支付宝、微信等)", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R edit(@RequestBody UserAccount userAccount) {
|
||||
return success(userAccountService.updateUserAccount(userAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户账户(支付宝、微信等)
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:account:remove')")
|
||||
@Log(title = "用户账户(支付宝、微信等)", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{userAccIds}")
|
||||
public R remove(@PathVariable Long[] userAccIds) {
|
||||
return success(userAccountService.deleteUserAccountByUserAccIds(userAccIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,91 +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.UserBillingStatement;
|
||||
import com.ruoyi.xkt.service.IUserBillingStatementService;
|
||||
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
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rest/v1/user-bill-stats")
|
||||
public class UserBillingStatementController extends XktBaseController {
|
||||
@Autowired
|
||||
private IUserBillingStatementService userBillingStatementService;
|
||||
|
||||
/**
|
||||
* 查询用户对账明细列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:statement:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(UserBillingStatement userBillingStatement) {
|
||||
startPage();
|
||||
List<UserBillingStatement> list = userBillingStatementService.selectUserBillingStatementList(userBillingStatement);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出用户对账明细列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:statement:export')")
|
||||
@Log(title = "用户对账明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, UserBillingStatement userBillingStatement) {
|
||||
List<UserBillingStatement> list = userBillingStatementService.selectUserBillingStatementList(userBillingStatement);
|
||||
ExcelUtil<UserBillingStatement> util = new ExcelUtil<UserBillingStatement>(UserBillingStatement.class);
|
||||
util.exportExcel(response, list, "用户对账明细数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户对账明细详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:statement:query')")
|
||||
@GetMapping(value = "/{userBillStatId}")
|
||||
public R getInfo(@PathVariable("userBillStatId") Long userBillStatId) {
|
||||
return success(userBillingStatementService.selectUserBillingStatementByUserBillStatId(userBillStatId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户对账明细
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:statement:add')")
|
||||
@Log(title = "用户对账明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R add(@RequestBody UserBillingStatement userBillingStatement) {
|
||||
return success(userBillingStatementService.insertUserBillingStatement(userBillingStatement));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户对账明细
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:statement:edit')")
|
||||
@Log(title = "用户对账明细", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R edit(@RequestBody UserBillingStatement userBillingStatement) {
|
||||
return success(userBillingStatementService.updateUserBillingStatement(userBillingStatement));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户对账明细
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:statement:remove')")
|
||||
@Log(title = "用户对账明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{userBillStatIds}")
|
||||
public R remove(@PathVariable Long[] userBillStatIds) {
|
||||
return success(userBillingStatementService.deleteUserBillingStatementByUserBillStatIds(userBillStatIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -6,7 +6,6 @@ import com.ruoyi.common.core.controller.XktBaseController;
|
|||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.page.Page;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.web.controller.xkt.vo.storeProd.StoreProdStatusCountResVO;
|
||||
import com.ruoyi.web.controller.xkt.vo.userFavorite.*;
|
||||
import com.ruoyi.xkt.dto.userFavorite.*;
|
||||
import com.ruoyi.xkt.service.IUserFavoritesService;
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
package com.ruoyi.web.controller.xkt;
|
||||
|
||||
import com.ruoyi.common.core.controller.XktBaseController;
|
||||
import com.ruoyi.xkt.service.IUserNoticeSettingService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 用户通知接收设置Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rest/v1/user-notice-settings")
|
||||
public class UserNoticeSettingController extends XktBaseController {
|
||||
@Autowired
|
||||
private IUserNoticeSettingService userNoticeSettingService;
|
||||
|
||||
}
|
||||
|
|
@ -4,9 +4,7 @@ import com.ruoyi.common.utils.desensitization.Desensitization;
|
|||
import com.ruoyi.common.utils.desensitization.SensitiveTypeEnum;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
package com.ruoyi.web.controller.xkt.vo.store;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author liujiang
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@ package com.ruoyi.web.controller.xkt.vo.storeProd;
|
|||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
package com.ruoyi.web.controller.xkt.vo.userFavorite;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2267,47 +2267,6 @@ CREATE TABLE `picture_search`
|
|||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 73 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '以图搜款' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for picture_search_hot
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `picture_search_hot`;
|
||||
CREATE TABLE `picture_search_hot`
|
||||
(
|
||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '图搜热款ID',
|
||||
`store_prod_file_id` bigint UNSIGNED NOT NULL COMMENT 'store_prod_file.id',
|
||||
`file_id` bigint UNSIGNED NOT NULL COMMENT 'sys_file.id',
|
||||
`store_id` bigint UNSIGNED NOT NULL COMMENT 'store.id',
|
||||
`search_count` int UNSIGNED NULL DEFAULT NULL COMMENT '搜索次数(包括主动搜索和搜索结果)',
|
||||
`version` bigint UNSIGNED NOT NULL COMMENT '版本号',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '图搜热款' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for picture_search_result
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `picture_search_result`;
|
||||
CREATE TABLE `picture_search_result`
|
||||
(
|
||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '文件搜索结果ID',
|
||||
`pic_search_id` bigint UNSIGNED NOT NULL COMMENT '搜索的文件ID',
|
||||
`file_id` bigint UNSIGNED NOT NULL COMMENT '搜索结果的文件ID',
|
||||
`category_id` int UNSIGNED NULL DEFAULT NULL COMMENT '搜索结果分类ID',
|
||||
`score` decimal(6, 4) UNSIGNED NULL DEFAULT NULL COMMENT '搜索结果评分',
|
||||
`sort_expr_values` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '排序描述',
|
||||
`version` bigint UNSIGNED NOT NULL COMMENT '版本号',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '以图搜款结果' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for quick_function
|
||||
|
|
|
|||
|
|
@ -1,69 +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 org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 图搜热款对象 picture_search_hot
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class PictureSearchHot extends XktBaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 图搜热款ID
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* store_prod_file.id
|
||||
*/
|
||||
@Excel(name = "store_prod_file.id")
|
||||
private Long storeProdFileId;
|
||||
|
||||
/**
|
||||
* sys_file.id
|
||||
*/
|
||||
@Excel(name = "sys_file.id")
|
||||
private Long fileId;
|
||||
|
||||
/**
|
||||
* store.id
|
||||
*/
|
||||
@Excel(name = "store.id")
|
||||
private Long storeId;
|
||||
|
||||
/**
|
||||
* 搜索次数(包括主动搜索和搜索结果)
|
||||
*/
|
||||
@Excel(name = "搜索次数", readConverterExp = "包=括主动搜索和搜索结果")
|
||||
private Integer searchCount;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("storeProdFileId", getStoreProdFileId())
|
||||
.append("fileId", getFileId())
|
||||
.append("storeId", getStoreId())
|
||||
.append("searchCount", getSearchCount())
|
||||
.append("version", getVersion())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,78 +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 org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 以图搜款结果对象 picture_search_result
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class PictureSearchResult extends XktBaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 文件搜索结果ID
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 搜索的文件ID
|
||||
*/
|
||||
@Excel(name = "搜索的文件ID")
|
||||
private Long picSearchId;
|
||||
|
||||
/**
|
||||
* 搜索结果的文件ID
|
||||
*/
|
||||
@Excel(name = "搜索结果的文件ID")
|
||||
private Long fileId;
|
||||
|
||||
/**
|
||||
* 搜索结果分类ID
|
||||
*/
|
||||
@Excel(name = "搜索结果分类ID")
|
||||
private Integer categoryId;
|
||||
|
||||
/**
|
||||
* 搜索结果评分
|
||||
*/
|
||||
@Excel(name = "搜索结果评分")
|
||||
private BigDecimal score;
|
||||
|
||||
/**
|
||||
* 排序描述
|
||||
*/
|
||||
@Excel(name = "排序描述")
|
||||
private String sortExprValues;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("picSearchId", getPicSearchId())
|
||||
.append("fileId", getFileId())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("score", getScore())
|
||||
.append("sortExprValues", getSortExprValues())
|
||||
.append("version", getVersion())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,78 +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 org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 用户账户(支付宝、微信等)对象 user_account
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class UserAccount extends XktBaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 用户账户ID
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* sys_user.id
|
||||
*/
|
||||
@Excel(name = "sys_user.id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 用户类型(支付宝、微信等)
|
||||
*/
|
||||
@Excel(name = "用户类型", readConverterExp = "支=付宝、微信等")
|
||||
private Long accountType;
|
||||
|
||||
/**
|
||||
* 账户电话
|
||||
*/
|
||||
@Excel(name = "账户电话")
|
||||
private String accountPhone;
|
||||
|
||||
/**
|
||||
* 账户名称
|
||||
*/
|
||||
@Excel(name = "账户名称")
|
||||
private String accountName;
|
||||
|
||||
/**
|
||||
* 账户余额
|
||||
*/
|
||||
@Excel(name = "账户余额")
|
||||
private BigDecimal balance;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userId", getUserId())
|
||||
.append("accountType", getAccountType())
|
||||
.append("accountPhone", getAccountPhone())
|
||||
.append("accountName", getAccountName())
|
||||
.append("balance", getBalance())
|
||||
.append("version", getVersion())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,106 +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 org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 用户对账明细对象 user_billing_statement
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class UserBillingStatement extends XktBaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 用户账户明细ID
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* sys_user.id
|
||||
*/
|
||||
@Excel(name = "sys_user.id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* user_account.id
|
||||
*/
|
||||
@Excel(name = "user_account.id")
|
||||
private Long userAccId;
|
||||
|
||||
/**
|
||||
* 账单code
|
||||
*/
|
||||
@Excel(name = "账单code")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 交易类型
|
||||
*/
|
||||
@Excel(name = "交易类型")
|
||||
private Long transType;
|
||||
|
||||
/**
|
||||
* 交易备注
|
||||
*/
|
||||
@Excel(name = "交易备注")
|
||||
private String transRemark;
|
||||
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
@Excel(name = "支付方式")
|
||||
private Long payWay;
|
||||
|
||||
/**
|
||||
* 收入
|
||||
*/
|
||||
@Excel(name = "收入")
|
||||
private BigDecimal income;
|
||||
|
||||
/**
|
||||
* 支出
|
||||
*/
|
||||
@Excel(name = "支出")
|
||||
private BigDecimal expenses;
|
||||
|
||||
/**
|
||||
* 账户余额
|
||||
*/
|
||||
@Excel(name = "账户余额")
|
||||
private BigDecimal accBalance;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userId", getUserId())
|
||||
.append("userAccId", getUserAccId())
|
||||
.append("code", getCode())
|
||||
.append("transType", getTransType())
|
||||
.append("transRemark", getTransRemark())
|
||||
.append("payWay", getPayWay())
|
||||
.append("income", getIncome())
|
||||
.append("expenses", getExpenses())
|
||||
.append("accBalance", getAccBalance())
|
||||
.append("version", getVersion())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
package com.ruoyi.xkt.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.ruoyi.common.core.domain.XktBaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 用户通知接收设置对象 user_notice_setting
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class UserNoticeSetting extends XktBaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 用户设置是否接收通知ID
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* sys_user.id
|
||||
*/
|
||||
private Long userId;
|
||||
/**
|
||||
* 是否允许接收系统消息通知 0不接收 1接收
|
||||
*/
|
||||
private Integer sysMsgNotice;
|
||||
/**
|
||||
* [电商卖家]是否允许接收代发订单消息通知 0不接收 1接收
|
||||
*/
|
||||
private Integer orderNotice;
|
||||
/**
|
||||
* [电商卖家]是否允许接收关注档口消息通知 0不接收 1接收
|
||||
*/
|
||||
private Integer focusNotice;
|
||||
/**
|
||||
* [电商卖家]是否允许接收收藏商品消息通知 0不接收 1接收
|
||||
*/
|
||||
private Integer favoriteNotice;
|
||||
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
package com.ruoyi.xkt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.PictureSearchHot;
|
||||
|
||||
/**
|
||||
* 图搜热款Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface PictureSearchHotMapper extends BaseMapper<PictureSearchHot> {
|
||||
|
||||
}
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
package com.ruoyi.xkt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.PictureSearchResult;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 以图搜款结果Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface PictureSearchResultMapper extends BaseMapper<PictureSearchResult> {
|
||||
/**
|
||||
* 查询以图搜款结果
|
||||
*
|
||||
* @param id 以图搜款结果主键
|
||||
* @return 以图搜款结果
|
||||
*/
|
||||
public PictureSearchResult selectPictureSearchResultByPicSearchResId(Long id);
|
||||
|
||||
/**
|
||||
* 查询以图搜款结果列表
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 以图搜款结果集合
|
||||
*/
|
||||
public List<PictureSearchResult> selectPictureSearchResultList(PictureSearchResult pictureSearchResult);
|
||||
|
||||
/**
|
||||
* 新增以图搜款结果
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPictureSearchResult(PictureSearchResult pictureSearchResult);
|
||||
|
||||
/**
|
||||
* 修改以图搜款结果
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePictureSearchResult(PictureSearchResult pictureSearchResult);
|
||||
|
||||
/**
|
||||
* 删除以图搜款结果
|
||||
*
|
||||
* @param id 以图搜款结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePictureSearchResultByPicSearchResId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除以图搜款结果
|
||||
*
|
||||
* @param picSearchResIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePictureSearchResultByPicSearchResIds(Long[] picSearchResIds);
|
||||
}
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
package com.ruoyi.xkt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.UserAccount;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户账户(支付宝、微信等)Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface UserAccountMapper extends BaseMapper<UserAccount> {
|
||||
/**
|
||||
* 查询用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param id 用户账户(支付宝、微信等)主键
|
||||
* @return 用户账户(支付宝、微信等)
|
||||
*/
|
||||
public UserAccount selectUserAccountByUserAccId(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户账户(支付宝、微信等)列表
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 用户账户(支付宝、微信等)集合
|
||||
*/
|
||||
public List<UserAccount> selectUserAccountList(UserAccount userAccount);
|
||||
|
||||
/**
|
||||
* 新增用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUserAccount(UserAccount userAccount);
|
||||
|
||||
/**
|
||||
* 修改用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserAccount(UserAccount userAccount);
|
||||
|
||||
/**
|
||||
* 删除用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param id 用户账户(支付宝、微信等)主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserAccountByUserAccId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserAccountByUserAccIds(Long[] userAccIds);
|
||||
}
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
package com.ruoyi.xkt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.UserBillingStatement;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户对账明细Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface UserBillingStatementMapper extends BaseMapper<UserBillingStatement> {
|
||||
/**
|
||||
* 查询用户对账明细
|
||||
*
|
||||
* @param id 用户对账明细主键
|
||||
* @return 用户对账明细
|
||||
*/
|
||||
public UserBillingStatement selectUserBillingStatementByUserBillStatId(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户对账明细列表
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 用户对账明细集合
|
||||
*/
|
||||
public List<UserBillingStatement> selectUserBillingStatementList(UserBillingStatement userBillingStatement);
|
||||
|
||||
/**
|
||||
* 新增用户对账明细
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUserBillingStatement(UserBillingStatement userBillingStatement);
|
||||
|
||||
/**
|
||||
* 修改用户对账明细
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserBillingStatement(UserBillingStatement userBillingStatement);
|
||||
|
||||
/**
|
||||
* 删除用户对账明细
|
||||
*
|
||||
* @param id 用户对账明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserBillingStatementByUserBillStatId(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除用户对账明细
|
||||
*
|
||||
* @param userBillStatIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserBillingStatementByUserBillStatIds(Long[] userBillStatIds);
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
package com.ruoyi.xkt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.xkt.domain.UserNoticeSetting;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户通知接收设置Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface UserNoticeSettingMapper extends BaseMapper<UserNoticeSetting> {
|
||||
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
|
||||
/**
|
||||
* 图搜热款Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IPictureSearchHotService {
|
||||
|
||||
}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.domain.PictureSearchResult;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 以图搜款结果Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IPictureSearchResultService {
|
||||
/**
|
||||
* 查询以图搜款结果
|
||||
*
|
||||
* @param picSearchResId 以图搜款结果主键
|
||||
* @return 以图搜款结果
|
||||
*/
|
||||
public PictureSearchResult selectPictureSearchResultByPicSearchResId(Long picSearchResId);
|
||||
|
||||
/**
|
||||
* 查询以图搜款结果列表
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 以图搜款结果集合
|
||||
*/
|
||||
public List<PictureSearchResult> selectPictureSearchResultList(PictureSearchResult pictureSearchResult);
|
||||
|
||||
/**
|
||||
* 新增以图搜款结果
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPictureSearchResult(PictureSearchResult pictureSearchResult);
|
||||
|
||||
/**
|
||||
* 修改以图搜款结果
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePictureSearchResult(PictureSearchResult pictureSearchResult);
|
||||
|
||||
/**
|
||||
* 批量删除以图搜款结果
|
||||
*
|
||||
* @param picSearchResIds 需要删除的以图搜款结果主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePictureSearchResultByPicSearchResIds(Long[] picSearchResIds);
|
||||
|
||||
/**
|
||||
* 删除以图搜款结果信息
|
||||
*
|
||||
* @param picSearchResId 以图搜款结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePictureSearchResultByPicSearchResId(Long picSearchResId);
|
||||
}
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.dto.picture.SearchRequestDTO;
|
||||
import com.ruoyi.xkt.dto.picture.TopProductMatchDTO;
|
||||
import com.ruoyi.xkt.dto.storeProduct.StoreProdViewDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ public interface IStoreService {
|
|||
|
||||
/**
|
||||
* 获取今日商品销售额前5
|
||||
*
|
||||
* @param storeId 档口ID
|
||||
* @return StoreIndexTodaySaleResDTO
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,61 +0,0 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.domain.UserAccount;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户账户(支付宝、微信等)Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IUserAccountService {
|
||||
/**
|
||||
* 查询用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccId 用户账户(支付宝、微信等)主键
|
||||
* @return 用户账户(支付宝、微信等)
|
||||
*/
|
||||
public UserAccount selectUserAccountByUserAccId(Long userAccId);
|
||||
|
||||
/**
|
||||
* 查询用户账户(支付宝、微信等)列表
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 用户账户(支付宝、微信等)集合
|
||||
*/
|
||||
public List<UserAccount> selectUserAccountList(UserAccount userAccount);
|
||||
|
||||
/**
|
||||
* 新增用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUserAccount(UserAccount userAccount);
|
||||
|
||||
/**
|
||||
* 修改用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserAccount(UserAccount userAccount);
|
||||
|
||||
/**
|
||||
* 批量删除用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccIds 需要删除的用户账户(支付宝、微信等)主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserAccountByUserAccIds(Long[] userAccIds);
|
||||
|
||||
/**
|
||||
* 删除用户账户(支付宝、微信等)信息
|
||||
*
|
||||
* @param userAccId 用户账户(支付宝、微信等)主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserAccountByUserAccId(Long userAccId);
|
||||
}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.xkt.domain.UserBillingStatement;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户对账明细Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IUserBillingStatementService {
|
||||
/**
|
||||
* 查询用户对账明细
|
||||
*
|
||||
* @param userBillStatId 用户对账明细主键
|
||||
* @return 用户对账明细
|
||||
*/
|
||||
public UserBillingStatement selectUserBillingStatementByUserBillStatId(Long userBillStatId);
|
||||
|
||||
/**
|
||||
* 查询用户对账明细列表
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 用户对账明细集合
|
||||
*/
|
||||
public List<UserBillingStatement> selectUserBillingStatementList(UserBillingStatement userBillingStatement);
|
||||
|
||||
/**
|
||||
* 新增用户对账明细
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUserBillingStatement(UserBillingStatement userBillingStatement);
|
||||
|
||||
/**
|
||||
* 修改用户对账明细
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserBillingStatement(UserBillingStatement userBillingStatement);
|
||||
|
||||
/**
|
||||
* 批量删除用户对账明细
|
||||
*
|
||||
* @param userBillStatIds 需要删除的用户对账明细主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserBillingStatementByUserBillStatIds(Long[] userBillStatIds);
|
||||
|
||||
/**
|
||||
* 删除用户对账明细信息
|
||||
*
|
||||
* @param userBillStatId 用户对账明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserBillingStatementByUserBillStatId(Long userBillStatId);
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
/**
|
||||
* 用户通知接收设置Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
public interface IUserNoticeSettingService {
|
||||
|
||||
}
|
||||
|
|
@ -1,15 +1,11 @@
|
|||
package com.ruoyi.xkt.service;
|
||||
|
||||
import com.ruoyi.common.core.page.Page;
|
||||
import com.ruoyi.xkt.domain.UserSubscriptions;
|
||||
import com.ruoyi.xkt.dto.userFavorite.UserFavoritePageDTO;
|
||||
import com.ruoyi.xkt.dto.userSubscriptions.UserSubscDTO;
|
||||
import com.ruoyi.xkt.dto.userSubscriptions.UserSubscDeleteDTO;
|
||||
import com.ruoyi.xkt.dto.userSubscriptions.UserSubscPageDTO;
|
||||
import com.ruoyi.xkt.dto.userSubscriptions.UserSubscPageResDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户关注档口Service接口
|
||||
*
|
||||
|
|
@ -20,6 +16,7 @@ public interface IUserSubscriptionsService {
|
|||
|
||||
/**
|
||||
* 新增用户关注档口
|
||||
*
|
||||
* @param subscDTO 新增用户关注档口入参
|
||||
* @return Integer
|
||||
*/
|
||||
|
|
@ -27,6 +24,7 @@ public interface IUserSubscriptionsService {
|
|||
|
||||
/**
|
||||
* 用户批量取消关注档口
|
||||
*
|
||||
* @param deleteDTO 取消关注档口入参
|
||||
* @return Integer
|
||||
*/
|
||||
|
|
@ -34,8 +32,9 @@ public interface IUserSubscriptionsService {
|
|||
|
||||
/**
|
||||
* 用户关注档口列表
|
||||
*
|
||||
* @param pageDTO 查询入参
|
||||
* @return Page<UserSubscPageResDTO>
|
||||
* @return Page<UserSubscPageResDTO>
|
||||
*/
|
||||
Page<UserSubscPageResDTO> page(UserSubscPageDTO pageDTO);
|
||||
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ public class AdminAdvertRoundServiceImpl implements IAdminAdvertRoundService {
|
|||
public AdminAdRoundStatusCountResDTO statusCount() {
|
||||
final Date now = java.sql.Date.valueOf(LocalDate.now().plusDays(1));
|
||||
final Date sixMonthAgo = java.sql.Date.valueOf(LocalDate.now().minusMonths(6));
|
||||
return this.advertRoundMapper.statusCount(sixMonthAgo, now);
|
||||
return this.advertRoundMapper.statusCount(sixMonthAgo, now);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -114,8 +114,8 @@ public class ExpressServiceImpl implements IExpressService {
|
|||
Assert.notEmpty(cityCode);
|
||||
Assert.notEmpty(countyCode);
|
||||
Map<String, ExpressFeeConfig> map = expressFeeConfigMapper.selectList(Wrappers.lambdaQuery(ExpressFeeConfig.class)
|
||||
.eq(ExpressFeeConfig::getExpressId, expressId)
|
||||
.in(ExpressFeeConfig::getRegionCode, Arrays.asList(provinceCode, cityCode, countyCode)))
|
||||
.eq(ExpressFeeConfig::getExpressId, expressId)
|
||||
.in(ExpressFeeConfig::getRegionCode, Arrays.asList(provinceCode, cityCode, countyCode)))
|
||||
.stream()
|
||||
//过滤掉已被删除的配置
|
||||
.filter(BeanValidators::exists)
|
||||
|
|
|
|||
|
|
@ -213,17 +213,17 @@ public class FinanceBillServiceImpl implements IFinanceBillService {
|
|||
Map<Long, FinanceBillDetail> refundPaymentBillDetailMap;
|
||||
if (CollUtil.isNotEmpty(afterSaleBillUks)) {
|
||||
refundPaymentBillMap = financeBillMapper.selectList(
|
||||
Wrappers.lambdaQuery(FinanceBill.class)
|
||||
.in(FinanceBill::getBusinessUniqueKey, afterSaleBillUks)
|
||||
.eq(FinanceBill::getBillType, EFinBillType.PAYMENT.getValue())
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED))
|
||||
Wrappers.lambdaQuery(FinanceBill.class)
|
||||
.in(FinanceBill::getBusinessUniqueKey, afterSaleBillUks)
|
||||
.eq(FinanceBill::getBillType, EFinBillType.PAYMENT.getValue())
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED))
|
||||
.stream()
|
||||
.collect(Collectors.toMap(SimpleEntity::getId, Function.identity()));
|
||||
Assert.notEmpty(refundPaymentBillMap);
|
||||
refundPaymentBillDetailMap = financeBillDetailMapper.selectList(
|
||||
Wrappers.lambdaQuery(FinanceBillDetail.class)
|
||||
.in(FinanceBillDetail::getFinanceBillId, refundPaymentBillMap.keySet())
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED)).stream()
|
||||
Wrappers.lambdaQuery(FinanceBillDetail.class)
|
||||
.in(FinanceBillDetail::getFinanceBillId, refundPaymentBillMap.keySet())
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED)).stream()
|
||||
.collect(Collectors.toMap(FinanceBillDetail::getRelId, Function.identity()));
|
||||
} else {
|
||||
refundPaymentBillMap = MapUtil.empty();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@ import com.ruoyi.xkt.domain.Notice;
|
|||
import com.ruoyi.xkt.domain.UserNotice;
|
||||
import com.ruoyi.xkt.dto.notice.*;
|
||||
import com.ruoyi.xkt.enums.*;
|
||||
import com.ruoyi.xkt.mapper.*;
|
||||
import com.ruoyi.xkt.mapper.NoticeMapper;
|
||||
import com.ruoyi.xkt.mapper.UserFavoritesMapper;
|
||||
import com.ruoyi.xkt.mapper.UserNoticeMapper;
|
||||
import com.ruoyi.xkt.mapper.UserSubscriptionsMapper;
|
||||
import com.ruoyi.xkt.service.INoticeService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
|
|
@ -42,7 +45,6 @@ public class NoticeServiceImpl implements INoticeService {
|
|||
final UserFavoritesMapper userFavMapper;
|
||||
final UserNoticeMapper userNoticeMapper;
|
||||
final SysUserMapper userMapper;
|
||||
final UserNoticeSettingMapper userNoticeSetMapper;
|
||||
|
||||
/**
|
||||
* 新增公告
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.xkt.service.IPictureSearchHotService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 图搜热款Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@Service
|
||||
public class PictureSearchHotServiceImpl implements IPictureSearchHotService {
|
||||
|
||||
}
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.xkt.domain.PictureSearchResult;
|
||||
import com.ruoyi.xkt.mapper.PictureSearchResultMapper;
|
||||
import com.ruoyi.xkt.service.IPictureSearchResultService;
|
||||
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 PictureSearchResultServiceImpl implements IPictureSearchResultService {
|
||||
@Autowired
|
||||
private PictureSearchResultMapper pictureSearchResultMapper;
|
||||
|
||||
/**
|
||||
* 查询以图搜款结果
|
||||
*
|
||||
* @param picSearchResId 以图搜款结果主键
|
||||
* @return 以图搜款结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public PictureSearchResult selectPictureSearchResultByPicSearchResId(Long picSearchResId) {
|
||||
return pictureSearchResultMapper.selectPictureSearchResultByPicSearchResId(picSearchResId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询以图搜款结果列表
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 以图搜款结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public List<PictureSearchResult> selectPictureSearchResultList(PictureSearchResult pictureSearchResult) {
|
||||
return pictureSearchResultMapper.selectPictureSearchResultList(pictureSearchResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增以图搜款结果
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertPictureSearchResult(PictureSearchResult pictureSearchResult) {
|
||||
pictureSearchResult.setCreateTime(DateUtils.getNowDate());
|
||||
return pictureSearchResultMapper.insertPictureSearchResult(pictureSearchResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改以图搜款结果
|
||||
*
|
||||
* @param pictureSearchResult 以图搜款结果
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int updatePictureSearchResult(PictureSearchResult pictureSearchResult) {
|
||||
pictureSearchResult.setUpdateTime(DateUtils.getNowDate());
|
||||
return pictureSearchResultMapper.updatePictureSearchResult(pictureSearchResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除以图搜款结果
|
||||
*
|
||||
* @param picSearchResIds 需要删除的以图搜款结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deletePictureSearchResultByPicSearchResIds(Long[] picSearchResIds) {
|
||||
return pictureSearchResultMapper.deletePictureSearchResultByPicSearchResIds(picSearchResIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除以图搜款结果信息
|
||||
*
|
||||
* @param picSearchResId 以图搜款结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int deletePictureSearchResultByPicSearchResId(Long picSearchResId) {
|
||||
return pictureSearchResultMapper.deletePictureSearchResultByPicSearchResId(picSearchResId);
|
||||
}
|
||||
}
|
||||
|
|
@ -211,6 +211,7 @@ public class StoreCustomerProductDiscountServiceImpl implements IStoreCustomerPr
|
|||
|
||||
/**
|
||||
* 批量删除客户优惠
|
||||
*
|
||||
* @param deleteDTO 删除优惠入参
|
||||
* @return
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class StoreMemberServiceImpl implements IStoreMemberService {
|
|||
int count = this.storeMemberMapper.insert(storeMember);
|
||||
// 将档口权重增加1
|
||||
Store store = Optional.ofNullable(this.storeMapper.selectOne(new LambdaQueryWrapper<Store>()
|
||||
.eq(Store::getId, createDTO.getStoreId()).eq(Store::getDelFlag, Constants.UNDELETED)))
|
||||
.eq(Store::getId, createDTO.getStoreId()).eq(Store::getDelFlag, Constants.UNDELETED)))
|
||||
.orElseThrow(() -> new ServiceException("档口不存在!", HttpStatus.ERROR));
|
||||
store.setStoreWeight(ObjectUtils.defaultIfNull(store.getStoreWeight(), 0) + 1);
|
||||
this.storeMapper.updateById(store);
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
|
|||
List<Long> spIds = detailInfos.stream().map(StoreOrderDetailInfoDTO::getStoreProdId).distinct()
|
||||
.collect(Collectors.toList());
|
||||
Map<Long, String> mainPicMap = storeProductFileMapper.selectMainPicByStoreProdIdList(spIds,
|
||||
FileType.MAIN_PIC.getValue(), ORDER_NUM_1).stream()
|
||||
FileType.MAIN_PIC.getValue(), ORDER_NUM_1).stream()
|
||||
.collect(Collectors.toMap(StoreProdMainPicDTO::getStoreProdId, StoreProdMainPicDTO::getFileUrl,
|
||||
(o, n) -> n));
|
||||
for (StoreOrderDetailInfoDTO detailInfo : detailInfos) {
|
||||
|
|
@ -447,8 +447,8 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
|
|||
return ListUtil.empty();
|
||||
}
|
||||
Map<String, Date> printTimeMap = expressShippingLabelMapper.selectList(Wrappers
|
||||
.lambdaQuery(ExpressShippingLabel.class)
|
||||
.in(ExpressShippingLabel::getExpressWaybillNo, expressWaybillNos))
|
||||
.lambdaQuery(ExpressShippingLabel.class)
|
||||
.in(ExpressShippingLabel::getExpressWaybillNo, expressWaybillNos))
|
||||
.stream()
|
||||
.collect(Collectors.toMap(ExpressShippingLabel::getExpressWaybillNo,
|
||||
ExpressShippingLabel::getLastPrintTime));
|
||||
|
|
@ -487,9 +487,9 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
|
|||
//物流信息
|
||||
Map<Long, String> expressNameMap = expressService.getAllExpressNameMap();
|
||||
Map<String, List<StoreOrderDetail>> expressWaybillGroupMap = storeOrderDetailMapper.selectList(Wrappers
|
||||
.lambdaQuery(StoreOrderDetail.class)
|
||||
.eq(StoreOrderDetail::getStoreOrderId, storeOrderId)
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED))
|
||||
.lambdaQuery(StoreOrderDetail.class)
|
||||
.eq(StoreOrderDetail::getStoreOrderId, storeOrderId)
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED))
|
||||
.stream()
|
||||
.filter(o -> StrUtil.isNotEmpty(o.getExpressWaybillNo()))
|
||||
.collect(Collectors.groupingBy(StoreOrderDetail::getExpressWaybillNo));
|
||||
|
|
@ -560,7 +560,7 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
|
|||
List<Long> spIds = orderDetailList.stream().map(StoreOrderDetailInfoDTO::getStoreProdId).distinct()
|
||||
.collect(Collectors.toList());
|
||||
Map<Long, String> mainPicMap = storeProductFileMapper.selectMainPicByStoreProdIdList(spIds,
|
||||
FileType.MAIN_PIC.getValue(), ORDER_NUM_1).stream()
|
||||
FileType.MAIN_PIC.getValue(), ORDER_NUM_1).stream()
|
||||
.collect(Collectors.toMap(StoreProdMainPicDTO::getStoreProdId, StoreProdMainPicDTO::getFileUrl,
|
||||
(o, n) -> n));
|
||||
Map<Long, List<StoreOrderDetailInfoDTO>> orderDetailGroup = orderDetailList
|
||||
|
|
@ -1133,9 +1133,9 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
|
|||
List<Long> afterSaleOrderIds = afterSaleOrderList.stream().map(SimpleEntity::getId)
|
||||
.collect(Collectors.toList());
|
||||
Map<Long, List<StoreOrderDetail>> afterSaleOrderDetailGroupMap = storeOrderDetailMapper.selectList(
|
||||
Wrappers.lambdaQuery(StoreOrderDetail.class)
|
||||
.in(StoreOrderDetail::getStoreOrderId, afterSaleOrderIds)
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED))
|
||||
Wrappers.lambdaQuery(StoreOrderDetail.class)
|
||||
.in(StoreOrderDetail::getStoreOrderId, afterSaleOrderIds)
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED))
|
||||
.stream()
|
||||
.filter(o -> {
|
||||
if (!EOrderStatus.AFTER_SALE_COMPLETED.getValue().equals(o.getDetailStatus())) {
|
||||
|
|
@ -1502,9 +1502,9 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
|
|||
public void refundSuccess(Long storeOrderId, List<Long> storeOrderDetailIds, Long operatorId) {
|
||||
StoreOrder order = getAndBaseCheck(storeOrderId);
|
||||
Map<Long, StoreOrderDetail> orderDetailMap = storeOrderDetailMapper.selectList(Wrappers
|
||||
.lambdaQuery(StoreOrderDetail.class)
|
||||
.eq(StoreOrderDetail::getStoreOrderId, order.getId())
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED))
|
||||
.lambdaQuery(StoreOrderDetail.class)
|
||||
.eq(StoreOrderDetail::getStoreOrderId, order.getId())
|
||||
.eq(SimpleEntity::getDelFlag, Constants.UNDELETED))
|
||||
.stream()
|
||||
.collect(Collectors.toMap(SimpleEntity::getId, Function.identity()));
|
||||
for (Long storeOrderDetailId : storeOrderDetailIds) {
|
||||
|
|
@ -1890,8 +1890,8 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
|
|||
.collect(Collectors.toMap(StoreProductColorSize::getId, o -> o));
|
||||
//下单商品档口颜色
|
||||
Map<Long, StoreColor> scMap = storeColorMapper.selectByIds(spcsMap.values().stream()
|
||||
.map(StoreProductColorSize::getStoreColorId)
|
||||
.collect(Collectors.toSet())).stream()
|
||||
.map(StoreProductColorSize::getStoreColorId)
|
||||
.collect(Collectors.toSet())).stream()
|
||||
.collect(Collectors.toMap(StoreColor::getId, Function.identity()));
|
||||
//下单商品
|
||||
List<Long> spIdList = spcsMap.values().stream()
|
||||
|
|
|
|||
|
|
@ -1,14 +1,7 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.xkt.domain.StoreProductFile;
|
||||
import com.ruoyi.xkt.mapper.StoreProductFileMapper;
|
||||
import com.ruoyi.xkt.service.IStoreProductFileService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 档口商品文件Service业务层处理
|
||||
|
|
|
|||
|
|
@ -108,7 +108,6 @@ public class StoreProductServiceImpl implements IStoreProductService {
|
|||
final StoreHomepageMapper storeHomepageMapper;
|
||||
final RedisCache redisCache;
|
||||
final NoticeMapper noticeMapper;
|
||||
final UserNoticeSettingMapper userNoticeSetMapper;
|
||||
final UserNoticeMapper userNoticeMapper;
|
||||
final UserSubscriptionsMapper userSubMapper;
|
||||
final OSSClientWrapper ossClient;
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ public class StoreProductStockServiceImpl implements IStoreProductStockService {
|
|||
/**
|
||||
* 根据档口ID 和 档口商品颜色ID 查询商品库存
|
||||
*
|
||||
* @param dto 入参
|
||||
* @param dto 入参
|
||||
* @return StoreProdStockResDTO
|
||||
*/
|
||||
@Override
|
||||
|
|
@ -490,7 +490,8 @@ public class StoreProductStockServiceImpl implements IStoreProductStockService {
|
|||
|
||||
/**
|
||||
* 获取商品某尺寸的库存
|
||||
* @param size 尺寸
|
||||
*
|
||||
* @param size 尺寸
|
||||
* @param stock 库存
|
||||
* @return 库存
|
||||
*/
|
||||
|
|
@ -502,41 +503,29 @@ public class StoreProductStockServiceImpl implements IStoreProductStockService {
|
|||
return stock.getSize30();
|
||||
} else if (size == 31) {
|
||||
return stock.getSize31();
|
||||
}
|
||||
else if (size == 32) {
|
||||
} else if (size == 32) {
|
||||
return stock.getSize32();
|
||||
}
|
||||
else if (size == 33) {
|
||||
} else if (size == 33) {
|
||||
return stock.getSize33();
|
||||
}
|
||||
else if (size == 34) {
|
||||
} else if (size == 34) {
|
||||
return stock.getSize34();
|
||||
}
|
||||
else if (size == 35) {
|
||||
} else if (size == 35) {
|
||||
return stock.getSize35();
|
||||
}
|
||||
else if (size == 36) {
|
||||
} else if (size == 36) {
|
||||
return stock.getSize36();
|
||||
}
|
||||
else if (size == 37) {
|
||||
} else if (size == 37) {
|
||||
return stock.getSize37();
|
||||
}
|
||||
else if (size == 38) {
|
||||
} else if (size == 38) {
|
||||
return stock.getSize38();
|
||||
}
|
||||
else if (size == 39) {
|
||||
} else if (size == 39) {
|
||||
return stock.getSize39();
|
||||
}
|
||||
else if (size == 40) {
|
||||
} else if (size == 40) {
|
||||
return stock.getSize40();
|
||||
}
|
||||
else if (size == 41) {
|
||||
} else if (size == 41) {
|
||||
return stock.getSize41();
|
||||
}
|
||||
else if (size == 42) {
|
||||
} else if (size == 42) {
|
||||
return stock.getSize42();
|
||||
}
|
||||
else if (size == 43) {
|
||||
} else if (size == 43) {
|
||||
return stock.getSize43();
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
|
|||
/**
|
||||
* 入库单列表获取抵扣需求明细列表
|
||||
*
|
||||
* @param storeId 档口ID
|
||||
* @param storeId 档口ID
|
||||
* @param storageCode 入库单号
|
||||
* @return List<StoreProdStorageDemandDeductDTO>
|
||||
*/
|
||||
|
|
@ -56,8 +56,8 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
|
|||
}
|
||||
// 根据storageCode找到入库单
|
||||
StoreProductStorage storage = Optional.ofNullable(this.prodStorageMapper.selectOne(new LambdaQueryWrapper<StoreProductStorage>()
|
||||
.eq(StoreProductStorage::getCode, storageCode).eq(StoreProductStorage::getStoreId, storeId)
|
||||
.eq(StoreProductStorage::getDelFlag, Constants.UNDELETED)))
|
||||
.eq(StoreProductStorage::getCode, storageCode).eq(StoreProductStorage::getStoreId, storeId)
|
||||
.eq(StoreProductStorage::getDelFlag, Constants.UNDELETED)))
|
||||
.orElseThrow(() -> new ServiceException("档口商品入库不存在!", HttpStatus.ERROR));
|
||||
List<StoreProductStorageDetail> storageDetailList = this.productStorageDetailMapper.selectList(new LambdaQueryWrapper<StoreProductStorageDetail>()
|
||||
.eq(StoreProductStorageDetail::getStoreProdStorId, storage.getId()).eq(StoreProductStorageDetail::getDelFlag, Constants.UNDELETED));
|
||||
|
|
@ -78,13 +78,13 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
|
|||
// 抵扣的需求明细列表 再按照code进行分类
|
||||
Map<String, List<StoreProductStorageDemandDeduct>> demandSizeMap = demandDetailList.stream().collect(Collectors.groupingBy(StoreProductStorageDemandDeduct::getDemandCode));
|
||||
// 生产需求单号列
|
||||
final List<String> demandCodeList = new ArrayList<String>(){{
|
||||
final List<String> demandCodeList = new ArrayList<String>() {{
|
||||
add("");
|
||||
// 生产需求单号列表
|
||||
demandDetailList.stream().map(StoreProductStorageDemandDeduct::getDemandCode).distinct().sorted(Comparator.comparing(x -> x)).forEach(this::add);
|
||||
}};
|
||||
// 初始化数量对比 列
|
||||
List<String> compareNumStrList = new ArrayList<String>(){{
|
||||
List<String> compareNumStrList = new ArrayList<String>() {{
|
||||
add("入库数量");
|
||||
// 根据生产需求单号数量 生成 对应的 抵扣数量
|
||||
demandDetailList.stream().map(StoreProductStorageDemandDeduct::getDemandCode).distinct().forEach(x -> this.add("抵扣需求数量"));
|
||||
|
|
@ -112,7 +112,6 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
|
|||
}
|
||||
|
||||
|
||||
|
||||
private List<Integer> getSizeQuantityList(List<String> demandCodeList, Map<String, List<StoreProductStorageDemandDeduct>> demandSizeMap, Integer size) {
|
||||
// 每一个尺码的数量对比明细
|
||||
return demandCodeList.stream().map(demandCode -> {
|
||||
|
|
@ -124,5 +123,4 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
|
|||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ public class StoreProductStorageServiceImpl implements IStoreProductStorageServi
|
|||
Map<Long, Map<Integer, Map<Long, Integer>>> unDeductMap = this.getUnDeductMap(demandDetailList, detailList.stream()
|
||||
.map(StoreProductStorageDetail::getStoreProdColorId).collect(Collectors.toList()));
|
||||
long fifth = System.currentTimeMillis();
|
||||
System.err.println("查询需求耗时:" + (fifth - fourth));
|
||||
System.err.println("查询需求耗时:" + (fifth - fourth));
|
||||
if (MapUtils.isEmpty(unDeductMap)) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -155,7 +155,7 @@ public class StoreProductStorageServiceImpl implements IStoreProductStorageServi
|
|||
System.err.println("库存转map耗时: " + (sixth - fifth));
|
||||
// 按照入库的数量明细依次判断哪些需求订单明细还未抵扣完毕
|
||||
Map<Long, Map<Long, Map<Integer, Map<Long, Integer>>>> totalMatchMap = this.getTotalMatchMap(storageQuantityMap, unDeductMap);
|
||||
long seventh = System.currentTimeMillis();
|
||||
long seventh = System.currentTimeMillis();
|
||||
System.err.println("处理需求抵扣明细耗时:" + (seventh - sixth));
|
||||
if (MapUtils.isEmpty(totalMatchMap)) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -271,6 +271,7 @@ public class SysProductCategoryServiceImpl implements ISysProductCategoryService
|
|||
|
||||
/**
|
||||
* 商品管理列表获取所有商品二级分类及没有二级分类的一级分类
|
||||
*
|
||||
* @return List<ProdCateDTO>
|
||||
*/
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -1,95 +0,0 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.xkt.domain.UserAccount;
|
||||
import com.ruoyi.xkt.mapper.UserAccountMapper;
|
||||
import com.ruoyi.xkt.service.IUserAccountService;
|
||||
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 UserAccountServiceImpl implements IUserAccountService {
|
||||
@Autowired
|
||||
private UserAccountMapper userAccountMapper;
|
||||
|
||||
/**
|
||||
* 查询用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccId 用户账户(支付宝、微信等)主键
|
||||
* @return 用户账户(支付宝、微信等)
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public UserAccount selectUserAccountByUserAccId(Long userAccId) {
|
||||
return userAccountMapper.selectUserAccountByUserAccId(userAccId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户账户(支付宝、微信等)列表
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 用户账户(支付宝、微信等)
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public List<UserAccount> selectUserAccountList(UserAccount userAccount) {
|
||||
return userAccountMapper.selectUserAccountList(userAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertUserAccount(UserAccount userAccount) {
|
||||
userAccount.setCreateTime(DateUtils.getNowDate());
|
||||
return userAccountMapper.insertUserAccount(userAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccount 用户账户(支付宝、微信等)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int updateUserAccount(UserAccount userAccount) {
|
||||
userAccount.setUpdateTime(DateUtils.getNowDate());
|
||||
return userAccountMapper.updateUserAccount(userAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户账户(支付宝、微信等)
|
||||
*
|
||||
* @param userAccIds 需要删除的用户账户(支付宝、微信等)主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUserAccountByUserAccIds(Long[] userAccIds) {
|
||||
return userAccountMapper.deleteUserAccountByUserAccIds(userAccIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户账户(支付宝、微信等)信息
|
||||
*
|
||||
* @param userAccId 用户账户(支付宝、微信等)主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUserAccountByUserAccId(Long userAccId) {
|
||||
return userAccountMapper.deleteUserAccountByUserAccId(userAccId);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,94 +0,0 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.xkt.domain.UserBillingStatement;
|
||||
import com.ruoyi.xkt.mapper.UserBillingStatementMapper;
|
||||
import com.ruoyi.xkt.service.IUserBillingStatementService;
|
||||
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 UserBillingStatementServiceImpl implements IUserBillingStatementService {
|
||||
@Autowired
|
||||
private UserBillingStatementMapper userBillingStatementMapper;
|
||||
|
||||
/**
|
||||
* 查询用户对账明细
|
||||
*
|
||||
* @param userBillStatId 用户对账明细主键
|
||||
* @return 用户对账明细
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public UserBillingStatement selectUserBillingStatementByUserBillStatId(Long userBillStatId) {
|
||||
return userBillingStatementMapper.selectUserBillingStatementByUserBillStatId(userBillStatId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户对账明细列表
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 用户对账明细
|
||||
*/
|
||||
@Override
|
||||
public List<UserBillingStatement> selectUserBillingStatementList(UserBillingStatement userBillingStatement) {
|
||||
return userBillingStatementMapper.selectUserBillingStatementList(userBillingStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户对账明细
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertUserBillingStatement(UserBillingStatement userBillingStatement) {
|
||||
userBillingStatement.setCreateTime(DateUtils.getNowDate());
|
||||
return userBillingStatementMapper.insertUserBillingStatement(userBillingStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户对账明细
|
||||
*
|
||||
* @param userBillingStatement 用户对账明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int updateUserBillingStatement(UserBillingStatement userBillingStatement) {
|
||||
userBillingStatement.setUpdateTime(DateUtils.getNowDate());
|
||||
return userBillingStatementMapper.updateUserBillingStatement(userBillingStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户对账明细
|
||||
*
|
||||
* @param userBillStatIds 需要删除的用户对账明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUserBillingStatementByUserBillStatIds(Long[] userBillStatIds) {
|
||||
return userBillingStatementMapper.deleteUserBillingStatementByUserBillStatIds(userBillStatIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户对账明细信息
|
||||
*
|
||||
* @param userBillStatId 用户对账明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUserBillingStatementByUserBillStatId(Long userBillStatId) {
|
||||
return userBillingStatementMapper.deleteUserBillingStatementByUserBillStatId(userBillStatId);
|
||||
}
|
||||
}
|
||||
|
|
@ -269,7 +269,7 @@ public class UserFavoritesServiceImpl implements IUserFavoritesService {
|
|||
}
|
||||
final Date now = java.sql.Date.valueOf(LocalDate.now().plusDays(1));
|
||||
final Date sixMonthAgo = java.sql.Date.valueOf(LocalDate.now().minusMonths(6));
|
||||
return this.userFavMapper.getStatusNum(userId, sixMonthAgo, now);
|
||||
return this.userFavMapper.getStatusNum(userId, sixMonthAgo, now);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
package com.ruoyi.xkt.service.impl;
|
||||
|
||||
import com.ruoyi.xkt.mapper.UserNoticeSettingMapper;
|
||||
import com.ruoyi.xkt.service.IUserNoticeSettingService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 用户通知接收设置Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-26
|
||||
*/
|
||||
@Service
|
||||
public class UserNoticeSettingServiceImpl implements IUserNoticeSettingService {
|
||||
|
||||
@Autowired
|
||||
private UserNoticeSettingMapper userNoticeSettingMapper;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1761,15 +1761,14 @@ public class WebsitePCServiceImpl implements IWebsitePCService {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param advertRoundList 广告列表
|
||||
* @param prodPriceAndMainPicMap 商品价格及主图map
|
||||
* @param existProdIdList 已存在的商品ID列表
|
||||
* @param limitCount 返回的 数量
|
||||
* @param advertRoundList 广告列表
|
||||
* @param prodPriceAndMainPicMap 商品价格及主图map
|
||||
* @param existProdIdList 已存在的商品ID列表
|
||||
* @param limitCount 返回的 数量
|
||||
* @return
|
||||
*/
|
||||
private List<PCSearchResultAdvertDTO> fillPcSearchResultAdvertList(List<AdvertRound> advertRoundList, Map<Long, StoreProdPriceAndMainPicDTO> prodPriceAndMainPicMap,
|
||||
Map<Long, Store> storeMap, List<Long> existProdIdList, int limitCount) {
|
||||
Map<Long, Store> storeMap, List<Long> existProdIdList, int limitCount) {
|
||||
List<PCSearchResultAdvertDTO> tempList = new ArrayList<>();
|
||||
advertRoundList.stream().collect(Collectors.groupingBy(AdvertRound::getStoreId))
|
||||
.forEach((storeId, list) -> {
|
||||
|
|
|
|||
|
|
@ -1,8 +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.PictureSearchHotMapper">
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,101 +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.PictureSearchResultMapper">
|
||||
|
||||
<resultMap type="PictureSearchResult" id="PictureSearchResultResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="picSearchId" column="pic_search_id" />
|
||||
<result property="fileId" column="file_id" />
|
||||
<result property="categoryId" column="category_id" />
|
||||
<result property="score" column="score" />
|
||||
<result property="sortExprValues" column="sort_expr_values" />
|
||||
<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="selectPictureSearchResultVo">
|
||||
select id, pic_search_id, file_id, category_id, score, sort_expr_values, version, del_flag, create_by, create_time, update_by, update_time from picture_search_result
|
||||
</sql>
|
||||
|
||||
<select id="selectPictureSearchResultList" parameterType="PictureSearchResult" resultMap="PictureSearchResultResult">
|
||||
<include refid="selectPictureSearchResultVo"/>
|
||||
<where>
|
||||
<if test="picSearchId != null "> and pic_search_id = #{picSearchId}</if>
|
||||
<if test="fileId != null "> and file_id = #{fileId}</if>
|
||||
<if test="categoryId != null "> and category_id = #{categoryId}</if>
|
||||
<if test="score != null "> and score = #{score}</if>
|
||||
<if test="sortExprValues != null and sortExprValues != ''"> and sort_expr_values = #{sortExprValues}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPictureSearchResultByPicSearchResId" parameterType="Long" resultMap="PictureSearchResultResult">
|
||||
<include refid="selectPictureSearchResultVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPictureSearchResult" parameterType="PictureSearchResult" useGeneratedKeys="true" keyProperty="picSearchResId">
|
||||
insert into picture_search_result
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="picSearchId != null">pic_search_id,</if>
|
||||
<if test="fileId != null">file_id,</if>
|
||||
<if test="categoryId != null">category_id,</if>
|
||||
<if test="score != null">score,</if>
|
||||
<if test="sortExprValues != null">sort_expr_values,</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="picSearchId != null">#{picSearchId},</if>
|
||||
<if test="fileId != null">#{fileId},</if>
|
||||
<if test="categoryId != null">#{categoryId},</if>
|
||||
<if test="score != null">#{score},</if>
|
||||
<if test="sortExprValues != null">#{sortExprValues},</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="updatePictureSearchResult" parameterType="PictureSearchResult">
|
||||
update picture_search_result
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="picSearchId != null">pic_search_id = #{picSearchId},</if>
|
||||
<if test="fileId != null">file_id = #{fileId},</if>
|
||||
<if test="categoryId != null">category_id = #{categoryId},</if>
|
||||
<if test="score != null">score = #{score},</if>
|
||||
<if test="sortExprValues != null">sort_expr_values = #{sortExprValues},</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="deletePictureSearchResultByPicSearchResId" parameterType="Long">
|
||||
delete from picture_search_result where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePictureSearchResultByPicSearchResIds" parameterType="String">
|
||||
delete from picture_search_result where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -1,101 +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.UserAccountMapper">
|
||||
|
||||
<resultMap type="UserAccount" id="UserAccountResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="accountType" column="account_type" />
|
||||
<result property="accountPhone" column="account_phone" />
|
||||
<result property="accountName" column="account_name" />
|
||||
<result property="balance" column="balance" />
|
||||
<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="selectUserAccountVo">
|
||||
select id, user_id, account_type, account_phone, account_name, balance, version, del_flag, create_by, create_time, update_by, update_time from user_account
|
||||
</sql>
|
||||
|
||||
<select id="selectUserAccountList" parameterType="UserAccount" resultMap="UserAccountResult">
|
||||
<include refid="selectUserAccountVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="accountType != null "> and account_type = #{accountType}</if>
|
||||
<if test="accountPhone != null and accountPhone != ''"> and account_phone = #{accountPhone}</if>
|
||||
<if test="accountName != null and accountName != ''"> and account_name like concat('%', #{accountName}, '%')</if>
|
||||
<if test="balance != null "> and balance = #{balance}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUserAccountByUserAccId" parameterType="Long" resultMap="UserAccountResult">
|
||||
<include refid="selectUserAccountVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUserAccount" parameterType="UserAccount" useGeneratedKeys="true" keyProperty="userAccId">
|
||||
insert into user_account
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="accountType != null">account_type,</if>
|
||||
<if test="accountPhone != null">account_phone,</if>
|
||||
<if test="accountName != null">account_name,</if>
|
||||
<if test="balance != null">balance,</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="userId != null">#{userId},</if>
|
||||
<if test="accountType != null">#{accountType},</if>
|
||||
<if test="accountPhone != null">#{accountPhone},</if>
|
||||
<if test="accountName != null">#{accountName},</if>
|
||||
<if test="balance != null">#{balance},</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="updateUserAccount" parameterType="UserAccount">
|
||||
update user_account
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="accountType != null">account_type = #{accountType},</if>
|
||||
<if test="accountPhone != null">account_phone = #{accountPhone},</if>
|
||||
<if test="accountName != null">account_name = #{accountName},</if>
|
||||
<if test="balance != null">balance = #{balance},</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="deleteUserAccountByUserAccId" parameterType="Long">
|
||||
delete from user_account where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUserAccountByUserAccIds" parameterType="String">
|
||||
delete from user_account where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -1,121 +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.UserBillingStatementMapper">
|
||||
|
||||
<resultMap type="UserBillingStatement" id="UserBillingStatementResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userAccId" column="user_acc_id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="transType" column="trans_type" />
|
||||
<result property="transRemark" column="trans_remark" />
|
||||
<result property="payWay" column="pay_way" />
|
||||
<result property="income" column="income" />
|
||||
<result property="expenses" column="expenses" />
|
||||
<result property="accBalance" column="acc_balance" />
|
||||
<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="selectUserBillingStatementVo">
|
||||
select id, user_id, user_acc_id, code, trans_type, trans_remark, pay_way, income, expenses, acc_balance, version, del_flag, create_by, create_time, update_by, update_time from user_billing_statement
|
||||
</sql>
|
||||
|
||||
<select id="selectUserBillingStatementList" parameterType="UserBillingStatement" resultMap="UserBillingStatementResult">
|
||||
<include refid="selectUserBillingStatementVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="userAccId != null "> and user_acc_id = #{userAccId}</if>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="transType != null "> and trans_type = #{transType}</if>
|
||||
<if test="transRemark != null and transRemark != ''"> and trans_remark = #{transRemark}</if>
|
||||
<if test="payWay != null "> and pay_way = #{payWay}</if>
|
||||
<if test="income != null "> and income = #{income}</if>
|
||||
<if test="expenses != null "> and expenses = #{expenses}</if>
|
||||
<if test="accBalance != null "> and acc_balance = #{accBalance}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUserBillingStatementByUserBillStatId" parameterType="Long" resultMap="UserBillingStatementResult">
|
||||
<include refid="selectUserBillingStatementVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUserBillingStatement" parameterType="UserBillingStatement" useGeneratedKeys="true" keyProperty="userBillStatId">
|
||||
insert into user_billing_statement
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="userAccId != null">user_acc_id,</if>
|
||||
<if test="code != null">code,</if>
|
||||
<if test="transType != null">trans_type,</if>
|
||||
<if test="transRemark != null">trans_remark,</if>
|
||||
<if test="payWay != null">pay_way,</if>
|
||||
<if test="income != null">income,</if>
|
||||
<if test="expenses != null">expenses,</if>
|
||||
<if test="accBalance != null">acc_balance,</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="userId != null">#{userId},</if>
|
||||
<if test="userAccId != null">#{userAccId},</if>
|
||||
<if test="code != null">#{code},</if>
|
||||
<if test="transType != null">#{transType},</if>
|
||||
<if test="transRemark != null">#{transRemark},</if>
|
||||
<if test="payWay != null">#{payWay},</if>
|
||||
<if test="income != null">#{income},</if>
|
||||
<if test="expenses != null">#{expenses},</if>
|
||||
<if test="accBalance != null">#{accBalance},</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="updateUserBillingStatement" parameterType="UserBillingStatement">
|
||||
update user_billing_statement
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="userAccId != null">user_acc_id = #{userAccId},</if>
|
||||
<if test="code != null">code = #{code},</if>
|
||||
<if test="transType != null">trans_type = #{transType},</if>
|
||||
<if test="transRemark != null">trans_remark = #{transRemark},</if>
|
||||
<if test="payWay != null">pay_way = #{payWay},</if>
|
||||
<if test="income != null">income = #{income},</if>
|
||||
<if test="expenses != null">expenses = #{expenses},</if>
|
||||
<if test="accBalance != null">acc_balance = #{accBalance},</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="deleteUserBillingStatementByUserBillStatId" parameterType="Long">
|
||||
delete from user_billing_statement where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUserBillingStatementByUserBillStatIds" parameterType="String">
|
||||
delete from user_billing_statement where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -1,7 +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.UserNoticeSettingMapper">
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue