ios内购
This commit is contained in:
@@ -13,6 +13,8 @@ public interface SysFeedbackService extends IService<SysFeedback> {
|
||||
|
||||
SysFeedback getById(Map<String,Object> params);
|
||||
|
||||
int editStatusById(Map<String,Object> params);
|
||||
|
||||
int delById(Map<String,Object> params);
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@ import com.peanut.modules.common.service.SysFeedbackService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -23,6 +25,9 @@ public class SysFeedbackServiceImpl extends ServiceImpl<SysFeedbackDao, SysFeedb
|
||||
@Override
|
||||
public List<SysFeedback> getList(Map<String, Object> params) {
|
||||
LambdaQueryWrapper<SysFeedback> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.orderByAsc(SysFeedback::getStatus);
|
||||
queryWrapper.orderByDesc(SysFeedback::getCreateTime);
|
||||
queryWrapper.orderByDesc(SysFeedback::getUpdateTime);
|
||||
if (StringUtils.isNotBlank(params.get("account").toString())){
|
||||
queryWrapper.like(SysFeedback::getAccount,params.get("account"));
|
||||
}
|
||||
@@ -40,6 +45,17 @@ public class SysFeedbackServiceImpl extends ServiceImpl<SysFeedbackDao, SysFeedb
|
||||
return this.baseMapper.selectById(params.get("sysFeedbackId").toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int editStatusById(Map<String, Object> params) {
|
||||
SysFeedback entity = this.baseMapper.selectById(params.get("sysFeedbackId").toString());
|
||||
if (entity != null) {
|
||||
entity.setStatus("1");
|
||||
entity.setUpdateTime(new Date());
|
||||
return this.baseMapper.updateById(entity);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delById(Map<String, Object> params) {
|
||||
return this.baseMapper.deleteById(params.get("sysFeedbackId").toString());
|
||||
|
||||
Reference in New Issue
Block a user