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

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

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