81 changed files with 10331 additions and 248 deletions
@ -0,0 +1,41 @@ |
|||||
|
package com.ccsens.carbasics.api; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.vo.OrganizationMemberVo; |
||||
|
import com.ccsens.carbasics.service.IOrganizationMemberService; |
||||
|
import com.ccsens.cloudutil.annotation.MustLogin; |
||||
|
import com.ccsens.util.JsonResponse; |
||||
|
import com.ccsens.util.bean.dto.QueryDto; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import io.swagger.annotations.ApiParam; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.validation.annotation.Validated; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: whj |
||||
|
* @time: 2021/9/17 15:48 |
||||
|
*/ |
||||
|
@Api(tags = "医院成员" ) |
||||
|
@RestController |
||||
|
@RequestMapping("/doctor") |
||||
|
@Slf4j |
||||
|
public class DoctorController { |
||||
|
|
||||
|
@Resource |
||||
|
private IOrganizationMemberService organizationMemberService; |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "查询用户对应的医院信息", notes = "") |
||||
|
@RequestMapping(value = "/getHospital", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<OrganizationMemberVo.Organization> getHospital(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ |
||||
|
OrganizationMemberVo.Organization organization = organizationMemberService.getHospital(params.getUserId()); |
||||
|
return JsonResponse.newInstance().ok(organization); |
||||
|
} |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
package com.ccsens.carbasics.api; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.dto.QuestionnaireDto; |
||||
|
import com.ccsens.carbasics.bean.po.Questionnaire; |
||||
|
import com.ccsens.carbasics.bean.vo.QuestionnaireVo; |
||||
|
import com.ccsens.carbasics.service.IQuestionnaireService; |
||||
|
import com.ccsens.cloudutil.annotation.MustLogin; |
||||
|
import com.ccsens.common.bean.dto.CPluginDto; |
||||
|
import com.ccsens.util.JsonResponse; |
||||
|
import com.ccsens.util.bean.dto.QueryDto; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import io.swagger.annotations.ApiParam; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.validation.annotation.Validated; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Api(tags = "问查调卷相关接口" , description = "") |
||||
|
@RestController |
||||
|
@RequestMapping("/questionnaire") |
||||
|
@Slf4j |
||||
|
public class QuestionnaireController { |
||||
|
|
||||
|
@Resource |
||||
|
private IQuestionnaireService questionnaireService; |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "查询地区", notes = "") |
||||
|
@RequestMapping(value = "/area", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<List<QuestionnaireVo.AreaInfo>> queryPatientList(@ApiParam @Validated @RequestBody QueryDto<QuestionnaireDto.QueryArea> params) throws Exception{ |
||||
|
log.info("查询地区开始{}",params); |
||||
|
List<QuestionnaireVo.AreaInfo> areaInfoList = questionnaireService.queryArea(params.getParam(),params.getUserId()); |
||||
|
log.info("查询地区结束{}",areaInfoList); |
||||
|
return JsonResponse.newInstance().ok(areaInfoList); |
||||
|
} |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "查询问卷", notes = "") |
||||
|
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<QuestionnaireVo.QuestionnaireInfo> queryQuestionnaire(@ApiParam @Validated @RequestBody QueryDto<QuestionnaireDto.QueryQuestionnaire> params) throws Exception{ |
||||
|
log.info("查询问卷开始{}",params); |
||||
|
QuestionnaireVo.QuestionnaireInfo questionnaireInfo = questionnaireService.queryQuestionnaire(params.getParam(),params.getUserId()); |
||||
|
log.info("查询问卷结束{}",questionnaireInfo); |
||||
|
return JsonResponse.newInstance().ok(questionnaireInfo); |
||||
|
} |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "保存调查问卷", notes = "") |
||||
|
@RequestMapping(value = "/save", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse saveQuestionnaire(@ApiParam @Validated @RequestBody QueryDto<QuestionnaireDto.SaveQuestionnaire> params) throws Exception{ |
||||
|
log.info("保存调查问卷开始{}",params); |
||||
|
questionnaireService.saveQuestionnaire(params.getParam(),params.getUserId()); |
||||
|
log.info("保存调查问卷结束"); |
||||
|
return JsonResponse.newInstance().ok(); |
||||
|
} |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "查询医院是否填写了调查问卷", notes = "") |
||||
|
@RequestMapping(value = "/queryNotWrite", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<List<QuestionnaireVo.WriteStatus>> queryNotWrite(@ApiParam @Validated @RequestBody QueryDto<QuestionnaireDto.QueryNotWrite> params) throws Exception{ |
||||
|
log.info("保存调查问卷开始{}",params); |
||||
|
List<QuestionnaireVo.WriteStatus> writeStatusList = questionnaireService.queryNotWrite(params.getParam(),params.getUserId()); |
||||
|
log.info("保存调查问卷结束{}",writeStatusList); |
||||
|
return JsonResponse.newInstance().ok(writeStatusList); |
||||
|
} |
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
package com.ccsens.carbasics.api; |
||||
|
|
||||
|
|
||||
|
import com.ccsens.cloudutil.annotation.MustLogin; |
||||
|
import com.ccsens.common.bean.dto.CShareDto; |
||||
|
import com.ccsens.common.bean.vo.CShareVo; |
||||
|
import com.ccsens.common.service.IShareService; |
||||
|
import com.ccsens.util.JsonResponse; |
||||
|
import com.ccsens.util.bean.dto.QueryDto; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import io.swagger.annotations.ApiParam; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.validation.annotation.Validated; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
@Api(tags = "分享相关") |
||||
|
@RestController |
||||
|
@RequestMapping("/share") |
||||
|
@Slf4j |
||||
|
public class ShareController { |
||||
|
@Resource |
||||
|
private IShareService shareService; |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "创建分享连接", notes = "") |
||||
|
@RequestMapping(value = "/create", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<CShareVo.CreateShareUrl> createShareUrl(@ApiParam @Validated @RequestBody QueryDto<CShareDto.CreateShareUrl> params) { |
||||
|
log.info("创建分享连接开始:{}",params); |
||||
|
CShareVo.CreateShareUrl shareUrl = shareService.createShareUrl(params.getParam(), params.getUserId()); |
||||
|
log.info("创建分享连接结束:{}",shareUrl); |
||||
|
return JsonResponse.newInstance().ok(shareUrl); |
||||
|
} |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "点击分享连接", notes = "") |
||||
|
@RequestMapping(value = "/click", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<CShareVo.ClickShareInfo> queryByProjectId(@ApiParam @Validated @RequestBody QueryDto<CShareDto.ClickShareUrl> params) { |
||||
|
log.info("点击分享链接开始:{}",params); |
||||
|
CShareVo.ClickShareInfo clickShareInfo = shareService.clickShareUrl(params.getParam(), params.getUserId(),params.getUserName(),params.getPhone()); |
||||
|
log.info("点击分享链接结束:{}",clickShareInfo); |
||||
|
return JsonResponse.newInstance().ok(clickShareInfo); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,49 @@ |
|||||
|
package com.ccsens.carbasics.api; |
||||
|
|
||||
|
import com.ccsens.common.bean.dto.CMemberDto; |
||||
|
import com.ccsens.common.service.IMemberService; |
||||
|
import com.ccsens.util.JsonResponse; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiImplicitParams; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import io.swagger.annotations.ApiParam; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.validation.annotation.Validated; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
/** |
||||
|
* @author zy |
||||
|
*/ |
||||
|
@Api(tags = "用户") |
||||
|
@RestController |
||||
|
@RequestMapping("/user") |
||||
|
@Slf4j |
||||
|
public class UserController { |
||||
|
@Resource |
||||
|
private IMemberService memberService; |
||||
|
|
||||
|
@ApiOperation(value = "根据手机号更新成员的userId",notes = "") |
||||
|
@ApiImplicitParams({ |
||||
|
}) |
||||
|
@RequestMapping(value="/memberWithPhone",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse memberWithPhone(@ApiParam @Validated @RequestBody CMemberDto.PhoneAndUserId params) throws Exception { |
||||
|
log.info("根据手机号更新成员userId"); |
||||
|
memberService.relevancePhone(params); |
||||
|
return JsonResponse.newInstance().ok(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation(value = "合并用户后修改userId",notes = "") |
||||
|
@ApiImplicitParams({ |
||||
|
}) |
||||
|
@RequestMapping(value="/mergeUser",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse mergeUser(@ApiParam @Validated @RequestBody CMemberDto.MergeUser params) throws Exception { |
||||
|
log.info("合并用户后修改userId"); |
||||
|
memberService.mergeUser(params); |
||||
|
return JsonResponse.newInstance().ok(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,117 @@ |
|||||
|
package com.ccsens.carbasics.bean.dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
|
||||
|
@Data |
||||
|
public class QuestionnaireDto { |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("查询地区") |
||||
|
public static class QueryArea{ |
||||
|
@ApiModelProperty("地区id") |
||||
|
private Long id = 0L; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("查询问卷信息") |
||||
|
public static class QueryQuestionnaire { |
||||
|
@ApiModelProperty("当前时间") |
||||
|
private Long time = System.currentTimeMillis(); |
||||
|
@NotNull(message = "请选择类型") |
||||
|
@ApiModelProperty("类型(0-卒中)") |
||||
|
private Byte type; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("保存问卷信息") |
||||
|
public static class SaveQuestionnaire { |
||||
|
@NotBlank(message = "请选择市") |
||||
|
@ApiModelProperty("市") |
||||
|
private String city; |
||||
|
@NotBlank(message = "请选择县/区") |
||||
|
@ApiModelProperty("县/区") |
||||
|
private String county; |
||||
|
@NotNull(message = "请填写医院等级") |
||||
|
@ApiModelProperty("医院等级") |
||||
|
private Byte hospitalLevel; |
||||
|
@NotBlank(message = "请填写医院名称") |
||||
|
@ApiModelProperty("医院名称") |
||||
|
private String hospitalName; |
||||
|
@NotBlank(message = "请选择部门") |
||||
|
@ApiModelProperty("部门") |
||||
|
private String departments; |
||||
|
@NotBlank(message = "请填写姓名") |
||||
|
@ApiModelProperty("姓名") |
||||
|
private String name; |
||||
|
@NotBlank(message = "请填写手机号") |
||||
|
@ApiModelProperty("手机号") |
||||
|
private String phone; |
||||
|
@NotNull(message = "是否为脑防委高级卒中中心不能为空") |
||||
|
@ApiModelProperty("是否为脑防委高级卒中中心") |
||||
|
private Byte advancedStrokeCenter; |
||||
|
@NotNull(message = "是否为脑防委卒中防治中心不能为空") |
||||
|
@ApiModelProperty("是否为脑防委卒中防治中心") |
||||
|
private Byte strokeCenter; |
||||
|
@NotNull(message = "是否为山西省溶栓2.0版地图医院不能为空") |
||||
|
@ApiModelProperty("是否为山西省溶栓2.0版地图医院") |
||||
|
private Byte mapHospital; |
||||
|
@NotNull(message = "收治急性缺血性卒中例数不能为空") |
||||
|
@ApiModelProperty("收治急性缺血性卒中例数") |
||||
|
private Integer strokeNumber; |
||||
|
@NotNull(message = "4.5小时内到院AIS例数不能为空") |
||||
|
@ApiModelProperty("4.5小时内到院AIS例数") |
||||
|
private Integer aisNumberFour; |
||||
|
@NotNull(message = "4.5小时内静脉溶栓治疗例数不能为空") |
||||
|
@ApiModelProperty("4.5小时内静脉溶栓治疗例数") |
||||
|
private Integer jmrsNumberFour; |
||||
|
@NotNull(message = "应用rtPA溶栓例数不能为空") |
||||
|
@ApiModelProperty("应用rtPA溶栓例数") |
||||
|
private Integer rtpaNumber; |
||||
|
@NotNull(message = "DNT<45min例数不能为空") |
||||
|
@ApiModelProperty("DNT<45min例数") |
||||
|
private Integer dntNumber; |
||||
|
@NotNull(message = "45min<DNT<60min例数不能为空") |
||||
|
@ApiModelProperty("45min<DNT<60min例数") |
||||
|
private Integer dntNumberFour; |
||||
|
@NotNull(message = "DNT>60min例数不能为空") |
||||
|
@ApiModelProperty("DNT>60min例数") |
||||
|
private Integer dntNumberSix; |
||||
|
@NotNull(message = "溶栓后sICH例数不能为空") |
||||
|
@ApiModelProperty("溶栓后sICH例数") |
||||
|
private Integer sichNumber; |
||||
|
@NotNull(message = "溶栓后90天mRS 0-1分患者数不能为空") |
||||
|
@ApiModelProperty("溶栓后90天mRS 0-1分患者数(包括电话随访)") |
||||
|
private Integer jmrsNumberOne; |
||||
|
@ApiModelProperty("4.5-6小时到院AIS患者数(有血管内治疗指征)") |
||||
|
private Integer aisNumberSix; |
||||
|
@ApiModelProperty("发病6h到院患者桥接+直接取栓总例数") |
||||
|
private Integer shouldDirectly; |
||||
|
@ApiModelProperty("DPT中位数") |
||||
|
private Integer dptMedianNumber; |
||||
|
@ApiModelProperty("PRT中位数") |
||||
|
private Integer prtMedianNumber; |
||||
|
@ApiModelProperty("术后90天mRS 0-2分患者数(包括电话随访)") |
||||
|
private Integer jmrsNumberTwo; |
||||
|
@ApiModelProperty("术后90天死亡患者数(包括电话随访)") |
||||
|
private Integer deathNumber; |
||||
|
@ApiModelProperty("问卷id") |
||||
|
private Long questionnaireId; |
||||
|
@ApiModelProperty("类型") |
||||
|
private Byte type; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("查询是否填写") |
||||
|
public static class QueryNotWrite { |
||||
|
@NotNull(message = "项目id不能为空") |
||||
|
@ApiModelProperty("项目id") |
||||
|
private Long projectId; |
||||
|
@ApiModelProperty("时间") |
||||
|
private Long time = System.currentTimeMillis(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,150 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class Area implements Serializable { |
||||
|
private Integer id; |
||||
|
|
||||
|
private String areaName; |
||||
|
|
||||
|
private String areaCode; |
||||
|
|
||||
|
private String areaShort; |
||||
|
|
||||
|
private Byte areaStatus; |
||||
|
|
||||
|
private Integer areaParentId; |
||||
|
|
||||
|
private Date initDate; |
||||
|
|
||||
|
private String initAddr; |
||||
|
|
||||
|
private Byte areaType; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Integer getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Integer id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getAreaName() { |
||||
|
return areaName; |
||||
|
} |
||||
|
|
||||
|
public void setAreaName(String areaName) { |
||||
|
this.areaName = areaName == null ? null : areaName.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getAreaCode() { |
||||
|
return areaCode; |
||||
|
} |
||||
|
|
||||
|
public void setAreaCode(String areaCode) { |
||||
|
this.areaCode = areaCode == null ? null : areaCode.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getAreaShort() { |
||||
|
return areaShort; |
||||
|
} |
||||
|
|
||||
|
public void setAreaShort(String areaShort) { |
||||
|
this.areaShort = areaShort == null ? null : areaShort.trim(); |
||||
|
} |
||||
|
|
||||
|
public Byte getAreaStatus() { |
||||
|
return areaStatus; |
||||
|
} |
||||
|
|
||||
|
public void setAreaStatus(Byte areaStatus) { |
||||
|
this.areaStatus = areaStatus; |
||||
|
} |
||||
|
|
||||
|
public Integer getAreaParentId() { |
||||
|
return areaParentId; |
||||
|
} |
||||
|
|
||||
|
public void setAreaParentId(Integer areaParentId) { |
||||
|
this.areaParentId = areaParentId; |
||||
|
} |
||||
|
|
||||
|
public Date getInitDate() { |
||||
|
return initDate; |
||||
|
} |
||||
|
|
||||
|
public void setInitDate(Date initDate) { |
||||
|
this.initDate = initDate; |
||||
|
} |
||||
|
|
||||
|
public String getInitAddr() { |
||||
|
return initAddr; |
||||
|
} |
||||
|
|
||||
|
public void setInitAddr(String initAddr) { |
||||
|
this.initAddr = initAddr == null ? null : initAddr.trim(); |
||||
|
} |
||||
|
|
||||
|
public Byte getAreaType() { |
||||
|
return areaType; |
||||
|
} |
||||
|
|
||||
|
public void setAreaType(Byte areaType) { |
||||
|
this.areaType = areaType; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", areaName=").append(areaName); |
||||
|
sb.append(", areaCode=").append(areaCode); |
||||
|
sb.append(", areaShort=").append(areaShort); |
||||
|
sb.append(", areaStatus=").append(areaStatus); |
||||
|
sb.append(", areaParentId=").append(areaParentId); |
||||
|
sb.append(", initDate=").append(initDate); |
||||
|
sb.append(", initAddr=").append(initAddr); |
||||
|
sb.append(", areaType=").append(areaType); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,961 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class AreaExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public AreaExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Integer value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Integer value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Integer value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Integer value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Integer value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Integer value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Integer> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Integer> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Integer value1, Integer value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Integer value1, Integer value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameIsNull() { |
||||
|
addCriterion("area_name is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameIsNotNull() { |
||||
|
addCriterion("area_name is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameEqualTo(String value) { |
||||
|
addCriterion("area_name =", value, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameNotEqualTo(String value) { |
||||
|
addCriterion("area_name <>", value, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameGreaterThan(String value) { |
||||
|
addCriterion("area_name >", value, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("area_name >=", value, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameLessThan(String value) { |
||||
|
addCriterion("area_name <", value, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameLessThanOrEqualTo(String value) { |
||||
|
addCriterion("area_name <=", value, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameLike(String value) { |
||||
|
addCriterion("area_name like", value, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameNotLike(String value) { |
||||
|
addCriterion("area_name not like", value, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameIn(List<String> values) { |
||||
|
addCriterion("area_name in", values, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameNotIn(List<String> values) { |
||||
|
addCriterion("area_name not in", values, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameBetween(String value1, String value2) { |
||||
|
addCriterion("area_name between", value1, value2, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaNameNotBetween(String value1, String value2) { |
||||
|
addCriterion("area_name not between", value1, value2, "areaName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeIsNull() { |
||||
|
addCriterion("area_code is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeIsNotNull() { |
||||
|
addCriterion("area_code is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeEqualTo(String value) { |
||||
|
addCriterion("area_code =", value, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeNotEqualTo(String value) { |
||||
|
addCriterion("area_code <>", value, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeGreaterThan(String value) { |
||||
|
addCriterion("area_code >", value, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("area_code >=", value, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeLessThan(String value) { |
||||
|
addCriterion("area_code <", value, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeLessThanOrEqualTo(String value) { |
||||
|
addCriterion("area_code <=", value, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeLike(String value) { |
||||
|
addCriterion("area_code like", value, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeNotLike(String value) { |
||||
|
addCriterion("area_code not like", value, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeIn(List<String> values) { |
||||
|
addCriterion("area_code in", values, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeNotIn(List<String> values) { |
||||
|
addCriterion("area_code not in", values, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeBetween(String value1, String value2) { |
||||
|
addCriterion("area_code between", value1, value2, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaCodeNotBetween(String value1, String value2) { |
||||
|
addCriterion("area_code not between", value1, value2, "areaCode"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortIsNull() { |
||||
|
addCriterion("area_short is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortIsNotNull() { |
||||
|
addCriterion("area_short is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortEqualTo(String value) { |
||||
|
addCriterion("area_short =", value, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortNotEqualTo(String value) { |
||||
|
addCriterion("area_short <>", value, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortGreaterThan(String value) { |
||||
|
addCriterion("area_short >", value, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("area_short >=", value, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortLessThan(String value) { |
||||
|
addCriterion("area_short <", value, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortLessThanOrEqualTo(String value) { |
||||
|
addCriterion("area_short <=", value, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortLike(String value) { |
||||
|
addCriterion("area_short like", value, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortNotLike(String value) { |
||||
|
addCriterion("area_short not like", value, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortIn(List<String> values) { |
||||
|
addCriterion("area_short in", values, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortNotIn(List<String> values) { |
||||
|
addCriterion("area_short not in", values, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortBetween(String value1, String value2) { |
||||
|
addCriterion("area_short between", value1, value2, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaShortNotBetween(String value1, String value2) { |
||||
|
addCriterion("area_short not between", value1, value2, "areaShort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusIsNull() { |
||||
|
addCriterion("area_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusIsNotNull() { |
||||
|
addCriterion("area_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusEqualTo(Byte value) { |
||||
|
addCriterion("area_status =", value, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("area_status <>", value, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusGreaterThan(Byte value) { |
||||
|
addCriterion("area_status >", value, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("area_status >=", value, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusLessThan(Byte value) { |
||||
|
addCriterion("area_status <", value, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("area_status <=", value, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusIn(List<Byte> values) { |
||||
|
addCriterion("area_status in", values, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("area_status not in", values, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("area_status between", value1, value2, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("area_status not between", value1, value2, "areaStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdIsNull() { |
||||
|
addCriterion("area_parent_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdIsNotNull() { |
||||
|
addCriterion("area_parent_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdEqualTo(Integer value) { |
||||
|
addCriterion("area_parent_id =", value, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdNotEqualTo(Integer value) { |
||||
|
addCriterion("area_parent_id <>", value, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdGreaterThan(Integer value) { |
||||
|
addCriterion("area_parent_id >", value, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdGreaterThanOrEqualTo(Integer value) { |
||||
|
addCriterion("area_parent_id >=", value, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdLessThan(Integer value) { |
||||
|
addCriterion("area_parent_id <", value, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdLessThanOrEqualTo(Integer value) { |
||||
|
addCriterion("area_parent_id <=", value, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdIn(List<Integer> values) { |
||||
|
addCriterion("area_parent_id in", values, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdNotIn(List<Integer> values) { |
||||
|
addCriterion("area_parent_id not in", values, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdBetween(Integer value1, Integer value2) { |
||||
|
addCriterion("area_parent_id between", value1, value2, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaParentIdNotBetween(Integer value1, Integer value2) { |
||||
|
addCriterion("area_parent_id not between", value1, value2, "areaParentId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateIsNull() { |
||||
|
addCriterion("init_date is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateIsNotNull() { |
||||
|
addCriterion("init_date is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateEqualTo(Date value) { |
||||
|
addCriterion("init_date =", value, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateNotEqualTo(Date value) { |
||||
|
addCriterion("init_date <>", value, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateGreaterThan(Date value) { |
||||
|
addCriterion("init_date >", value, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("init_date >=", value, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateLessThan(Date value) { |
||||
|
addCriterion("init_date <", value, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("init_date <=", value, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateIn(List<Date> values) { |
||||
|
addCriterion("init_date in", values, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateNotIn(List<Date> values) { |
||||
|
addCriterion("init_date not in", values, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateBetween(Date value1, Date value2) { |
||||
|
addCriterion("init_date between", value1, value2, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitDateNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("init_date not between", value1, value2, "initDate"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrIsNull() { |
||||
|
addCriterion("init_addr is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrIsNotNull() { |
||||
|
addCriterion("init_addr is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrEqualTo(String value) { |
||||
|
addCriterion("init_addr =", value, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrNotEqualTo(String value) { |
||||
|
addCriterion("init_addr <>", value, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrGreaterThan(String value) { |
||||
|
addCriterion("init_addr >", value, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("init_addr >=", value, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrLessThan(String value) { |
||||
|
addCriterion("init_addr <", value, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrLessThanOrEqualTo(String value) { |
||||
|
addCriterion("init_addr <=", value, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrLike(String value) { |
||||
|
addCriterion("init_addr like", value, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrNotLike(String value) { |
||||
|
addCriterion("init_addr not like", value, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrIn(List<String> values) { |
||||
|
addCriterion("init_addr in", values, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrNotIn(List<String> values) { |
||||
|
addCriterion("init_addr not in", values, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrBetween(String value1, String value2) { |
||||
|
addCriterion("init_addr between", value1, value2, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andInitAddrNotBetween(String value1, String value2) { |
||||
|
addCriterion("init_addr not between", value1, value2, "initAddr"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeIsNull() { |
||||
|
addCriterion("area_type is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeIsNotNull() { |
||||
|
addCriterion("area_type is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeEqualTo(Byte value) { |
||||
|
addCriterion("area_type =", value, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeNotEqualTo(Byte value) { |
||||
|
addCriterion("area_type <>", value, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeGreaterThan(Byte value) { |
||||
|
addCriterion("area_type >", value, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("area_type >=", value, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeLessThan(Byte value) { |
||||
|
addCriterion("area_type <", value, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("area_type <=", value, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeIn(List<Byte> values) { |
||||
|
addCriterion("area_type in", values, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeNotIn(List<Byte> values) { |
||||
|
addCriterion("area_type not in", values, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("area_type between", value1, value2, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAreaTypeNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("area_type not between", value1, value2, "areaType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,139 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class OcrKeyword implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private String code; |
||||
|
|
||||
|
private String option; |
||||
|
|
||||
|
private String keyword; |
||||
|
|
||||
|
private String keywordExclude; |
||||
|
|
||||
|
private Byte verifyType; |
||||
|
|
||||
|
private String queryRule; |
||||
|
|
||||
|
private Long organizationId; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getCode() { |
||||
|
return code; |
||||
|
} |
||||
|
|
||||
|
public void setCode(String code) { |
||||
|
this.code = code == null ? null : code.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getOption() { |
||||
|
return option; |
||||
|
} |
||||
|
|
||||
|
public void setOption(String option) { |
||||
|
this.option = option == null ? null : option.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getKeyword() { |
||||
|
return keyword; |
||||
|
} |
||||
|
|
||||
|
public void setKeyword(String keyword) { |
||||
|
this.keyword = keyword == null ? null : keyword.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getKeywordExclude() { |
||||
|
return keywordExclude; |
||||
|
} |
||||
|
|
||||
|
public void setKeywordExclude(String keywordExclude) { |
||||
|
this.keywordExclude = keywordExclude == null ? null : keywordExclude.trim(); |
||||
|
} |
||||
|
|
||||
|
public Byte getVerifyType() { |
||||
|
return verifyType; |
||||
|
} |
||||
|
|
||||
|
public void setVerifyType(Byte verifyType) { |
||||
|
this.verifyType = verifyType; |
||||
|
} |
||||
|
|
||||
|
public String getQueryRule() { |
||||
|
return queryRule; |
||||
|
} |
||||
|
|
||||
|
public void setQueryRule(String queryRule) { |
||||
|
this.queryRule = queryRule == null ? null : queryRule.trim(); |
||||
|
} |
||||
|
|
||||
|
public Long getOrganizationId() { |
||||
|
return organizationId; |
||||
|
} |
||||
|
|
||||
|
public void setOrganizationId(Long organizationId) { |
||||
|
this.organizationId = organizationId; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", code=").append(code); |
||||
|
sb.append(", option=").append(option); |
||||
|
sb.append(", keyword=").append(keyword); |
||||
|
sb.append(", keywordExclude=").append(keywordExclude); |
||||
|
sb.append(", verifyType=").append(verifyType); |
||||
|
sb.append(", queryRule=").append(queryRule); |
||||
|
sb.append(", organizationId=").append(organizationId); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,911 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class OcrKeywordExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public OcrKeywordExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeIsNull() { |
||||
|
addCriterion("code is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeIsNotNull() { |
||||
|
addCriterion("code is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeEqualTo(String value) { |
||||
|
addCriterion("code =", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeNotEqualTo(String value) { |
||||
|
addCriterion("code <>", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeGreaterThan(String value) { |
||||
|
addCriterion("code >", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("code >=", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeLessThan(String value) { |
||||
|
addCriterion("code <", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeLessThanOrEqualTo(String value) { |
||||
|
addCriterion("code <=", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeLike(String value) { |
||||
|
addCriterion("code like", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeNotLike(String value) { |
||||
|
addCriterion("code not like", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeIn(List<String> values) { |
||||
|
addCriterion("code in", values, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeNotIn(List<String> values) { |
||||
|
addCriterion("code not in", values, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeBetween(String value1, String value2) { |
||||
|
addCriterion("code between", value1, value2, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeNotBetween(String value1, String value2) { |
||||
|
addCriterion("code not between", value1, value2, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionIsNull() { |
||||
|
addCriterion("option is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionIsNotNull() { |
||||
|
addCriterion("option is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionEqualTo(String value) { |
||||
|
addCriterion("option =", value, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionNotEqualTo(String value) { |
||||
|
addCriterion("option <>", value, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionGreaterThan(String value) { |
||||
|
addCriterion("option >", value, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("option >=", value, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionLessThan(String value) { |
||||
|
addCriterion("option <", value, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionLessThanOrEqualTo(String value) { |
||||
|
addCriterion("option <=", value, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionLike(String value) { |
||||
|
addCriterion("option like", value, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionNotLike(String value) { |
||||
|
addCriterion("option not like", value, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionIn(List<String> values) { |
||||
|
addCriterion("option in", values, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionNotIn(List<String> values) { |
||||
|
addCriterion("option not in", values, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionBetween(String value1, String value2) { |
||||
|
addCriterion("option between", value1, value2, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOptionNotBetween(String value1, String value2) { |
||||
|
addCriterion("option not between", value1, value2, "option"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIsNull() { |
||||
|
addCriterion("keyword is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIsNotNull() { |
||||
|
addCriterion("keyword is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordEqualTo(String value) { |
||||
|
addCriterion("keyword =", value, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordNotEqualTo(String value) { |
||||
|
addCriterion("keyword <>", value, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordGreaterThan(String value) { |
||||
|
addCriterion("keyword >", value, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("keyword >=", value, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordLessThan(String value) { |
||||
|
addCriterion("keyword <", value, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordLessThanOrEqualTo(String value) { |
||||
|
addCriterion("keyword <=", value, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordLike(String value) { |
||||
|
addCriterion("keyword like", value, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordNotLike(String value) { |
||||
|
addCriterion("keyword not like", value, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIn(List<String> values) { |
||||
|
addCriterion("keyword in", values, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordNotIn(List<String> values) { |
||||
|
addCriterion("keyword not in", values, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordBetween(String value1, String value2) { |
||||
|
addCriterion("keyword between", value1, value2, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordNotBetween(String value1, String value2) { |
||||
|
addCriterion("keyword not between", value1, value2, "keyword"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeIsNull() { |
||||
|
addCriterion("keyword_exclude is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeIsNotNull() { |
||||
|
addCriterion("keyword_exclude is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeEqualTo(String value) { |
||||
|
addCriterion("keyword_exclude =", value, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeNotEqualTo(String value) { |
||||
|
addCriterion("keyword_exclude <>", value, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeGreaterThan(String value) { |
||||
|
addCriterion("keyword_exclude >", value, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("keyword_exclude >=", value, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeLessThan(String value) { |
||||
|
addCriterion("keyword_exclude <", value, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeLessThanOrEqualTo(String value) { |
||||
|
addCriterion("keyword_exclude <=", value, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeLike(String value) { |
||||
|
addCriterion("keyword_exclude like", value, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeNotLike(String value) { |
||||
|
addCriterion("keyword_exclude not like", value, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeIn(List<String> values) { |
||||
|
addCriterion("keyword_exclude in", values, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeNotIn(List<String> values) { |
||||
|
addCriterion("keyword_exclude not in", values, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeBetween(String value1, String value2) { |
||||
|
addCriterion("keyword_exclude between", value1, value2, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordExcludeNotBetween(String value1, String value2) { |
||||
|
addCriterion("keyword_exclude not between", value1, value2, "keywordExclude"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeIsNull() { |
||||
|
addCriterion("verify_type is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeIsNotNull() { |
||||
|
addCriterion("verify_type is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeEqualTo(Byte value) { |
||||
|
addCriterion("verify_type =", value, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeNotEqualTo(Byte value) { |
||||
|
addCriterion("verify_type <>", value, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeGreaterThan(Byte value) { |
||||
|
addCriterion("verify_type >", value, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("verify_type >=", value, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeLessThan(Byte value) { |
||||
|
addCriterion("verify_type <", value, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("verify_type <=", value, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeIn(List<Byte> values) { |
||||
|
addCriterion("verify_type in", values, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeNotIn(List<Byte> values) { |
||||
|
addCriterion("verify_type not in", values, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("verify_type between", value1, value2, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andVerifyTypeNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("verify_type not between", value1, value2, "verifyType"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleIsNull() { |
||||
|
addCriterion("query_rule is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleIsNotNull() { |
||||
|
addCriterion("query_rule is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleEqualTo(String value) { |
||||
|
addCriterion("query_rule =", value, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleNotEqualTo(String value) { |
||||
|
addCriterion("query_rule <>", value, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleGreaterThan(String value) { |
||||
|
addCriterion("query_rule >", value, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("query_rule >=", value, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleLessThan(String value) { |
||||
|
addCriterion("query_rule <", value, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleLessThanOrEqualTo(String value) { |
||||
|
addCriterion("query_rule <=", value, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleLike(String value) { |
||||
|
addCriterion("query_rule like", value, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleNotLike(String value) { |
||||
|
addCriterion("query_rule not like", value, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleIn(List<String> values) { |
||||
|
addCriterion("query_rule in", values, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleNotIn(List<String> values) { |
||||
|
addCriterion("query_rule not in", values, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleBetween(String value1, String value2) { |
||||
|
addCriterion("query_rule between", value1, value2, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQueryRuleNotBetween(String value1, String value2) { |
||||
|
addCriterion("query_rule not between", value1, value2, "queryRule"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdIsNull() { |
||||
|
addCriterion("organization_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdIsNotNull() { |
||||
|
addCriterion("organization_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdEqualTo(Long value) { |
||||
|
addCriterion("organization_id =", value, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdNotEqualTo(Long value) { |
||||
|
addCriterion("organization_id <>", value, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdGreaterThan(Long value) { |
||||
|
addCriterion("organization_id >", value, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("organization_id >=", value, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdLessThan(Long value) { |
||||
|
addCriterion("organization_id <", value, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("organization_id <=", value, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdIn(List<Long> values) { |
||||
|
addCriterion("organization_id in", values, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdNotIn(List<Long> values) { |
||||
|
addCriterion("organization_id not in", values, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("organization_id between", value1, value2, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOrganizationIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("organization_id not between", value1, value2, "organizationId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class OcrKeywordOption implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private String code; |
||||
|
|
||||
|
private String answer; |
||||
|
|
||||
|
private Long keywordId; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getCode() { |
||||
|
return code; |
||||
|
} |
||||
|
|
||||
|
public void setCode(String code) { |
||||
|
this.code = code == null ? null : code.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getAnswer() { |
||||
|
return answer; |
||||
|
} |
||||
|
|
||||
|
public void setAnswer(String answer) { |
||||
|
this.answer = answer == null ? null : answer.trim(); |
||||
|
} |
||||
|
|
||||
|
public Long getKeywordId() { |
||||
|
return keywordId; |
||||
|
} |
||||
|
|
||||
|
public void setKeywordId(Long keywordId) { |
||||
|
this.keywordId = keywordId; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", code=").append(code); |
||||
|
sb.append(", answer=").append(answer); |
||||
|
sb.append(", keywordId=").append(keywordId); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,641 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class OcrKeywordOptionExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public OcrKeywordOptionExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeIsNull() { |
||||
|
addCriterion("code is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeIsNotNull() { |
||||
|
addCriterion("code is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeEqualTo(String value) { |
||||
|
addCriterion("code =", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeNotEqualTo(String value) { |
||||
|
addCriterion("code <>", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeGreaterThan(String value) { |
||||
|
addCriterion("code >", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("code >=", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeLessThan(String value) { |
||||
|
addCriterion("code <", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeLessThanOrEqualTo(String value) { |
||||
|
addCriterion("code <=", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeLike(String value) { |
||||
|
addCriterion("code like", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeNotLike(String value) { |
||||
|
addCriterion("code not like", value, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeIn(List<String> values) { |
||||
|
addCriterion("code in", values, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeNotIn(List<String> values) { |
||||
|
addCriterion("code not in", values, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeBetween(String value1, String value2) { |
||||
|
addCriterion("code between", value1, value2, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCodeNotBetween(String value1, String value2) { |
||||
|
addCriterion("code not between", value1, value2, "code"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerIsNull() { |
||||
|
addCriterion("answer is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerIsNotNull() { |
||||
|
addCriterion("answer is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerEqualTo(String value) { |
||||
|
addCriterion("answer =", value, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerNotEqualTo(String value) { |
||||
|
addCriterion("answer <>", value, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerGreaterThan(String value) { |
||||
|
addCriterion("answer >", value, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("answer >=", value, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerLessThan(String value) { |
||||
|
addCriterion("answer <", value, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerLessThanOrEqualTo(String value) { |
||||
|
addCriterion("answer <=", value, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerLike(String value) { |
||||
|
addCriterion("answer like", value, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerNotLike(String value) { |
||||
|
addCriterion("answer not like", value, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerIn(List<String> values) { |
||||
|
addCriterion("answer in", values, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerNotIn(List<String> values) { |
||||
|
addCriterion("answer not in", values, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerBetween(String value1, String value2) { |
||||
|
addCriterion("answer between", value1, value2, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andAnswerNotBetween(String value1, String value2) { |
||||
|
addCriterion("answer not between", value1, value2, "answer"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdIsNull() { |
||||
|
addCriterion("keyword_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdIsNotNull() { |
||||
|
addCriterion("keyword_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdEqualTo(Long value) { |
||||
|
addCriterion("keyword_id =", value, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdNotEqualTo(Long value) { |
||||
|
addCriterion("keyword_id <>", value, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdGreaterThan(Long value) { |
||||
|
addCriterion("keyword_id >", value, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("keyword_id >=", value, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdLessThan(Long value) { |
||||
|
addCriterion("keyword_id <", value, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("keyword_id <=", value, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdIn(List<Long> values) { |
||||
|
addCriterion("keyword_id in", values, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdNotIn(List<Long> values) { |
||||
|
addCriterion("keyword_id not in", values, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("keyword_id between", value1, value2, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeywordIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("keyword_id not between", value1, value2, "keywordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,128 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class Questionnaire implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private String questionnaireName; |
||||
|
|
||||
|
private Long startTime; |
||||
|
|
||||
|
private Long endTime; |
||||
|
|
||||
|
private Byte type; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private Long writeStartTime; |
||||
|
|
||||
|
private Long writeEndTime; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getQuestionnaireName() { |
||||
|
return questionnaireName; |
||||
|
} |
||||
|
|
||||
|
public void setQuestionnaireName(String questionnaireName) { |
||||
|
this.questionnaireName = questionnaireName == null ? null : questionnaireName.trim(); |
||||
|
} |
||||
|
|
||||
|
public Long getStartTime() { |
||||
|
return startTime; |
||||
|
} |
||||
|
|
||||
|
public void setStartTime(Long startTime) { |
||||
|
this.startTime = startTime; |
||||
|
} |
||||
|
|
||||
|
public Long getEndTime() { |
||||
|
return endTime; |
||||
|
} |
||||
|
|
||||
|
public void setEndTime(Long endTime) { |
||||
|
this.endTime = endTime; |
||||
|
} |
||||
|
|
||||
|
public Byte getType() { |
||||
|
return type; |
||||
|
} |
||||
|
|
||||
|
public void setType(Byte type) { |
||||
|
this.type = type; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
public Long getWriteStartTime() { |
||||
|
return writeStartTime; |
||||
|
} |
||||
|
|
||||
|
public void setWriteStartTime(Long writeStartTime) { |
||||
|
this.writeStartTime = writeStartTime; |
||||
|
} |
||||
|
|
||||
|
public Long getWriteEndTime() { |
||||
|
return writeEndTime; |
||||
|
} |
||||
|
|
||||
|
public void setWriteEndTime(Long writeEndTime) { |
||||
|
this.writeEndTime = writeEndTime; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", questionnaireName=").append(questionnaireName); |
||||
|
sb.append(", startTime=").append(startTime); |
||||
|
sb.append(", endTime=").append(endTime); |
||||
|
sb.append(", type=").append(type); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append(", writeStartTime=").append(writeStartTime); |
||||
|
sb.append(", writeEndTime=").append(writeEndTime); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,359 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class QuestionnaireDetail implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private String city; |
||||
|
|
||||
|
private String county; |
||||
|
|
||||
|
private Byte hospitalLevel; |
||||
|
|
||||
|
private String hospitalName; |
||||
|
|
||||
|
private String departments; |
||||
|
|
||||
|
private String name; |
||||
|
|
||||
|
private String phone; |
||||
|
|
||||
|
private Byte advancedStrokeCenter; |
||||
|
|
||||
|
private Byte strokeCenter; |
||||
|
|
||||
|
private Byte mapHospital; |
||||
|
|
||||
|
private Integer strokeNumber; |
||||
|
|
||||
|
private Integer aisNumberFour; |
||||
|
|
||||
|
private Integer jmrsNumberFour; |
||||
|
|
||||
|
private Integer rtpaNumber; |
||||
|
|
||||
|
private Integer dntNumber; |
||||
|
|
||||
|
private Integer dntNumberFour; |
||||
|
|
||||
|
private Integer dntNumberSix; |
||||
|
|
||||
|
private Integer sichNumber; |
||||
|
|
||||
|
private Integer jmrsNumberOne; |
||||
|
|
||||
|
private Integer aisNumberSix; |
||||
|
|
||||
|
private Integer shouldDirectly; |
||||
|
|
||||
|
private Integer dptMedianNumber; |
||||
|
|
||||
|
private Integer prtMedianNumber; |
||||
|
|
||||
|
private Integer jmrsNumberTwo; |
||||
|
|
||||
|
private Integer deathNumber; |
||||
|
|
||||
|
private Long userId; |
||||
|
|
||||
|
private Long questionnaireId; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getCity() { |
||||
|
return city; |
||||
|
} |
||||
|
|
||||
|
public void setCity(String city) { |
||||
|
this.city = city == null ? null : city.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getCounty() { |
||||
|
return county; |
||||
|
} |
||||
|
|
||||
|
public void setCounty(String county) { |
||||
|
this.county = county == null ? null : county.trim(); |
||||
|
} |
||||
|
|
||||
|
public Byte getHospitalLevel() { |
||||
|
return hospitalLevel; |
||||
|
} |
||||
|
|
||||
|
public void setHospitalLevel(Byte hospitalLevel) { |
||||
|
this.hospitalLevel = hospitalLevel; |
||||
|
} |
||||
|
|
||||
|
public String getHospitalName() { |
||||
|
return hospitalName; |
||||
|
} |
||||
|
|
||||
|
public void setHospitalName(String hospitalName) { |
||||
|
this.hospitalName = hospitalName == null ? null : hospitalName.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getDepartments() { |
||||
|
return departments; |
||||
|
} |
||||
|
|
||||
|
public void setDepartments(String departments) { |
||||
|
this.departments = departments == null ? null : departments.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getName() { |
||||
|
return name; |
||||
|
} |
||||
|
|
||||
|
public void setName(String name) { |
||||
|
this.name = name == null ? null : name.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getPhone() { |
||||
|
return phone; |
||||
|
} |
||||
|
|
||||
|
public void setPhone(String phone) { |
||||
|
this.phone = phone == null ? null : phone.trim(); |
||||
|
} |
||||
|
|
||||
|
public Byte getAdvancedStrokeCenter() { |
||||
|
return advancedStrokeCenter; |
||||
|
} |
||||
|
|
||||
|
public void setAdvancedStrokeCenter(Byte advancedStrokeCenter) { |
||||
|
this.advancedStrokeCenter = advancedStrokeCenter; |
||||
|
} |
||||
|
|
||||
|
public Byte getStrokeCenter() { |
||||
|
return strokeCenter; |
||||
|
} |
||||
|
|
||||
|
public void setStrokeCenter(Byte strokeCenter) { |
||||
|
this.strokeCenter = strokeCenter; |
||||
|
} |
||||
|
|
||||
|
public Byte getMapHospital() { |
||||
|
return mapHospital; |
||||
|
} |
||||
|
|
||||
|
public void setMapHospital(Byte mapHospital) { |
||||
|
this.mapHospital = mapHospital; |
||||
|
} |
||||
|
|
||||
|
public Integer getStrokeNumber() { |
||||
|
return strokeNumber; |
||||
|
} |
||||
|
|
||||
|
public void setStrokeNumber(Integer strokeNumber) { |
||||
|
this.strokeNumber = strokeNumber; |
||||
|
} |
||||
|
|
||||
|
public Integer getAisNumberFour() { |
||||
|
return aisNumberFour; |
||||
|
} |
||||
|
|
||||
|
public void setAisNumberFour(Integer aisNumberFour) { |
||||
|
this.aisNumberFour = aisNumberFour; |
||||
|
} |
||||
|
|
||||
|
public Integer getJmrsNumberFour() { |
||||
|
return jmrsNumberFour; |
||||
|
} |
||||
|
|
||||
|
public void setJmrsNumberFour(Integer jmrsNumberFour) { |
||||
|
this.jmrsNumberFour = jmrsNumberFour; |
||||
|
} |
||||
|
|
||||
|
public Integer getRtpaNumber() { |
||||
|
return rtpaNumber; |
||||
|
} |
||||
|
|
||||
|
public void setRtpaNumber(Integer rtpaNumber) { |
||||
|
this.rtpaNumber = rtpaNumber; |
||||
|
} |
||||
|
|
||||
|
public Integer getDntNumber() { |
||||
|
return dntNumber; |
||||
|
} |
||||
|
|
||||
|
public void setDntNumber(Integer dntNumber) { |
||||
|
this.dntNumber = dntNumber; |
||||
|
} |
||||
|
|
||||
|
public Integer getDntNumberFour() { |
||||
|
return dntNumberFour; |
||||
|
} |
||||
|
|
||||
|
public void setDntNumberFour(Integer dntNumberFour) { |
||||
|
this.dntNumberFour = dntNumberFour; |
||||
|
} |
||||
|
|
||||
|
public Integer getDntNumberSix() { |
||||
|
return dntNumberSix; |
||||
|
} |
||||
|
|
||||
|
public void setDntNumberSix(Integer dntNumberSix) { |
||||
|
this.dntNumberSix = dntNumberSix; |
||||
|
} |
||||
|
|
||||
|
public Integer getSichNumber() { |
||||
|
return sichNumber; |
||||
|
} |
||||
|
|
||||
|
public void setSichNumber(Integer sichNumber) { |
||||
|
this.sichNumber = sichNumber; |
||||
|
} |
||||
|
|
||||
|
public Integer getJmrsNumberOne() { |
||||
|
return jmrsNumberOne; |
||||
|
} |
||||
|
|
||||
|
public void setJmrsNumberOne(Integer jmrsNumberOne) { |
||||
|
this.jmrsNumberOne = jmrsNumberOne; |
||||
|
} |
||||
|
|
||||
|
public Integer getAisNumberSix() { |
||||
|
return aisNumberSix; |
||||
|
} |
||||
|
|
||||
|
public void setAisNumberSix(Integer aisNumberSix) { |
||||
|
this.aisNumberSix = aisNumberSix; |
||||
|
} |
||||
|
|
||||
|
public Integer getShouldDirectly() { |
||||
|
return shouldDirectly; |
||||
|
} |
||||
|
|
||||
|
public void setShouldDirectly(Integer shouldDirectly) { |
||||
|
this.shouldDirectly = shouldDirectly; |
||||
|
} |
||||
|
|
||||
|
public Integer getDptMedianNumber() { |
||||
|
return dptMedianNumber; |
||||
|
} |
||||
|
|
||||
|
public void setDptMedianNumber(Integer dptMedianNumber) { |
||||
|
this.dptMedianNumber = dptMedianNumber; |
||||
|
} |
||||
|
|
||||
|
public Integer getPrtMedianNumber() { |
||||
|
return prtMedianNumber; |
||||
|
} |
||||
|
|
||||
|
public void setPrtMedianNumber(Integer prtMedianNumber) { |
||||
|
this.prtMedianNumber = prtMedianNumber; |
||||
|
} |
||||
|
|
||||
|
public Integer getJmrsNumberTwo() { |
||||
|
return jmrsNumberTwo; |
||||
|
} |
||||
|
|
||||
|
public void setJmrsNumberTwo(Integer jmrsNumberTwo) { |
||||
|
this.jmrsNumberTwo = jmrsNumberTwo; |
||||
|
} |
||||
|
|
||||
|
public Integer getDeathNumber() { |
||||
|
return deathNumber; |
||||
|
} |
||||
|
|
||||
|
public void setDeathNumber(Integer deathNumber) { |
||||
|
this.deathNumber = deathNumber; |
||||
|
} |
||||
|
|
||||
|
public Long getUserId() { |
||||
|
return userId; |
||||
|
} |
||||
|
|
||||
|
public void setUserId(Long userId) { |
||||
|
this.userId = userId; |
||||
|
} |
||||
|
|
||||
|
public Long getQuestionnaireId() { |
||||
|
return questionnaireId; |
||||
|
} |
||||
|
|
||||
|
public void setQuestionnaireId(Long questionnaireId) { |
||||
|
this.questionnaireId = questionnaireId; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", city=").append(city); |
||||
|
sb.append(", county=").append(county); |
||||
|
sb.append(", hospitalLevel=").append(hospitalLevel); |
||||
|
sb.append(", hospitalName=").append(hospitalName); |
||||
|
sb.append(", departments=").append(departments); |
||||
|
sb.append(", name=").append(name); |
||||
|
sb.append(", phone=").append(phone); |
||||
|
sb.append(", advancedStrokeCenter=").append(advancedStrokeCenter); |
||||
|
sb.append(", strokeCenter=").append(strokeCenter); |
||||
|
sb.append(", mapHospital=").append(mapHospital); |
||||
|
sb.append(", strokeNumber=").append(strokeNumber); |
||||
|
sb.append(", aisNumberFour=").append(aisNumberFour); |
||||
|
sb.append(", jmrsNumberFour=").append(jmrsNumberFour); |
||||
|
sb.append(", rtpaNumber=").append(rtpaNumber); |
||||
|
sb.append(", dntNumber=").append(dntNumber); |
||||
|
sb.append(", dntNumberFour=").append(dntNumberFour); |
||||
|
sb.append(", dntNumberSix=").append(dntNumberSix); |
||||
|
sb.append(", sichNumber=").append(sichNumber); |
||||
|
sb.append(", jmrsNumberOne=").append(jmrsNumberOne); |
||||
|
sb.append(", aisNumberSix=").append(aisNumberSix); |
||||
|
sb.append(", shouldDirectly=").append(shouldDirectly); |
||||
|
sb.append(", dptMedianNumber=").append(dptMedianNumber); |
||||
|
sb.append(", prtMedianNumber=").append(prtMedianNumber); |
||||
|
sb.append(", jmrsNumberTwo=").append(jmrsNumberTwo); |
||||
|
sb.append(", deathNumber=").append(deathNumber); |
||||
|
sb.append(", userId=").append(userId); |
||||
|
sb.append(", questionnaireId=").append(questionnaireId); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,811 @@ |
|||||
|
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class QuestionnaireExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public QuestionnaireExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameIsNull() { |
||||
|
addCriterion("questionnaire_name is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameIsNotNull() { |
||||
|
addCriterion("questionnaire_name is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameEqualTo(String value) { |
||||
|
addCriterion("questionnaire_name =", value, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameNotEqualTo(String value) { |
||||
|
addCriterion("questionnaire_name <>", value, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameGreaterThan(String value) { |
||||
|
addCriterion("questionnaire_name >", value, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("questionnaire_name >=", value, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameLessThan(String value) { |
||||
|
addCriterion("questionnaire_name <", value, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameLessThanOrEqualTo(String value) { |
||||
|
addCriterion("questionnaire_name <=", value, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameLike(String value) { |
||||
|
addCriterion("questionnaire_name like", value, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameNotLike(String value) { |
||||
|
addCriterion("questionnaire_name not like", value, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameIn(List<String> values) { |
||||
|
addCriterion("questionnaire_name in", values, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameNotIn(List<String> values) { |
||||
|
addCriterion("questionnaire_name not in", values, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameBetween(String value1, String value2) { |
||||
|
addCriterion("questionnaire_name between", value1, value2, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andQuestionnaireNameNotBetween(String value1, String value2) { |
||||
|
addCriterion("questionnaire_name not between", value1, value2, "questionnaireName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeIsNull() { |
||||
|
addCriterion("start_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeIsNotNull() { |
||||
|
addCriterion("start_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeEqualTo(Long value) { |
||||
|
addCriterion("start_time =", value, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeNotEqualTo(Long value) { |
||||
|
addCriterion("start_time <>", value, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeGreaterThan(Long value) { |
||||
|
addCriterion("start_time >", value, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("start_time >=", value, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeLessThan(Long value) { |
||||
|
addCriterion("start_time <", value, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("start_time <=", value, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeIn(List<Long> values) { |
||||
|
addCriterion("start_time in", values, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeNotIn(List<Long> values) { |
||||
|
addCriterion("start_time not in", values, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeBetween(Long value1, Long value2) { |
||||
|
addCriterion("start_time between", value1, value2, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andStartTimeNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("start_time not between", value1, value2, "startTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeIsNull() { |
||||
|
addCriterion("end_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeIsNotNull() { |
||||
|
addCriterion("end_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeEqualTo(Long value) { |
||||
|
addCriterion("end_time =", value, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeNotEqualTo(Long value) { |
||||
|
addCriterion("end_time <>", value, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeGreaterThan(Long value) { |
||||
|
addCriterion("end_time >", value, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("end_time >=", value, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeLessThan(Long value) { |
||||
|
addCriterion("end_time <", value, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("end_time <=", value, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeIn(List<Long> values) { |
||||
|
addCriterion("end_time in", values, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeNotIn(List<Long> values) { |
||||
|
addCriterion("end_time not in", values, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeBetween(Long value1, Long value2) { |
||||
|
addCriterion("end_time between", value1, value2, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEndTimeNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("end_time not between", value1, value2, "endTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeIsNull() { |
||||
|
addCriterion("type is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeIsNotNull() { |
||||
|
addCriterion("type is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeEqualTo(Byte value) { |
||||
|
addCriterion("type =", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotEqualTo(Byte value) { |
||||
|
addCriterion("type <>", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeGreaterThan(Byte value) { |
||||
|
addCriterion("type >", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("type >=", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeLessThan(Byte value) { |
||||
|
addCriterion("type <", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("type <=", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeIn(List<Byte> values) { |
||||
|
addCriterion("type in", values, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotIn(List<Byte> values) { |
||||
|
addCriterion("type not in", values, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("type between", value1, value2, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("type not between", value1, value2, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeIsNull() { |
||||
|
addCriterion("write_start_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeIsNotNull() { |
||||
|
addCriterion("write_start_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeEqualTo(Long value) { |
||||
|
addCriterion("write_start_time =", value, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeNotEqualTo(Long value) { |
||||
|
addCriterion("write_start_time <>", value, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeGreaterThan(Long value) { |
||||
|
addCriterion("write_start_time >", value, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("write_start_time >=", value, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeLessThan(Long value) { |
||||
|
addCriterion("write_start_time <", value, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("write_start_time <=", value, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeIn(List<Long> values) { |
||||
|
addCriterion("write_start_time in", values, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeNotIn(List<Long> values) { |
||||
|
addCriterion("write_start_time not in", values, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeBetween(Long value1, Long value2) { |
||||
|
addCriterion("write_start_time between", value1, value2, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteStartTimeNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("write_start_time not between", value1, value2, "writeStartTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeIsNull() { |
||||
|
addCriterion("write_end_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeIsNotNull() { |
||||
|
addCriterion("write_end_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeEqualTo(Long value) { |
||||
|
addCriterion("write_end_time =", value, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeNotEqualTo(Long value) { |
||||
|
addCriterion("write_end_time <>", value, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeGreaterThan(Long value) { |
||||
|
addCriterion("write_end_time >", value, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("write_end_time >=", value, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeLessThan(Long value) { |
||||
|
addCriterion("write_end_time <", value, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("write_end_time <=", value, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeIn(List<Long> values) { |
||||
|
addCriterion("write_end_time in", values, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeNotIn(List<Long> values) { |
||||
|
addCriterion("write_end_time not in", values, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeBetween(Long value1, Long value2) { |
||||
|
addCriterion("write_end_time between", value1, value2, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andWriteEndTimeNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("write_end_time not between", value1, value2, "writeEndTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.ccsens.carbasics.bean.vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: whj |
||||
|
* @time: 2021/9/17 15:55 |
||||
|
*/ |
||||
|
public class OrganizationMemberVo { |
||||
|
|
||||
|
@ApiModel("医院-返回") |
||||
|
@Data |
||||
|
public static class Organization{ |
||||
|
@ApiModelProperty("医院ID") |
||||
|
private Long id; |
||||
|
@ApiModelProperty("医院名字") |
||||
|
private String name; |
||||
|
@ApiModelProperty("项目ID") |
||||
|
private Long projectId; |
||||
|
} |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
package com.ccsens.carbasics.bean.vo; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.po.QuestionnaireDetail; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class QuestionnaireVo { |
||||
|
@Data |
||||
|
@ApiModel("地区信息") |
||||
|
public static class AreaInfo{ |
||||
|
@ApiModelProperty("地区id") |
||||
|
private Long id; |
||||
|
@ApiModelProperty("地区名称") |
||||
|
private String name; |
||||
|
@ApiModelProperty("子地区") |
||||
|
private List<AreaInfo> child; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("问卷信息") |
||||
|
public static class QuestionnaireInfo { |
||||
|
@ApiModelProperty("问卷id") |
||||
|
private Long id; |
||||
|
@ApiModelProperty("问卷名称") |
||||
|
private String questionnaireName; |
||||
|
@ApiModelProperty("开始时间") |
||||
|
private Long start; |
||||
|
@ApiModelProperty("结束时间") |
||||
|
private Long end; |
||||
|
@ApiModelProperty("类型(0-卒中)") |
||||
|
private Byte type; |
||||
|
@ApiModelProperty("详情") |
||||
|
private QuestionnaireDetail detail; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("填写问卷状态") |
||||
|
public static class WriteStatus { |
||||
|
@ApiModelProperty("问卷id") |
||||
|
private Long id; |
||||
|
@ApiModelProperty("问卷名称") |
||||
|
private String questionnaireName; |
||||
|
@ApiModelProperty("问卷类型(0-卒中)") |
||||
|
private Byte type; |
||||
|
@ApiModelProperty("是否填写(0-否,1-是)") |
||||
|
private Byte isWrite; |
||||
|
@JsonIgnore |
||||
|
@ApiModelProperty("详情id") |
||||
|
private String detailId; |
||||
|
@ApiModelProperty("问卷开始时间") |
||||
|
private Long start; |
||||
|
@ApiModelProperty("问卷结束时间") |
||||
|
private Long end; |
||||
|
@ApiModelProperty("填写开始时间") |
||||
|
private Long writeStartTime; |
||||
|
@ApiModelProperty("填写结束时间") |
||||
|
private Long writeEndTime; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.ccsens.carbasics.persist.dao; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.dto.QuestionnaireDto; |
||||
|
import com.ccsens.carbasics.bean.vo.QuestionnaireVo; |
||||
|
import com.ccsens.carbasics.persist.mapper.AreaMapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Repository |
||||
|
public interface AreaDao extends AreaMapper { |
||||
|
|
||||
|
/** |
||||
|
* 根据父id查询地区信息 |
||||
|
* @param id 父id |
||||
|
* @return 地区列表 |
||||
|
*/ |
||||
|
List<QuestionnaireVo.AreaInfo> queryByParentId(@Param("id") Long id); |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.ccsens.carbasics.persist.dao; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.po.OcrKeyword; |
||||
|
import com.ccsens.carbasics.persist.mapper.OcrKeywordMapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Repository |
||||
|
public interface OcrKeywordDao extends OcrKeywordMapper { |
||||
|
/** |
||||
|
* 根据医院id查询所有关键词 |
||||
|
* @param hospitalId 医院id |
||||
|
* @return 关键词列表 |
||||
|
*/ |
||||
|
List<OcrKeyword> queryByHospital(@Param("hospitalId") Long hospitalId); |
||||
|
|
||||
|
/** |
||||
|
* 查询出院时间 |
||||
|
* @param hospitalId 医院id |
||||
|
* @return 出院时间关键词信息 |
||||
|
*/ |
||||
|
OcrKeyword queryDischargeTime(@Param("hospitalId") Long hospitalId); |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.ccsens.carbasics.persist.dao; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.po.OcrKeywordOption; |
||||
|
import com.ccsens.carbasics.persist.mapper.OcrKeywordOptionMapper; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Repository |
||||
|
public interface OcrKeywordOptionDao extends OcrKeywordOptionMapper { |
||||
|
|
||||
|
/** |
||||
|
* 根据关键字id查询选项 |
||||
|
* @param keyId 关键字id |
||||
|
* @return 选项列表 |
||||
|
*/ |
||||
|
List<OcrKeywordOption> queryByKeyId(Long keyId); |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
package com.ccsens.carbasics.persist.dao; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.dto.QuestionnaireDto; |
||||
|
import com.ccsens.carbasics.bean.vo.QuestionnaireVo; |
||||
|
import com.ccsens.carbasics.persist.mapper.QuestionnaireMapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Repository |
||||
|
public interface QuestionnaireDao extends QuestionnaireMapper { |
||||
|
|
||||
|
/** |
||||
|
* 查询问卷信息 |
||||
|
* @param time 当前时间 |
||||
|
* @param type 问卷类型 |
||||
|
* @param userId 用户id |
||||
|
* @return 问卷信息 |
||||
|
*/ |
||||
|
QuestionnaireVo.QuestionnaireInfo queryQuestionnaire(@Param("time") Long time,@Param("type") Byte type,@Param("userId") Long userId); |
||||
|
|
||||
|
/** |
||||
|
* 查询医院是否填写问卷调查 |
||||
|
* @param name 医院名称 |
||||
|
* @param time 当前时间 |
||||
|
* @return 问卷调查列表 |
||||
|
*/ |
||||
|
List<QuestionnaireVo.WriteStatus> queryNotWrite(@Param("name") String name,@Param("time") Long time); |
||||
|
|
||||
|
/** |
||||
|
* 查询医院是否重复提交 |
||||
|
* @param hospitalName 医院名称 |
||||
|
* @param time 当前时间 |
||||
|
* @param type |
||||
|
* @return 数据 |
||||
|
*/ |
||||
|
QuestionnaireVo.QuestionnaireInfo queryRepeat(@Param("name") String hospitalName,@Param("time") Long time,@Param("type") Byte type); |
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
package com.ccsens.carbasics.persist.dao; |
||||
|
|
||||
|
import com.ccsens.carbasics.persist.mapper.QuestionnaireDetailMapper; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
@Repository |
||||
|
public interface QuestionnaireDetailDao extends QuestionnaireDetailMapper { |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.carbasics.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.po.Area; |
||||
|
import com.ccsens.carbasics.bean.po.AreaExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface AreaMapper { |
||||
|
long countByExample(AreaExample example); |
||||
|
|
||||
|
int deleteByExample(AreaExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Integer id); |
||||
|
|
||||
|
int insert(Area record); |
||||
|
|
||||
|
int insertSelective(Area record); |
||||
|
|
||||
|
List<Area> selectByExample(AreaExample example); |
||||
|
|
||||
|
Area selectByPrimaryKey(Integer id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") Area record, @Param("example") AreaExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") Area record, @Param("example") AreaExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(Area record); |
||||
|
|
||||
|
int updateByPrimaryKey(Area record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.carbasics.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.po.OcrKeyword; |
||||
|
import com.ccsens.carbasics.bean.po.OcrKeywordExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface OcrKeywordMapper { |
||||
|
long countByExample(OcrKeywordExample example); |
||||
|
|
||||
|
int deleteByExample(OcrKeywordExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(OcrKeyword record); |
||||
|
|
||||
|
int insertSelective(OcrKeyword record); |
||||
|
|
||||
|
List<OcrKeyword> selectByExample(OcrKeywordExample example); |
||||
|
|
||||
|
OcrKeyword selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") OcrKeyword record, @Param("example") OcrKeywordExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") OcrKeyword record, @Param("example") OcrKeywordExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(OcrKeyword record); |
||||
|
|
||||
|
int updateByPrimaryKey(OcrKeyword record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.carbasics.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.po.OcrKeywordOption; |
||||
|
import com.ccsens.carbasics.bean.po.OcrKeywordOptionExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface OcrKeywordOptionMapper { |
||||
|
long countByExample(OcrKeywordOptionExample example); |
||||
|
|
||||
|
int deleteByExample(OcrKeywordOptionExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(OcrKeywordOption record); |
||||
|
|
||||
|
int insertSelective(OcrKeywordOption record); |
||||
|
|
||||
|
List<OcrKeywordOption> selectByExample(OcrKeywordOptionExample example); |
||||
|
|
||||
|
OcrKeywordOption selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") OcrKeywordOption record, @Param("example") OcrKeywordOptionExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") OcrKeywordOption record, @Param("example") OcrKeywordOptionExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(OcrKeywordOption record); |
||||
|
|
||||
|
int updateByPrimaryKey(OcrKeywordOption record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.carbasics.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.po.QuestionnaireDetail; |
||||
|
import com.ccsens.carbasics.bean.po.QuestionnaireDetailExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface QuestionnaireDetailMapper { |
||||
|
long countByExample(QuestionnaireDetailExample example); |
||||
|
|
||||
|
int deleteByExample(QuestionnaireDetailExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(QuestionnaireDetail record); |
||||
|
|
||||
|
int insertSelective(QuestionnaireDetail record); |
||||
|
|
||||
|
List<QuestionnaireDetail> selectByExample(QuestionnaireDetailExample example); |
||||
|
|
||||
|
QuestionnaireDetail selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") QuestionnaireDetail record, @Param("example") QuestionnaireDetailExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") QuestionnaireDetail record, @Param("example") QuestionnaireDetailExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(QuestionnaireDetail record); |
||||
|
|
||||
|
int updateByPrimaryKey(QuestionnaireDetail record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.carbasics.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.po.Questionnaire; |
||||
|
import com.ccsens.carbasics.bean.po.QuestionnaireExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface QuestionnaireMapper { |
||||
|
long countByExample(QuestionnaireExample example); |
||||
|
|
||||
|
int deleteByExample(QuestionnaireExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(Questionnaire record); |
||||
|
|
||||
|
int insertSelective(Questionnaire record); |
||||
|
|
||||
|
List<Questionnaire> selectByExample(QuestionnaireExample example); |
||||
|
|
||||
|
Questionnaire selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") Questionnaire record, @Param("example") QuestionnaireExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") Questionnaire record, @Param("example") QuestionnaireExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(Questionnaire record); |
||||
|
|
||||
|
int updateByPrimaryKey(Questionnaire record); |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.ccsens.carbasics.service; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.dto.ProjectDto; |
||||
|
import com.ccsens.util.bean.dto.QueryDto; |
||||
|
import com.ccsens.util.message.SwitchoverProjectUtil; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.scheduling.annotation.Async; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Propagation; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.HashSet; |
||||
|
import java.util.Set; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: whj |
||||
|
* @time: 2021/9/9 15:37 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
@Async |
||||
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
||||
|
public class AsyncService implements IAsyncService { |
||||
|
@Override |
||||
|
public void switchProject(QueryDto<ProjectDto.SwitchProject> params) throws Exception { |
||||
|
log.info("开始接受切换项目"); |
||||
|
Thread.sleep(1000); |
||||
|
log.info("切换项目"); |
||||
|
Set<String> userIds = new HashSet<>(); |
||||
|
userIds.add(params.getUserId().toString()); |
||||
|
ProjectDto.SwitchProject param = params.getParam(); |
||||
|
SwitchoverProjectUtil.switchoverProject(userIds,param.getProjectId(), param.getUrl()); |
||||
|
} |
||||
|
} |
@ -0,0 +1,11 @@ |
|||||
|
package com.ccsens.carbasics.service; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.dto.ProjectDto; |
||||
|
import com.ccsens.util.bean.dto.QueryDto; |
||||
|
|
||||
|
public interface IAsyncService { |
||||
|
/** |
||||
|
* 通知TALL切换项目 |
||||
|
* */ |
||||
|
void switchProject(QueryDto<ProjectDto.SwitchProject> params) throws Exception; |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.ccsens.carbasics.service; |
||||
|
|
||||
|
|
||||
|
import com.ccsens.carbasics.bean.vo.OrganizationMemberVo; |
||||
|
|
||||
|
/** |
||||
|
* @author whj |
||||
|
*/ |
||||
|
public interface IOrganizationMemberService { |
||||
|
/** |
||||
|
* 查询用户对应的医院信息 |
||||
|
* @param userId 用户ID |
||||
|
* @return 医院ID |
||||
|
*/ |
||||
|
OrganizationMemberVo.Organization getHospital(Long userId); |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.ccsens.carbasics.service; |
||||
|
|
||||
|
|
||||
|
import com.ccsens.carbasics.bean.dto.QuestionnaireDto; |
||||
|
import com.ccsens.carbasics.bean.vo.QuestionnaireVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface IQuestionnaireService { |
||||
|
/** |
||||
|
* 三级联动查询地区 |
||||
|
* @param param 地区id |
||||
|
* @param userId 用户id |
||||
|
* @return 地区信息列表 |
||||
|
*/ |
||||
|
List<QuestionnaireVo.AreaInfo> queryArea(QuestionnaireDto.QueryArea param, Long userId); |
||||
|
|
||||
|
/** |
||||
|
* 查询问卷信息 |
||||
|
* @param param 时间/类型/医院名称 |
||||
|
* @param userId 用户id |
||||
|
* @return 问卷信息 |
||||
|
*/ |
||||
|
QuestionnaireVo.QuestionnaireInfo queryQuestionnaire(QuestionnaireDto.QueryQuestionnaire param, Long userId); |
||||
|
|
||||
|
/** |
||||
|
* 保存问卷调查信息 |
||||
|
* @param param 参数 |
||||
|
* @param userId 用户id |
||||
|
*/ |
||||
|
void saveQuestionnaire(QuestionnaireDto.SaveQuestionnaire param, Long userId); |
||||
|
|
||||
|
/** |
||||
|
* 查询当前医院问卷是否填写 |
||||
|
* @param param 项目id/当前时间 |
||||
|
* @param userId 用户id |
||||
|
* @return 问卷状态列表 |
||||
|
*/ |
||||
|
List<QuestionnaireVo.WriteStatus> queryNotWrite(QuestionnaireDto.QueryNotWrite param, Long userId); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.carbasics.service; |
||||
|
|
||||
|
import com.ccsens.carbasics.bean.vo.OrganizationMemberVo; |
||||
|
import com.ccsens.carbasics.persist.dao.OrganizationMemberDao; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Propagation; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: whj |
||||
|
* @time: 2021/9/17 16:02 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
||||
|
public class OrganizationMemberService implements IOrganizationMemberService { |
||||
|
|
||||
|
@Resource |
||||
|
private OrganizationMemberDao organizationMemberDao; |
||||
|
|
||||
|
@Override |
||||
|
public OrganizationMemberVo.Organization getHospital(Long userId) { |
||||
|
OrganizationMemberVo.Organization organization = organizationMemberDao.getHospital(userId); |
||||
|
return organization; |
||||
|
} |
||||
|
} |
@ -0,0 +1,92 @@ |
|||||
|
package com.ccsens.carbasics.service; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.collection.CollectionUtil; |
||||
|
import cn.hutool.core.lang.Snowflake; |
||||
|
import cn.hutool.core.util.ObjectUtil; |
||||
|
import com.ccsens.carbasics.bean.dto.QuestionnaireDto; |
||||
|
import com.ccsens.carbasics.bean.po.Organization; |
||||
|
import com.ccsens.carbasics.bean.po.Questionnaire; |
||||
|
import com.ccsens.carbasics.bean.po.QuestionnaireDetail; |
||||
|
import com.ccsens.carbasics.bean.vo.QuestionnaireVo; |
||||
|
import com.ccsens.carbasics.persist.dao.AreaDao; |
||||
|
import com.ccsens.carbasics.persist.dao.OrganizationDao; |
||||
|
import com.ccsens.carbasics.persist.dao.QuestionnaireDao; |
||||
|
import com.ccsens.carbasics.persist.dao.QuestionnaireDetailDao; |
||||
|
import com.ccsens.carbasics.persist.mapper.OrganizationProjectMapper; |
||||
|
import com.ccsens.carbasics.util.DefaultCodeError; |
||||
|
import com.ccsens.util.exception.BaseException; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Propagation; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
@Slf4j |
||||
|
@Service |
||||
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
||||
|
public class QuestionnaireService implements IQuestionnaireService{ |
||||
|
|
||||
|
@Resource |
||||
|
private QuestionnaireDao questionnaireDao; |
||||
|
@Resource |
||||
|
private QuestionnaireDetailDao questionnaireDetailDao; |
||||
|
@Resource |
||||
|
private AreaDao areaDao; |
||||
|
@Resource |
||||
|
private Snowflake snowflake; |
||||
|
@Resource |
||||
|
private OrganizationDao organizationDao; |
||||
|
|
||||
|
@Override |
||||
|
public List<QuestionnaireVo.AreaInfo> queryArea(QuestionnaireDto.QueryArea param, Long userId) { |
||||
|
if (ObjectUtil.isNull(param.getId())){ |
||||
|
param.setId(0L); |
||||
|
} |
||||
|
return areaDao.queryByParentId(param.getId()); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public QuestionnaireVo.QuestionnaireInfo queryQuestionnaire(QuestionnaireDto.QueryQuestionnaire param, Long userId) { |
||||
|
return questionnaireDao.queryQuestionnaire(param.getTime(),param.getType(),userId); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public void saveQuestionnaire(QuestionnaireDto.SaveQuestionnaire param, Long userId) { |
||||
|
//查询是否重复提交
|
||||
|
Long time = System.currentTimeMillis(); |
||||
|
QuestionnaireVo.QuestionnaireInfo questionnaireInfo = questionnaireDao.queryRepeat(param.getHospitalName(),time,param.getType()); |
||||
|
if (ObjectUtil.isNotNull(questionnaireInfo.getDetail())) { |
||||
|
throw new BaseException(DefaultCodeError.HOSPITAL_REPEAT_SUBMIT); |
||||
|
} |
||||
|
|
||||
|
QuestionnaireDetail questionnaireDetail = new QuestionnaireDetail(); |
||||
|
BeanUtil.copyProperties(param,questionnaireDetail); |
||||
|
questionnaireDetail.setId(snowflake.nextId()); |
||||
|
questionnaireDetail.setQuestionnaireId(param.getQuestionnaireId()); |
||||
|
questionnaireDetailDao.insertSelective(questionnaireDetail); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public List<QuestionnaireVo.WriteStatus> queryNotWrite(QuestionnaireDto.QueryNotWrite param, Long userId) { |
||||
|
Organization organization = organizationDao.getByProjectId(param.getProjectId()); |
||||
|
if (ObjectUtil.isNull(organization)) { |
||||
|
throw new BaseException(DefaultCodeError.NOT_ORGANIZATION); |
||||
|
} |
||||
|
List<QuestionnaireVo.WriteStatus> writeStatusList = questionnaireDao.queryNotWrite(organization.getName(),param.getTime()); |
||||
|
for (QuestionnaireVo.WriteStatus writeStatus : writeStatusList) { |
||||
|
if (ObjectUtil.isNull(writeStatus.getDetailId())) { |
||||
|
writeStatus.setIsWrite((byte) 0); |
||||
|
}else { |
||||
|
writeStatus.setIsWrite((byte) 1); |
||||
|
} |
||||
|
} |
||||
|
return writeStatusList; |
||||
|
} |
||||
|
|
||||
|
} |
@ -1,4 +1,4 @@ |
|||||
spring: |
spring: |
||||
profiles: |
profiles: |
||||
active: dev |
active: prod |
||||
include: common, util-dev |
include: common, util-prod |
||||
|
@ -0,0 +1,39 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.dao.AreaDao"> |
||||
|
|
||||
|
<resultMap id="area" type="com.ccsens.carbasics.bean.vo.QuestionnaireVo$AreaInfo"> |
||||
|
<id column="shengid" property="id"/> |
||||
|
<result column="sheng" property="name"/> |
||||
|
<collection property="child" ofType="com.ccsens.carbasics.bean.vo.QuestionnaireVo$AreaInfo"> |
||||
|
<id column="shiid" property="id"/> |
||||
|
<result column="shiname" property="name"/> |
||||
|
<collection property="child" ofType="com.ccsens.carbasics.bean.vo.QuestionnaireVo$AreaInfo"> |
||||
|
<id column="quid" property="id"/> |
||||
|
<result column="quname" property="name"/> |
||||
|
</collection> |
||||
|
</collection> |
||||
|
</resultMap> |
||||
|
|
||||
|
<select id="queryByParentId" resultMap="area"> |
||||
|
SELECT |
||||
|
a.id AS shengid, |
||||
|
a.area_name AS sheng, |
||||
|
a1.id AS shiid, |
||||
|
a1.area_parent_id AS shif, |
||||
|
a1.area_name AS shiname, |
||||
|
a2.id AS quid, |
||||
|
a2.area_parent_id AS quf, |
||||
|
a2.area_name AS quname |
||||
|
FROM |
||||
|
t_area AS a |
||||
|
LEFT JOIN t_area AS a1 ON a.id = a1.area_parent_id |
||||
|
LEFT JOIN t_area AS a2 ON a1.id = a2.area_parent_id |
||||
|
WHERE |
||||
|
a.area_parent_id = 0 |
||||
|
AND a.area_type = 0 |
||||
|
AND a1.area_type = 0 |
||||
|
AND a2.area_type = 0 |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,41 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.dao.OcrKeywordDao"> |
||||
|
|
||||
|
<select id="queryByHospital" resultType="com.ccsens.carbasics.bean.po.OcrKeyword"> |
||||
|
SELECT |
||||
|
id, |
||||
|
`code`, |
||||
|
`option`, |
||||
|
keyword, |
||||
|
keyword_exclude, |
||||
|
verify_type, |
||||
|
query_rule, |
||||
|
organization_id |
||||
|
FROM |
||||
|
t_qcp_ocr_keyword AS k |
||||
|
WHERE |
||||
|
rec_status = 0 |
||||
|
AND k.organization_id = 0 |
||||
|
</select> |
||||
|
|
||||
|
<select id="queryDischargeTime" resultType="com.ccsens.carbasics.bean.po.OcrKeyword"> |
||||
|
SELECT |
||||
|
id, |
||||
|
`code`, |
||||
|
`option`, |
||||
|
keyword, |
||||
|
keyword_exclude, |
||||
|
verify_type, |
||||
|
query_rule, |
||||
|
organization_id |
||||
|
FROM |
||||
|
t_qcp_ocr_keyword AS k |
||||
|
WHERE |
||||
|
rec_status = 0 |
||||
|
AND k.organization_id = 0 |
||||
|
AND keyword = '出院时间' |
||||
|
LIMIT 1 |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,18 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.dao.OcrKeywordOptionDao"> |
||||
|
|
||||
|
|
||||
|
<select id="queryByKeyId" resultType="com.ccsens.carbasics.bean.po.OcrKeywordOption"> |
||||
|
SELECT |
||||
|
id, |
||||
|
`code`, |
||||
|
answer, |
||||
|
keyword_id |
||||
|
FROM |
||||
|
t_qcp_ocr_keyword_option AS ko |
||||
|
WHERE |
||||
|
rec_status = 0 |
||||
|
AND ko.keyword_id = #{keyId} |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,147 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.dao.QuestionnaireDao"> |
||||
|
|
||||
|
<resultMap id="questionnaire" type="com.ccsens.carbasics.bean.vo.QuestionnaireVo$QuestionnaireInfo"> |
||||
|
<id column="id" property="id"/> |
||||
|
<result column="questionnaire_name" property="questionnaireName"/> |
||||
|
<result column="start" property="start"/> |
||||
|
<result column="end" property="end"/> |
||||
|
<result column="type" property="type"/> |
||||
|
<collection property="detail" ofType="com.ccsens.carbasics.bean.po.QuestionnaireDetail"> |
||||
|
<result column="city" property="city"/> |
||||
|
<result column="county" property="county"/> |
||||
|
<result column="hospital_level" property="hospitalLevel"/> |
||||
|
<result column="hospital_name" property="hospitalName"/> |
||||
|
<result column="departments" property="departments"/> |
||||
|
<result column="name" property="name"/> |
||||
|
<result column="phone" property="phone"/> |
||||
|
<result column="advanced_stroke_center" property="advancedStrokeCenter"/> |
||||
|
<result column="stroke_center" property="strokeCenter"/> |
||||
|
<result column="map_hospital" property="mapHospital"/> |
||||
|
<result column="stroke_number" property="strokeNumber"/> |
||||
|
<result column="ais_number_four" property="aisNumberFour"/> |
||||
|
<result column="jmrs_number_four" property="jmrsNumberFour"/> |
||||
|
<result column="rtpa_number" property="rtpaNumber"/> |
||||
|
<result column="dnt_number" property="dntNumber"/> |
||||
|
<result column="dnt_number_four" property="dntNumberFour"/> |
||||
|
<result column="dnt_number_six" property="dntNumberSix"/> |
||||
|
<result column="sich_number" property="sichNumber"/> |
||||
|
<result column="jmrs_number_one" property="jmrsNumberOne"/> |
||||
|
<result column="ais_number_six" property="aisNumberSix"/> |
||||
|
<result column="should_directly" property="shouldDirectly"/> |
||||
|
<result column="dpt_median_number" property="dptMedianNumber"/> |
||||
|
<result column="prt_median_number" property="prtMedianNumber"/> |
||||
|
<result column="jmrs_number_two" property="jmrsNumberTwo"/> |
||||
|
<result column="death_number" property="deathNumber"/> |
||||
|
</collection> |
||||
|
</resultMap> |
||||
|
|
||||
|
<select id="queryQuestionnaire" resultMap="questionnaire"> |
||||
|
SELECT |
||||
|
q.id, |
||||
|
q.questionnaire_name AS questionnaire_name, |
||||
|
q.start_time AS `start`, |
||||
|
q.end_time AS `end`, |
||||
|
q.type, |
||||
|
qd.city, |
||||
|
qd.county, |
||||
|
qd.hospital_level, |
||||
|
qd.hospital_name, |
||||
|
qd.departments, |
||||
|
qd.`name`, |
||||
|
qd.phone, |
||||
|
qd.advanced_stroke_center, |
||||
|
qd.stroke_center, |
||||
|
qd.map_hospital, |
||||
|
qd.stroke_number, |
||||
|
qd.ais_number_four, |
||||
|
qd.jmrs_number_four, |
||||
|
qd.rtpa_number, |
||||
|
qd.dnt_number, |
||||
|
qd.dnt_number_four, |
||||
|
qd.dnt_number_six, |
||||
|
qd.sich_number, |
||||
|
qd.jmrs_number_one, |
||||
|
qd.ais_number_six, |
||||
|
qd.should_directly, |
||||
|
qd.dpt_median_number, |
||||
|
qd.prt_median_number, |
||||
|
qd.jmrs_number_two, |
||||
|
qd.death_number |
||||
|
FROM |
||||
|
t_qcp_questionnaire AS q |
||||
|
LEFT JOIN t_qcp_questionnaire_detail AS qd ON q.id = qd.questionnaire_id |
||||
|
AND qd.user_id = #{userId} AND qd.rec_status = 0 |
||||
|
WHERE |
||||
|
q.write_start_time < #{time} |
||||
|
AND q.write_end_time > #{time} |
||||
|
AND type = #{type} |
||||
|
AND q.rec_status = 0 |
||||
|
</select> |
||||
|
|
||||
|
<select id="queryNotWrite" resultType="com.ccsens.carbasics.bean.vo.QuestionnaireVo$WriteStatus"> |
||||
|
SELECT |
||||
|
q.id, |
||||
|
q.questionnaire_name, |
||||
|
q.start_time AS `start`, |
||||
|
q.end_time AS `end`, |
||||
|
q.type, |
||||
|
q.write_start_time, |
||||
|
q.write_end_time, |
||||
|
qd.id AS detailId |
||||
|
FROM |
||||
|
t_qcp_questionnaire AS q |
||||
|
LEFT JOIN t_qcp_questionnaire_detail AS qd ON q.id = qd.questionnaire_id |
||||
|
AND qd.hospital_name = #{name} AND qd.rec_status = 0 |
||||
|
WHERE |
||||
|
q.write_start_time < #{time} |
||||
|
AND q.write_end_time > #{time} |
||||
|
AND q.rec_status = 0 |
||||
|
</select> |
||||
|
|
||||
|
<select id="queryRepeat" resultType="com.ccsens.carbasics.bean.vo.QuestionnaireVo$QuestionnaireInfo"> |
||||
|
SELECT |
||||
|
q.id, |
||||
|
q.questionnaire_name AS questionnaire_name, |
||||
|
q.start_time AS `start`, |
||||
|
q.end_time AS `end`, |
||||
|
q.type, |
||||
|
qd.city, |
||||
|
qd.county, |
||||
|
qd.hospital_level, |
||||
|
qd.hospital_name, |
||||
|
qd.departments, |
||||
|
qd.`name`, |
||||
|
qd.phone, |
||||
|
qd.advanced_stroke_center, |
||||
|
qd.stroke_center, |
||||
|
qd.map_hospital, |
||||
|
qd.stroke_number, |
||||
|
qd.ais_number_four, |
||||
|
qd.jmrs_number_four, |
||||
|
qd.rtpa_number, |
||||
|
qd.dnt_number, |
||||
|
qd.dnt_number_four, |
||||
|
qd.dnt_number_six, |
||||
|
qd.sich_number, |
||||
|
qd.jmrs_number_one, |
||||
|
qd.ais_number_six, |
||||
|
qd.should_directly, |
||||
|
qd.dpt_median_number, |
||||
|
qd.prt_median_number, |
||||
|
qd.jmrs_number_two, |
||||
|
qd.death_number |
||||
|
FROM |
||||
|
t_qcp_questionnaire AS q |
||||
|
LEFT JOIN t_qcp_questionnaire_detail AS qd ON q.id = qd.questionnaire_id |
||||
|
AND qd.user_id = #{name} AND qd.rec_status = 0 |
||||
|
WHERE |
||||
|
q.write_start_time < #{time} |
||||
|
AND q.write_end_time > #{time} |
||||
|
AND type = #{type} |
||||
|
AND q.rec_status = 0 |
||||
|
</select> |
||||
|
|
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.dao.QuestionnaireDetailDao"> |
||||
|
|
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,323 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.mapper.AreaMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.Area"> |
||||
|
<id column="id" jdbcType="INTEGER" property="id" /> |
||||
|
<result column="area_name" jdbcType="VARCHAR" property="areaName" /> |
||||
|
<result column="area_code" jdbcType="VARCHAR" property="areaCode" /> |
||||
|
<result column="area_short" jdbcType="VARCHAR" property="areaShort" /> |
||||
|
<result column="area_status" jdbcType="TINYINT" property="areaStatus" /> |
||||
|
<result column="area_parent_id" jdbcType="INTEGER" property="areaParentId" /> |
||||
|
<result column="init_date" jdbcType="TIMESTAMP" property="initDate" /> |
||||
|
<result column="init_addr" jdbcType="VARCHAR" property="initAddr" /> |
||||
|
<result column="area_type" jdbcType="TINYINT" property="areaType" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, area_name, area_code, area_short, area_status, area_parent_id, init_date, init_addr, |
||||
|
area_type, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.AreaExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_area |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_area |
||||
|
where id = #{id,jdbcType=INTEGER} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> |
||||
|
delete from t_area |
||||
|
where id = #{id,jdbcType=INTEGER} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.AreaExample"> |
||||
|
delete from t_area |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.Area"> |
||||
|
insert into t_area (id, area_name, area_code, |
||||
|
area_short, area_status, area_parent_id, |
||||
|
init_date, init_addr, area_type, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=INTEGER}, #{areaName,jdbcType=VARCHAR}, #{areaCode,jdbcType=VARCHAR}, |
||||
|
#{areaShort,jdbcType=VARCHAR}, #{areaStatus,jdbcType=TINYINT}, #{areaParentId,jdbcType=INTEGER}, |
||||
|
#{initDate,jdbcType=TIMESTAMP}, #{initAddr,jdbcType=VARCHAR}, #{areaType,jdbcType=TINYINT}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.Area"> |
||||
|
insert into t_area |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="areaName != null"> |
||||
|
area_name, |
||||
|
</if> |
||||
|
<if test="areaCode != null"> |
||||
|
area_code, |
||||
|
</if> |
||||
|
<if test="areaShort != null"> |
||||
|
area_short, |
||||
|
</if> |
||||
|
<if test="areaStatus != null"> |
||||
|
area_status, |
||||
|
</if> |
||||
|
<if test="areaParentId != null"> |
||||
|
area_parent_id, |
||||
|
</if> |
||||
|
<if test="initDate != null"> |
||||
|
init_date, |
||||
|
</if> |
||||
|
<if test="initAddr != null"> |
||||
|
init_addr, |
||||
|
</if> |
||||
|
<if test="areaType != null"> |
||||
|
area_type, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="areaName != null"> |
||||
|
#{areaName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="areaCode != null"> |
||||
|
#{areaCode,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="areaShort != null"> |
||||
|
#{areaShort,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="areaStatus != null"> |
||||
|
#{areaStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="areaParentId != null"> |
||||
|
#{areaParentId,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="initDate != null"> |
||||
|
#{initDate,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="initAddr != null"> |
||||
|
#{initAddr,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="areaType != null"> |
||||
|
#{areaType,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.AreaExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_area |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_area |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.areaName != null"> |
||||
|
area_name = #{record.areaName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.areaCode != null"> |
||||
|
area_code = #{record.areaCode,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.areaShort != null"> |
||||
|
area_short = #{record.areaShort,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.areaStatus != null"> |
||||
|
area_status = #{record.areaStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.areaParentId != null"> |
||||
|
area_parent_id = #{record.areaParentId,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.initDate != null"> |
||||
|
init_date = #{record.initDate,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.initAddr != null"> |
||||
|
init_addr = #{record.initAddr,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.areaType != null"> |
||||
|
area_type = #{record.areaType,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_area |
||||
|
set id = #{record.id,jdbcType=INTEGER}, |
||||
|
area_name = #{record.areaName,jdbcType=VARCHAR}, |
||||
|
area_code = #{record.areaCode,jdbcType=VARCHAR}, |
||||
|
area_short = #{record.areaShort,jdbcType=VARCHAR}, |
||||
|
area_status = #{record.areaStatus,jdbcType=TINYINT}, |
||||
|
area_parent_id = #{record.areaParentId,jdbcType=INTEGER}, |
||||
|
init_date = #{record.initDate,jdbcType=TIMESTAMP}, |
||||
|
init_addr = #{record.initAddr,jdbcType=VARCHAR}, |
||||
|
area_type = #{record.areaType,jdbcType=TINYINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.Area"> |
||||
|
update t_area |
||||
|
<set> |
||||
|
<if test="areaName != null"> |
||||
|
area_name = #{areaName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="areaCode != null"> |
||||
|
area_code = #{areaCode,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="areaShort != null"> |
||||
|
area_short = #{areaShort,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="areaStatus != null"> |
||||
|
area_status = #{areaStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="areaParentId != null"> |
||||
|
area_parent_id = #{areaParentId,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="initDate != null"> |
||||
|
init_date = #{initDate,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="initAddr != null"> |
||||
|
init_addr = #{initAddr,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="areaType != null"> |
||||
|
area_type = #{areaType,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=INTEGER} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.Area"> |
||||
|
update t_area |
||||
|
set area_name = #{areaName,jdbcType=VARCHAR}, |
||||
|
area_code = #{areaCode,jdbcType=VARCHAR}, |
||||
|
area_short = #{areaShort,jdbcType=VARCHAR}, |
||||
|
area_status = #{areaStatus,jdbcType=TINYINT}, |
||||
|
area_parent_id = #{areaParentId,jdbcType=INTEGER}, |
||||
|
init_date = #{initDate,jdbcType=TIMESTAMP}, |
||||
|
init_addr = #{initAddr,jdbcType=VARCHAR}, |
||||
|
area_type = #{areaType,jdbcType=TINYINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=INTEGER} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,306 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.mapper.OcrKeywordMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.OcrKeyword"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="code" jdbcType="VARCHAR" property="code" /> |
||||
|
<result column="option" jdbcType="VARCHAR" property="option" /> |
||||
|
<result column="keyword" jdbcType="VARCHAR" property="keyword" /> |
||||
|
<result column="keyword_exclude" jdbcType="VARCHAR" property="keywordExclude" /> |
||||
|
<result column="verify_type" jdbcType="TINYINT" property="verifyType" /> |
||||
|
<result column="query_rule" jdbcType="VARCHAR" property="queryRule" /> |
||||
|
<result column="organization_id" jdbcType="BIGINT" property="organizationId" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, code, option, keyword, keyword_exclude, verify_type, query_rule, organization_id, |
||||
|
created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_qcp_ocr_keyword |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_qcp_ocr_keyword |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_qcp_ocr_keyword |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordExample"> |
||||
|
delete from t_qcp_ocr_keyword |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.OcrKeyword"> |
||||
|
insert into t_qcp_ocr_keyword (id, code, option, |
||||
|
keyword, keyword_exclude, verify_type, |
||||
|
query_rule, organization_id, created_at, |
||||
|
updated_at, rec_status) |
||||
|
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{option,jdbcType=VARCHAR}, |
||||
|
#{keyword,jdbcType=VARCHAR}, #{keywordExclude,jdbcType=VARCHAR}, #{verifyType,jdbcType=TINYINT}, |
||||
|
#{queryRule,jdbcType=VARCHAR}, #{organizationId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.OcrKeyword"> |
||||
|
insert into t_qcp_ocr_keyword |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="code != null"> |
||||
|
code, |
||||
|
</if> |
||||
|
<if test="option != null"> |
||||
|
option, |
||||
|
</if> |
||||
|
<if test="keyword != null"> |
||||
|
keyword, |
||||
|
</if> |
||||
|
<if test="keywordExclude != null"> |
||||
|
keyword_exclude, |
||||
|
</if> |
||||
|
<if test="verifyType != null"> |
||||
|
verify_type, |
||||
|
</if> |
||||
|
<if test="queryRule != null"> |
||||
|
query_rule, |
||||
|
</if> |
||||
|
<if test="organizationId != null"> |
||||
|
organization_id, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="code != null"> |
||||
|
#{code,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="option != null"> |
||||
|
#{option,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="keyword != null"> |
||||
|
#{keyword,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="keywordExclude != null"> |
||||
|
#{keywordExclude,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="verifyType != null"> |
||||
|
#{verifyType,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="queryRule != null"> |
||||
|
#{queryRule,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="organizationId != null"> |
||||
|
#{organizationId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_qcp_ocr_keyword |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_qcp_ocr_keyword |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.code != null"> |
||||
|
code = #{record.code,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.option != null"> |
||||
|
option = #{record.option,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.keyword != null"> |
||||
|
keyword = #{record.keyword,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.keywordExclude != null"> |
||||
|
keyword_exclude = #{record.keywordExclude,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.verifyType != null"> |
||||
|
verify_type = #{record.verifyType,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.queryRule != null"> |
||||
|
query_rule = #{record.queryRule,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.organizationId != null"> |
||||
|
organization_id = #{record.organizationId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_qcp_ocr_keyword |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
code = #{record.code,jdbcType=VARCHAR}, |
||||
|
option = #{record.option,jdbcType=VARCHAR}, |
||||
|
keyword = #{record.keyword,jdbcType=VARCHAR}, |
||||
|
keyword_exclude = #{record.keywordExclude,jdbcType=VARCHAR}, |
||||
|
verify_type = #{record.verifyType,jdbcType=TINYINT}, |
||||
|
query_rule = #{record.queryRule,jdbcType=VARCHAR}, |
||||
|
organization_id = #{record.organizationId,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.OcrKeyword"> |
||||
|
update t_qcp_ocr_keyword |
||||
|
<set> |
||||
|
<if test="code != null"> |
||||
|
code = #{code,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="option != null"> |
||||
|
option = #{option,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="keyword != null"> |
||||
|
keyword = #{keyword,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="keywordExclude != null"> |
||||
|
keyword_exclude = #{keywordExclude,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="verifyType != null"> |
||||
|
verify_type = #{verifyType,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="queryRule != null"> |
||||
|
query_rule = #{queryRule,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="organizationId != null"> |
||||
|
organization_id = #{organizationId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.OcrKeyword"> |
||||
|
update t_qcp_ocr_keyword |
||||
|
set code = #{code,jdbcType=VARCHAR}, |
||||
|
option = #{option,jdbcType=VARCHAR}, |
||||
|
keyword = #{keyword,jdbcType=VARCHAR}, |
||||
|
keyword_exclude = #{keywordExclude,jdbcType=VARCHAR}, |
||||
|
verify_type = #{verifyType,jdbcType=TINYINT}, |
||||
|
query_rule = #{queryRule,jdbcType=VARCHAR}, |
||||
|
organization_id = #{organizationId,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,243 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.mapper.OcrKeywordOptionMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.OcrKeywordOption"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="code" jdbcType="VARCHAR" property="code" /> |
||||
|
<result column="answer" jdbcType="VARCHAR" property="answer" /> |
||||
|
<result column="keyword_id" jdbcType="BIGINT" property="keywordId" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, code, answer, keyword_id, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordOptionExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_qcp_ocr_keyword_option |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_qcp_ocr_keyword_option |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_qcp_ocr_keyword_option |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordOptionExample"> |
||||
|
delete from t_qcp_ocr_keyword_option |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordOption"> |
||||
|
insert into t_qcp_ocr_keyword_option (id, code, answer, |
||||
|
keyword_id, created_at, updated_at, |
||||
|
rec_status) |
||||
|
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{answer,jdbcType=VARCHAR}, |
||||
|
#{keywordId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
#{recStatus,jdbcType=TINYINT}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordOption"> |
||||
|
insert into t_qcp_ocr_keyword_option |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="code != null"> |
||||
|
code, |
||||
|
</if> |
||||
|
<if test="answer != null"> |
||||
|
answer, |
||||
|
</if> |
||||
|
<if test="keywordId != null"> |
||||
|
keyword_id, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="code != null"> |
||||
|
#{code,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="answer != null"> |
||||
|
#{answer,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="keywordId != null"> |
||||
|
#{keywordId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordOptionExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_qcp_ocr_keyword_option |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_qcp_ocr_keyword_option |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.code != null"> |
||||
|
code = #{record.code,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.answer != null"> |
||||
|
answer = #{record.answer,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.keywordId != null"> |
||||
|
keyword_id = #{record.keywordId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_qcp_ocr_keyword_option |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
code = #{record.code,jdbcType=VARCHAR}, |
||||
|
answer = #{record.answer,jdbcType=VARCHAR}, |
||||
|
keyword_id = #{record.keywordId,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordOption"> |
||||
|
update t_qcp_ocr_keyword_option |
||||
|
<set> |
||||
|
<if test="code != null"> |
||||
|
code = #{code,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="answer != null"> |
||||
|
answer = #{answer,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="keywordId != null"> |
||||
|
keyword_id = #{keywordId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.OcrKeywordOption"> |
||||
|
update t_qcp_ocr_keyword_option |
||||
|
set code = #{code,jdbcType=VARCHAR}, |
||||
|
answer = #{answer,jdbcType=VARCHAR}, |
||||
|
keyword_id = #{keywordId,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,623 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.mapper.QuestionnaireDetailMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.QuestionnaireDetail"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="city" jdbcType="VARCHAR" property="city" /> |
||||
|
<result column="county" jdbcType="VARCHAR" property="county" /> |
||||
|
<result column="hospital_level" jdbcType="TINYINT" property="hospitalLevel" /> |
||||
|
<result column="hospital_name" jdbcType="VARCHAR" property="hospitalName" /> |
||||
|
<result column="departments" jdbcType="VARCHAR" property="departments" /> |
||||
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
||||
|
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
||||
|
<result column="advanced_stroke_center" jdbcType="TINYINT" property="advancedStrokeCenter" /> |
||||
|
<result column="stroke_center" jdbcType="TINYINT" property="strokeCenter" /> |
||||
|
<result column="map_hospital" jdbcType="TINYINT" property="mapHospital" /> |
||||
|
<result column="stroke_number" jdbcType="INTEGER" property="strokeNumber" /> |
||||
|
<result column="ais_number_four" jdbcType="INTEGER" property="aisNumberFour" /> |
||||
|
<result column="jmrs_number_four" jdbcType="INTEGER" property="jmrsNumberFour" /> |
||||
|
<result column="rtpa_number" jdbcType="INTEGER" property="rtpaNumber" /> |
||||
|
<result column="dnt_number" jdbcType="INTEGER" property="dntNumber" /> |
||||
|
<result column="dnt_number_four" jdbcType="INTEGER" property="dntNumberFour" /> |
||||
|
<result column="dnt_number_six" jdbcType="INTEGER" property="dntNumberSix" /> |
||||
|
<result column="sich_number" jdbcType="INTEGER" property="sichNumber" /> |
||||
|
<result column="jmrs_number_one" jdbcType="INTEGER" property="jmrsNumberOne" /> |
||||
|
<result column="ais_number_six" jdbcType="INTEGER" property="aisNumberSix" /> |
||||
|
<result column="should_directly" jdbcType="INTEGER" property="shouldDirectly" /> |
||||
|
<result column="dpt_median_number" jdbcType="INTEGER" property="dptMedianNumber" /> |
||||
|
<result column="prt_median_number" jdbcType="INTEGER" property="prtMedianNumber" /> |
||||
|
<result column="jmrs_number_two" jdbcType="INTEGER" property="jmrsNumberTwo" /> |
||||
|
<result column="death_number" jdbcType="INTEGER" property="deathNumber" /> |
||||
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
||||
|
<result column="questionnaire_id" jdbcType="BIGINT" property="questionnaireId" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, city, county, hospital_level, hospital_name, departments, name, phone, advanced_stroke_center, |
||||
|
stroke_center, map_hospital, stroke_number, ais_number_four, jmrs_number_four, rtpa_number, |
||||
|
dnt_number, dnt_number_four, dnt_number_six, sich_number, jmrs_number_one, ais_number_six, |
||||
|
should_directly, dpt_median_number, prt_median_number, jmrs_number_two, death_number, |
||||
|
user_id, questionnaire_id, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetailExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_qcp_questionnaire_detail |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_qcp_questionnaire_detail |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_qcp_questionnaire_detail |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetailExample"> |
||||
|
delete from t_qcp_questionnaire_detail |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetail"> |
||||
|
insert into t_qcp_questionnaire_detail (id, city, county, |
||||
|
hospital_level, hospital_name, departments, |
||||
|
name, phone, advanced_stroke_center, |
||||
|
stroke_center, map_hospital, stroke_number, |
||||
|
ais_number_four, jmrs_number_four, rtpa_number, |
||||
|
dnt_number, dnt_number_four, dnt_number_six, |
||||
|
sich_number, jmrs_number_one, ais_number_six, |
||||
|
should_directly, dpt_median_number, prt_median_number, |
||||
|
jmrs_number_two, death_number, user_id, |
||||
|
questionnaire_id, created_at, updated_at, |
||||
|
rec_status) |
||||
|
values (#{id,jdbcType=BIGINT}, #{city,jdbcType=VARCHAR}, #{county,jdbcType=VARCHAR}, |
||||
|
#{hospitalLevel,jdbcType=TINYINT}, #{hospitalName,jdbcType=VARCHAR}, #{departments,jdbcType=VARCHAR}, |
||||
|
#{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{advancedStrokeCenter,jdbcType=TINYINT}, |
||||
|
#{strokeCenter,jdbcType=TINYINT}, #{mapHospital,jdbcType=TINYINT}, #{strokeNumber,jdbcType=INTEGER}, |
||||
|
#{aisNumberFour,jdbcType=INTEGER}, #{jmrsNumberFour,jdbcType=INTEGER}, #{rtpaNumber,jdbcType=INTEGER}, |
||||
|
#{dntNumber,jdbcType=INTEGER}, #{dntNumberFour,jdbcType=INTEGER}, #{dntNumberSix,jdbcType=INTEGER}, |
||||
|
#{sichNumber,jdbcType=INTEGER}, #{jmrsNumberOne,jdbcType=INTEGER}, #{aisNumberSix,jdbcType=INTEGER}, |
||||
|
#{shouldDirectly,jdbcType=INTEGER}, #{dptMedianNumber,jdbcType=INTEGER}, #{prtMedianNumber,jdbcType=INTEGER}, |
||||
|
#{jmrsNumberTwo,jdbcType=INTEGER}, #{deathNumber,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, |
||||
|
#{questionnaireId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
#{recStatus,jdbcType=TINYINT}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetail"> |
||||
|
insert into t_qcp_questionnaire_detail |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="city != null"> |
||||
|
city, |
||||
|
</if> |
||||
|
<if test="county != null"> |
||||
|
county, |
||||
|
</if> |
||||
|
<if test="hospitalLevel != null"> |
||||
|
hospital_level, |
||||
|
</if> |
||||
|
<if test="hospitalName != null"> |
||||
|
hospital_name, |
||||
|
</if> |
||||
|
<if test="departments != null"> |
||||
|
departments, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
name, |
||||
|
</if> |
||||
|
<if test="phone != null"> |
||||
|
phone, |
||||
|
</if> |
||||
|
<if test="advancedStrokeCenter != null"> |
||||
|
advanced_stroke_center, |
||||
|
</if> |
||||
|
<if test="strokeCenter != null"> |
||||
|
stroke_center, |
||||
|
</if> |
||||
|
<if test="mapHospital != null"> |
||||
|
map_hospital, |
||||
|
</if> |
||||
|
<if test="strokeNumber != null"> |
||||
|
stroke_number, |
||||
|
</if> |
||||
|
<if test="aisNumberFour != null"> |
||||
|
ais_number_four, |
||||
|
</if> |
||||
|
<if test="jmrsNumberFour != null"> |
||||
|
jmrs_number_four, |
||||
|
</if> |
||||
|
<if test="rtpaNumber != null"> |
||||
|
rtpa_number, |
||||
|
</if> |
||||
|
<if test="dntNumber != null"> |
||||
|
dnt_number, |
||||
|
</if> |
||||
|
<if test="dntNumberFour != null"> |
||||
|
dnt_number_four, |
||||
|
</if> |
||||
|
<if test="dntNumberSix != null"> |
||||
|
dnt_number_six, |
||||
|
</if> |
||||
|
<if test="sichNumber != null"> |
||||
|
sich_number, |
||||
|
</if> |
||||
|
<if test="jmrsNumberOne != null"> |
||||
|
jmrs_number_one, |
||||
|
</if> |
||||
|
<if test="aisNumberSix != null"> |
||||
|
ais_number_six, |
||||
|
</if> |
||||
|
<if test="shouldDirectly != null"> |
||||
|
should_directly, |
||||
|
</if> |
||||
|
<if test="dptMedianNumber != null"> |
||||
|
dpt_median_number, |
||||
|
</if> |
||||
|
<if test="prtMedianNumber != null"> |
||||
|
prt_median_number, |
||||
|
</if> |
||||
|
<if test="jmrsNumberTwo != null"> |
||||
|
jmrs_number_two, |
||||
|
</if> |
||||
|
<if test="deathNumber != null"> |
||||
|
death_number, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
user_id, |
||||
|
</if> |
||||
|
<if test="questionnaireId != null"> |
||||
|
questionnaire_id, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="city != null"> |
||||
|
#{city,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="county != null"> |
||||
|
#{county,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="hospitalLevel != null"> |
||||
|
#{hospitalLevel,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="hospitalName != null"> |
||||
|
#{hospitalName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="departments != null"> |
||||
|
#{departments,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
#{name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="phone != null"> |
||||
|
#{phone,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="advancedStrokeCenter != null"> |
||||
|
#{advancedStrokeCenter,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="strokeCenter != null"> |
||||
|
#{strokeCenter,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="mapHospital != null"> |
||||
|
#{mapHospital,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="strokeNumber != null"> |
||||
|
#{strokeNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="aisNumberFour != null"> |
||||
|
#{aisNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="jmrsNumberFour != null"> |
||||
|
#{jmrsNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="rtpaNumber != null"> |
||||
|
#{rtpaNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="dntNumber != null"> |
||||
|
#{dntNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="dntNumberFour != null"> |
||||
|
#{dntNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="dntNumberSix != null"> |
||||
|
#{dntNumberSix,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="sichNumber != null"> |
||||
|
#{sichNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="jmrsNumberOne != null"> |
||||
|
#{jmrsNumberOne,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="aisNumberSix != null"> |
||||
|
#{aisNumberSix,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="shouldDirectly != null"> |
||||
|
#{shouldDirectly,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="dptMedianNumber != null"> |
||||
|
#{dptMedianNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="prtMedianNumber != null"> |
||||
|
#{prtMedianNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="jmrsNumberTwo != null"> |
||||
|
#{jmrsNumberTwo,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="deathNumber != null"> |
||||
|
#{deathNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
#{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="questionnaireId != null"> |
||||
|
#{questionnaireId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetailExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_qcp_questionnaire_detail |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_qcp_questionnaire_detail |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.city != null"> |
||||
|
city = #{record.city,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.county != null"> |
||||
|
county = #{record.county,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.hospitalLevel != null"> |
||||
|
hospital_level = #{record.hospitalLevel,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.hospitalName != null"> |
||||
|
hospital_name = #{record.hospitalName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.departments != null"> |
||||
|
departments = #{record.departments,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.name != null"> |
||||
|
name = #{record.name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.phone != null"> |
||||
|
phone = #{record.phone,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.advancedStrokeCenter != null"> |
||||
|
advanced_stroke_center = #{record.advancedStrokeCenter,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.strokeCenter != null"> |
||||
|
stroke_center = #{record.strokeCenter,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.mapHospital != null"> |
||||
|
map_hospital = #{record.mapHospital,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.strokeNumber != null"> |
||||
|
stroke_number = #{record.strokeNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.aisNumberFour != null"> |
||||
|
ais_number_four = #{record.aisNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.jmrsNumberFour != null"> |
||||
|
jmrs_number_four = #{record.jmrsNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.rtpaNumber != null"> |
||||
|
rtpa_number = #{record.rtpaNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.dntNumber != null"> |
||||
|
dnt_number = #{record.dntNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.dntNumberFour != null"> |
||||
|
dnt_number_four = #{record.dntNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.dntNumberSix != null"> |
||||
|
dnt_number_six = #{record.dntNumberSix,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.sichNumber != null"> |
||||
|
sich_number = #{record.sichNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.jmrsNumberOne != null"> |
||||
|
jmrs_number_one = #{record.jmrsNumberOne,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.aisNumberSix != null"> |
||||
|
ais_number_six = #{record.aisNumberSix,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.shouldDirectly != null"> |
||||
|
should_directly = #{record.shouldDirectly,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.dptMedianNumber != null"> |
||||
|
dpt_median_number = #{record.dptMedianNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.prtMedianNumber != null"> |
||||
|
prt_median_number = #{record.prtMedianNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.jmrsNumberTwo != null"> |
||||
|
jmrs_number_two = #{record.jmrsNumberTwo,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.deathNumber != null"> |
||||
|
death_number = #{record.deathNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.userId != null"> |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.questionnaireId != null"> |
||||
|
questionnaire_id = #{record.questionnaireId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_qcp_questionnaire_detail |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
city = #{record.city,jdbcType=VARCHAR}, |
||||
|
county = #{record.county,jdbcType=VARCHAR}, |
||||
|
hospital_level = #{record.hospitalLevel,jdbcType=TINYINT}, |
||||
|
hospital_name = #{record.hospitalName,jdbcType=VARCHAR}, |
||||
|
departments = #{record.departments,jdbcType=VARCHAR}, |
||||
|
name = #{record.name,jdbcType=VARCHAR}, |
||||
|
phone = #{record.phone,jdbcType=VARCHAR}, |
||||
|
advanced_stroke_center = #{record.advancedStrokeCenter,jdbcType=TINYINT}, |
||||
|
stroke_center = #{record.strokeCenter,jdbcType=TINYINT}, |
||||
|
map_hospital = #{record.mapHospital,jdbcType=TINYINT}, |
||||
|
stroke_number = #{record.strokeNumber,jdbcType=INTEGER}, |
||||
|
ais_number_four = #{record.aisNumberFour,jdbcType=INTEGER}, |
||||
|
jmrs_number_four = #{record.jmrsNumberFour,jdbcType=INTEGER}, |
||||
|
rtpa_number = #{record.rtpaNumber,jdbcType=INTEGER}, |
||||
|
dnt_number = #{record.dntNumber,jdbcType=INTEGER}, |
||||
|
dnt_number_four = #{record.dntNumberFour,jdbcType=INTEGER}, |
||||
|
dnt_number_six = #{record.dntNumberSix,jdbcType=INTEGER}, |
||||
|
sich_number = #{record.sichNumber,jdbcType=INTEGER}, |
||||
|
jmrs_number_one = #{record.jmrsNumberOne,jdbcType=INTEGER}, |
||||
|
ais_number_six = #{record.aisNumberSix,jdbcType=INTEGER}, |
||||
|
should_directly = #{record.shouldDirectly,jdbcType=INTEGER}, |
||||
|
dpt_median_number = #{record.dptMedianNumber,jdbcType=INTEGER}, |
||||
|
prt_median_number = #{record.prtMedianNumber,jdbcType=INTEGER}, |
||||
|
jmrs_number_two = #{record.jmrsNumberTwo,jdbcType=INTEGER}, |
||||
|
death_number = #{record.deathNumber,jdbcType=INTEGER}, |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
questionnaire_id = #{record.questionnaireId,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetail"> |
||||
|
update t_qcp_questionnaire_detail |
||||
|
<set> |
||||
|
<if test="city != null"> |
||||
|
city = #{city,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="county != null"> |
||||
|
county = #{county,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="hospitalLevel != null"> |
||||
|
hospital_level = #{hospitalLevel,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="hospitalName != null"> |
||||
|
hospital_name = #{hospitalName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="departments != null"> |
||||
|
departments = #{departments,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
name = #{name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="phone != null"> |
||||
|
phone = #{phone,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="advancedStrokeCenter != null"> |
||||
|
advanced_stroke_center = #{advancedStrokeCenter,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="strokeCenter != null"> |
||||
|
stroke_center = #{strokeCenter,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="mapHospital != null"> |
||||
|
map_hospital = #{mapHospital,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="strokeNumber != null"> |
||||
|
stroke_number = #{strokeNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="aisNumberFour != null"> |
||||
|
ais_number_four = #{aisNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="jmrsNumberFour != null"> |
||||
|
jmrs_number_four = #{jmrsNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="rtpaNumber != null"> |
||||
|
rtpa_number = #{rtpaNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="dntNumber != null"> |
||||
|
dnt_number = #{dntNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="dntNumberFour != null"> |
||||
|
dnt_number_four = #{dntNumberFour,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="dntNumberSix != null"> |
||||
|
dnt_number_six = #{dntNumberSix,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="sichNumber != null"> |
||||
|
sich_number = #{sichNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="jmrsNumberOne != null"> |
||||
|
jmrs_number_one = #{jmrsNumberOne,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="aisNumberSix != null"> |
||||
|
ais_number_six = #{aisNumberSix,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="shouldDirectly != null"> |
||||
|
should_directly = #{shouldDirectly,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="dptMedianNumber != null"> |
||||
|
dpt_median_number = #{dptMedianNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="prtMedianNumber != null"> |
||||
|
prt_median_number = #{prtMedianNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="jmrsNumberTwo != null"> |
||||
|
jmrs_number_two = #{jmrsNumberTwo,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="deathNumber != null"> |
||||
|
death_number = #{deathNumber,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
user_id = #{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="questionnaireId != null"> |
||||
|
questionnaire_id = #{questionnaireId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireDetail"> |
||||
|
update t_qcp_questionnaire_detail |
||||
|
set city = #{city,jdbcType=VARCHAR}, |
||||
|
county = #{county,jdbcType=VARCHAR}, |
||||
|
hospital_level = #{hospitalLevel,jdbcType=TINYINT}, |
||||
|
hospital_name = #{hospitalName,jdbcType=VARCHAR}, |
||||
|
departments = #{departments,jdbcType=VARCHAR}, |
||||
|
name = #{name,jdbcType=VARCHAR}, |
||||
|
phone = #{phone,jdbcType=VARCHAR}, |
||||
|
advanced_stroke_center = #{advancedStrokeCenter,jdbcType=TINYINT}, |
||||
|
stroke_center = #{strokeCenter,jdbcType=TINYINT}, |
||||
|
map_hospital = #{mapHospital,jdbcType=TINYINT}, |
||||
|
stroke_number = #{strokeNumber,jdbcType=INTEGER}, |
||||
|
ais_number_four = #{aisNumberFour,jdbcType=INTEGER}, |
||||
|
jmrs_number_four = #{jmrsNumberFour,jdbcType=INTEGER}, |
||||
|
rtpa_number = #{rtpaNumber,jdbcType=INTEGER}, |
||||
|
dnt_number = #{dntNumber,jdbcType=INTEGER}, |
||||
|
dnt_number_four = #{dntNumberFour,jdbcType=INTEGER}, |
||||
|
dnt_number_six = #{dntNumberSix,jdbcType=INTEGER}, |
||||
|
sich_number = #{sichNumber,jdbcType=INTEGER}, |
||||
|
jmrs_number_one = #{jmrsNumberOne,jdbcType=INTEGER}, |
||||
|
ais_number_six = #{aisNumberSix,jdbcType=INTEGER}, |
||||
|
should_directly = #{shouldDirectly,jdbcType=INTEGER}, |
||||
|
dpt_median_number = #{dptMedianNumber,jdbcType=INTEGER}, |
||||
|
prt_median_number = #{prtMedianNumber,jdbcType=INTEGER}, |
||||
|
jmrs_number_two = #{jmrsNumberTwo,jdbcType=INTEGER}, |
||||
|
death_number = #{deathNumber,jdbcType=INTEGER}, |
||||
|
user_id = #{userId,jdbcType=BIGINT}, |
||||
|
questionnaire_id = #{questionnaireId,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,291 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.carbasics.persist.mapper.QuestionnaireMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.Questionnaire"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="questionnaire_name" jdbcType="VARCHAR" property="questionnaireName" /> |
||||
|
<result column="start_time" jdbcType="BIGINT" property="startTime" /> |
||||
|
<result column="end_time" jdbcType="BIGINT" property="endTime" /> |
||||
|
<result column="type" jdbcType="TINYINT" property="type" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
<result column="write_start_time" jdbcType="BIGINT" property="writeStartTime" /> |
||||
|
<result column="write_end_time" jdbcType="BIGINT" property="writeEndTime" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, questionnaire_name, start_time, end_time, type, created_at, updated_at, rec_status, |
||||
|
write_start_time, write_end_time |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_qcp_questionnaire |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_qcp_questionnaire |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_qcp_questionnaire |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireExample"> |
||||
|
delete from t_qcp_questionnaire |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.Questionnaire"> |
||||
|
insert into t_qcp_questionnaire (id, questionnaire_name, start_time, |
||||
|
end_time, type, created_at, |
||||
|
updated_at, rec_status, write_start_time, |
||||
|
write_end_time) |
||||
|
values (#{id,jdbcType=BIGINT}, #{questionnaireName,jdbcType=VARCHAR}, #{startTime,jdbcType=BIGINT}, |
||||
|
#{endTime,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{writeStartTime,jdbcType=BIGINT}, |
||||
|
#{writeEndTime,jdbcType=BIGINT}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.Questionnaire"> |
||||
|
insert into t_qcp_questionnaire |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="questionnaireName != null"> |
||||
|
questionnaire_name, |
||||
|
</if> |
||||
|
<if test="startTime != null"> |
||||
|
start_time, |
||||
|
</if> |
||||
|
<if test="endTime != null"> |
||||
|
end_time, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
type, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
<if test="writeStartTime != null"> |
||||
|
write_start_time, |
||||
|
</if> |
||||
|
<if test="writeEndTime != null"> |
||||
|
write_end_time, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="questionnaireName != null"> |
||||
|
#{questionnaireName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="startTime != null"> |
||||
|
#{startTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="endTime != null"> |
||||
|
#{endTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
#{type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="writeStartTime != null"> |
||||
|
#{writeStartTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="writeEndTime != null"> |
||||
|
#{writeEndTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.QuestionnaireExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_qcp_questionnaire |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_qcp_questionnaire |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.questionnaireName != null"> |
||||
|
questionnaire_name = #{record.questionnaireName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.startTime != null"> |
||||
|
start_time = #{record.startTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.endTime != null"> |
||||
|
end_time = #{record.endTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.type != null"> |
||||
|
type = #{record.type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.writeStartTime != null"> |
||||
|
write_start_time = #{record.writeStartTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.writeEndTime != null"> |
||||
|
write_end_time = #{record.writeEndTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_qcp_questionnaire |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
questionnaire_name = #{record.questionnaireName,jdbcType=VARCHAR}, |
||||
|
start_time = #{record.startTime,jdbcType=BIGINT}, |
||||
|
end_time = #{record.endTime,jdbcType=BIGINT}, |
||||
|
type = #{record.type,jdbcType=TINYINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
write_start_time = #{record.writeStartTime,jdbcType=BIGINT}, |
||||
|
write_end_time = #{record.writeEndTime,jdbcType=BIGINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.Questionnaire"> |
||||
|
update t_qcp_questionnaire |
||||
|
<set> |
||||
|
<if test="questionnaireName != null"> |
||||
|
questionnaire_name = #{questionnaireName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="startTime != null"> |
||||
|
start_time = #{startTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="endTime != null"> |
||||
|
end_time = #{endTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
type = #{type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="writeStartTime != null"> |
||||
|
write_start_time = #{writeStartTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="writeEndTime != null"> |
||||
|
write_end_time = #{writeEndTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.Questionnaire"> |
||||
|
update t_qcp_questionnaire |
||||
|
set questionnaire_name = #{questionnaireName,jdbcType=VARCHAR}, |
||||
|
start_time = #{startTime,jdbcType=BIGINT}, |
||||
|
end_time = #{endTime,jdbcType=BIGINT}, |
||||
|
type = #{type,jdbcType=TINYINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
write_start_time = #{writeStartTime,jdbcType=BIGINT}, |
||||
|
write_end_time = #{writeEndTime,jdbcType=BIGINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
Loading…
Reference in new issue