更新10.10
This commit is contained in:
parent
85fce1ac22
commit
ed1a41de21
@ -175,5 +175,16 @@ public class ActiveAppletController extends BaseController {
|
|||||||
public ResponseObject editStatus(@PathVariable Integer id) {
|
public ResponseObject editStatus(@PathVariable Integer id) {
|
||||||
return getSuccessResult(activeAppletService.updateActiveStatus(id));
|
return getSuccessResult(activeAppletService.updateActiveStatus(id));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 根据storeId查询邀请有礼活动(小程序)
|
||||||
|
* @param storeId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("getRecommendedByStoreId")
|
||||||
|
public ResponseObject getRecommendedByStoreId(Integer storeId){
|
||||||
|
return getSuccessResult(activeAppletService.selectByStoreId(storeId));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -61,5 +61,13 @@ public interface ActiveAppletService extends IService<ActiveApplet> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
ActiveApplet selectByActiveId(Integer activeId,String type);
|
ActiveApplet selectByActiveId(Integer activeId,String type);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 根据storeId查询邀请有礼信息
|
||||||
|
* @param storeId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
ActiveApplet selectByStoreId(Integer storeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.fuint.business.marketingActivity.activeApplet.service.impl;
|
package com.fuint.business.marketingActivity.activeApplet.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
@ -199,6 +200,21 @@ public class ActiveAppletServiceImpl extends ServiceImpl<ActiveAppletMapper, Act
|
|||||||
return baseMapper.selectOne(queryWrapper);
|
return baseMapper.selectOne(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据storeId查询邀请有礼信息
|
||||||
|
*
|
||||||
|
* @param storeId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ActiveApplet selectByStoreId(Integer storeId) {
|
||||||
|
return baseMapper.selectOne(new LambdaQueryWrapper<ActiveApplet>()
|
||||||
|
.eq(ActiveApplet::getStoreId, storeId)
|
||||||
|
.eq(ActiveApplet::getType, "7")
|
||||||
|
.eq(ActiveApplet::getIsonline, "0")
|
||||||
|
.eq(ActiveApplet::getActiveStatus, "1"));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 类型转换
|
* 类型转换
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user