whycrzg
2021-02-02 086b0d677e761bb5d528e6f29232d663af6e83c7
src/main/java/com/fgkj/controller/User_task_batt_templateController.java
@@ -42,7 +42,9 @@
   //4.4 作业模板管理(删除)
   @DeleteMapping("/")
   @ApiOperation(notes = "",value="作业模板管理(删除)")
   public ServiceModel delete(@RequestBody User_task_batt_template utbt){
   public ServiceModel delete(@RequestParam Integer template_id){
      User_task_batt_template utbt = new User_task_batt_template();
      utbt.setTemplate_id(template_id);
      ServiceModel model=service.delete(utbt);
      
      return model;
@@ -51,7 +53,9 @@
   //4.4根据模板id查询模板的信息
   @PostMapping("byCondition")
   @ApiOperation(notes = "",value="模板id查询模板的信息")
    public ServiceModel serchByCondition(@RequestBody User_task_batt_template utbt){
    public ServiceModel serchByCondition(@RequestParam Integer template_id){
      User_task_batt_template utbt = new User_task_batt_template();
      utbt.setTemplate_id(template_id);
       ServiceModel model=service.serchByCondition(utbt);
       
       return model;