docs: protected void valid(Object pData) throws APPErrorException {
          if(pData instanceof TemplateModel){
              TemplateModel entity = (TemplateModel) pData;
              if (StringUtil.isNullOrEmpty(entity.getId())) {
                  throw new APPErrorException("无效的主键");
              }
              if (null == entity.getRev()) {
                  throw new APPErrorException("无效的REV");
              }
          }else if(pData instanceof CommonModel)
          {
              CommonModel entity = (CommonModel) pData;
              if (StringUtil.isNullOrEmpty(entity.getId())) {
                  throw new APPErrorException("无效的主键");
              }
          }
  
      }