Commit 848cf3fb authored by 赵啸非's avatar 赵啸非

设备列表导出优化

parent 2dbe8014
......@@ -73,7 +73,7 @@ public class MessageServiceImpl implements MessageService {
@Override
public void send(TopicPartitionInfo info, TbQueueMsgHeaders header, String message, TbQueueCallback callback) {
TbQueueProducer<TbQueueMsg> producer = producerProvider.getTbCoreMsgProducer();
TbQueueMsg queueMsg = new DefaultTbQueueMsg(IdUtil.fastUUID(), message == null ? "".getBytes() : message.getBytes(), header);
TbQueueMsg queueMsg = new DefaultTbQueueMsg(IdUtil.fastUUID(), message == null ? "" : message, header);
producer.send(info, queueMsg, callback);
}
......
package com.mortals.xhx.module.product.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.vo.ProductVo;
/**
* 产品实体对象
......
......@@ -15,28 +15,25 @@ import java.util.Map;
import java.util.stream.Collectors;
/**
*
* 产品
*
* @author zxfei
* @date 2022-06-27
*/
* 产品
*
* @author zxfei
* @date 2022-06-27
*/
@RestController
@RequestMapping("product")
public class ProductController extends BaseCRUDJsonBodyMappingController<ProductService,ProductEntity,Long> {
public class ProductController extends BaseCRUDJsonBodyMappingController<ProductService, ProductEntity, Long> {
@Autowired
private ParamService paramService;
@Autowired
private PlatformService platformService;
public ProductController(){
super.setModuleDesc( "产品");
public ProductController() {
super.setModuleDesc("产品");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model,"platformId",platformService.find(new PlatformQuery()).stream().collect(Collectors.toMap(x->x.getId().toString(),y->y.getPlatformName())));
this.addDict(model, "platformId", platformService.find(new PlatformQuery()).stream().collect(Collectors.toMap(x -> x.getId().toString(), y -> y.getPlatformName())));
super.init(model, context);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment