|
@@ -13,6 +13,7 @@ import com.kexun.model.ro.FiledTemplateUpdateRO;
|
|
|
import com.kexun.model.vo.FiledTemplateVO;
|
|
|
import com.kexun.service.BusinessService;
|
|
|
import com.kexun.service.CooperatorService;
|
|
|
+import com.kexun.service.FieldTemplateRefService;
|
|
|
import com.kexun.service.FieldTemplateService;
|
|
|
import lombok.extern.java.Log;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -30,6 +31,8 @@ public class FieldTemplateController {
|
|
|
@Autowired
|
|
|
private FieldTemplateService fieldTemplateService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FieldTemplateRefService fieldTemplateRefService;
|
|
|
|
|
|
/**
|
|
|
* 获取字段模版信息
|
|
@@ -74,6 +77,25 @@ public class FieldTemplateController {
|
|
|
return Result.success("ok", resJson);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ //编辑字段用
|
|
|
+ @RequestMapping("/findTemplateFieldByNum")
|
|
|
+ @ResponseBody
|
|
|
+ public Result findTemplateFieldByNo(@RequestBody String json){
|
|
|
+ JSONObject req = JSON.parseObject(json);
|
|
|
+ int pageNum = req.getIntValue("pageNum");
|
|
|
+ int pageSize = req.getIntValue("pageSize");
|
|
|
+ String templateNo = req.getString("templateNo");
|
|
|
+
|
|
|
+ PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
+ List<FieldTemplateRefEntity> list = fieldTemplateRefService.findTemplateFieldByNo(templateNo);
|
|
|
+ PageInfo pageInfo=new PageInfo(list);
|
|
|
+ System.out.println(pageInfo);
|
|
|
+ JSONObject resJson = new JSONObject();
|
|
|
+ resJson.put("base_field", pageInfo);
|
|
|
+ return Result.success("ok", resJson);
|
|
|
+ }
|
|
|
+
|
|
|
@RequestMapping("/selectTemplate")
|
|
|
public Result selectTemplate(@RequestBody String json){
|
|
|
JSONObject req = JSON.parseObject(json);
|