Commit b7072eec authored by 赵啸非's avatar 赵啸非

首页添加站点分别请求,消息模块改造,添加客户端版本管理。

parent 5a8363f1
package com.mortals.xhx.module.product.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.product.model.ProductEntity;
import com.mortals.xhx.module.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -34,7 +36,7 @@ import static com.mortals.framework.ap.SysConstains.*;
public class ProductVersionController extends BaseCRUDJsonBodyMappingController<ProductVersionService,ProductVersionEntity,Long> {
@Autowired
private ParamService paramService;
private ProductService productService;
public ProductVersionController(){
super.setModuleDesc( "产品客户端版本");
......@@ -42,7 +44,12 @@ public class ProductVersionController extends BaseCRUDJsonBodyMappingController<
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "productId", productService.find(new ProductEntity()).stream().collect(Collectors.toMap(x -> x.getId().toString(), y -> y.getProductName())));
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