master:条码一键迁移货号模糊查询和打印条码时模糊查询;service中添加事务注解;

pull/1121/head
liujiang 2025-03-29 14:28:11 +08:00
parent d39f5141fa
commit 6e80cc3880
59 changed files with 418 additions and 26 deletions

View File

@ -1,14 +1,17 @@
package com.ruoyi.web.controller.xkt;
import cn.hutool.core.bean.BeanUtil;
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.web.controller.xkt.vo.storePordColor.StoreProdColorResVO;
import com.ruoyi.xkt.domain.StoreProductColor;
import com.ruoyi.xkt.service.IStoreProductColorService;
import org.springframework.beans.factory.annotation.Autowired;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
@ -21,11 +24,23 @@ import java.util.List;
* @author ruoyi
* @date 2025-03-26
*/
@Api(tags = "档口商品颜色")
@RestController
@RequiredArgsConstructor
@RequestMapping("/rest/v1/prod-colors")
public class StoreProductColorController extends XktBaseController {
@Autowired
private IStoreProductColorService storeProductColorService;
final IStoreProductColorService storeProdColorService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:color:query')")
@GetMapping(value = "/fuzzy")
public R fuzzyQueryColorList(@RequestParam(value = "prodArtNum", required = false) String prodArtNum,
@RequestParam("storeId") Long storeId) {
return success(BeanUtil.copyToList(storeProdColorService.fuzzyQueryColorList(storeId, prodArtNum), StoreProdColorResVO.class));
}
/**
*
@ -34,7 +49,7 @@ public class StoreProductColorController extends XktBaseController {
@GetMapping("/list")
public TableDataInfo list(StoreProductColor storeProductColor) {
startPage();
List<StoreProductColor> list = storeProductColorService.selectStoreProductColorList(storeProductColor);
List<StoreProductColor> list = storeProdColorService.selectStoreProductColorList(storeProductColor);
return getDataTable(list);
}
@ -45,7 +60,7 @@ public class StoreProductColorController extends XktBaseController {
@Log(title = "档口当前商品颜色", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, StoreProductColor storeProductColor) {
List<StoreProductColor> list = storeProductColorService.selectStoreProductColorList(storeProductColor);
List<StoreProductColor> list = storeProdColorService.selectStoreProductColorList(storeProductColor);
ExcelUtil<StoreProductColor> util = new ExcelUtil<StoreProductColor>(StoreProductColor.class);
util.exportExcel(response, list, "档口当前商品颜色数据");
}
@ -56,7 +71,7 @@ public class StoreProductColorController extends XktBaseController {
@PreAuthorize("@ss.hasPermi('system:color:query')")
@GetMapping(value = "/{storeProdColorId}")
public R getInfo(@PathVariable("storeProdColorId") Long storeProdColorId) {
return success(storeProductColorService.selectStoreProductColorByStoreProdColorId(storeProdColorId));
return success(storeProdColorService.selectStoreProductColorByStoreProdColorId(storeProdColorId));
}
/**
@ -66,7 +81,7 @@ public class StoreProductColorController extends XktBaseController {
@Log(title = "档口当前商品颜色", businessType = BusinessType.INSERT)
@PostMapping
public R add(@RequestBody StoreProductColor storeProductColor) {
return success(storeProductColorService.insertStoreProductColor(storeProductColor));
return success(storeProdColorService.insertStoreProductColor(storeProductColor));
}
/**
@ -76,7 +91,7 @@ public class StoreProductColorController extends XktBaseController {
@Log(title = "档口当前商品颜色", businessType = BusinessType.UPDATE)
@PutMapping
public R edit(@RequestBody StoreProductColor storeProductColor) {
return success(storeProductColorService.updateStoreProductColor(storeProductColor));
return success(storeProdColorService.updateStoreProductColor(storeProductColor));
}
/**
@ -86,6 +101,7 @@ public class StoreProductColorController extends XktBaseController {
@Log(title = "档口当前商品颜色", businessType = BusinessType.DELETE)
@DeleteMapping("/{storeProdColorIds}")
public R remove(@PathVariable Long[] storeProdColorIds) {
return success(storeProductColorService.deleteStoreProductColorByStoreProdColorIds(storeProdColorIds));
return success(storeProdColorService.deleteStoreProductColorByStoreProdColorIds(storeProdColorIds));
}
}

View File

@ -7,6 +7,7 @@ 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.web.controller.xkt.vo.storePordColor.StoreProdColorResVO;
import com.ruoyi.web.controller.xkt.vo.storeProd.*;
import com.ruoyi.xkt.domain.StoreProduct;
import com.ruoyi.xkt.dto.storeProduct.StoreProdDTO;
@ -37,7 +38,17 @@ import java.util.List;
@Api(tags = "档口商品")
public class StoreProductController extends XktBaseController {
final IStoreProductService storeProductService;
final IStoreProductService storeProdService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:product:query')")
@GetMapping(value = "/fuzzy")
public R fuzzyQueryColorList(@RequestParam(value = "prodArtNum", required = false) String prodArtNum,
@RequestParam("storeId") Long storeId) {
return success(BeanUtil.copyToList(storeProdService.fuzzyQueryList(storeId, prodArtNum), String.class));
}
/**
*
@ -47,7 +58,7 @@ public class StoreProductController extends XktBaseController {
@PostMapping("/page")
public TableDataInfo page(@Validated @RequestBody StoreProdPageVO pageVO) {
startPage();
List<StoreProdPageResDTO> list = storeProductService.selectPage(ObjectUtils.isEmpty(pageVO) ? null : BeanUtil.toBean(pageVO, StoreProdPageDTO.class));
List<StoreProdPageResDTO> list = storeProdService.selectPage(ObjectUtils.isEmpty(pageVO) ? null : BeanUtil.toBean(pageVO, StoreProdPageDTO.class));
return getDataTable(list);
}
@ -58,7 +69,7 @@ public class StoreProductController extends XktBaseController {
@Log(title = "档口商品", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, StoreProduct storeProduct) {
List<StoreProduct> list = storeProductService.selectStoreProductList(storeProduct);
List<StoreProduct> list = storeProdService.selectStoreProductList(storeProduct);
ExcelUtil<StoreProduct> util = new ExcelUtil<StoreProduct>(StoreProduct.class);
util.exportExcel(response, list, "档口商品数据");
}
@ -70,7 +81,7 @@ public class StoreProductController extends XktBaseController {
@ApiOperation(value = "获取档口商品详细信息", httpMethod = "GET", response = R.class)
@GetMapping(value = "/{storeProdId}")
public R getInfo(@PathVariable("storeProdId") Long storeProdId) {
return success(BeanUtil.toBean(storeProductService.selectStoreProductByStoreProdId(storeProdId), StoreProdResVO.class));
return success(BeanUtil.toBean(storeProdService.selectStoreProductByStoreProdId(storeProdId), StoreProdResVO.class));
}
/**
@ -81,7 +92,7 @@ public class StoreProductController extends XktBaseController {
@ApiOperation(value = "新增档口商品", httpMethod = "POST", response = R.class)
@PostMapping
public R add(@Validated @RequestBody StoreProdVO storeProdVO) {
return success(storeProductService.insertStoreProduct(BeanUtil.toBean(storeProdVO, StoreProdDTO.class)));
return success(storeProdService.insertStoreProduct(BeanUtil.toBean(storeProdVO, StoreProdDTO.class)));
}
/**
@ -92,7 +103,7 @@ public class StoreProductController extends XktBaseController {
@Log(title = "档口商品", businessType = BusinessType.UPDATE)
@PutMapping("/{storeProdId}")
public R edit(@PathVariable Long storeProdId, @Validated @RequestBody StoreProdVO storeProdVO) {
return success(storeProductService.updateStoreProduct(storeProdId, BeanUtil.toBean(storeProdVO, StoreProdDTO.class)));
return success(storeProdService.updateStoreProduct(storeProdId, BeanUtil.toBean(storeProdVO, StoreProdDTO.class)));
}
/**
@ -103,7 +114,7 @@ public class StoreProductController extends XktBaseController {
@ApiOperation(value = "修改档口商品状态", httpMethod = "PUT", response = R.class)
@PutMapping("/prod-status")
public R editProdStatus(@Validated @RequestBody StoreProdStatusVO prodStatusVO) {
storeProductService.updateStoreProductStatus(BeanUtil.toBean(prodStatusVO, StoreProdStatusDTO.class));
storeProdService.updateStoreProductStatus(BeanUtil.toBean(prodStatusVO, StoreProdStatusDTO.class));
return success();
}
@ -114,7 +125,7 @@ public class StoreProductController extends XktBaseController {
@ApiOperation(value = "获取档口图片空间", httpMethod = "GET", response = R.class)
@GetMapping(value = "/pic-space/{storeId}")
public R getStoreProductPicSpace(@PathVariable("storeId") Long storeId) {
return success(BeanUtil.toBean(storeProductService.getStoreProductPicSpace(storeId), StoreProdPicSpaceResVO.class));
return success(BeanUtil.toBean(storeProdService.getStoreProductPicSpace(storeId), StoreProdPicSpaceResVO.class));
}

View File

@ -0,0 +1,32 @@
package com.ruoyi.web.controller.xkt.vo.storePordColor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @author liujiang
* @version v1.0
* @date 2025/3/27 15:12
*/
@ApiModel("档口商品当前颜色")
@Data
public class StoreProdColorResVO {
@ApiModelProperty(name = "档口ID")
private Long storeId;
@ApiModelProperty(name = "档口颜色ID")
private Long storeColorId;
@ApiModelProperty(name = "商品货号")
private String prodArtNum;
@ApiModelProperty(name = "商品分类名称")
private String prodCateName;
@ApiModelProperty(name = "颜色名称")
private String colorName;
@ApiModelProperty(name = "排序")
private Integer orderNum;
}

View File

@ -0,0 +1,29 @@
package com.ruoyi.xkt.dto.storeProdColor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author liujiang
* @version v1.0
* @date 2025/3/27 15:12
*/
@ApiModel("档口商品当前颜色")
@Data
public class StoreProdColorResDTO {
@ApiModelProperty(name = "档口ID")
private Long storeId;
@ApiModelProperty(name = "档口颜色ID")
private Long storeColorId;
@ApiModelProperty(name = "商品货号")
private String prodArtNum;
@ApiModelProperty(name = "商品分类名称")
private String prodCateName;
@ApiModelProperty(name = "颜色名称")
private String colorName;
@ApiModelProperty(name = "排序")
private Integer orderNum;
}

View File

@ -3,8 +3,10 @@ package com.ruoyi.xkt.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.xkt.domain.StoreProductColor;
import com.ruoyi.xkt.dto.storeProdColor.StoreProdColorDTO;
import com.ruoyi.xkt.dto.storeProdColor.StoreProdColorResDTO;
import com.ruoyi.xkt.dto.storeProduct.StoreProdPageDTO;
import com.ruoyi.xkt.dto.storeProduct.StoreProdPageResDTO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -69,4 +71,13 @@ public interface StoreProductColorMapper extends BaseMapper<StoreProductColor> {
List<StoreProdPageResDTO> selectStoreProdColorPage(StoreProdPageDTO pageDTO);
/**
*
*
* @param storeId ID
* @param prodArtNum
* @return List<StoreProdColorResDTO>
*/
List<StoreProdColorResDTO> fuzzyQueryColorList(@Param("storeId") Long storeId, @Param("prodArtNum") String prodArtNum);
}

View File

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.xkt.domain.StoreProduct;
import com.ruoyi.xkt.dto.storeProduct.StoreProdPageDTO;
import com.ruoyi.xkt.dto.storeProduct.StoreProdPageResDTO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -62,5 +63,4 @@ public interface StoreProductMapper extends BaseMapper<StoreProduct> {
*/
public int deleteStoreProductByStoreProdIds(Long[] storeProdIds);
}

View File

@ -1,6 +1,7 @@
package com.ruoyi.xkt.service;
import com.ruoyi.xkt.domain.StoreProductColor;
import com.ruoyi.xkt.dto.storeProdColor.StoreProdColorResDTO;
import java.util.List;
@ -58,4 +59,13 @@ public interface IStoreProductColorService {
* @return
*/
public int deleteStoreProductColorByStoreProdColorId(Long storeProdColorId);
/**
* ID
*
* @param storeId ID
* @param prodArtNum
* @return
*/
List<StoreProdColorResDTO> fuzzyQueryColorList(Long storeId, String prodArtNum);
}

View File

@ -71,4 +71,13 @@ public interface IStoreProductService {
* @return
*/
public int deleteStoreProductByStoreProdId(Long storeProdId);
/**
* ID
* @param storeId ID
* @param prodArtNum
* @return List<String>
*/
List<String> fuzzyQueryList(Long storeId, String prodArtNum);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.PictureSearchHotMapper;
import com.ruoyi.xkt.service.IPictureSearchHotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class PictureSearchHotServiceImpl implements IPictureSearchHotService {
* @return
*/
@Override
@Transactional(readOnly = true)
public PictureSearchHot selectPictureSearchHotByPicSearchHotId(Long picSearchHotId) {
return pictureSearchHotMapper.selectPictureSearchHotByPicSearchHotId(picSearchHotId);
}
@ -38,6 +40,7 @@ public class PictureSearchHotServiceImpl implements IPictureSearchHotService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<PictureSearchHot> selectPictureSearchHotList(PictureSearchHot pictureSearchHot) {
return pictureSearchHotMapper.selectPictureSearchHotList(pictureSearchHot);
}
@ -49,6 +52,7 @@ public class PictureSearchHotServiceImpl implements IPictureSearchHotService {
* @return
*/
@Override
@Transactional
public int insertPictureSearchHot(PictureSearchHot pictureSearchHot) {
pictureSearchHot.setCreateTime(DateUtils.getNowDate());
return pictureSearchHotMapper.insertPictureSearchHot(pictureSearchHot);
@ -61,6 +65,7 @@ public class PictureSearchHotServiceImpl implements IPictureSearchHotService {
* @return
*/
@Override
@Transactional
public int updatePictureSearchHot(PictureSearchHot pictureSearchHot) {
pictureSearchHot.setUpdateTime(DateUtils.getNowDate());
return pictureSearchHotMapper.updatePictureSearchHot(pictureSearchHot);
@ -73,6 +78,7 @@ public class PictureSearchHotServiceImpl implements IPictureSearchHotService {
* @return
*/
@Override
@Transactional
public int deletePictureSearchHotByPicSearchHotIds(Long[] picSearchHotIds) {
return pictureSearchHotMapper.deletePictureSearchHotByPicSearchHotIds(picSearchHotIds);
}
@ -84,6 +90,7 @@ public class PictureSearchHotServiceImpl implements IPictureSearchHotService {
* @return
*/
@Override
@Transactional
public int deletePictureSearchHotByPicSearchHotId(Long picSearchHotId) {
return pictureSearchHotMapper.deletePictureSearchHotByPicSearchHotId(picSearchHotId);
}

View File

@ -6,6 +6,7 @@ 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;
@ -27,6 +28,7 @@ public class PictureSearchResultServiceImpl implements IPictureSearchResultServi
* @return
*/
@Override
@Transactional(readOnly = true)
public PictureSearchResult selectPictureSearchResultByPicSearchResId(Long picSearchResId) {
return pictureSearchResultMapper.selectPictureSearchResultByPicSearchResId(picSearchResId);
}
@ -38,6 +40,7 @@ public class PictureSearchResultServiceImpl implements IPictureSearchResultServi
* @return
*/
@Override
@Transactional(readOnly = true)
public List<PictureSearchResult> selectPictureSearchResultList(PictureSearchResult pictureSearchResult) {
return pictureSearchResultMapper.selectPictureSearchResultList(pictureSearchResult);
}
@ -49,6 +52,7 @@ public class PictureSearchResultServiceImpl implements IPictureSearchResultServi
* @return
*/
@Override
@Transactional
public int insertPictureSearchResult(PictureSearchResult pictureSearchResult) {
pictureSearchResult.setCreateTime(DateUtils.getNowDate());
return pictureSearchResultMapper.insertPictureSearchResult(pictureSearchResult);
@ -61,6 +65,7 @@ public class PictureSearchResultServiceImpl implements IPictureSearchResultServi
* @return
*/
@Override
@Transactional
public int updatePictureSearchResult(PictureSearchResult pictureSearchResult) {
pictureSearchResult.setUpdateTime(DateUtils.getNowDate());
return pictureSearchResultMapper.updatePictureSearchResult(pictureSearchResult);
@ -73,6 +78,7 @@ public class PictureSearchResultServiceImpl implements IPictureSearchResultServi
* @return
*/
@Override
@Transactional
public int deletePictureSearchResultByPicSearchResIds(Long[] picSearchResIds) {
return pictureSearchResultMapper.deletePictureSearchResultByPicSearchResIds(picSearchResIds);
}
@ -84,6 +90,7 @@ public class PictureSearchResultServiceImpl implements IPictureSearchResultServi
* @return
*/
@Override
@Transactional
public int deletePictureSearchResultByPicSearchResId(Long picSearchResId) {
return pictureSearchResultMapper.deletePictureSearchResultByPicSearchResId(picSearchResId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.PictureSearchMapper;
import com.ruoyi.xkt.service.IPictureSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class PictureSearchServiceImpl implements IPictureSearchService {
* @return
*/
@Override
@Transactional(readOnly = true)
public PictureSearch selectPictureSearchByPicSearchId(Long picSearchId) {
return pictureSearchMapper.selectPictureSearchByPicSearchId(picSearchId);
}
@ -38,6 +40,7 @@ public class PictureSearchServiceImpl implements IPictureSearchService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<PictureSearch> selectPictureSearchList(PictureSearch pictureSearch) {
return pictureSearchMapper.selectPictureSearchList(pictureSearch);
}
@ -49,6 +52,7 @@ public class PictureSearchServiceImpl implements IPictureSearchService {
* @return
*/
@Override
@Transactional
public int insertPictureSearch(PictureSearch pictureSearch) {
pictureSearch.setCreateTime(DateUtils.getNowDate());
return pictureSearchMapper.insertPictureSearch(pictureSearch);
@ -61,6 +65,7 @@ public class PictureSearchServiceImpl implements IPictureSearchService {
* @return
*/
@Override
@Transactional
public int updatePictureSearch(PictureSearch pictureSearch) {
pictureSearch.setUpdateTime(DateUtils.getNowDate());
return pictureSearchMapper.updatePictureSearch(pictureSearch);
@ -73,6 +78,7 @@ public class PictureSearchServiceImpl implements IPictureSearchService {
* @return
*/
@Override
@Transactional
public int deletePictureSearchByPicSearchIds(Long[] picSearchIds) {
return pictureSearchMapper.deletePictureSearchByPicSearchIds(picSearchIds);
}
@ -84,6 +90,7 @@ public class PictureSearchServiceImpl implements IPictureSearchService {
* @return
*/
@Override
@Transactional
public int deletePictureSearchByPicSearchId(Long picSearchId) {
return pictureSearchMapper.deletePictureSearchByPicSearchId(picSearchId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreCertificateMapper;
import com.ruoyi.xkt.service.IStoreCertificateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreCertificate selectStoreCertificateByStoreCertId(Long storeCertId) {
return storeCertificateMapper.selectStoreCertificateByStoreCertId(storeCertId);
}
@ -38,6 +40,7 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreCertificate> selectStoreCertificateList(StoreCertificate storeCertificate) {
return storeCertificateMapper.selectStoreCertificateList(storeCertificate);
}
@ -49,6 +52,7 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
* @return
*/
@Override
@Transactional
public int insertStoreCertificate(StoreCertificate storeCertificate) {
storeCertificate.setCreateTime(DateUtils.getNowDate());
return storeCertificateMapper.insertStoreCertificate(storeCertificate);
@ -61,6 +65,7 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
* @return
*/
@Override
@Transactional
public int updateStoreCertificate(StoreCertificate storeCertificate) {
storeCertificate.setUpdateTime(DateUtils.getNowDate());
return storeCertificateMapper.updateStoreCertificate(storeCertificate);
@ -73,6 +78,7 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
* @return
*/
@Override
@Transactional
public int deleteStoreCertificateByStoreCertIds(Long[] storeCertIds) {
return storeCertificateMapper.deleteStoreCertificateByStoreCertIds(storeCertIds);
}
@ -84,6 +90,7 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
* @return
*/
@Override
@Transactional
public int deleteStoreCertificateByStoreCertId(Long storeCertId) {
return storeCertificateMapper.deleteStoreCertificateByStoreCertId(storeCertId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreColorMapper;
import com.ruoyi.xkt.service.IStoreColorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreColorServiceImpl implements IStoreColorService {
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreColor selectStoreColorByStoreColorId(Long storeColorId) {
return storeColorMapper.selectStoreColorByStoreColorId(storeColorId);
}
@ -38,6 +40,7 @@ public class StoreColorServiceImpl implements IStoreColorService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreColor> selectStoreColorList(StoreColor storeColor) {
return storeColorMapper.selectStoreColorList(storeColor);
}
@ -49,6 +52,7 @@ public class StoreColorServiceImpl implements IStoreColorService {
* @return
*/
@Override
@Transactional
public int insertStoreColor(StoreColor storeColor) {
storeColor.setCreateTime(DateUtils.getNowDate());
return storeColorMapper.insertStoreColor(storeColor);
@ -61,6 +65,7 @@ public class StoreColorServiceImpl implements IStoreColorService {
* @return
*/
@Override
@Transactional
public int updateStoreColor(StoreColor storeColor) {
storeColor.setUpdateTime(DateUtils.getNowDate());
return storeColorMapper.updateStoreColor(storeColor);
@ -73,6 +78,7 @@ public class StoreColorServiceImpl implements IStoreColorService {
* @return
*/
@Override
@Transactional
public int deleteStoreColorByStoreColorIds(Long[] storeColorIds) {
return storeColorMapper.deleteStoreColorByStoreColorIds(storeColorIds);
}
@ -84,6 +90,7 @@ public class StoreColorServiceImpl implements IStoreColorService {
* @return
*/
@Override
@Transactional
public int deleteStoreColorByStoreColorId(Long storeColorId) {
return storeColorMapper.deleteStoreColorByStoreColorId(storeColorId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreCustomerProductDiscountMapper;
import com.ruoyi.xkt.service.IStoreCustomerProductDiscountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreCustomerProductDiscountServiceImpl implements IStoreCustomerPr
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreCustomerProductDiscount selectStoreCustomerProductDiscountByStoreCusProdDiscId(Long storeCusProdDiscId) {
return storeCustomerProductDiscountMapper.selectStoreCustomerProductDiscountByStoreCusProdDiscId(storeCusProdDiscId);
}
@ -38,6 +40,7 @@ public class StoreCustomerProductDiscountServiceImpl implements IStoreCustomerPr
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreCustomerProductDiscount> selectStoreCustomerProductDiscountList(StoreCustomerProductDiscount storeCustomerProductDiscount) {
return storeCustomerProductDiscountMapper.selectStoreCustomerProductDiscountList(storeCustomerProductDiscount);
}
@ -49,6 +52,7 @@ public class StoreCustomerProductDiscountServiceImpl implements IStoreCustomerPr
* @return
*/
@Override
@Transactional
public int insertStoreCustomerProductDiscount(StoreCustomerProductDiscount storeCustomerProductDiscount) {
storeCustomerProductDiscount.setCreateTime(DateUtils.getNowDate());
return storeCustomerProductDiscountMapper.insertStoreCustomerProductDiscount(storeCustomerProductDiscount);
@ -61,6 +65,7 @@ public class StoreCustomerProductDiscountServiceImpl implements IStoreCustomerPr
* @return
*/
@Override
@Transactional
public int updateStoreCustomerProductDiscount(StoreCustomerProductDiscount storeCustomerProductDiscount) {
storeCustomerProductDiscount.setUpdateTime(DateUtils.getNowDate());
return storeCustomerProductDiscountMapper.updateStoreCustomerProductDiscount(storeCustomerProductDiscount);
@ -73,6 +78,7 @@ public class StoreCustomerProductDiscountServiceImpl implements IStoreCustomerPr
* @return
*/
@Override
@Transactional
public int deleteStoreCustomerProductDiscountByStoreCusProdDiscIds(Long[] storeCusProdDiscIds) {
return storeCustomerProductDiscountMapper.deleteStoreCustomerProductDiscountByStoreCusProdDiscIds(storeCusProdDiscIds);
}
@ -84,6 +90,7 @@ public class StoreCustomerProductDiscountServiceImpl implements IStoreCustomerPr
* @return
*/
@Override
@Transactional
public int deleteStoreCustomerProductDiscountByStoreCusProdDiscId(Long storeCusProdDiscId) {
return storeCustomerProductDiscountMapper.deleteStoreCustomerProductDiscountByStoreCusProdDiscId(storeCusProdDiscId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreCustomerMapper;
import com.ruoyi.xkt.service.IStoreCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreCustomerServiceImpl implements IStoreCustomerService {
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreCustomer selectStoreCustomerByStoreCusId(Long storeCusId) {
return storeCustomerMapper.selectStoreCustomerByStoreCusId(storeCusId);
}
@ -38,6 +40,7 @@ public class StoreCustomerServiceImpl implements IStoreCustomerService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreCustomer> selectStoreCustomerList(StoreCustomer storeCustomer) {
return storeCustomerMapper.selectStoreCustomerList(storeCustomer);
}
@ -49,6 +52,7 @@ public class StoreCustomerServiceImpl implements IStoreCustomerService {
* @return
*/
@Override
@Transactional
public int insertStoreCustomer(StoreCustomer storeCustomer) {
storeCustomer.setCreateTime(DateUtils.getNowDate());
return storeCustomerMapper.insertStoreCustomer(storeCustomer);
@ -61,6 +65,7 @@ public class StoreCustomerServiceImpl implements IStoreCustomerService {
* @return
*/
@Override
@Transactional
public int updateStoreCustomer(StoreCustomer storeCustomer) {
storeCustomer.setUpdateTime(DateUtils.getNowDate());
return storeCustomerMapper.updateStoreCustomer(storeCustomer);
@ -73,6 +78,7 @@ public class StoreCustomerServiceImpl implements IStoreCustomerService {
* @return
*/
@Override
@Transactional
public int deleteStoreCustomerByStoreCusIds(Long[] storeCusIds) {
return storeCustomerMapper.deleteStoreCustomerByStoreCusIds(storeCusIds);
}
@ -84,6 +90,7 @@ public class StoreCustomerServiceImpl implements IStoreCustomerService {
* @return
*/
@Override
@Transactional
public int deleteStoreCustomerByStoreCusId(Long storeCusId) {
return storeCustomerMapper.deleteStoreCustomerByStoreCusId(storeCusId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreFactoryMapper;
import com.ruoyi.xkt.service.IStoreFactoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreFactoryServiceImpl implements IStoreFactoryService {
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreFactory selectStoreFactoryByStoreFacId(Long storeFacId) {
return storeFactoryMapper.selectStoreFactoryByStoreFacId(storeFacId);
}
@ -38,6 +40,7 @@ public class StoreFactoryServiceImpl implements IStoreFactoryService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreFactory> selectStoreFactoryList(StoreFactory storeFactory) {
return storeFactoryMapper.selectStoreFactoryList(storeFactory);
}
@ -49,6 +52,7 @@ public class StoreFactoryServiceImpl implements IStoreFactoryService {
* @return
*/
@Override
@Transactional
public int insertStoreFactory(StoreFactory storeFactory) {
storeFactory.setCreateTime(DateUtils.getNowDate());
return storeFactoryMapper.insertStoreFactory(storeFactory);
@ -61,6 +65,7 @@ public class StoreFactoryServiceImpl implements IStoreFactoryService {
* @return
*/
@Override
@Transactional
public int updateStoreFactory(StoreFactory storeFactory) {
storeFactory.setUpdateTime(DateUtils.getNowDate());
return storeFactoryMapper.updateStoreFactory(storeFactory);
@ -73,6 +78,7 @@ public class StoreFactoryServiceImpl implements IStoreFactoryService {
* @return
*/
@Override
@Transactional
public int deleteStoreFactoryByStoreFacIds(Long[] storeFacIds) {
return storeFactoryMapper.deleteStoreFactoryByStoreFacIds(storeFacIds);
}
@ -84,6 +90,7 @@ public class StoreFactoryServiceImpl implements IStoreFactoryService {
* @return
*/
@Override
@Transactional
public int deleteStoreFactoryByStoreFacId(Long storeFacId) {
return storeFactoryMapper.deleteStoreFactoryByStoreFacId(storeFacId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreHomepageMapper;
import com.ruoyi.xkt.service.IStoreHomepageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreHomepageServiceImpl implements IStoreHomepageService {
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreHomepage selectStoreHomepageByStoreHomeId(Long storeHomeId) {
return storeHomepageMapper.selectStoreHomepageByStoreHomeId(storeHomeId);
}
@ -38,6 +40,7 @@ public class StoreHomepageServiceImpl implements IStoreHomepageService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreHomepage> selectStoreHomepageList(StoreHomepage storeHomepage) {
return storeHomepageMapper.selectStoreHomepageList(storeHomepage);
}
@ -49,6 +52,7 @@ public class StoreHomepageServiceImpl implements IStoreHomepageService {
* @return
*/
@Override
@Transactional
public int insertStoreHomepage(StoreHomepage storeHomepage) {
storeHomepage.setCreateTime(DateUtils.getNowDate());
return storeHomepageMapper.insertStoreHomepage(storeHomepage);
@ -61,6 +65,7 @@ public class StoreHomepageServiceImpl implements IStoreHomepageService {
* @return
*/
@Override
@Transactional
public int updateStoreHomepage(StoreHomepage storeHomepage) {
storeHomepage.setUpdateTime(DateUtils.getNowDate());
return storeHomepageMapper.updateStoreHomepage(storeHomepage);
@ -73,6 +78,7 @@ public class StoreHomepageServiceImpl implements IStoreHomepageService {
* @return
*/
@Override
@Transactional
public int deleteStoreHomepageByStoreHomeIds(Long[] storeHomeIds) {
return storeHomepageMapper.deleteStoreHomepageByStoreHomeIds(storeHomeIds);
}
@ -84,6 +90,7 @@ public class StoreHomepageServiceImpl implements IStoreHomepageService {
* @return
*/
@Override
@Transactional
public int deleteStoreHomepageByStoreHomeId(Long storeHomeId) {
return storeHomepageMapper.deleteStoreHomepageByStoreHomeId(storeHomeId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreOrderDetailMapper;
import com.ruoyi.xkt.service.IStoreOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreOrderDetailServiceImpl implements IStoreOrderDetailService {
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreOrderDetail selectStoreOrderDetailByStoreOrderDetailId(Long storeOrderDetailId) {
return storeOrderDetailMapper.selectStoreOrderDetailByStoreOrderDetailId(storeOrderDetailId);
}
@ -38,6 +40,7 @@ public class StoreOrderDetailServiceImpl implements IStoreOrderDetailService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreOrderDetail> selectStoreOrderDetailList(StoreOrderDetail storeOrderDetail) {
return storeOrderDetailMapper.selectStoreOrderDetailList(storeOrderDetail);
}
@ -49,6 +52,7 @@ public class StoreOrderDetailServiceImpl implements IStoreOrderDetailService {
* @return
*/
@Override
@Transactional
public int insertStoreOrderDetail(StoreOrderDetail storeOrderDetail) {
storeOrderDetail.setCreateTime(DateUtils.getNowDate());
return storeOrderDetailMapper.insertStoreOrderDetail(storeOrderDetail);
@ -61,6 +65,7 @@ public class StoreOrderDetailServiceImpl implements IStoreOrderDetailService {
* @return
*/
@Override
@Transactional
public int updateStoreOrderDetail(StoreOrderDetail storeOrderDetail) {
storeOrderDetail.setUpdateTime(DateUtils.getNowDate());
return storeOrderDetailMapper.updateStoreOrderDetail(storeOrderDetail);
@ -73,6 +78,7 @@ public class StoreOrderDetailServiceImpl implements IStoreOrderDetailService {
* @return
*/
@Override
@Transactional
public int deleteStoreOrderDetailByStoreOrderDetailIds(Long[] storeOrderDetailIds) {
return storeOrderDetailMapper.deleteStoreOrderDetailByStoreOrderDetailIds(storeOrderDetailIds);
}
@ -84,6 +90,7 @@ public class StoreOrderDetailServiceImpl implements IStoreOrderDetailService {
* @return
*/
@Override
@Transactional
public int deleteStoreOrderDetailByStoreOrderDetailId(Long storeOrderDetailId) {
return storeOrderDetailMapper.deleteStoreOrderDetailByStoreOrderDetailId(storeOrderDetailId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreOrderExpressMapper;
import com.ruoyi.xkt.service.IStoreOrderExpressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreOrderExpressServiceImpl implements IStoreOrderExpressService {
* @return
*/
@Override
@Transactional
public int insertStoreOrderExpress(StoreOrderExpress storeOrderExpress) {
storeOrderExpress.setCreateTime(DateUtils.getNowDate());
return storeOrderExpressMapper.insertStoreOrderExpress(storeOrderExpress);
@ -61,6 +63,7 @@ public class StoreOrderExpressServiceImpl implements IStoreOrderExpressService {
* @return
*/
@Override
@Transactional
public int updateStoreOrderExpress(StoreOrderExpress storeOrderExpress) {
storeOrderExpress.setUpdateTime(DateUtils.getNowDate());
return storeOrderExpressMapper.updateStoreOrderExpress(storeOrderExpress);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreOrderReceiveMapper;
import com.ruoyi.xkt.service.IStoreOrderReceiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreOrderReceiveServiceImpl implements IStoreOrderReceiveService {
* @return
*/
@Override
@Transactional
public int insertStoreOrderReceive(StoreOrderReceive storeOrderReceive) {
storeOrderReceive.setCreateTime(DateUtils.getNowDate());
return storeOrderReceiveMapper.insertStoreOrderReceive(storeOrderReceive);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreOrderMapper;
import com.ruoyi.xkt.service.IStoreOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
* @return
*/
@Override
@Transactional
public int insertStoreOrder(StoreOrder storeOrder) {
storeOrder.setCreateTime(DateUtils.getNowDate());
return storeOrderMapper.insertStoreOrder(storeOrder);
@ -61,6 +63,7 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
* @return
*/
@Override
@Transactional
public int updateStoreOrder(StoreOrder storeOrder) {
storeOrder.setUpdateTime(DateUtils.getNowDate());
return storeOrderMapper.updateStoreOrder(storeOrder);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductBarcodeMatchMapper;
import com.ruoyi.xkt.service.IStoreProductBarcodeMatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreProductBarcodeMatchServiceImpl implements IStoreProductBarcode
* @return
*/
@Override
@Transactional
public int insertStoreProductBarcodeMatch(StoreProductBarcodeMatch storeProductBarcodeMatch) {
storeProductBarcodeMatch.setCreateTime(DateUtils.getNowDate());
return storeProductBarcodeMatchMapper.insertStoreProductBarcodeMatch(storeProductBarcodeMatch);
@ -61,6 +63,7 @@ public class StoreProductBarcodeMatchServiceImpl implements IStoreProductBarcode
* @return
*/
@Override
@Transactional
public int updateStoreProductBarcodeMatch(StoreProductBarcodeMatch storeProductBarcodeMatch) {
storeProductBarcodeMatch.setUpdateTime(DateUtils.getNowDate());
return storeProductBarcodeMatchMapper.updateStoreProductBarcodeMatch(storeProductBarcodeMatch);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductBarcodeRecordMapper;
import com.ruoyi.xkt.service.IStoreProductBarcodeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreProductBarcodeRecordServiceImpl implements IStoreProductBarcod
* @return
*/
@Override
@Transactional
public int insertStoreProductBarcodeRecord(StoreProductBarcodeRecord storeProductBarcodeRecord) {
storeProductBarcodeRecord.setCreateTime(DateUtils.getNowDate());
return storeProductBarcodeRecordMapper.insertStoreProductBarcodeRecord(storeProductBarcodeRecord);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductCategoryAttributeMapper;
import com.ruoyi.xkt.service.IStoreProductCategoryAttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductCategoryAttributeServiceImpl implements IStoreProductCa
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductCategoryAttribute selectStoreProductCategoryAttributeByStoreProdAttrId(Long storeProdAttrId) {
return storeProductCategoryAttributeMapper.selectStoreProductCategoryAttributeByStoreProdAttrId(storeProdAttrId);
}
@ -38,6 +40,7 @@ public class StoreProductCategoryAttributeServiceImpl implements IStoreProductCa
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductCategoryAttribute> selectStoreProductCategoryAttributeList(StoreProductCategoryAttribute storeProductCategoryAttribute) {
return storeProductCategoryAttributeMapper.selectStoreProductCategoryAttributeList(storeProductCategoryAttribute);
}
@ -49,6 +52,7 @@ public class StoreProductCategoryAttributeServiceImpl implements IStoreProductCa
* @return
*/
@Override
@Transactional
public int insertStoreProductCategoryAttribute(StoreProductCategoryAttribute storeProductCategoryAttribute) {
storeProductCategoryAttribute.setCreateTime(DateUtils.getNowDate());
return storeProductCategoryAttributeMapper.insertStoreProductCategoryAttribute(storeProductCategoryAttribute);
@ -61,6 +65,7 @@ public class StoreProductCategoryAttributeServiceImpl implements IStoreProductCa
* @return
*/
@Override
@Transactional
public int updateStoreProductCategoryAttribute(StoreProductCategoryAttribute storeProductCategoryAttribute) {
storeProductCategoryAttribute.setUpdateTime(DateUtils.getNowDate());
return storeProductCategoryAttributeMapper.updateStoreProductCategoryAttribute(storeProductCategoryAttribute);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductColorPriceMapper;
import com.ruoyi.xkt.service.IStoreProductColorPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreProductColorPriceServiceImpl implements IStoreProductColorPric
* @return
*/
@Override
@Transactional
public int insertStoreProductColorPrice(StoreProductColorPrice storeProductColorPrice) {
storeProductColorPrice.setCreateTime(DateUtils.getNowDate());
return storeProductColorPriceMapper.insertStoreProductColorPrice(storeProductColorPrice);
@ -61,6 +63,7 @@ public class StoreProductColorPriceServiceImpl implements IStoreProductColorPric
* @return
*/
@Override
@Transactional
public int updateStoreProductColorPrice(StoreProductColorPrice storeProductColorPrice) {
storeProductColorPrice.setUpdateTime(DateUtils.getNowDate());
return storeProductColorPriceMapper.updateStoreProductColorPrice(storeProductColorPrice);

View File

@ -2,10 +2,13 @@ package com.ruoyi.xkt.service.impl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.xkt.domain.StoreProductColor;
import com.ruoyi.xkt.dto.storeProdColor.StoreProdColorResDTO;
import com.ruoyi.xkt.mapper.StoreProductColorMapper;
import com.ruoyi.xkt.service.IStoreProductColorService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -16,9 +19,10 @@ import java.util.List;
* @date 2025-03-26
*/
@Service
@RequiredArgsConstructor
public class StoreProductColorServiceImpl implements IStoreProductColorService {
@Autowired
private StoreProductColorMapper storeProductColorMapper;
final StoreProductColorMapper storeProdColorMapper;
/**
*
@ -27,8 +31,9 @@ public class StoreProductColorServiceImpl implements IStoreProductColorService {
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductColor selectStoreProductColorByStoreProdColorId(Long storeProdColorId) {
return storeProductColorMapper.selectStoreProductColorByStoreProdColorId(storeProdColorId);
return storeProdColorMapper.selectStoreProductColorByStoreProdColorId(storeProdColorId);
}
/**
@ -38,8 +43,9 @@ public class StoreProductColorServiceImpl implements IStoreProductColorService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductColor> selectStoreProductColorList(StoreProductColor storeProductColor) {
return storeProductColorMapper.selectStoreProductColorList(storeProductColor);
return storeProdColorMapper.selectStoreProductColorList(storeProductColor);
}
/**
@ -49,9 +55,10 @@ public class StoreProductColorServiceImpl implements IStoreProductColorService {
* @return
*/
@Override
@Transactional
public int insertStoreProductColor(StoreProductColor storeProductColor) {
storeProductColor.setCreateTime(DateUtils.getNowDate());
return storeProductColorMapper.insertStoreProductColor(storeProductColor);
return storeProdColorMapper.insertStoreProductColor(storeProductColor);
}
/**
@ -61,9 +68,10 @@ public class StoreProductColorServiceImpl implements IStoreProductColorService {
* @return
*/
@Override
@Transactional
public int updateStoreProductColor(StoreProductColor storeProductColor) {
storeProductColor.setUpdateTime(DateUtils.getNowDate());
return storeProductColorMapper.updateStoreProductColor(storeProductColor);
return storeProdColorMapper.updateStoreProductColor(storeProductColor);
}
/**
@ -73,8 +81,9 @@ public class StoreProductColorServiceImpl implements IStoreProductColorService {
* @return
*/
@Override
@Transactional
public int deleteStoreProductColorByStoreProdColorIds(Long[] storeProdColorIds) {
return storeProductColorMapper.deleteStoreProductColorByStoreProdColorIds(storeProdColorIds);
return storeProdColorMapper.deleteStoreProductColorByStoreProdColorIds(storeProdColorIds);
}
/**
@ -84,7 +93,21 @@ public class StoreProductColorServiceImpl implements IStoreProductColorService {
* @return
*/
@Override
@Transactional
public int deleteStoreProductColorByStoreProdColorId(Long storeProdColorId) {
return storeProductColorMapper.deleteStoreProductColorByStoreProdColorId(storeProdColorId);
return storeProdColorMapper.deleteStoreProductColorByStoreProdColorId(storeProdColorId);
}
/**
* ID
*
* @param storeId ID
* @param prodArtNum
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProdColorResDTO> fuzzyQueryColorList(Long storeId, String prodArtNum) {
return storeProdColorMapper.fuzzyQueryColorList(storeId, prodArtNum);
}
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductColorSizeMapper;
import com.ruoyi.xkt.service.IStoreProductColorSizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductColorSizeServiceImpl implements IStoreProductColorSizeS
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductColorSize selectStoreProductColorSizeByStoreProdColorSizeId(Long storeProdColorSizeId) {
return storeProductColorSizeMapper.selectStoreProductColorSizeByStoreProdColorSizeId(storeProdColorSizeId);
}
@ -38,6 +40,7 @@ public class StoreProductColorSizeServiceImpl implements IStoreProductColorSizeS
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductColorSize> selectStoreProductColorSizeList(StoreProductColorSize storeProductColorSize) {
return storeProductColorSizeMapper.selectStoreProductColorSizeList(storeProductColorSize);
}
@ -49,6 +52,7 @@ public class StoreProductColorSizeServiceImpl implements IStoreProductColorSizeS
* @return
*/
@Override
@Transactional
public int insertStoreProductColorSize(StoreProductColorSize storeProductColorSize) {
storeProductColorSize.setCreateTime(DateUtils.getNowDate());
return storeProductColorSizeMapper.insertStoreProductColorSize(storeProductColorSize);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductDemandDetailMapper;
import com.ruoyi.xkt.service.IStoreProductDemandDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductDemandDetailServiceImpl implements IStoreProductDemandD
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductDemandDetail selectStoreProductDemandDetailByStoreProdDemaDetailId(Long storeProdDemaDetailId) {
return storeProductDemandDetailMapper.selectStoreProductDemandDetailByStoreProdDemaDetailId(storeProdDemaDetailId);
}
@ -38,6 +40,7 @@ public class StoreProductDemandDetailServiceImpl implements IStoreProductDemandD
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductDemandDetail> selectStoreProductDemandDetailList(StoreProductDemandDetail storeProductDemandDetail) {
return storeProductDemandDetailMapper.selectStoreProductDemandDetailList(storeProductDemandDetail);
}
@ -49,6 +52,7 @@ public class StoreProductDemandDetailServiceImpl implements IStoreProductDemandD
* @return
*/
@Override
@Transactional
public int insertStoreProductDemandDetail(StoreProductDemandDetail storeProductDemandDetail) {
storeProductDemandDetail.setCreateTime(DateUtils.getNowDate());
return storeProductDemandDetailMapper.insertStoreProductDemandDetail(storeProductDemandDetail);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductDemandMapper;
import com.ruoyi.xkt.service.IStoreProductDemandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -61,6 +62,7 @@ public class StoreProductDemandServiceImpl implements IStoreProductDemandService
* @return
*/
@Override
@Transactional
public int updateStoreProductDemand(StoreProductDemand storeProductDemand) {
storeProductDemand.setUpdateTime(DateUtils.getNowDate());
return storeProductDemandMapper.updateStoreProductDemand(storeProductDemand);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductDetailMapper;
import com.ruoyi.xkt.service.IStoreProductDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreProductDetailServiceImpl implements IStoreProductDetailService
* @return
*/
@Override
@Transactional
public int insertStoreProductDetail(StoreProductDetail storeProductDetail) {
storeProductDetail.setCreateTime(DateUtils.getNowDate());
return storeProductDetailMapper.insertStoreProductDetail(storeProductDetail);

View File

@ -6,6 +6,7 @@ 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;
@ -49,6 +50,7 @@ public class StoreProductFileServiceImpl implements IStoreProductFileService {
* @return
*/
@Override
@Transactional
public int insertStoreProductFile(StoreProductFile storeProductFile) {
storeProductFile.setCreateTime(DateUtils.getNowDate());
return storeProductFileMapper.insertStoreProductFile(storeProductFile);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductProcessMapper;
import com.ruoyi.xkt.service.IStoreProductProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductProcessServiceImpl implements IStoreProductProcessServi
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductProcess selectStoreProductProcessByStoreProdProcessId(Long storeProdProcessId) {
return storeProductProcessMapper.selectStoreProductProcessByStoreProdProcessId(storeProdProcessId);
}
@ -38,6 +40,7 @@ public class StoreProductProcessServiceImpl implements IStoreProductProcessServi
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductProcess> selectStoreProductProcessList(StoreProductProcess storeProductProcess) {
return storeProductProcessMapper.selectStoreProductProcessList(storeProductProcess);
}
@ -49,6 +52,7 @@ public class StoreProductProcessServiceImpl implements IStoreProductProcessServi
* @return
*/
@Override
@Transactional
public int insertStoreProductProcess(StoreProductProcess storeProductProcess) {
storeProductProcess.setCreateTime(DateUtils.getNowDate());
return storeProductProcessMapper.insertStoreProductProcess(storeProductProcess);
@ -61,6 +65,7 @@ public class StoreProductProcessServiceImpl implements IStoreProductProcessServi
* @return
*/
@Override
@Transactional
public int updateStoreProductProcess(StoreProductProcess storeProductProcess) {
storeProductProcess.setUpdateTime(DateUtils.getNowDate());
return storeProductProcessMapper.updateStoreProductProcess(storeProductProcess);
@ -73,6 +78,7 @@ public class StoreProductProcessServiceImpl implements IStoreProductProcessServi
* @return
*/
@Override
@Transactional
public int deleteStoreProductProcessByStoreProdProcessIds(Long[] storeProdProcessIds) {
return storeProductProcessMapper.deleteStoreProductProcessByStoreProdProcessIds(storeProdProcessIds);
}
@ -84,6 +90,7 @@ public class StoreProductProcessServiceImpl implements IStoreProductProcessServi
* @return
*/
@Override
@Transactional
public int deleteStoreProductProcessByStoreProdProcessId(Long storeProdProcessId) {
return storeProductProcessMapper.deleteStoreProductProcessByStoreProdProcessId(storeProdProcessId);
}

View File

@ -23,6 +23,7 @@ import com.ruoyi.xkt.service.IStoreProductService;
import lombok.RequiredArgsConstructor;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -291,4 +292,24 @@ public class StoreProductServiceImpl implements IStoreProductService {
public int deleteStoreProductByStoreProdId(Long storeProdId) {
return storeProdMapper.deleteStoreProductByStoreProdId(storeProdId);
}
/**
* ID
*
* @param storeId ID
* @param prodArtNum
* @return List<String>
*/
@Override
@Transactional(readOnly = true)
public List<String> fuzzyQueryList(Long storeId, String prodArtNum) {
LambdaQueryWrapper<StoreProduct> queryWrapper = new LambdaQueryWrapper<StoreProduct>()
.eq(StoreProduct::getStoreId, storeId).eq(StoreProduct::getDelFlag, "0");
if (StringUtils.isNotBlank(prodArtNum)) {
queryWrapper.like(StoreProduct::getProdArtNum, prodArtNum);
}
List<StoreProduct> storeProdList = this.storeProdMapper.selectList(queryWrapper);
return CollectionUtils.isEmpty(storeProdList) ? new ArrayList<>()
: storeProdList.stream().map(StoreProduct::getProdArtNum).distinct().collect(Collectors.toList());
}
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductServiceMapper;
import com.ruoyi.xkt.service.IStoreProductServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductServiceServiceImpl implements IStoreProductServiceServi
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductService selectStoreProductServiceByStoreProdSvcId(Long storeProdSvcId) {
return storeProductServiceMapper.selectStoreProductServiceByStoreProdSvcId(storeProdSvcId);
}
@ -38,6 +40,7 @@ public class StoreProductServiceServiceImpl implements IStoreProductServiceServi
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductService> selectStoreProductServiceList(StoreProductService storeProductService) {
return storeProductServiceMapper.selectStoreProductServiceList(storeProductService);
}
@ -49,6 +52,7 @@ public class StoreProductServiceServiceImpl implements IStoreProductServiceServi
* @return
*/
@Override
@Transactional
public int insertStoreProductService(StoreProductService storeProductService) {
storeProductService.setCreateTime(DateUtils.getNowDate());
return storeProductServiceMapper.insertStoreProductService(storeProductService);
@ -61,6 +65,7 @@ public class StoreProductServiceServiceImpl implements IStoreProductServiceServi
* @return
*/
@Override
@Transactional
public int updateStoreProductService(StoreProductService storeProductService) {
storeProductService.setUpdateTime(DateUtils.getNowDate());
return storeProductServiceMapper.updateStoreProductService(storeProductService);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductStockMapper;
import com.ruoyi.xkt.service.IStoreProductStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductStockServiceImpl implements IStoreProductStockService {
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductStock selectStoreProductStockByStoreProdStockId(Long storeProdStockId) {
return storeProductStockMapper.selectStoreProductStockByStoreProdStockId(storeProdStockId);
}
@ -38,6 +40,7 @@ public class StoreProductStockServiceImpl implements IStoreProductStockService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductStock> selectStoreProductStockList(StoreProductStock storeProductStock) {
return storeProductStockMapper.selectStoreProductStockList(storeProductStock);
}
@ -49,6 +52,7 @@ public class StoreProductStockServiceImpl implements IStoreProductStockService {
* @return
*/
@Override
@Transactional
public int insertStoreProductStock(StoreProductStock storeProductStock) {
storeProductStock.setCreateTime(DateUtils.getNowDate());
return storeProductStockMapper.insertStoreProductStock(storeProductStock);
@ -61,6 +65,7 @@ public class StoreProductStockServiceImpl implements IStoreProductStockService {
* @return
*/
@Override
@Transactional
public int updateStoreProductStock(StoreProductStock storeProductStock) {
storeProductStock.setUpdateTime(DateUtils.getNowDate());
return storeProductStockMapper.updateStoreProductStock(storeProductStock);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductStorageDemandDeducteMapper;
import com.ruoyi.xkt.service.IStoreProductStorageDemandDeducteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductStorageDemandDeducte selectStoreProductStorageDemandDeducteByStoreProdStorDemaDeducteId(Long storeProdStorDemaDeducteId) {
return storeProductStorageDemandDeducteMapper.selectStoreProductStorageDemandDeducteByStoreProdStorDemaDeducteId(storeProdStorDemaDeducteId);
}
@ -38,6 +40,7 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductStorageDemandDeducte> selectStoreProductStorageDemandDeducteList(StoreProductStorageDemandDeducte storeProductStorageDemandDeducte) {
return storeProductStorageDemandDeducteMapper.selectStoreProductStorageDemandDeducteList(storeProductStorageDemandDeducte);
}
@ -49,6 +52,7 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
* @return
*/
@Override
@Transactional
public int insertStoreProductStorageDemandDeducte(StoreProductStorageDemandDeducte storeProductStorageDemandDeducte) {
storeProductStorageDemandDeducte.setCreateTime(DateUtils.getNowDate());
return storeProductStorageDemandDeducteMapper.insertStoreProductStorageDemandDeducte(storeProductStorageDemandDeducte);
@ -61,6 +65,7 @@ public class StoreProductStorageDemandDeducteServiceImpl implements IStoreProduc
* @return
*/
@Override
@Transactional
public int updateStoreProductStorageDemandDeducte(StoreProductStorageDemandDeducte storeProductStorageDemandDeducte) {
storeProductStorageDemandDeducte.setUpdateTime(DateUtils.getNowDate());
return storeProductStorageDemandDeducteMapper.updateStoreProductStorageDemandDeducte(storeProductStorageDemandDeducte);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductStorageDetailMapper;
import com.ruoyi.xkt.service.IStoreProductStorageDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductStorageDetailServiceImpl implements IStoreProductStorag
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductStorageDetail selectStoreProductStorageDetailByStoreProdStorDetailId(Long storeProdStorDetailId) {
return storeProductStorageDetailMapper.selectStoreProductStorageDetailByStoreProdStorDetailId(storeProdStorDetailId);
}
@ -38,6 +40,7 @@ public class StoreProductStorageDetailServiceImpl implements IStoreProductStorag
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductStorageDetail> selectStoreProductStorageDetailList(StoreProductStorageDetail storeProductStorageDetail) {
return storeProductStorageDetailMapper.selectStoreProductStorageDetailList(storeProductStorageDetail);
}
@ -49,6 +52,7 @@ public class StoreProductStorageDetailServiceImpl implements IStoreProductStorag
* @return
*/
@Override
@Transactional
public int insertStoreProductStorageDetail(StoreProductStorageDetail storeProductStorageDetail) {
storeProductStorageDetail.setCreateTime(DateUtils.getNowDate());
return storeProductStorageDetailMapper.insertStoreProductStorageDetail(storeProductStorageDetail);
@ -61,6 +65,7 @@ public class StoreProductStorageDetailServiceImpl implements IStoreProductStorag
* @return
*/
@Override
@Transactional
public int updateStoreProductStorageDetail(StoreProductStorageDetail storeProductStorageDetail) {
storeProductStorageDetail.setUpdateTime(DateUtils.getNowDate());
return storeProductStorageDetailMapper.updateStoreProductStorageDetail(storeProductStorageDetail);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreProductStorageMapper;
import com.ruoyi.xkt.service.IStoreProductStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreProductStorageServiceImpl implements IStoreProductStorageServi
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreProductStorage selectStoreProductStorageByStoreProdStorId(Long storeProdStorId) {
return storeProductStorageMapper.selectStoreProductStorageByStoreProdStorId(storeProdStorId);
}
@ -38,6 +40,7 @@ public class StoreProductStorageServiceImpl implements IStoreProductStorageServi
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreProductStorage> selectStoreProductStorageList(StoreProductStorage storeProductStorage) {
return storeProductStorageMapper.selectStoreProductStorageList(storeProductStorage);
}
@ -49,6 +52,7 @@ public class StoreProductStorageServiceImpl implements IStoreProductStorageServi
* @return
*/
@Override
@Transactional
public int insertStoreProductStorage(StoreProductStorage storeProductStorage) {
storeProductStorage.setCreateTime(DateUtils.getNowDate());
return storeProductStorageMapper.insertStoreProductStorage(storeProductStorage);
@ -61,6 +65,7 @@ public class StoreProductStorageServiceImpl implements IStoreProductStorageServi
* @return
*/
@Override
@Transactional
public int updateStoreProductStorage(StoreProductStorage storeProductStorage) {
storeProductStorage.setUpdateTime(DateUtils.getNowDate());
return storeProductStorageMapper.updateStoreProductStorage(storeProductStorage);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreQuickFunctionMapper;
import com.ruoyi.xkt.service.IStoreQuickFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreQuickFunctionServiceImpl implements IStoreQuickFunctionService
* @return
*/
@Override
@Transactional(readOnly = true)
public StoreQuickFunction selectStoreQuickFunctionByStoreQuickFuncId(Long storeQuickFuncId) {
return storeQuickFunctionMapper.selectStoreQuickFunctionByStoreQuickFuncId(storeQuickFuncId);
}
@ -38,6 +40,7 @@ public class StoreQuickFunctionServiceImpl implements IStoreQuickFunctionService
* @return
*/
@Override
@Transactional(readOnly = true)
public List<StoreQuickFunction> selectStoreQuickFunctionList(StoreQuickFunction storeQuickFunction) {
return storeQuickFunctionMapper.selectStoreQuickFunctionList(storeQuickFunction);
}
@ -49,6 +52,7 @@ public class StoreQuickFunctionServiceImpl implements IStoreQuickFunctionService
* @return
*/
@Override
@Transactional
public int insertStoreQuickFunction(StoreQuickFunction storeQuickFunction) {
storeQuickFunction.setCreateTime(DateUtils.getNowDate());
return storeQuickFunctionMapper.insertStoreQuickFunction(storeQuickFunction);
@ -61,6 +65,7 @@ public class StoreQuickFunctionServiceImpl implements IStoreQuickFunctionService
* @return
*/
@Override
@Transactional
public int updateStoreQuickFunction(StoreQuickFunction storeQuickFunction) {
storeQuickFunction.setUpdateTime(DateUtils.getNowDate());
return storeQuickFunctionMapper.updateStoreQuickFunction(storeQuickFunction);
@ -73,6 +78,7 @@ public class StoreQuickFunctionServiceImpl implements IStoreQuickFunctionService
* @return
*/
@Override
@Transactional
public int deleteStoreQuickFunctionByStoreQuickFuncIds(Long[] storeQuickFuncIds) {
return storeQuickFunctionMapper.deleteStoreQuickFunctionByStoreQuickFuncIds(storeQuickFuncIds);
}
@ -84,6 +90,7 @@ public class StoreQuickFunctionServiceImpl implements IStoreQuickFunctionService
* @return
*/
@Override
@Transactional
public int deleteStoreQuickFunctionByStoreQuickFuncId(Long storeQuickFuncId) {
return storeQuickFunctionMapper.deleteStoreQuickFunctionByStoreQuickFuncId(storeQuickFuncId);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreRoleAccountMapper;
import com.ruoyi.xkt.service.IStoreRoleAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreRoleAccountServiceImpl implements IStoreRoleAccountService {
* @return
*/
@Override
@Transactional
public int insertStoreRoleAccount(StoreRoleAccount storeRoleAccount) {
storeRoleAccount.setCreateTime(DateUtils.getNowDate());
return storeRoleAccountMapper.insertStoreRoleAccount(storeRoleAccount);
@ -61,6 +63,7 @@ public class StoreRoleAccountServiceImpl implements IStoreRoleAccountService {
* @return
*/
@Override
@Transactional
public int updateStoreRoleAccount(StoreRoleAccount storeRoleAccount) {
storeRoleAccount.setUpdateTime(DateUtils.getNowDate());
return storeRoleAccountMapper.updateStoreRoleAccount(storeRoleAccount);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreRoleMenuMapper;
import com.ruoyi.xkt.service.IStoreRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreRoleMenuServiceImpl implements IStoreRoleMenuService {
* @return
*/
@Override
@Transactional
public int insertStoreRoleMenu(StoreRoleMenu storeRoleMenu) {
storeRoleMenu.setCreateTime(DateUtils.getNowDate());
return storeRoleMenuMapper.insertStoreRoleMenu(storeRoleMenu);
@ -61,6 +63,7 @@ public class StoreRoleMenuServiceImpl implements IStoreRoleMenuService {
* @return
*/
@Override
@Transactional
public int updateStoreRoleMenu(StoreRoleMenu storeRoleMenu) {
storeRoleMenu.setUpdateTime(DateUtils.getNowDate());
return storeRoleMenuMapper.updateStoreRoleMenu(storeRoleMenu);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreRoleMapper;
import com.ruoyi.xkt.service.IStoreRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreRoleServiceImpl implements IStoreRoleService {
* @return
*/
@Override
@Transactional
public int insertStoreRole(StoreRole storeRole) {
storeRole.setCreateTime(DateUtils.getNowDate());
return storeRoleMapper.insertStoreRole(storeRole);
@ -61,6 +63,7 @@ public class StoreRoleServiceImpl implements IStoreRoleService {
* @return
*/
@Override
@Transactional
public int updateStoreRole(StoreRole storeRole) {
storeRole.setUpdateTime(DateUtils.getNowDate());
return storeRoleMapper.updateStoreRole(storeRole);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreSaleDetailMapper;
import com.ruoyi.xkt.service.IStoreSaleDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreSaleDetailServiceImpl implements IStoreSaleDetailService {
* @return
*/
@Override
@Transactional
public int insertStoreSaleDetail(StoreSaleDetail storeSaleDetail) {
storeSaleDetail.setCreateTime(DateUtils.getNowDate());
return storeSaleDetailMapper.insertStoreSaleDetail(storeSaleDetail);
@ -61,6 +63,7 @@ public class StoreSaleDetailServiceImpl implements IStoreSaleDetailService {
* @return
*/
@Override
@Transactional
public int updateStoreSaleDetail(StoreSaleDetail storeSaleDetail) {
storeSaleDetail.setUpdateTime(DateUtils.getNowDate());
return storeSaleDetailMapper.updateStoreSaleDetail(storeSaleDetail);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreSaleRefundRecordMapper;
import com.ruoyi.xkt.service.IStoreSaleRefundRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreSaleRefundRecordServiceImpl implements IStoreSaleRefundRecordS
* @return
*/
@Override
@Transactional
public int insertStoreSaleRefundRecord(StoreSaleRefundRecord storeSaleRefundRecord) {
storeSaleRefundRecord.setCreateTime(DateUtils.getNowDate());
return storeSaleRefundRecordMapper.insertStoreSaleRefundRecord(storeSaleRefundRecord);
@ -61,6 +63,7 @@ public class StoreSaleRefundRecordServiceImpl implements IStoreSaleRefundRecordS
* @return
*/
@Override
@Transactional
public int updateStoreSaleRefundRecord(StoreSaleRefundRecord storeSaleRefundRecord) {
storeSaleRefundRecord.setUpdateTime(DateUtils.getNowDate());
return storeSaleRefundRecordMapper.updateStoreSaleRefundRecord(storeSaleRefundRecord);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreSaleMapper;
import com.ruoyi.xkt.service.IStoreSaleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class StoreSaleServiceImpl implements IStoreSaleService {
* @return
*/
@Override
@Transactional
public int insertStoreSale(StoreSale storeSale) {
storeSale.setCreateTime(DateUtils.getNowDate());
return storeSaleMapper.insertStoreSale(storeSale);
@ -61,6 +63,7 @@ public class StoreSaleServiceImpl implements IStoreSaleService {
* @return
*/
@Override
@Transactional
public int updateStoreSale(StoreSale storeSale) {
storeSale.setUpdateTime(DateUtils.getNowDate());
return storeSaleMapper.updateStoreSale(storeSale);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.StoreMapper;
import com.ruoyi.xkt.service.IStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class StoreServiceImpl implements IStoreService {
* @return
*/
@Override
@Transactional(readOnly = true)
public Store selectStoreByStoreId(Long storeId) {
return storeMapper.selectStoreByStoreId(storeId);
}
@ -38,6 +40,7 @@ public class StoreServiceImpl implements IStoreService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<Store> selectStoreList(Store store) {
return storeMapper.selectStoreList(store);
}

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.SysFileMapper;
import com.ruoyi.xkt.service.ISysFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class SysFileServiceImpl implements ISysFileService {
* @return file
*/
@Override
@Transactional(readOnly = true)
public SysFile selectSysFileByFileId(Long fileId) {
return sysFileMapper.selectSysFileByFileId(fileId);
}
@ -38,6 +40,7 @@ public class SysFileServiceImpl implements ISysFileService {
* @return file
*/
@Override
@Transactional(readOnly = true)
public List<SysFile> selectSysFileList(SysFile sysFile) {
return sysFileMapper.selectSysFileList(sysFile);
}
@ -49,6 +52,7 @@ public class SysFileServiceImpl implements ISysFileService {
* @return
*/
@Override
@Transactional
public int insertSysFile(SysFile sysFile) {
sysFile.setCreateTime(DateUtils.getNowDate());
return sysFileMapper.insertSysFile(sysFile);
@ -61,6 +65,7 @@ public class SysFileServiceImpl implements ISysFileService {
* @return
*/
@Override
@Transactional
public int updateSysFile(SysFile sysFile) {
sysFile.setUpdateTime(DateUtils.getNowDate());
return sysFileMapper.updateSysFile(sysFile);

View File

@ -6,6 +6,7 @@ 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;
@ -27,6 +28,7 @@ public class UserAccountServiceImpl implements IUserAccountService {
* @return
*/
@Override
@Transactional(readOnly = true)
public UserAccount selectUserAccountByUserAccId(Long userAccId) {
return userAccountMapper.selectUserAccountByUserAccId(userAccId);
}
@ -38,6 +40,7 @@ public class UserAccountServiceImpl implements IUserAccountService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<UserAccount> selectUserAccountList(UserAccount userAccount) {
return userAccountMapper.selectUserAccountList(userAccount);
}
@ -49,6 +52,7 @@ public class UserAccountServiceImpl implements IUserAccountService {
* @return
*/
@Override
@Transactional
public int insertUserAccount(UserAccount userAccount) {
userAccount.setCreateTime(DateUtils.getNowDate());
return userAccountMapper.insertUserAccount(userAccount);
@ -61,6 +65,7 @@ public class UserAccountServiceImpl implements IUserAccountService {
* @return
*/
@Override
@Transactional
public int updateUserAccount(UserAccount userAccount) {
userAccount.setUpdateTime(DateUtils.getNowDate());
return userAccountMapper.updateUserAccount(userAccount);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserAddressMapper;
import com.ruoyi.xkt.service.IUserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class UserAddressServiceImpl implements IUserAddressService {
* @return
*/
@Override
@Transactional(readOnly = true)
public UserAddress selectUserAddressByUserAddrId(Long userAddrId) {
return userAddressMapper.selectUserAddressByUserAddrId(userAddrId);
}
@ -38,6 +40,7 @@ public class UserAddressServiceImpl implements IUserAddressService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<UserAddress> selectUserAddressList(UserAddress userAddress) {
return userAddressMapper.selectUserAddressList(userAddress);
}
@ -49,6 +52,7 @@ public class UserAddressServiceImpl implements IUserAddressService {
* @return
*/
@Override
@Transactional
public int insertUserAddress(UserAddress userAddress) {
userAddress.setCreateTime(DateUtils.getNowDate());
return userAddressMapper.insertUserAddress(userAddress);
@ -61,6 +65,7 @@ public class UserAddressServiceImpl implements IUserAddressService {
* @return
*/
@Override
@Transactional
public int updateUserAddress(UserAddress userAddress) {
userAddress.setUpdateTime(DateUtils.getNowDate());
return userAddressMapper.updateUserAddress(userAddress);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserAuthenticationMapper;
import com.ruoyi.xkt.service.IUserAuthenticationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class UserAuthenticationServiceImpl implements IUserAuthenticationService
* @return
*/
@Override
@Transactional(readOnly = true)
public UserAuthentication selectUserAuthenticationByUserAuthId(Long userAuthId) {
return userAuthenticationMapper.selectUserAuthenticationByUserAuthId(userAuthId);
}
@ -38,6 +40,7 @@ public class UserAuthenticationServiceImpl implements IUserAuthenticationService
* @return
*/
@Override
@Transactional(readOnly = true)
public List<UserAuthentication> selectUserAuthenticationList(UserAuthentication userAuthentication) {
return userAuthenticationMapper.selectUserAuthenticationList(userAuthentication);
}
@ -49,6 +52,7 @@ public class UserAuthenticationServiceImpl implements IUserAuthenticationService
* @return
*/
@Override
@Transactional
public int insertUserAuthentication(UserAuthentication userAuthentication) {
userAuthentication.setCreateTime(DateUtils.getNowDate());
return userAuthenticationMapper.insertUserAuthentication(userAuthentication);
@ -61,6 +65,7 @@ public class UserAuthenticationServiceImpl implements IUserAuthenticationService
* @return
*/
@Override
@Transactional
public int updateUserAuthentication(UserAuthentication userAuthentication) {
userAuthentication.setUpdateTime(DateUtils.getNowDate());
return userAuthenticationMapper.updateUserAuthentication(userAuthentication);

View File

@ -6,6 +6,7 @@ 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;
@ -27,6 +28,7 @@ public class UserBillingStatementServiceImpl implements IUserBillingStatementSer
* @return
*/
@Override
@Transactional(readOnly = true)
public UserBillingStatement selectUserBillingStatementByUserBillStatId(Long userBillStatId) {
return userBillingStatementMapper.selectUserBillingStatementByUserBillStatId(userBillStatId);
}
@ -49,6 +51,7 @@ public class UserBillingStatementServiceImpl implements IUserBillingStatementSer
* @return
*/
@Override
@Transactional
public int insertUserBillingStatement(UserBillingStatement userBillingStatement) {
userBillingStatement.setCreateTime(DateUtils.getNowDate());
return userBillingStatementMapper.insertUserBillingStatement(userBillingStatement);
@ -61,6 +64,7 @@ public class UserBillingStatementServiceImpl implements IUserBillingStatementSer
* @return
*/
@Override
@Transactional
public int updateUserBillingStatement(UserBillingStatement userBillingStatement) {
userBillingStatement.setUpdateTime(DateUtils.getNowDate());
return userBillingStatementMapper.updateUserBillingStatement(userBillingStatement);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserBrowsingHistoryMapper;
import com.ruoyi.xkt.service.IUserBrowsingHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class UserBrowsingHistoryServiceImpl implements IUserBrowsingHistoryServi
* @return
*/
@Override
@Transactional(readOnly = true)
public UserBrowsingHistory selectUserBrowsingHistoryByUserBrowHisId(Long userBrowHisId) {
return userBrowsingHistoryMapper.selectUserBrowsingHistoryByUserBrowHisId(userBrowHisId);
}
@ -38,6 +40,7 @@ public class UserBrowsingHistoryServiceImpl implements IUserBrowsingHistoryServi
* @return
*/
@Override
@Transactional(readOnly = true)
public List<UserBrowsingHistory> selectUserBrowsingHistoryList(UserBrowsingHistory userBrowsingHistory) {
return userBrowsingHistoryMapper.selectUserBrowsingHistoryList(userBrowsingHistory);
}
@ -49,6 +52,7 @@ public class UserBrowsingHistoryServiceImpl implements IUserBrowsingHistoryServi
* @return
*/
@Override
@Transactional
public int insertUserBrowsingHistory(UserBrowsingHistory userBrowsingHistory) {
userBrowsingHistory.setCreateTime(DateUtils.getNowDate());
return userBrowsingHistoryMapper.insertUserBrowsingHistory(userBrowsingHistory);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserFavoritesMapper;
import com.ruoyi.xkt.service.IUserFavoritesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class UserFavoritesServiceImpl implements IUserFavoritesService {
* @return
*/
@Override
@Transactional(readOnly = true)
public UserFavorites selectUserFavoritesByUserFavoId(Long userFavoId) {
return userFavoritesMapper.selectUserFavoritesByUserFavoId(userFavoId);
}
@ -38,6 +40,7 @@ public class UserFavoritesServiceImpl implements IUserFavoritesService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<UserFavorites> selectUserFavoritesList(UserFavorites userFavorites) {
return userFavoritesMapper.selectUserFavoritesList(userFavorites);
}
@ -49,6 +52,7 @@ public class UserFavoritesServiceImpl implements IUserFavoritesService {
* @return
*/
@Override
@Transactional
public int insertUserFavorites(UserFavorites userFavorites) {
userFavorites.setCreateTime(DateUtils.getNowDate());
return userFavoritesMapper.insertUserFavorites(userFavorites);
@ -61,6 +65,7 @@ public class UserFavoritesServiceImpl implements IUserFavoritesService {
* @return
*/
@Override
@Transactional
public int updateUserFavorites(UserFavorites userFavorites) {
userFavorites.setUpdateTime(DateUtils.getNowDate());
return userFavoritesMapper.updateUserFavorites(userFavorites);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserNoticeMapper;
import com.ruoyi.xkt.service.IUserNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -27,6 +28,7 @@ public class UserNoticeServiceImpl implements IUserNoticeService {
* @return
*/
@Override
@Transactional(readOnly = true)
public UserNotice selectUserNoticeByUserNoticeId(Long userNoticeId) {
return userNoticeMapper.selectUserNoticeByUserNoticeId(userNoticeId);
}
@ -38,6 +40,7 @@ public class UserNoticeServiceImpl implements IUserNoticeService {
* @return
*/
@Override
@Transactional(readOnly = true)
public List<UserNotice> selectUserNoticeList(UserNotice userNotice) {
return userNoticeMapper.selectUserNoticeList(userNotice);
}
@ -49,6 +52,7 @@ public class UserNoticeServiceImpl implements IUserNoticeService {
* @return
*/
@Override
@Transactional
public int insertUserNotice(UserNotice userNotice) {
userNotice.setCreateTime(DateUtils.getNowDate());
return userNoticeMapper.insertUserNotice(userNotice);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserNoticeSettingMapper;
import com.ruoyi.xkt.service.IUserNoticeSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class UserNoticeSettingServiceImpl implements IUserNoticeSettingService {
* @return
*/
@Override
@Transactional
public int insertUserNoticeSetting(UserNoticeSetting userNoticeSetting) {
userNoticeSetting.setCreateTime(DateUtils.getNowDate());
return userNoticeSettingMapper.insertUserNoticeSetting(userNoticeSetting);
@ -61,6 +63,7 @@ public class UserNoticeSettingServiceImpl implements IUserNoticeSettingService {
* @return
*/
@Override
@Transactional
public int updateUserNoticeSetting(UserNoticeSetting userNoticeSetting) {
userNoticeSetting.setUpdateTime(DateUtils.getNowDate());
return userNoticeSettingMapper.updateUserNoticeSetting(userNoticeSetting);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserQuickFunctionMapper;
import com.ruoyi.xkt.service.IUserQuickFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class UserQuickFunctionServiceImpl implements IUserQuickFunctionService {
* @return
*/
@Override
@Transactional
public int insertUserQuickFunction(UserQuickFunction userQuickFunction) {
userQuickFunction.setCreateTime(DateUtils.getNowDate());
return userQuickFunctionMapper.insertUserQuickFunction(userQuickFunction);
@ -61,6 +63,7 @@ public class UserQuickFunctionServiceImpl implements IUserQuickFunctionService {
* @return
*/
@Override
@Transactional
public int updateUserQuickFunction(UserQuickFunction userQuickFunction) {
userQuickFunction.setUpdateTime(DateUtils.getNowDate());
return userQuickFunctionMapper.updateUserQuickFunction(userQuickFunction);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserShoppingCartMapper;
import com.ruoyi.xkt.service.IUserShoppingCartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class UserShoppingCartServiceImpl implements IUserShoppingCartService {
* @return
*/
@Override
@Transactional
public int insertUserShoppingCart(UserShoppingCart userShoppingCart) {
userShoppingCart.setCreateTime(DateUtils.getNowDate());
return userShoppingCartMapper.insertUserShoppingCart(userShoppingCart);
@ -61,6 +63,7 @@ public class UserShoppingCartServiceImpl implements IUserShoppingCartService {
* @return
*/
@Override
@Transactional
public int updateUserShoppingCart(UserShoppingCart userShoppingCart) {
userShoppingCart.setUpdateTime(DateUtils.getNowDate());
return userShoppingCartMapper.updateUserShoppingCart(userShoppingCart);

View File

@ -6,6 +6,7 @@ import com.ruoyi.xkt.mapper.UserSubscriptionsMapper;
import com.ruoyi.xkt.service.IUserSubscriptionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@ -49,6 +50,7 @@ public class UserSubscriptionsServiceImpl implements IUserSubscriptionsService {
* @return
*/
@Override
@Transactional
public int insertUserSubscriptions(UserSubscriptions userSubscriptions) {
userSubscriptions.setCreateTime(DateUtils.getNowDate());
return userSubscriptionsMapper.insertUserSubscriptions(userSubscriptions);
@ -61,6 +63,7 @@ public class UserSubscriptionsServiceImpl implements IUserSubscriptionsService {
* @return
*/
@Override
@Transactional
public int updateUserSubscriptions(UserSubscriptions userSubscriptions) {
userSubscriptions.setUpdateTime(DateUtils.getNowDate());
return userSubscriptionsMapper.updateUserSubscriptions(userSubscriptions);

View File

@ -128,5 +128,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="prodCateId != null "> and sp.prod_cate_id = #{prodCateId}</if>
</select>
<select id="fuzzyQueryColorList" resultType="com.ruoyi.xkt.dto.storeProdColor.StoreProdColorResDTO">
SELECT DISTINCT
sp.store_id AS storeId,
spc.store_color_id AS storeColorId,
sp.prod_art_num AS prodArtNum,
spc.color_name AS colorName,
spc.order_num AS orderNum
FROM
store_product_color spc
LEFT JOIN store_product sp ON spc.store_prod_id = sp.store_prod_id
WHERE
spc.del_flag = 0
AND spc.store_id = #{storeId}
<if test="prodArtNum != null and prodArtNum != ''"> and sp.prod_art_num like concat('%', #{prodArtNum}, '%')</if>
</select>
</mapper>