|
@@ -24,8 +24,12 @@ public class StatisticsTypeServiceImpl implements StatisticsTypeService {
|
|
|
* 点击时做修改统计
|
|
|
*/
|
|
|
@Override
|
|
|
- public ResponseJson alterTypeNumber(Integer typeId) {
|
|
|
- int i = typeMapper.updataTypeNumber(typeId,new Date());
|
|
|
+ public ResponseJson alterTypeNumber(Integer typeId, Integer bannerId) {
|
|
|
+ // 统计为 banner 进入时应记录 bannerId 统计 banner 点击次数
|
|
|
+ if (1 == typeId) {
|
|
|
+ return ResponseJson.error(-1, "bannerId不能为空", null);
|
|
|
+ }
|
|
|
+ int i = typeMapper.updataTypeNumber(typeId, bannerId);
|
|
|
return ResponseJson.success(i);
|
|
|
}
|
|
|
}
|