master:系统优化;

pull/1121/head
liujiang 2025-09-11 19:43:44 +08:00
parent 68b4a6a2a8
commit eb8ef57fe6
3 changed files with 6 additions and 9 deletions

View File

@ -136,9 +136,9 @@ public class AdvertRoundController extends XktBaseController {
@PreAuthorize("@ss.hasAnyRoles('admin,general_admin,store')||@ss.hasSupplierSubRole()")
@ApiOperation(value = "根据advertRoundId查看设置的商品及设置的推广图", httpMethod = "GET", response = R.class)
@GetMapping(value = "/set/{advertRoundId}/{storeId}")
public R<AdRoundLatestResVO> getSetInfo(@PathVariable("advertRoundId") Long advertRoundId, @PathVariable("storeId") Long storeId) {
return R.ok(BeanUtil.toBean(advertRoundService.getSetInfo(advertRoundId, storeId), AdRoundLatestResVO.class));
@GetMapping(value = "/set/{advertRoundId}")
public R<AdRoundLatestResVO> getSetInfo(@PathVariable("advertRoundId") Long advertRoundId) {
return R.ok(BeanUtil.toBean(advertRoundService.getSetInfo(advertRoundId), AdRoundLatestResVO.class));
}

View File

@ -143,8 +143,7 @@ public interface IAdvertRoundService {
* 广IDID 广
*
* @param advertRoundId 广ID
* @param storeId ID
* @return AdRoundLatestResDTO
*/
AdRoundLatestResDTO getSetInfo(Long advertRoundId, Long storeId);
AdRoundLatestResDTO getSetInfo(Long advertRoundId);
}

View File

@ -477,15 +477,13 @@ public class AdvertRoundServiceImpl implements IAdvertRoundService {
* 广IDID 广
*
* @param advertRoundId 广ID
* @param storeId ID
* @return AdRoundLatestResDTO
*/
@Override
@Transactional(readOnly = true)
public AdRoundLatestResDTO getSetInfo(Long advertRoundId, Long storeId) {
public AdRoundLatestResDTO getSetInfo(Long advertRoundId) {
AdvertRound advertRound = this.advertRoundMapper.selectOne(new LambdaQueryWrapper<AdvertRound>()
.eq(AdvertRound::getId, advertRoundId).eq(AdvertRound::getDelFlag, Constants.UNDELETED)
.eq(AdvertRound::getStoreId, storeId));
.eq(AdvertRound::getId, advertRoundId).eq(AdvertRound::getDelFlag, Constants.UNDELETED));
AdRoundLatestResDTO roundSetInfoDTO = new AdRoundLatestResDTO();
if (ObjectUtils.isEmpty(advertRound)) {
return roundSetInfoDTO;