| | |
| | | public class User_task_paramController{ |
| | | @Resource |
| | | private User_task_paramService service; |
| | | |
| | | |
| | | //4.2作业参数(新增作业参数) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="作业参数(新增作业参数)") |
| | | @ApiOperation(notes = "tp_task_notice_starttime 等时间参数不能为空 { \"tp_name\": \"\", \"tp_taskname\": \"\", \"tp_tasktype\": 0, \"tp_autoinc_daycount\": 0, \"tp_taskdelay_daycount\": 0, \"tp_pass_saturday\": 0, \"tp_pass_sunday\": 0, \"tp_pass_jiejiari\": 0, \"tp_task_notice_count\": 0, \"tp_task_notice_time_interval\": 0, \"tp_task_notice_starttime\": \"2021-01-07 08:16:26\", \"tp_task_notice_endtime\": \"2021-01-07 08:16:26\", \"tp_task_enabled\": 0, \"tp_master_id\": \"\", \"tp_notice_master_enabled\": 0, \"tp_task_battlife_var\": 0, \"tp_task_battyong_test80_month\": 0, \"tp_task_battold_test80_month\": 0, \"tp_task_battyong_test40_month\": 0, \"tp_task_battold_test40_month\": 0, \"tp_task_batt_checkcircle_month\": 0, \"tp_task_batt_checklimit_month\": 0, \"tp_task_batt_lazhacircle_month\": 0, \"tp_task_batt_lazhalimit_month\": 0 }",value="作业参数(新增作业参数)") |
| | | public ServiceModel add(@RequestBody User_task_param utp) { |
| | | ServiceModel model=service.add(utp); |
| | | |
| | |
| | | |
| | | //4.2作业参数(重命名操作) |
| | | @PutMapping("pro") |
| | | @ApiOperation(notes = "",value="作业参数(重命名操作)") |
| | | @ApiOperation(notes = "tp_task_notice_starttime 时间参数不能为空",value="作业参数(重命名操作)") |
| | | public ServiceModel updatePro(@RequestBody List<User_task_param> uplist) { |
| | | ServiceModel model=service.updatePro(uplist); |
| | | |
| | |
| | | return model; |
| | | } |
| | | |
| | | //4.2根据参数id查基本参数和模板参数 |
| | | @GetMapping("byCondition") |
| | | //4.2根据参数id查基本参数和模板参数 100001 |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="参数id查基本参数和模板参数") |
| | | public ServiceModel serchByCondition(@RequestBody User_task_param utp){ |
| | | public ServiceModel serchByCondition(@RequestParam Integer tp_num){ |
| | | User_task_param utp = new User_task_param(); |
| | | utp.setTp_num(tp_num); |
| | | ServiceModel model=service.serchByCondition(utp); |
| | | |
| | | return model; |