囤油锁价

This commit is contained in:
齐天大圣 2024-05-13 11:09:12 +08:00
parent 4dc581ef2b
commit be2258b6c7
3 changed files with 23 additions and 0 deletions

View File

@ -45,6 +45,17 @@ public class FavorableRecordsController extends BaseController {
return getSuccessResult(this.favorableRecordsService.selectList(page, favorableRecords));
}
/**
* 统计所有数据
* @param favorableRecords
* @return
*/
@GetMapping("/count")
public ResponseObject selectCount(@Param("cardValueOrders") FavorableRecords favorableRecords) {
return getSuccessResult(this.favorableRecordsService.selectCount(favorableRecords));
}
/**
* 通过主键查询单条数据
*

View File

@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fuint.business.marketingActivity.favorableRecords.entity.FavorableRecords;
import java.util.Map;
/**
* 优惠记录表(FavorableRecords)表服务接口
*
@ -16,5 +18,7 @@ public interface FavorableRecordsService extends IService<FavorableRecords> {
boolean insert(FavorableRecords favorableRecords);
IPage selectList(Page page, FavorableRecords favorableRecords);
Map<String,Object> selectCount(FavorableRecords favorableRecords);
}

View File

@ -11,6 +11,8 @@ import com.fuint.common.dto.AccountInfo;
import com.fuint.common.util.TokenUtil;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 优惠记录表(FavorableRecords)表服务实现类
*
@ -40,5 +42,11 @@ public class FavorableRecordsServiceImpl extends ServiceImpl<FavorableRecordsMap
IPage page1 = page(page, queryWrapper);
return page1;
}
@Override
public Map<String, Object> selectCount(FavorableRecords favorableRecords) {
return null;
}
}