@ResponseBody
  @RequestMapping(value = "/loadModifyJobDefinition")
  public void loadModifyJobDefinition(
      @RequestParam Map<String, Object> map, HttpServletResponse response) throws Exception {
    Object id = map.get("id");
    JSONObject jsonObject = new JSONObject();
    if (!AssertHelper.isOrNotEmpty_assert(id)) {
      AssertHelper.notEmpty_assert(id, "需要删除的数据不能为空");
      jsonObject.put("success", "false");
      jsonObject.put("errorMsg", "编辑的主键不能为空");
    } else {
      JobDefinition entity =
          (JobDefinition) jobDefinitionService.get(JobDefinition.class, id.toString());
      jsonObject.put("success", "true");
      JobDefinitionInParam aa = new JobDefinitionInParam();

      ReflectUtils.copyProperties(entity, aa);
      jsonObject.put("taskShceduleForm", aa);
      retJson(response, jsonObject);
    }
  }
 public UserOperationInParam convertUserOperationToInParam(UserOperation model) {
   UserOperationInParam inparam = new UserOperationInParam();
   ReflectUtils.copyProperties(model, inparam);
   return inparam;
 }
 public UserOperation convertUserOperationInParamToEntity(UserOperationInParam inParam) {
   UserOperation entity = new UserOperation();
   ReflectUtils.copyProperties(inParam, entity);
   return entity;
 }
 public void updateModifyJobDefinition(ClientInParam inParam) throws Exception {
   JobDefinition entity =
       (JobDefinition) jobDefinitionService.get(JobDefinition.class, inParam.getId());
   ReflectUtils.copyProperties(inParam, entity);
   jobDefinitionService.update(entity);
 }