修改一些bug

This commit is contained in:
xuwenbo
2020-05-13 09:27:25 +08:00
parent 33db98681d
commit b26f976a46
6 changed files with 25 additions and 15 deletions

View File

@ -42,7 +42,7 @@ public class WechatMenuController {
@GetMapping(value = "/YxWechatMenu")
@PreAuthorize("@el.check('admin','YxWechatMenu_ALL','YxWechatMenu_SELECT')")
public ResponseEntity getYxWechatMenus(){
return new ResponseEntity(YxWechatMenuService.getOne(new QueryWrapper<YxWechatMenu>().eq("key","wechat_menus")),HttpStatus.OK);
return new ResponseEntity(YxWechatMenuService.getOne(new QueryWrapper<YxWechatMenu>().eq("`key`","wechat_menus")),HttpStatus.OK);
}

View File

@ -1,14 +1,16 @@
package co.yixiang.modules.shop.service.dto;
import lombok.Data;
/**
* @ClassName ChartDataDTO
* @Author hupeng <610796224@qq.com>
* @Date 2019/11/25
**/
//@Data
public interface ChartDataDTO{
@Data
public class ChartDataDTO{
// @Value("#{target.adminCount}")
Double getNum();
String getTime();
private Double num;
private String time;
}

View File

@ -2,8 +2,8 @@ package co.yixiang.modules.shop.service.dto;
import lombok.Data;
//@Data
public interface CountDto {
@Data
public class CountDto {
String getCatename();
private String catename;
}

View File

@ -49,13 +49,13 @@ public class YxStoreOrderQueryCriteria{
@Query
private Integer bargainId;
@Query(propName="combinationId",type = Query.Type.NOT_EQUAL)
@Query(propName="combination_id",type = Query.Type.NOT_EQUAL)
private Integer newCombinationId;
@Query(propName="seckillId",type = Query.Type.NOT_EQUAL)
@Query(propName="seckill_id",type = Query.Type.NOT_EQUAL)
private Integer newSeckillId;
@Query(propName="bargainId",type = Query.Type.NOT_EQUAL)
@Query(propName="bargain_id",type = Query.Type.NOT_EQUAL)
private Integer newBargainId;
@Query

View File

@ -197,7 +197,7 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<YxStoreOrderMapper,
}
Map<String, Object> map = new LinkedHashMap<>(2);
map.put("content", generator.convert(page.getList(), YxStoreOrderDto.class));
map.put("content", storeOrderDTOS);
map.put("totalElements", page.getTotal());
return map;
}

View File

@ -2,6 +2,7 @@ package co.yixiang.modules.shop.service.impl;
import co.yixiang.modules.shop.domain.YxSystemGroupData;
import co.yixiang.common.service.impl.BaseServiceImpl;
import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import co.yixiang.dozer.service.IGenerator;
import com.github.pagehelper.PageHelper;
@ -49,8 +50,15 @@ public class YxSystemGroupDataServiceImpl extends BaseServiceImpl<YxSystemGroupD
getPage(pageable);
PageInfo<YxSystemGroupData> page = new PageInfo<>(queryAll(criteria));
Map<String, Object> map = new LinkedHashMap<>(2);
map.put("content", generator.convert(page.getList(), YxSystemGroupDataDto.class));
map.put("totalElements", page.getTotal());
List<YxSystemGroupDataDto> systemGroupDataDTOS = new ArrayList<>();
for (YxSystemGroupData systemGroupData : page.getList()) {
YxSystemGroupDataDto systemGroupDataDTO = generator.convert(systemGroupData,YxSystemGroupDataDto.class);
systemGroupDataDTO.setMap(JSON.parseObject(systemGroupData.getValue()));
systemGroupDataDTOS.add(systemGroupDataDTO);
}
map.put("content",systemGroupDataDTOS);
map.put("totalElements",page.getTotal());
return map;
}