|
@@ -48,6 +48,7 @@ public class AppServiceImpl implements AppService {
|
|
|
//判断是否存在该商户
|
|
|
QueryWrapper<Commercial> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("commercial_id",appVo.getCommercialId());
|
|
|
+ queryWrapper.eq("state",1);
|
|
|
Long aLong = commercialMapper.selectCount(queryWrapper);
|
|
|
if (aLong > 0){
|
|
|
App app = new App(appVo);
|
|
@@ -170,6 +171,7 @@ public class AppServiceImpl implements AppService {
|
|
|
public List<Commercial> getCommercialList() {
|
|
|
QueryWrapper<Commercial> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.select("commercial_id","commercial_name");
|
|
|
+ queryWrapper.eq("state",1);
|
|
|
List<Commercial> commercials = commercialMapper.selectList(queryWrapper);
|
|
|
return commercials;
|
|
|
}
|