囤油锁价
This commit is contained in:
parent
4dc581ef2b
commit
be2258b6c7
@ -45,6 +45,17 @@ public class FavorableRecordsController extends BaseController {
|
|||||||
return getSuccessResult(this.favorableRecordsService.selectList(page, favorableRecords));
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键查询单条数据
|
* 通过主键查询单条数据
|
||||||
*
|
*
|
||||||
|
@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.fuint.business.marketingActivity.favorableRecords.entity.FavorableRecords;
|
import com.fuint.business.marketingActivity.favorableRecords.entity.FavorableRecords;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 优惠记录表(FavorableRecords)表服务接口
|
* 优惠记录表(FavorableRecords)表服务接口
|
||||||
*
|
*
|
||||||
@ -16,5 +18,7 @@ public interface FavorableRecordsService extends IService<FavorableRecords> {
|
|||||||
boolean insert(FavorableRecords favorableRecords);
|
boolean insert(FavorableRecords favorableRecords);
|
||||||
|
|
||||||
IPage selectList(Page page, FavorableRecords favorableRecords);
|
IPage selectList(Page page, FavorableRecords favorableRecords);
|
||||||
|
|
||||||
|
Map<String,Object> selectCount(FavorableRecords favorableRecords);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@ import com.fuint.common.dto.AccountInfo;
|
|||||||
import com.fuint.common.util.TokenUtil;
|
import com.fuint.common.util.TokenUtil;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 优惠记录表(FavorableRecords)表服务实现类
|
* 优惠记录表(FavorableRecords)表服务实现类
|
||||||
*
|
*
|
||||||
@ -40,5 +42,11 @@ public class FavorableRecordsServiceImpl extends ServiceImpl<FavorableRecordsMap
|
|||||||
IPage page1 = page(page, queryWrapper);
|
IPage page1 = page(page, queryWrapper);
|
||||||
return page1;
|
return page1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> selectCount(FavorableRecords favorableRecords) {
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user