138 changed files with 18957 additions and 25799 deletions
@ -1,66 +0,0 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.CarDto; |
|||
import com.ccsens.carbasics.bean.vo.CarVo; |
|||
import com.ccsens.carbasics.service.IPatientWisdomCarService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.CodeError; |
|||
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; |
|||
|
|||
/** |
|||
* @description:平车相关 |
|||
* @author: whj |
|||
* @time: 2021/7/27 16:39 |
|||
*/ |
|||
@Api(tags = "平车相关") |
|||
@RestController |
|||
@RequestMapping("/car") |
|||
@Slf4j |
|||
public class CarController { |
|||
|
|||
// @Resource
|
|||
// private IPatientWisdomCarService patientWisdomCarService;
|
|||
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "查询医院的平车信息")
|
|||
// @RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse<List<CarVo.Car>> query(@ApiParam @Validated @RequestBody QueryDto params) {
|
|||
// log.info("查询医院的平车信息:{}", params);
|
|||
// List<CarVo.Car> list = patientWisdomCarService.query(params.getUserId());
|
|||
// log.info("查询医院的平车信息结果:{}", list);
|
|||
// return JsonResponse.newInstance().ok(list);
|
|||
// }
|
|||
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "查询患者绑定的平车信息")
|
|||
// @RequestMapping(value = "/queryBind", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse<CarVo.QueryBind> queryBind(@ApiParam @Validated @RequestBody QueryDto<CarDto.QueryBind> params) {
|
|||
// log.info("查询患者绑定的平车信息:{}", params);
|
|||
// CarVo.QueryBind bind = patientWisdomCarService.queryBind(params.getParam(), params.getUserId());
|
|||
// log.info("查询患者绑定的平车信息结果:{}", bind);
|
|||
// return JsonResponse.newInstance().ok(bind);
|
|||
// }
|
|||
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "绑定平车")
|
|||
// @RequestMapping(value = "/bind", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse bind(@ApiParam @Validated @RequestBody QueryDto<CarDto.Bind> params) {
|
|||
// log.info("绑定平车:{}", params);
|
|||
// CodeError.Code codeError = patientWisdomCarService.bind(params.getParam(), params.getUserId());
|
|||
// log.info("绑定平车结果:{}", codeError);
|
|||
// return JsonResponse.newInstance().ok(codeError);
|
|||
// }
|
|||
} |
@ -0,0 +1,58 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.ccsens.carbasics.service.IFirstAidRecordService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.github.pagehelper.PageInfo; |
|||
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; |
|||
|
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "数据录入相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/patient") |
|||
@Slf4j |
|||
public class FirstAidRecordController { |
|||
@Resource |
|||
private IFirstAidRecordService patientService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询类型的所有下级和完成情况", notes = "") |
|||
@RequestMapping(value = "/subordinate", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PatientVo.QuerySubordinate> querySubordinate(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QuerySubordinate> params) throws Exception{ |
|||
PatientVo.QuerySubordinate querySubordinate = patientService.querySubordinate(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(querySubordinate); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "批量提交急救信息", notes = "") |
|||
@RequestMapping(value = "/aidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse saveAidRecordN(@ApiParam @Validated @RequestBody QueryDto<PatientDto.SaveAidRecordN> params) throws Exception{ |
|||
patientService.saveAidRecordN(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "批量查询急救信息", notes = "") |
|||
@RequestMapping(value = "/queryAidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PatientVo.QueryAidRecordN> queryAidRecordN(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QueryAidRecord> params) throws Exception{ |
|||
PatientVo.QueryAidRecordN queryAidRecord = patientService.queryAidRecordN(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(queryAidRecord); |
|||
} |
|||
|
|||
} |
@ -1,94 +1,45 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.dto.StatisticalDto; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.ccsens.carbasics.service.IPatientService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.github.pagehelper.PageInfo; |
|||
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; |
|||
|
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "患者相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/patient") |
|||
@Slf4j |
|||
public class PatientController { |
|||
@Resource |
|||
private IPatientService patientService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询患者列表", notes = "查询患者列表") |
|||
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<PatientVo.QueryPatientList>> queryPatientList(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QueryPatient> params) throws Exception{ |
|||
PageInfo<PatientVo.QueryPatientList> patientList = patientService.queryPatientList(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(patientList); |
|||
} |
|||
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "批量提交急救信息", notes = "")
|
|||
// @RequestMapping(value = "/aidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse saveAidRecord(@ApiParam @Validated @RequestBody QueryDto<PatientDto.SaveAidRecord> params) throws Exception{
|
|||
// patientService.saveAidRecord(params.getParam(), params.getUserId());
|
|||
// return JsonResponse.newInstance().ok();
|
|||
// }
|
|||
//
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "批量查询急救信息", notes = "")
|
|||
// @RequestMapping(value = "/queryAidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse<PatientVo.QueryAidRecord> queryAidRecord(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QueryAidRecord> params) throws Exception{
|
|||
// PatientVo.QueryAidRecord queryAidRecord = patientService.queryAidRecord(params.getParam(), params.getUserId());
|
|||
// return JsonResponse.newInstance().ok(queryAidRecord);
|
|||
// }
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询类型的所有下级和完成情况", notes = "") |
|||
@RequestMapping(value = "/subordinate", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PatientVo.QuerySubordinate> querySubordinate(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QuerySubordinate> params) throws Exception{ |
|||
PatientVo.QuerySubordinate querySubordinate = patientService.querySubordinate(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(querySubordinate); |
|||
} |
|||
//
|
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "时间沙漏", notes = "") |
|||
@RequestMapping(value = "/sandClock", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PatientVo.TimeSandClock> timeSandClock(@ApiParam @Validated @RequestBody QueryDto<StatisticalDto.QueryStep> params) throws Exception{ |
|||
PatientVo.TimeSandClock timeSandClock = patientService.timeSandClock(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(timeSandClock); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "批量提交急救信息", notes = "") |
|||
@RequestMapping(value = "/aidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse saveAidRecordN(@ApiParam @Validated @RequestBody QueryDto<PatientDto.SaveAidRecordN> params) throws Exception{ |
|||
patientService.saveAidRecordN(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "批量查询急救信息", notes = "") |
|||
@RequestMapping(value = "/queryAidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PatientVo.QueryAidRecordN> queryAidRecordN(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QueryAidRecord> params) throws Exception{ |
|||
PatientVo.QueryAidRecordN queryAidRecord = patientService.queryAidRecordN(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(queryAidRecord); |
|||
} |
|||
|
|||
} |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.ccsens.carbasics.service.IFirstAidService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.github.pagehelper.PageInfo; |
|||
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/8/30 18:18 |
|||
*/ |
|||
@Api(tags = "患者列表相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/patient") |
|||
@Slf4j |
|||
public class PatientController { |
|||
|
|||
@Resource |
|||
private IFirstAidService firstAidService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "病例列表", notes = "分诊护士/神内医生/神外医生查看相关病例") |
|||
@RequestMapping(value = "/querySelf", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<PatientVo.QueryPatientList>> querySelf(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QueryPatient> params) throws Exception{ |
|||
log.info("查询自己相关的病例列表:{}", params); |
|||
PageInfo<PatientVo.QueryPatientList> page = firstAidService.querySelf(params.getParam(), params.getUserId()); |
|||
log.info("查询自己相关的病例列表成功"); |
|||
return JsonResponse.newInstance().ok(page); |
|||
} |
|||
} |
|||
|
@ -1,69 +0,0 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import cn.hutool.core.util.CharsetUtil; |
|||
import com.ccsens.carbasics.bean.dto.RecordDto; |
|||
import com.ccsens.carbasics.bean.vo.RecordVo; |
|||
import com.ccsens.carbasics.service.IRecordService; |
|||
import com.ccsens.util.DateUtil; |
|||
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.apache.poi.ss.usermodel.Workbook; |
|||
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 javax.servlet.http.HttpServletResponse; |
|||
import java.io.IOException; |
|||
import java.net.URLEncoder; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author whj |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "消息记录相关api" ) |
|||
@RestController |
|||
@RequestMapping("/record") |
|||
public class RecordController { |
|||
|
|||
// @Resource
|
|||
// private IRecordService recordService;
|
|||
// @ApiOperation(value = "查询智慧平车称重和rfid记录", notes = "")
|
|||
// @RequestMapping(value = "/weightList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse<RecordVo.WeightAndRfid> timeList(@ApiParam @Validated @RequestBody QueryDto<RecordDto.WeightAndRfid> params){
|
|||
// log.info("查询智慧平车称重和rfid记录:{}", params);
|
|||
// if (params.getParam().getEndTime() != null) {
|
|||
// params.getParam().setEndTime(params.getParam().getEndTime() + 24 * 3600 *1000);
|
|||
// }
|
|||
// List<RecordVo.WeightAndRfid> list = recordService.queryWeightAndRfid(params.getParam(), params.getUserId());
|
|||
// log.info("查询智慧平车称重和rfid记录结果:{}",list);
|
|||
// return JsonResponse.newInstance().ok(list);
|
|||
// }
|
|||
|
|||
// @ApiOperation(value = "智慧平车称重和rfid记录导出", notes = "")
|
|||
// @RequestMapping(value = "/weightExport", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
|
|||
// public void weightExport(@ApiParam @Validated RecordDto.WeightAndRfidExport param, HttpServletResponse response) throws IOException {
|
|||
// log.info("导出智慧平车称重和rfid记录:{}", param);
|
|||
// if (param.getEndTime() != null) {
|
|||
// param.setEndTime(param.getEndTime() + 24 * 3600 *1000);
|
|||
// }
|
|||
// Workbook workbook = recordService.exportWeightAndRfid(param);
|
|||
// log.info("导出智慧平车称重和rfid记录结果结束");
|
|||
// Date start = new Date();
|
|||
// start.setTime(param.getStartTime());
|
|||
// Date end = new Date();
|
|||
// end.setTime(param.getEndTime() - 24 * 3600 * 1000);
|
|||
// String fileName = "智慧平车记录"+ DateUtil.format(start, DateUtil.yyyyMMdd) + "-" + DateUtil.format(end, DateUtil.yyyyMMdd) +".xlsx";
|
|||
// response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8));
|
|||
// workbook.write(response.getOutputStream());
|
|||
// }
|
|||
|
|||
} |
@ -1,65 +0,0 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.WorkerDto; |
|||
import com.ccsens.carbasics.bean.vo.WorkerVo; |
|||
import com.ccsens.carbasics.service.IWorkerService; |
|||
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; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Api(tags = "人员相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/worker") |
|||
@Slf4j |
|||
public class WorkerController { |
|||
|
|||
@Resource |
|||
IWorkerService workerService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "添加到场人员信息", notes = "添加到场人员信息") |
|||
@RequestMapping(value = "/addArriveWorker", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse addArriveWorker(@ApiParam @Validated @RequestBody QueryDto<WorkerDto.AddArriveWorker> params) throws Exception{ |
|||
log.info("添加到场人员信息接口开始{}",params); |
|||
workerService.addArriveWorker(params.getParam(), params.getUserId()); |
|||
log.info("添加到场人员信息接口结束"); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询到场人员信息", notes = "查询到场人员信息") |
|||
@RequestMapping(value = "/queryArriveWorker", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<WorkerVo.WorkInformation>> queryArriveWorker(@ApiParam @Validated @RequestBody QueryDto<WorkerDto.QueryArriveWorker> params) throws Exception{ |
|||
log.info("查询到场人员信息开始{}",params); |
|||
List<WorkerVo.WorkInformation> workerInfoList = workerService.queryArriveWorker(params.getParam(), params.getUserId()); |
|||
log.info("查询到场人员信息结束{}",workerInfoList); |
|||
return JsonResponse.newInstance().ok(workerInfoList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询医院成员和急救期间是否值班", notes = "查询医院成员和急救期间是否值班") |
|||
@RequestMapping(value = "/queryAllDoctor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Map<Byte, List<WorkerVo.AllDoctor>>> queryAllDoctor(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ |
|||
log.info("添加到场人员信息接口开始{}",params); |
|||
Map<Byte, List<WorkerVo.AllDoctor>> workerInfoList = workerService.queryAllDoctor(params.getUserId()); |
|||
log.info("添加到场人员信息接口结束"); |
|||
return JsonResponse.newInstance().ok(workerInfoList); |
|||
} |
|||
|
|||
} |
@ -1,139 +1,128 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CodeDictionaries implements Serializable { |
|||
private Long id; |
|||
|
|||
private String question; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String parentCode; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private String taskName; |
|||
|
|||
private Long stepId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getQuestion() { |
|||
return question; |
|||
} |
|||
|
|||
public void setQuestion(String question) { |
|||
this.question = question == null ? null : question.trim(); |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getParentCode() { |
|||
return parentCode; |
|||
} |
|||
|
|||
public void setParentCode(String parentCode) { |
|||
this.parentCode = parentCode == null ? null : parentCode.trim(); |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public String getTaskName() { |
|||
return taskName; |
|||
} |
|||
|
|||
public void setTaskName(String taskName) { |
|||
this.taskName = taskName == null ? null : taskName.trim(); |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", question=").append(question); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", parentCode=").append(parentCode); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", taskName=").append(taskName); |
|||
sb.append(", stepId=").append(stepId); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CodeDictionaries implements Serializable { |
|||
private Long id; |
|||
|
|||
private String question; |
|||
|
|||
private String questionCode; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private String taskName; |
|||
|
|||
private Long stepId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getQuestion() { |
|||
return question; |
|||
} |
|||
|
|||
public void setQuestion(String question) { |
|||
this.question = question == null ? null : question.trim(); |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public String getTaskName() { |
|||
return taskName; |
|||
} |
|||
|
|||
public void setTaskName(String taskName) { |
|||
this.taskName = taskName == null ? null : taskName.trim(); |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", question=").append(question); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", taskName=").append(taskName); |
|||
sb.append(", stepId=").append(stepId); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,117 +1,95 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Working implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long doctorId; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
private Byte post; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getDoctorId() { |
|||
return doctorId; |
|||
} |
|||
|
|||
public void setDoctorId(Long doctorId) { |
|||
this.doctorId = doctorId; |
|||
} |
|||
|
|||
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 getPost() { |
|||
return post; |
|||
} |
|||
|
|||
public void setPost(Byte post) { |
|||
this.post = post; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", doctorId=").append(doctorId); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", post=").append(post); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CodeParent implements Serializable { |
|||
private Long id; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String parentCode; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getParentCode() { |
|||
return parentCode; |
|||
} |
|||
|
|||
public void setParentCode(String parentCode) { |
|||
this.parentCode = parentCode == null ? null : parentCode.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", questionCode=").append(questionCode); |
|||
sb.append(", parentCode=").append(parentCode); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,172 +0,0 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Doctor implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte post; |
|||
|
|||
private Byte department; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private String name; |
|||
|
|||
private String serial; |
|||
|
|||
private String phone; |
|||
|
|||
private Byte gender; |
|||
|
|||
private String rfid; |
|||
|
|||
private Long userId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Byte getPost() { |
|||
return post; |
|||
} |
|||
|
|||
public void setPost(Byte post) { |
|||
this.post = post; |
|||
} |
|||
|
|||
public Byte getDepartment() { |
|||
return department; |
|||
} |
|||
|
|||
public void setDepartment(Byte department) { |
|||
this.department = department; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getSerial() { |
|||
return serial; |
|||
} |
|||
|
|||
public void setSerial(String serial) { |
|||
this.serial = serial == null ? null : serial.trim(); |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public String getRfid() { |
|||
return rfid; |
|||
} |
|||
|
|||
public void setRfid(String rfid) { |
|||
this.rfid = rfid == null ? null : rfid.trim(); |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", post=").append(post); |
|||
sb.append(", department=").append(department); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", serial=").append(serial); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", rfid=").append(rfid); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,249 +1,205 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAid implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Byte type; |
|||
|
|||
private Byte valueType; |
|||
|
|||
private Byte saveType; |
|||
|
|||
private String kinsfolkPhone; |
|||
|
|||
private String medicalRecordNum; |
|||
|
|||
private String parientSn; |
|||
|
|||
private Long time; |
|||
|
|||
private Byte hospitalStroke; |
|||
|
|||
private Long arriveHospitalTime; |
|||
|
|||
private Long hospitalizedTime; |
|||
|
|||
private Long lastNormalTime; |
|||
|
|||
private String pathway; |
|||
|
|||
private Byte inHospitalType; |
|||
|
|||
private Long operator; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Byte timeType; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Byte getValueType() { |
|||
return valueType; |
|||
} |
|||
|
|||
public void setValueType(Byte valueType) { |
|||
this.valueType = valueType; |
|||
} |
|||
|
|||
public Byte getSaveType() { |
|||
return saveType; |
|||
} |
|||
|
|||
public void setSaveType(Byte saveType) { |
|||
this.saveType = saveType; |
|||
} |
|||
|
|||
public String getKinsfolkPhone() { |
|||
return kinsfolkPhone; |
|||
} |
|||
|
|||
public void setKinsfolkPhone(String kinsfolkPhone) { |
|||
this.kinsfolkPhone = kinsfolkPhone == null ? null : kinsfolkPhone.trim(); |
|||
} |
|||
|
|||
public String getMedicalRecordNum() { |
|||
return medicalRecordNum; |
|||
} |
|||
|
|||
public void setMedicalRecordNum(String medicalRecordNum) { |
|||
this.medicalRecordNum = medicalRecordNum == null ? null : medicalRecordNum.trim(); |
|||
} |
|||
|
|||
public String getParientSn() { |
|||
return parientSn; |
|||
} |
|||
|
|||
public void setParientSn(String parientSn) { |
|||
this.parientSn = parientSn == null ? null : parientSn.trim(); |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
public Byte getHospitalStroke() { |
|||
return hospitalStroke; |
|||
} |
|||
|
|||
public void setHospitalStroke(Byte hospitalStroke) { |
|||
this.hospitalStroke = hospitalStroke; |
|||
} |
|||
|
|||
public Long getArriveHospitalTime() { |
|||
return arriveHospitalTime; |
|||
} |
|||
|
|||
public void setArriveHospitalTime(Long arriveHospitalTime) { |
|||
this.arriveHospitalTime = arriveHospitalTime; |
|||
} |
|||
|
|||
public Long getHospitalizedTime() { |
|||
return hospitalizedTime; |
|||
} |
|||
|
|||
public void setHospitalizedTime(Long hospitalizedTime) { |
|||
this.hospitalizedTime = hospitalizedTime; |
|||
} |
|||
|
|||
public Long getLastNormalTime() { |
|||
return lastNormalTime; |
|||
} |
|||
|
|||
public void setLastNormalTime(Long lastNormalTime) { |
|||
this.lastNormalTime = lastNormalTime; |
|||
} |
|||
|
|||
public String getPathway() { |
|||
return pathway; |
|||
} |
|||
|
|||
public void setPathway(String pathway) { |
|||
this.pathway = pathway == null ? null : pathway.trim(); |
|||
} |
|||
|
|||
public Byte getInHospitalType() { |
|||
return inHospitalType; |
|||
} |
|||
|
|||
public void setInHospitalType(Byte inHospitalType) { |
|||
this.inHospitalType = inHospitalType; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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 Byte getTimeType() { |
|||
return timeType; |
|||
} |
|||
|
|||
public void setTimeType(Byte timeType) { |
|||
this.timeType = timeType; |
|||
} |
|||
|
|||
@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(", patientId=").append(patientId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", valueType=").append(valueType); |
|||
sb.append(", saveType=").append(saveType); |
|||
sb.append(", kinsfolkPhone=").append(kinsfolkPhone); |
|||
sb.append(", medicalRecordNum=").append(medicalRecordNum); |
|||
sb.append(", parientSn=").append(parientSn); |
|||
sb.append(", time=").append(time); |
|||
sb.append(", hospitalStroke=").append(hospitalStroke); |
|||
sb.append(", arriveHospitalTime=").append(arriveHospitalTime); |
|||
sb.append(", hospitalizedTime=").append(hospitalizedTime); |
|||
sb.append(", lastNormalTime=").append(lastNormalTime); |
|||
sb.append(", pathway=").append(pathway); |
|||
sb.append(", inHospitalType=").append(inHospitalType); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", timeType=").append(timeType); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAid implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private Byte gender; |
|||
|
|||
private Integer age; |
|||
|
|||
private String nation; |
|||
|
|||
private String idcard; |
|||
|
|||
private String phone; |
|||
|
|||
private Byte type; |
|||
|
|||
private Byte valueType; |
|||
|
|||
private Byte saveType; |
|||
|
|||
private Byte dataStatus; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public Integer getAge() { |
|||
return age; |
|||
} |
|||
|
|||
public void setAge(Integer age) { |
|||
this.age = age; |
|||
} |
|||
|
|||
public String getNation() { |
|||
return nation; |
|||
} |
|||
|
|||
public void setNation(String nation) { |
|||
this.nation = nation == null ? null : nation.trim(); |
|||
} |
|||
|
|||
public String getIdcard() { |
|||
return idcard; |
|||
} |
|||
|
|||
public void setIdcard(String idcard) { |
|||
this.idcard = idcard == null ? null : idcard.trim(); |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Byte getValueType() { |
|||
return valueType; |
|||
} |
|||
|
|||
public void setValueType(Byte valueType) { |
|||
this.valueType = valueType; |
|||
} |
|||
|
|||
public Byte getSaveType() { |
|||
return saveType; |
|||
} |
|||
|
|||
public void setSaveType(Byte saveType) { |
|||
this.saveType = saveType; |
|||
} |
|||
|
|||
public Byte getDataStatus() { |
|||
return dataStatus; |
|||
} |
|||
|
|||
public void setDataStatus(Byte dataStatus) { |
|||
this.dataStatus = dataStatus; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", name=").append(name); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", age=").append(age); |
|||
sb.append(", nation=").append(nation); |
|||
sb.append(", idcard=").append(idcard); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", valueType=").append(valueType); |
|||
sb.append(", saveType=").append(saveType); |
|||
sb.append(", dataStatus=").append(dataStatus); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,117 +1,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class PatientWisdomCar implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private Long carId; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public Long getCarId() { |
|||
return carId; |
|||
} |
|||
|
|||
public void setCarId(Long carId) { |
|||
this.carId = carId; |
|||
} |
|||
|
|||
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 Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", carId=").append(carId); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidLog implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private Long operationTime; |
|||
|
|||
private Long operationUserId; |
|||
|
|||
private Byte operationType; |
|||
|
|||
private Byte operationRole; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public Long getOperationTime() { |
|||
return operationTime; |
|||
} |
|||
|
|||
public void setOperationTime(Long operationTime) { |
|||
this.operationTime = operationTime; |
|||
} |
|||
|
|||
public Long getOperationUserId() { |
|||
return operationUserId; |
|||
} |
|||
|
|||
public void setOperationUserId(Long operationUserId) { |
|||
this.operationUserId = operationUserId; |
|||
} |
|||
|
|||
public Byte getOperationType() { |
|||
return operationType; |
|||
} |
|||
|
|||
public void setOperationType(Byte operationType) { |
|||
this.operationType = operationType; |
|||
} |
|||
|
|||
public Byte getOperationRole() { |
|||
return operationRole; |
|||
} |
|||
|
|||
public void setOperationRole(Byte operationRole) { |
|||
this.operationRole = operationRole; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", operationTime=").append(operationTime); |
|||
sb.append(", operationUserId=").append(operationUserId); |
|||
sb.append(", operationType=").append(operationType); |
|||
sb.append(", operationRole=").append(operationRole); |
|||
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
@ -1,106 +1,95 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidMessage implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private String content; |
|||
|
|||
private Long toUser; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public String getContent() { |
|||
return content; |
|||
} |
|||
|
|||
public void setContent(String content) { |
|||
this.content = content == null ? null : content.trim(); |
|||
} |
|||
|
|||
public Long getToUser() { |
|||
return toUser; |
|||
} |
|||
|
|||
public void setToUser(Long toUser) { |
|||
this.toUser = toUser; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", content=").append(content); |
|||
sb.append(", toUser=").append(toUser); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidMember implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private Long createUserId; |
|||
|
|||
private Long recordUserId; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public Long getCreateUserId() { |
|||
return createUserId; |
|||
} |
|||
|
|||
public void setCreateUserId(Long createUserId) { |
|||
this.createUserId = createUserId; |
|||
} |
|||
|
|||
public Long getRecordUserId() { |
|||
return recordUserId; |
|||
} |
|||
|
|||
public void setRecordUserId(Long recordUserId) { |
|||
this.recordUserId = recordUserId; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", createUserId=").append(createUserId); |
|||
sb.append(", recordUserId=").append(recordUserId); |
|||
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
@ -1,128 +1,128 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String answer; |
|||
|
|||
private Long submitUserId; |
|||
|
|||
private Byte submitUserType; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public Long getSubmitUserId() { |
|||
return submitUserId; |
|||
} |
|||
|
|||
public void setSubmitUserId(Long submitUserId) { |
|||
this.submitUserId = submitUserId; |
|||
} |
|||
|
|||
public Byte getSubmitUserType() { |
|||
return submitUserType; |
|||
} |
|||
|
|||
public void setSubmitUserType(Byte submitUserType) { |
|||
this.submitUserType = submitUserType; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", submitUserId=").append(submitUserId); |
|||
sb.append(", submitUserType=").append(submitUserType); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String answer; |
|||
|
|||
private Long submitUserId; |
|||
|
|||
private Byte submitUserType; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public Long getSubmitUserId() { |
|||
return submitUserId; |
|||
} |
|||
|
|||
public void setSubmitUserId(Long submitUserId) { |
|||
this.submitUserId = submitUserId; |
|||
} |
|||
|
|||
public Byte getSubmitUserType() { |
|||
return submitUserType; |
|||
} |
|||
|
|||
public void setSubmitUserType(Byte submitUserType) { |
|||
this.submitUserType = submitUserType; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", submitUserId=").append(submitUserId); |
|||
sb.append(", submitUserType=").append(submitUserType); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,128 +1,128 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidRecordLog implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String answer; |
|||
|
|||
private Long submitUserId; |
|||
|
|||
private Byte submitUserType; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public Long getSubmitUserId() { |
|||
return submitUserId; |
|||
} |
|||
|
|||
public void setSubmitUserId(Long submitUserId) { |
|||
this.submitUserId = submitUserId; |
|||
} |
|||
|
|||
public Byte getSubmitUserType() { |
|||
return submitUserType; |
|||
} |
|||
|
|||
public void setSubmitUserType(Byte submitUserType) { |
|||
this.submitUserType = submitUserType; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", submitUserId=").append(submitUserId); |
|||
sb.append(", submitUserType=").append(submitUserType); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidRecordLog implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String answer; |
|||
|
|||
private Long submitUserId; |
|||
|
|||
private Byte submitUserType; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public Long getSubmitUserId() { |
|||
return submitUserId; |
|||
} |
|||
|
|||
public void setSubmitUserId(Long submitUserId) { |
|||
this.submitUserId = submitUserId; |
|||
} |
|||
|
|||
public Byte getSubmitUserType() { |
|||
return submitUserType; |
|||
} |
|||
|
|||
public void setSubmitUserType(Byte submitUserType) { |
|||
this.submitUserType = submitUserType; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", submitUserId=").append(submitUserId); |
|||
sb.append(", submitUserType=").append(submitUserType); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,106 +0,0 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidStandard implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private Long stepId; |
|||
|
|||
private Long duration; |
|||
|
|||
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 Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
public Long getDuration() { |
|||
return duration; |
|||
} |
|||
|
|||
public void setDuration(Long duration) { |
|||
this.duration = duration; |
|||
} |
|||
|
|||
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(", type=").append(type); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", stepId=").append(stepId); |
|||
sb.append(", duration=").append(duration); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -1,150 +1,150 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class AttendanceRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private Long stepId; |
|||
|
|||
private String rfid; |
|||
|
|||
private String name; |
|||
|
|||
private Long userId; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long time; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
public String getRfid() { |
|||
return rfid; |
|||
} |
|||
|
|||
public void setRfid(String rfid) { |
|||
this.rfid = rfid == null ? null : rfid.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", stepId=").append(stepId); |
|||
sb.append(", rfid=").append(rfid); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", time=").append(time); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Organization implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte organizationType; |
|||
|
|||
private String code; |
|||
|
|||
private String name; |
|||
|
|||
private String shortName; |
|||
|
|||
private String introduce; |
|||
|
|||
private Byte level; |
|||
|
|||
private Long parentId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Byte getOrganizationType() { |
|||
return organizationType; |
|||
} |
|||
|
|||
public void setOrganizationType(Byte organizationType) { |
|||
this.organizationType = organizationType; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getShortName() { |
|||
return shortName; |
|||
} |
|||
|
|||
public void setShortName(String shortName) { |
|||
this.shortName = shortName == null ? null : shortName.trim(); |
|||
} |
|||
|
|||
public String getIntroduce() { |
|||
return introduce; |
|||
} |
|||
|
|||
public void setIntroduce(String introduce) { |
|||
this.introduce = introduce == null ? null : introduce.trim(); |
|||
} |
|||
|
|||
public Byte getLevel() { |
|||
return level; |
|||
} |
|||
|
|||
public void setLevel(Byte level) { |
|||
this.level = level; |
|||
} |
|||
|
|||
public Long getParentId() { |
|||
return parentId; |
|||
} |
|||
|
|||
public void setParentId(Long parentId) { |
|||
this.parentId = parentId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", organizationType=").append(organizationType); |
|||
sb.append(", code=").append(code); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", shortName=").append(shortName); |
|||
sb.append(", introduce=").append(introduce); |
|||
sb.append(", level=").append(level); |
|||
sb.append(", parentId=").append(parentId); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,128 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class OrganizationDepartment implements Serializable { |
|||
private Long id; |
|||
|
|||
private String code; |
|||
|
|||
private String name; |
|||
|
|||
private String introduce; |
|||
|
|||
private Long parentId; |
|||
|
|||
private Long organizationId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getIntroduce() { |
|||
return introduce; |
|||
} |
|||
|
|||
public void setIntroduce(String introduce) { |
|||
this.introduce = introduce == null ? null : introduce.trim(); |
|||
} |
|||
|
|||
public Long getParentId() { |
|||
return parentId; |
|||
} |
|||
|
|||
public void setParentId(Long parentId) { |
|||
this.parentId = parentId; |
|||
} |
|||
|
|||
public Long getOrganizationId() { |
|||
return organizationId; |
|||
} |
|||
|
|||
public void setOrganizationId(Long organizationId) { |
|||
this.organizationId = organizationId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", name=").append(name); |
|||
sb.append(", introduce=").append(introduce); |
|||
sb.append(", parentId=").append(parentId); |
|||
sb.append(", organizationId=").append(organizationId); |
|||
sb.append(", operator=").append(operator); |
|||
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
File diff suppressed because it is too large
@ -1,117 +1,128 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class WisdomCar implements Serializable { |
|||
private Long id; |
|||
|
|||
private String serial; |
|||
|
|||
private Long warehouseTime; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private Long userId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getSerial() { |
|||
return serial; |
|||
} |
|||
|
|||
public void setSerial(String serial) { |
|||
this.serial = serial == null ? null : serial.trim(); |
|||
} |
|||
|
|||
public Long getWarehouseTime() { |
|||
return warehouseTime; |
|||
} |
|||
|
|||
public void setWarehouseTime(Long warehouseTime) { |
|||
this.warehouseTime = warehouseTime; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", serial=").append(serial); |
|||
sb.append(", warehouseTime=").append(warehouseTime); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class OrganizationMember implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long userId; |
|||
|
|||
private String name; |
|||
|
|||
private String contact; |
|||
|
|||
private Long positionId; |
|||
|
|||
private Long departmentId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getContact() { |
|||
return contact; |
|||
} |
|||
|
|||
public void setContact(String contact) { |
|||
this.contact = contact == null ? null : contact.trim(); |
|||
} |
|||
|
|||
public Long getPositionId() { |
|||
return positionId; |
|||
} |
|||
|
|||
public void setPositionId(Long positionId) { |
|||
this.positionId = positionId; |
|||
} |
|||
|
|||
public Long getDepartmentId() { |
|||
return departmentId; |
|||
} |
|||
|
|||
public void setDepartmentId(Long departmentId) { |
|||
this.departmentId = departmentId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", userId=").append(userId); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", contact=").append(contact); |
|||
sb.append(", positionId=").append(positionId); |
|||
sb.append(", departmentId=").append(departmentId); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,117 +1,95 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Wroking implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long doctorId; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
private Byte post; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getDoctorId() { |
|||
return doctorId; |
|||
} |
|||
|
|||
public void setDoctorId(Long doctorId) { |
|||
this.doctorId = doctorId; |
|||
} |
|||
|
|||
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 getPost() { |
|||
return post; |
|||
} |
|||
|
|||
public void setPost(Byte post) { |
|||
this.post = post; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", doctorId=").append(doctorId); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", post=").append(post); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class OrganizationParent implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long organizationId; |
|||
|
|||
private Long parentId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getOrganizationId() { |
|||
return organizationId; |
|||
} |
|||
|
|||
public void setOrganizationId(Long organizationId) { |
|||
this.organizationId = organizationId; |
|||
} |
|||
|
|||
public Long getParentId() { |
|||
return parentId; |
|||
} |
|||
|
|||
public void setParentId(Long parentId) { |
|||
this.parentId = parentId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", organizationId=").append(organizationId); |
|||
sb.append(", parentId=").append(parentId); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,621 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class OrganizationParentExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public OrganizationParentExample() { |
|||
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 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 andParentIdIsNull() { |
|||
addCriterion("parent_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIsNotNull() { |
|||
addCriterion("parent_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdEqualTo(Long value) { |
|||
addCriterion("parent_id =", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotEqualTo(Long value) { |
|||
addCriterion("parent_id <>", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdGreaterThan(Long value) { |
|||
addCriterion("parent_id >", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("parent_id >=", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLessThan(Long value) { |
|||
addCriterion("parent_id <", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("parent_id <=", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIn(List<Long> values) { |
|||
addCriterion("parent_id in", values, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotIn(List<Long> values) { |
|||
addCriterion("parent_id not in", values, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdBetween(Long value1, Long value2) { |
|||
addCriterion("parent_id between", value1, value2, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("parent_id not between", value1, value2, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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); |
|||
} |
|||
} |
|||
} |
@ -1,117 +1,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Hospital implements Serializable { |
|||
private Long id; |
|||
|
|||
private String serial; |
|||
|
|||
private String name; |
|||
|
|||
private String shortName; |
|||
|
|||
private String introduce; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getSerial() { |
|||
return serial; |
|||
} |
|||
|
|||
public void setSerial(String serial) { |
|||
this.serial = serial == null ? null : serial.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getShortName() { |
|||
return shortName; |
|||
} |
|||
|
|||
public void setShortName(String shortName) { |
|||
this.shortName = shortName == null ? null : shortName.trim(); |
|||
} |
|||
|
|||
public String getIntroduce() { |
|||
return introduce; |
|||
} |
|||
|
|||
public void setIntroduce(String introduce) { |
|||
this.introduce = introduce == null ? null : introduce.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", serial=").append(serial); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", shortName=").append(shortName); |
|||
sb.append(", introduce=").append(introduce); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class OrganizationPosition implements Serializable { |
|||
private Long id; |
|||
|
|||
private String code; |
|||
|
|||
private String name; |
|||
|
|||
private String introduce; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getIntroduce() { |
|||
return introduce; |
|||
} |
|||
|
|||
public void setIntroduce(String introduce) { |
|||
this.introduce = introduce == null ? null : introduce.trim(); |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", name=").append(name); |
|||
sb.append(", introduce=").append(introduce); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", operator=").append(operator); |
|||
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,95 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class OrganizationProject implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long organizationId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getOrganizationId() { |
|||
return organizationId; |
|||
} |
|||
|
|||
public void setOrganizationId(Long organizationId) { |
|||
this.organizationId = organizationId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", organizationId=").append(organizationId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,117 +1,106 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CarRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long carId; |
|||
|
|||
private Byte type; |
|||
|
|||
private String carValue; |
|||
|
|||
private Long time; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Long getCarId() { |
|||
return carId; |
|||
} |
|||
|
|||
public void setCarId(Long carId) { |
|||
this.carId = carId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getCarValue() { |
|||
return carValue; |
|||
} |
|||
|
|||
public void setCarValue(String carValue) { |
|||
this.carValue = carValue == null ? null : carValue.trim(); |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", carId=").append(carId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", carValue=").append(carValue); |
|||
sb.append(", time=").append(time); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class OrganizationTemplate implements Serializable { |
|||
private Long id; |
|||
|
|||
private String code; |
|||
|
|||
private Byte template; |
|||
|
|||
private Byte codeType; |
|||
|
|||
private Long operator; |
|||
|
|||
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 Byte getTemplate() { |
|||
return template; |
|||
} |
|||
|
|||
public void setTemplate(Byte template) { |
|||
this.template = template; |
|||
} |
|||
|
|||
public Byte getCodeType() { |
|||
return codeType; |
|||
} |
|||
|
|||
public void setCodeType(Byte codeType) { |
|||
this.codeType = codeType; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", template=").append(template); |
|||
sb.append(", codeType=").append(codeType); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,161 +0,0 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Patient implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private Byte gender; |
|||
|
|||
private Integer age; |
|||
|
|||
private String nation; |
|||
|
|||
private String idcard; |
|||
|
|||
private String phone; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private Long userId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public Integer getAge() { |
|||
return age; |
|||
} |
|||
|
|||
public void setAge(Integer age) { |
|||
this.age = age; |
|||
} |
|||
|
|||
public String getNation() { |
|||
return nation; |
|||
} |
|||
|
|||
public void setNation(String nation) { |
|||
this.nation = nation == null ? null : nation.trim(); |
|||
} |
|||
|
|||
public String getIdcard() { |
|||
return idcard; |
|||
} |
|||
|
|||
public void setIdcard(String idcard) { |
|||
this.idcard = idcard == null ? null : idcard.trim(); |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", name=").append(name); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", age=").append(age); |
|||
sb.append(", nation=").append(nation); |
|||
sb.append(", idcard=").append(idcard); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", operator=").append(operator); |
|||
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
@ -1,150 +0,0 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Rfid implements Serializable { |
|||
private Long id; |
|||
|
|||
private String hospitalSerial; |
|||
|
|||
private Byte type1; |
|||
|
|||
private Byte type2; |
|||
|
|||
private Byte type3; |
|||
|
|||
private String serial; |
|||
|
|||
private String fullSerial; |
|||
|
|||
private Long stepId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getHospitalSerial() { |
|||
return hospitalSerial; |
|||
} |
|||
|
|||
public void setHospitalSerial(String hospitalSerial) { |
|||
this.hospitalSerial = hospitalSerial == null ? null : hospitalSerial.trim(); |
|||
} |
|||
|
|||
public Byte getType1() { |
|||
return type1; |
|||
} |
|||
|
|||
public void setType1(Byte type1) { |
|||
this.type1 = type1; |
|||
} |
|||
|
|||
public Byte getType2() { |
|||
return type2; |
|||
} |
|||
|
|||
public void setType2(Byte type2) { |
|||
this.type2 = type2; |
|||
} |
|||
|
|||
public Byte getType3() { |
|||
return type3; |
|||
} |
|||
|
|||
public void setType3(Byte type3) { |
|||
this.type3 = type3; |
|||
} |
|||
|
|||
public String getSerial() { |
|||
return serial; |
|||
} |
|||
|
|||
public void setSerial(String serial) { |
|||
this.serial = serial == null ? null : serial.trim(); |
|||
} |
|||
|
|||
public String getFullSerial() { |
|||
return fullSerial; |
|||
} |
|||
|
|||
public void setFullSerial(String fullSerial) { |
|||
this.fullSerial = fullSerial == null ? null : fullSerial.trim(); |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", hospitalSerial=").append(hospitalSerial); |
|||
sb.append(", type1=").append(type1); |
|||
sb.append(", type2=").append(type2); |
|||
sb.append(", type3=").append(type3); |
|||
sb.append(", serial=").append(serial); |
|||
sb.append(", fullSerial=").append(fullSerial); |
|||
sb.append(", stepId=").append(stepId); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -1,951 +0,0 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class RfidExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public RfidExample() { |
|||
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 andHospitalSerialIsNull() { |
|||
addCriterion("hospital_serial is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialIsNotNull() { |
|||
addCriterion("hospital_serial is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialEqualTo(String value) { |
|||
addCriterion("hospital_serial =", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialNotEqualTo(String value) { |
|||
addCriterion("hospital_serial <>", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialGreaterThan(String value) { |
|||
addCriterion("hospital_serial >", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialGreaterThanOrEqualTo(String value) { |
|||
addCriterion("hospital_serial >=", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialLessThan(String value) { |
|||
addCriterion("hospital_serial <", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialLessThanOrEqualTo(String value) { |
|||
addCriterion("hospital_serial <=", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialLike(String value) { |
|||
addCriterion("hospital_serial like", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialNotLike(String value) { |
|||
addCriterion("hospital_serial not like", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialIn(List<String> values) { |
|||
addCriterion("hospital_serial in", values, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialNotIn(List<String> values) { |
|||
addCriterion("hospital_serial not in", values, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialBetween(String value1, String value2) { |
|||
addCriterion("hospital_serial between", value1, value2, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialNotBetween(String value1, String value2) { |
|||
addCriterion("hospital_serial not between", value1, value2, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1IsNull() { |
|||
addCriterion("type1 is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1IsNotNull() { |
|||
addCriterion("type1 is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1EqualTo(Byte value) { |
|||
addCriterion("type1 =", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1NotEqualTo(Byte value) { |
|||
addCriterion("type1 <>", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1GreaterThan(Byte value) { |
|||
addCriterion("type1 >", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1GreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type1 >=", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1LessThan(Byte value) { |
|||
addCriterion("type1 <", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1LessThanOrEqualTo(Byte value) { |
|||
addCriterion("type1 <=", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1In(List<Byte> values) { |
|||
addCriterion("type1 in", values, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1NotIn(List<Byte> values) { |
|||
addCriterion("type1 not in", values, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1Between(Byte value1, Byte value2) { |
|||
addCriterion("type1 between", value1, value2, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1NotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type1 not between", value1, value2, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2IsNull() { |
|||
addCriterion("type2 is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2IsNotNull() { |
|||
addCriterion("type2 is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2EqualTo(Byte value) { |
|||
addCriterion("type2 =", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2NotEqualTo(Byte value) { |
|||
addCriterion("type2 <>", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2GreaterThan(Byte value) { |
|||
addCriterion("type2 >", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2GreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type2 >=", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2LessThan(Byte value) { |
|||
addCriterion("type2 <", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2LessThanOrEqualTo(Byte value) { |
|||
addCriterion("type2 <=", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2In(List<Byte> values) { |
|||
addCriterion("type2 in", values, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2NotIn(List<Byte> values) { |
|||
addCriterion("type2 not in", values, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2Between(Byte value1, Byte value2) { |
|||
addCriterion("type2 between", value1, value2, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2NotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type2 not between", value1, value2, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3IsNull() { |
|||
addCriterion("type3 is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3IsNotNull() { |
|||
addCriterion("type3 is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3EqualTo(Byte value) { |
|||
addCriterion("type3 =", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3NotEqualTo(Byte value) { |
|||
addCriterion("type3 <>", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3GreaterThan(Byte value) { |
|||
addCriterion("type3 >", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3GreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type3 >=", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3LessThan(Byte value) { |
|||
addCriterion("type3 <", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3LessThanOrEqualTo(Byte value) { |
|||
addCriterion("type3 <=", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3In(List<Byte> values) { |
|||
addCriterion("type3 in", values, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3NotIn(List<Byte> values) { |
|||
addCriterion("type3 not in", values, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3Between(Byte value1, Byte value2) { |
|||
addCriterion("type3 between", value1, value2, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3NotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type3 not between", value1, value2, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIsNull() { |
|||
addCriterion("serial is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIsNotNull() { |
|||
addCriterion("serial is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialEqualTo(String value) { |
|||
addCriterion("serial =", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotEqualTo(String value) { |
|||
addCriterion("serial <>", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialGreaterThan(String value) { |
|||
addCriterion("serial >", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialGreaterThanOrEqualTo(String value) { |
|||
addCriterion("serial >=", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLessThan(String value) { |
|||
addCriterion("serial <", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLessThanOrEqualTo(String value) { |
|||
addCriterion("serial <=", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLike(String value) { |
|||
addCriterion("serial like", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotLike(String value) { |
|||
addCriterion("serial not like", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIn(List<String> values) { |
|||
addCriterion("serial in", values, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotIn(List<String> values) { |
|||
addCriterion("serial not in", values, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialBetween(String value1, String value2) { |
|||
addCriterion("serial between", value1, value2, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotBetween(String value1, String value2) { |
|||
addCriterion("serial not between", value1, value2, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialIsNull() { |
|||
addCriterion("full_serial is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialIsNotNull() { |
|||
addCriterion("full_serial is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialEqualTo(String value) { |
|||
addCriterion("full_serial =", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialNotEqualTo(String value) { |
|||
addCriterion("full_serial <>", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialGreaterThan(String value) { |
|||
addCriterion("full_serial >", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialGreaterThanOrEqualTo(String value) { |
|||
addCriterion("full_serial >=", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialLessThan(String value) { |
|||
addCriterion("full_serial <", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialLessThanOrEqualTo(String value) { |
|||
addCriterion("full_serial <=", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialLike(String value) { |
|||
addCriterion("full_serial like", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialNotLike(String value) { |
|||
addCriterion("full_serial not like", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialIn(List<String> values) { |
|||
addCriterion("full_serial in", values, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialNotIn(List<String> values) { |
|||
addCriterion("full_serial not in", values, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialBetween(String value1, String value2) { |
|||
addCriterion("full_serial between", value1, value2, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialNotBetween(String value1, String value2) { |
|||
addCriterion("full_serial not between", value1, value2, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNull() { |
|||
addCriterion("step_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNotNull() { |
|||
addCriterion("step_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdEqualTo(Long value) { |
|||
addCriterion("step_id =", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotEqualTo(Long value) { |
|||
addCriterion("step_id <>", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThan(Long value) { |
|||
addCriterion("step_id >", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("step_id >=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThan(Long value) { |
|||
addCriterion("step_id <", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("step_id <=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIn(List<Long> values) { |
|||
addCriterion("step_id in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotIn(List<Long> values) { |
|||
addCriterion("step_id not in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdBetween(Long value1, Long value2) { |
|||
addCriterion("step_id between", value1, value2, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("step_id not between", value1, value2, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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); |
|||
} |
|||
} |
|||
} |
@ -1,139 +1,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Step implements Serializable { |
|||
private Long id; |
|||
|
|||
private String code; |
|||
|
|||
private String name; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long startEffectTime; |
|||
|
|||
private Long endEffectTime; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getStartEffectTime() { |
|||
return startEffectTime; |
|||
} |
|||
|
|||
public void setStartEffectTime(Long startEffectTime) { |
|||
this.startEffectTime = startEffectTime; |
|||
} |
|||
|
|||
public Long getEndEffectTime() { |
|||
return endEffectTime; |
|||
} |
|||
|
|||
public void setEndEffectTime(Long endEffectTime) { |
|||
this.endEffectTime = endEffectTime; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", name=").append(name); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", startEffectTime=").append(startEffectTime); |
|||
sb.append(", endEffectTime=").append(endEffectTime); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Step implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private String code; |
|||
|
|||
private Integer sequence; |
|||
|
|||
private Byte stepType; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private String taskSubName; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
public Integer getSequence() { |
|||
return sequence; |
|||
} |
|||
|
|||
public void setSequence(Integer sequence) { |
|||
this.sequence = sequence; |
|||
} |
|||
|
|||
public Byte getStepType() { |
|||
return stepType; |
|||
} |
|||
|
|||
public void setStepType(Byte stepType) { |
|||
this.stepType = stepType; |
|||
} |
|||
|
|||
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 String getTaskSubName() { |
|||
return taskSubName; |
|||
} |
|||
|
|||
public void setTaskSubName(String taskSubName) { |
|||
this.taskSubName = taskSubName == null ? null : taskSubName.trim(); |
|||
} |
|||
|
|||
@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(", name=").append(name); |
|||
sb.append(", code=").append(code); |
|||
sb.append(", sequence=").append(sequence); |
|||
sb.append(", stepType=").append(stepType); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", taskSubName=").append(taskSubName); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -1,205 +0,0 @@ |
|||
package com.ccsens.carbasics.mq; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.ccsens.carbasics.bean.dto.message.CarRecordMessageDto; |
|||
import com.ccsens.carbasics.service.IRecordService; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.util.RedisUtil; |
|||
import com.ccsens.util.bean.message.common.OutMessage; |
|||
import com.ccsens.util.bean.message.common.OutMessageSet; |
|||
import com.ccsens.util.config.RabbitMQConfig; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.amqp.rabbit.annotation.RabbitHandler; |
|||
import org.springframework.amqp.rabbit.annotation.RabbitListener; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.math.BigDecimal; |
|||
import java.util.*; |
|||
|
|||
@Slf4j |
|||
@Component |
|||
@RabbitListener(queues = RabbitMQConfig.WISDOM_CAR_2) |
|||
public class RabbitController { |
|||
@Resource |
|||
private IRecordService recordService; |
|||
@Resource |
|||
private RedisUtil redisUtil; |
|||
|
|||
private Logger logger = LoggerFactory.getLogger(RabbitController.class); |
|||
|
|||
@RabbitHandler |
|||
public void process(String messageJson) { |
|||
logger.info("平车上传消息数据: {}", messageJson); |
|||
try { |
|||
OutMessageSet outMessageSet = JSONObject.parseObject(messageJson, OutMessageSet.class); |
|||
if (ObjectUtil.isNull(outMessageSet)) { |
|||
return; |
|||
} |
|||
Set<OutMessage> messageSet = outMessageSet.getMessageSet(); |
|||
if (CollectionUtil.isEmpty(messageSet)) { |
|||
return; |
|||
} |
|||
List<CarRecordMessageDto> carRecordMessageDtoList = new ArrayList<>(); |
|||
Map<Integer, Long> map = new HashMap<>(); |
|||
for(OutMessage outMessage : messageSet){ |
|||
|
|||
CarRecordMessageDto carRecordMessageDto = JSONObject.parseObject(outMessage.getData(), CarRecordMessageDto.class); |
|||
if (ObjectUtil.isNull(carRecordMessageDto)) { |
|||
continue; |
|||
} |
|||
log.info("type:{}", carRecordMessageDto.getType()); |
|||
switch (carRecordMessageDto.getType()) { |
|||
case Constant.Car.CAR_RECORD_WEIGHT: |
|||
getWeight(carRecordMessageDtoList, map, carRecordMessageDto, 16); |
|||
break; |
|||
case Constant.Car.WEIGHT_SENSOR_1: |
|||
// getWeight(carRecordMessageDtoList, map, carRecordMessageDto,25);
|
|||
break; |
|||
case Constant.Car.WEIGHT_SENSOR_2: |
|||
// getWeight(carRecordMessageDtoList, map, carRecordMessageDto,27);
|
|||
break; |
|||
case Constant.Car.WEIGHT_SENSOR_3: |
|||
// getWeight(carRecordMessageDtoList, map, carRecordMessageDto,29);
|
|||
break; |
|||
case Constant.Car.WEIGHT_SENSOR_4: |
|||
// getWeight(carRecordMessageDtoList, map, carRecordMessageDto,31);
|
|||
break; |
|||
case Constant.Car.SHAKE_SENSOR: |
|||
log.info("倾角传感器:{}", carRecordMessageDto); |
|||
long shakeValue = getShakeValue(carRecordMessageDto); |
|||
|
|||
map.put(carRecordMessageDto.getAddr(), shakeValue); |
|||
int x = 21; |
|||
int y = 22; |
|||
int z = 23; |
|||
if (map.get(x) != null && map.get(y) != null && map.get(z) != null) { |
|||
String value = map.get(x) + "," + map.get(y) + "," + map.get(z); |
|||
carRecordMessageDto.setValue(value); |
|||
carRecordMessageDtoList.add(carRecordMessageDto); |
|||
} |
|||
break; |
|||
case Constant.Car.THROMBOLYTIC: |
|||
case Constant.Car.BOLUS_DOSE: |
|||
case Constant.Car.MAINTENANCE_DOSE: |
|||
BigDecimal value1 = BigDecimal.valueOf(Double.parseDouble(carRecordMessageDto.getValue())).divide(BigDecimal.valueOf(100), 2, BigDecimal.ROUND_HALF_DOWN); |
|||
carRecordMessageDto.setValue(value1.toString()); |
|||
carRecordMessageDtoList.add(carRecordMessageDto); |
|||
break; |
|||
case Constant.Car.CAR_RECORD_RFID: |
|||
getRfid(carRecordMessageDtoList, map, carRecordMessageDto); |
|||
break; |
|||
default: |
|||
carRecordMessageDtoList.add(carRecordMessageDto); |
|||
break; |
|||
} |
|||
|
|||
} |
|||
|
|||
carRecordMessageDtoList.forEach(carRecordMessageDto -> { |
|||
try { |
|||
log.info("处理后的平车消息:{}", carRecordMessageDto); |
|||
recordService.disposeMessage(carRecordMessageDto); |
|||
|
|||
} catch (Exception e) { |
|||
e.printStackTrace(); |
|||
} |
|||
}); |
|||
} catch (Exception e) { |
|||
log.error("平车消息JSON转换异常", e); |
|||
} |
|||
} |
|||
|
|||
private void getRfid(List<CarRecordMessageDto> carRecordMessageDtoList, Map<Integer, Long> map, CarRecordMessageDto dto) { |
|||
map.put(dto.getAddr(), Long.parseLong(dto.getValue())); |
|||
int rfid1 = CarRecordMessageDto.Addr.RFID_1; |
|||
int rfid2 = CarRecordMessageDto.Addr.RFID_2; |
|||
int rfid3 = CarRecordMessageDto.Addr.RFID_3; |
|||
log.info("addr:{},rfid:{}", dto.getAddr(), dto.getValue()); |
|||
log.info("是否计算rfid:{}", map.get(rfid1) != null && map.get(rfid2) != null && map.get(rfid3) != null); |
|||
log.info("map:{}", map); |
|||
log.info("3个rfid:{},{},{}", map.get(rfid1) , map.get(rfid2) , map.get(rfid3) ); |
|||
if (map.get(rfid1) != null && map.get(rfid2) != null && map.get(rfid3) != null) { |
|||
log.info("计算rfid"); |
|||
Long one = map.get(rfid1); |
|||
Long two = map.get(rfid2); |
|||
Long three = map.get(rfid3); |
|||
long rfid = one << 32 | two << 16 | three; |
|||
log.info("rfid:{}", "000"+toHex(rfid)); |
|||
dto.setValue("000"+toHex(rfid)); |
|||
carRecordMessageDtoList.add(dto); |
|||
} |
|||
} |
|||
|
|||
private String toHex(long dec) { |
|||
String hexStr=""; |
|||
|
|||
long decAbs=Math.abs(dec); |
|||
|
|||
while(decAbs>0){ |
|||
long lastFour=decAbs&15; |
|||
|
|||
if (lastFour>9){ |
|||
hexStr=(char)('A'+lastFour-10)+hexStr; |
|||
} else { |
|||
hexStr=lastFour+hexStr; |
|||
} |
|||
decAbs>>=4; |
|||
} |
|||
hexStr= dec<0?"-"+hexStr:dec==0?"0":hexStr; |
|||
return hexStr; |
|||
} |
|||
|
|||
private long getShakeValue(CarRecordMessageDto carRecordMessageDto) { |
|||
String key = Constant.Car.FIRST_AID + carRecordMessageDto.getAuthId() + carRecordMessageDto.getAddr(); |
|||
|
|||
long value = 0L; |
|||
//redis查找该平车上一次的倾角数据
|
|||
Object o = redisUtil.get(key); |
|||
if (ObjectUtil.isNull(o)) { |
|||
//如果没有依次存入redis,value值都是0
|
|||
redisUtil.set(key, carRecordMessageDto.getValue(),Constant.Car.FIRST_AID_REDIS_TIME); |
|||
carRecordMessageDto.setValue(0 + ""); |
|||
} else { |
|||
//如果有,用当前的值减去上次的数据,得到的是新的value
|
|||
value = Long.parseLong(carRecordMessageDto.getValue()) - Long.parseLong(o.toString()); |
|||
} |
|||
return value; |
|||
} |
|||
|
|||
private Long getWeight(List<CarRecordMessageDto> carRecordMessageDtoList, Map<Integer, Long> map, CarRecordMessageDto carRecordMessageDto, int highAddr) { |
|||
boolean flag = carRecordMessageDto.getAddr() == highAddr; |
|||
Long weight = getWeight(map, carRecordMessageDto, flag ? highAddr + 1 : highAddr, flag); |
|||
log.info("计算后的重量:{}", weight); |
|||
if (weight == null) { |
|||
return null; |
|||
} |
|||
carRecordMessageDto.setValue(weight.toString()); |
|||
carRecordMessageDtoList.add(carRecordMessageDto); |
|||
return weight; |
|||
} |
|||
|
|||
private Long getWeight(Map<Integer, Long> map, CarRecordMessageDto carRecordMessageDto, int value2, boolean firstHigh) { |
|||
log.info("value = {},,firstHigh={}", value2, firstHigh); |
|||
if (map.get(value2) == null) { |
|||
map.put(carRecordMessageDto.getAddr(), Long.parseLong(carRecordMessageDto.getValue())); |
|||
return null; |
|||
} else { |
|||
long weight1 = Long.parseLong(carRecordMessageDto.getValue()); |
|||
long weight2 = map.get(value2); |
|||
log.info("准备计算重量:{},,,{}", weight1, weight2); |
|||
if (firstHigh) { |
|||
log.info("weight1 << 16 + weight2:{}", weight1 << 16 | weight2); |
|||
return weight1 << 16 | weight2; |
|||
} else { |
|||
log.info("weight2 << 16 + weight1:{}", weight2 << 16 | weight1); |
|||
return weight2 << 16 | weight1; |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
@ -1,28 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.po.AttendanceRecord; |
|||
import com.ccsens.carbasics.bean.vo.WorkerVo; |
|||
import com.ccsens.carbasics.persist.mapper.AttendanceRecordMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface AttendanceRecordDao extends AttendanceRecordMapper { |
|||
/** |
|||
* 添加所有的到场人员信息 |
|||
* @param attendanceRecords 到场人员信息 |
|||
*/ |
|||
void insertAllRecord(@Param("attendanceRecords") List<AttendanceRecord> attendanceRecords); |
|||
|
|||
/** |
|||
* 根据急救id查询到场人员信息 |
|||
* @param firstAidId 急救id |
|||
* @return 到场人员信息列表 |
|||
*/ |
|||
List<WorkerVo.WorkInformation> queryArriveWorkerByAidId(@Param("firstAidId") Long firstAidId); |
|||
} |
@ -1,24 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.vo.RecordVo; |
|||
import com.ccsens.carbasics.persist.mapper.CarRecordMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: 平车记录 |
|||
* @author: whj |
|||
* @time: 2021/8/4 9:26 |
|||
*/ |
|||
public interface CarRecordDao extends CarRecordMapper { |
|||
/** |
|||
* 根据类型查询平车记录 |
|||
* @param carId 平车ID |
|||
* @param startTime 开始时间 |
|||
* @param endTime 结束时间 |
|||
* @param type 数据类型 |
|||
* @return 记录 |
|||
*/ |
|||
List<RecordVo.WeightAndRfid> queryRecords(@Param("carId") Long carId, @Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("type") byte type); |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.persist.mapper.CodeParentMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2021/8/30 17:37 |
|||
*/ |
|||
public interface CodeParentDao extends CodeParentMapper { |
|||
/** |
|||
* 查询所有子code |
|||
* @param parentCode 上级code |
|||
* @return 子code |
|||
*/ |
|||
List<String> queryChildren(@Param("parentCode") String parentCode); |
|||
} |
@ -1,30 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Doctor; |
|||
import com.ccsens.carbasics.bean.vo.WorkerVo; |
|||
import com.ccsens.carbasics.persist.mapper.DoctorMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface DoctorDao extends DoctorMapper { |
|||
/** |
|||
* 根据userId查找医生信息 |
|||
* @param userId 用户id |
|||
* @return 医生信息 |
|||
*/ |
|||
Doctor findByUserId(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* 根据医院id查询所有医生 |
|||
* @param hospitalId 医院id |
|||
* @param currentTime 当前时间 |
|||
* @return 所有医生的集合 |
|||
*/ |
|||
List<WorkerVo.AllDoctor> findAllDoctor(@Param("hospitalId") Long hospitalId, @Param("currentTime") long currentTime); |
|||
} |
@ -1,20 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.vo.ProjectVo; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidMessageMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface FirstAidMessageDao extends FirstAidMessageMapper { |
|||
|
|||
/** |
|||
* 根据急救id查询最新消息 |
|||
* @param firstAidId 急救id |
|||
* @return 最新消息 |
|||
*/ |
|||
ProjectVo.NewMessage findInfoByProjectId(@Param("firstAidId") Long firstAidId); |
|||
} |
@ -1,32 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Repository |
|||
public interface HospitalDao { |
|||
|
|||
/** |
|||
* 通过平车查找医院id |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
Long getHospitalIdByCarId(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* 通过平车查找医院id |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
Long getHospitalIdByDoctorId(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* 通过项目id获取医院id |
|||
* @param projectId |
|||
* @return |
|||
*/ |
|||
Long getHospitalIdByProjectId(@Param("projectId") Long projectId); |
|||
} |
@ -1,46 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.CarDto; |
|||
import com.ccsens.carbasics.bean.po.PatientWisdomCar; |
|||
import com.ccsens.carbasics.bean.vo.CarVo; |
|||
import com.ccsens.carbasics.persist.mapper.PatientWisdomCarMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: step |
|||
* @author: whj |
|||
* @time: 2021/7/27 14:49 |
|||
*/ |
|||
public interface PatientWisdomCarDao extends PatientWisdomCarMapper { |
|||
/** |
|||
* 查询平车当前的绑定信息 |
|||
* @param carId 平车ID |
|||
* @param time 查询时间 |
|||
* @return 平车绑定信息 |
|||
*/ |
|||
PatientWisdomCar getBindCar(@Param("carId") Long carId, @Param("time") long time); |
|||
|
|||
/** |
|||
* 查询用户所在医院的全部平车信息 |
|||
* @param userId 操作者 |
|||
* @return 平车信息 |
|||
*/ |
|||
List<CarVo.Car> queryCar(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* 根据项目ID查询对应患者绑定的平车信息 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
CarVo.QueryBind queryBind(CarDto.QueryBind param); |
|||
|
|||
/** |
|||
* 修改2H内未结束的平车绑定结束 |
|||
* @param carId 平车ID |
|||
* @param startTime 开始时间 |
|||
* @param userId 操作者ID |
|||
*/ |
|||
void updateEndTime(@Param("carId") Long carId, @Param("startTime") Long startTime, @Param("userId") Long userId); |
|||
} |
@ -1,19 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.vo.RfidVo; |
|||
import com.ccsens.carbasics.persist.mapper.RfidMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* @description: rfid |
|||
* @author: whj |
|||
* @time: 2021/7/27 14:42 |
|||
*/ |
|||
public interface RfidDao extends RfidMapper { |
|||
/** |
|||
* 根据rfid查询rfid完整内容 |
|||
* @param rfid rfid(完整编码或简单编码) |
|||
* @return rfid |
|||
*/ |
|||
RfidVo.Full getByRfid(@Param("rfid") String rfid); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Doctor; |
|||
import com.ccsens.carbasics.persist.mapper.WrokingMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface WorkingDao extends WrokingMapper { |
|||
/** |
|||
* 查询正在值班的医生 |
|||
* @param hospitalId 医院id |
|||
* @param currentTime 当前时间 |
|||
* @return 值班医生列表 |
|||
*/ |
|||
List<Doctor> findWorkingDoctor(@Param("hospitalId") Long hospitalId, @Param("currentTime") long currentTime); |
|||
|
|||
/** |
|||
* 判断医生在当前时间是否是该职位 |
|||
* @param rfid 医生的rfid |
|||
* @param post 职位 |
|||
* @param time 时间 |
|||
* @return 值班数量 |
|||
*/ |
|||
long countWorking(@Param("rfid") String rfid, @Param("post") byte post, @Param("time") long time); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.AttendanceRecord; |
|||
import com.ccsens.carbasics.bean.po.AttendanceRecordExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface AttendanceRecordMapper { |
|||
long countByExample(AttendanceRecordExample example); |
|||
|
|||
int deleteByExample(AttendanceRecordExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(AttendanceRecord record); |
|||
|
|||
int insertSelective(AttendanceRecord record); |
|||
|
|||
List<AttendanceRecord> selectByExample(AttendanceRecordExample example); |
|||
|
|||
AttendanceRecord selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") AttendanceRecord record, @Param("example") AttendanceRecordExample example); |
|||
|
|||
int updateByExample(@Param("record") AttendanceRecord record, @Param("example") AttendanceRecordExample example); |
|||
|
|||
int updateByPrimaryKeySelective(AttendanceRecord record); |
|||
|
|||
int updateByPrimaryKey(AttendanceRecord record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.CarRecord; |
|||
import com.ccsens.carbasics.bean.po.CarRecordExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface CarRecordMapper { |
|||
long countByExample(CarRecordExample example); |
|||
|
|||
int deleteByExample(CarRecordExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CarRecord record); |
|||
|
|||
int insertSelective(CarRecord record); |
|||
|
|||
List<CarRecord> selectByExample(CarRecordExample example); |
|||
|
|||
CarRecord selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CarRecord record, @Param("example") CarRecordExample example); |
|||
|
|||
int updateByExample(@Param("record") CarRecord record, @Param("example") CarRecordExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CarRecord record); |
|||
|
|||
int updateByPrimaryKey(CarRecord record); |
|||
} |
@ -1,31 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.CodeDictionaries; |
|||
import com.ccsens.carbasics.bean.po.CodeDictionariesExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface CodeDictionariesMapper { |
|||
long countByExample(CodeDictionariesExample example); |
|||
|
|||
int deleteByExample(CodeDictionariesExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CodeDictionaries record); |
|||
|
|||
int insertSelective(CodeDictionaries record); |
|||
|
|||
List<CodeDictionaries> selectByExample(CodeDictionariesExample example); |
|||
|
|||
CodeDictionaries selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CodeDictionaries record, @Param("example") CodeDictionariesExample example); |
|||
|
|||
int updateByExample(@Param("record") CodeDictionaries record, @Param("example") CodeDictionariesExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CodeDictionaries record); |
|||
|
|||
int updateByPrimaryKey(CodeDictionaries record); |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.CodeDictionaries; |
|||
import com.ccsens.carbasics.bean.po.CodeDictionariesExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CodeDictionariesMapper { |
|||
long countByExample(CodeDictionariesExample example); |
|||
|
|||
int deleteByExample(CodeDictionariesExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CodeDictionaries record); |
|||
|
|||
int insertSelective(CodeDictionaries record); |
|||
|
|||
List<CodeDictionaries> selectByExample(CodeDictionariesExample example); |
|||
|
|||
CodeDictionaries selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CodeDictionaries record, @Param("example") CodeDictionariesExample example); |
|||
|
|||
int updateByExample(@Param("record") CodeDictionaries record, @Param("example") CodeDictionariesExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CodeDictionaries record); |
|||
|
|||
int updateByPrimaryKey(CodeDictionaries record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.CodeParent; |
|||
import com.ccsens.carbasics.bean.po.CodeParentExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface CodeParentMapper { |
|||
long countByExample(CodeParentExample example); |
|||
|
|||
int deleteByExample(CodeParentExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(CodeParent record); |
|||
|
|||
int insertSelective(CodeParent record); |
|||
|
|||
List<CodeParent> selectByExample(CodeParentExample example); |
|||
|
|||
CodeParent selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") CodeParent record, @Param("example") CodeParentExample example); |
|||
|
|||
int updateByExample(@Param("record") CodeParent record, @Param("example") CodeParentExample example); |
|||
|
|||
int updateByPrimaryKeySelective(CodeParent record); |
|||
|
|||
int updateByPrimaryKey(CodeParent record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Doctor; |
|||
import com.ccsens.carbasics.bean.po.DoctorExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface DoctorMapper { |
|||
long countByExample(DoctorExample example); |
|||
|
|||
int deleteByExample(DoctorExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Doctor record); |
|||
|
|||
int insertSelective(Doctor record); |
|||
|
|||
List<Doctor> selectByExample(DoctorExample example); |
|||
|
|||
Doctor selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Doctor record, @Param("example") DoctorExample example); |
|||
|
|||
int updateByExample(@Param("record") Doctor record, @Param("example") DoctorExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Doctor record); |
|||
|
|||
int updateByPrimaryKey(Doctor record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAidLog; |
|||
import com.ccsens.carbasics.bean.po.FirstAidLogExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FirstAidLogMapper { |
|||
long countByExample(FirstAidLogExample example); |
|||
|
|||
int deleteByExample(FirstAidLogExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAidLog record); |
|||
|
|||
int insertSelective(FirstAidLog record); |
|||
|
|||
List<FirstAidLog> selectByExample(FirstAidLogExample example); |
|||
|
|||
FirstAidLog selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAidLog record, @Param("example") FirstAidLogExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAidLog record, @Param("example") FirstAidLogExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAidLog record); |
|||
|
|||
int updateByPrimaryKey(FirstAidLog record); |
|||
} |
@ -1,31 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAid; |
|||
import com.ccsens.carbasics.bean.po.FirstAidExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface FirstAidMapper { |
|||
long countByExample(FirstAidExample example); |
|||
|
|||
int deleteByExample(FirstAidExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAid record); |
|||
|
|||
int insertSelective(FirstAid record); |
|||
|
|||
List<FirstAid> selectByExample(FirstAidExample example); |
|||
|
|||
FirstAid selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAid record, @Param("example") FirstAidExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAid record, @Param("example") FirstAidExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAid record); |
|||
|
|||
int updateByPrimaryKey(FirstAid record); |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAid; |
|||
import com.ccsens.carbasics.bean.po.FirstAidExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FirstAidMapper { |
|||
long countByExample(FirstAidExample example); |
|||
|
|||
int deleteByExample(FirstAidExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAid record); |
|||
|
|||
int insertSelective(FirstAid record); |
|||
|
|||
List<FirstAid> selectByExample(FirstAidExample example); |
|||
|
|||
FirstAid selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAid record, @Param("example") FirstAidExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAid record, @Param("example") FirstAidExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAid record); |
|||
|
|||
int updateByPrimaryKey(FirstAid record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAidMember; |
|||
import com.ccsens.carbasics.bean.po.FirstAidMemberExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FirstAidMemberMapper { |
|||
long countByExample(FirstAidMemberExample example); |
|||
|
|||
int deleteByExample(FirstAidMemberExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAidMember record); |
|||
|
|||
int insertSelective(FirstAidMember record); |
|||
|
|||
List<FirstAidMember> selectByExample(FirstAidMemberExample example); |
|||
|
|||
FirstAidMember selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAidMember record, @Param("example") FirstAidMemberExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAidMember record, @Param("example") FirstAidMemberExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAidMember record); |
|||
|
|||
int updateByPrimaryKey(FirstAidMember record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAidMessage; |
|||
import com.ccsens.carbasics.bean.po.FirstAidMessageExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface FirstAidMessageMapper { |
|||
long countByExample(FirstAidMessageExample example); |
|||
|
|||
int deleteByExample(FirstAidMessageExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAidMessage record); |
|||
|
|||
int insertSelective(FirstAidMessage record); |
|||
|
|||
List<FirstAidMessage> selectByExample(FirstAidMessageExample example); |
|||
|
|||
FirstAidMessage selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAidMessage record, @Param("example") FirstAidMessageExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAidMessage record, @Param("example") FirstAidMessageExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAidMessage record); |
|||
|
|||
int updateByPrimaryKey(FirstAidMessage record); |
|||
} |
@ -1,31 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAidRecordLog; |
|||
import com.ccsens.carbasics.bean.po.FirstAidRecordLogExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface FirstAidRecordLogMapper { |
|||
long countByExample(FirstAidRecordLogExample example); |
|||
|
|||
int deleteByExample(FirstAidRecordLogExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAidRecordLog record); |
|||
|
|||
int insertSelective(FirstAidRecordLog record); |
|||
|
|||
List<FirstAidRecordLog> selectByExample(FirstAidRecordLogExample example); |
|||
|
|||
FirstAidRecordLog selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAidRecordLog record, @Param("example") FirstAidRecordLogExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAidRecordLog record, @Param("example") FirstAidRecordLogExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAidRecordLog record); |
|||
|
|||
int updateByPrimaryKey(FirstAidRecordLog record); |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAidRecordLog; |
|||
import com.ccsens.carbasics.bean.po.FirstAidRecordLogExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FirstAidRecordLogMapper { |
|||
long countByExample(FirstAidRecordLogExample example); |
|||
|
|||
int deleteByExample(FirstAidRecordLogExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAidRecordLog record); |
|||
|
|||
int insertSelective(FirstAidRecordLog record); |
|||
|
|||
List<FirstAidRecordLog> selectByExample(FirstAidRecordLogExample example); |
|||
|
|||
FirstAidRecordLog selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAidRecordLog record, @Param("example") FirstAidRecordLogExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAidRecordLog record, @Param("example") FirstAidRecordLogExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAidRecordLog record); |
|||
|
|||
int updateByPrimaryKey(FirstAidRecordLog record); |
|||
} |
@ -1,31 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAidRecord; |
|||
import com.ccsens.carbasics.bean.po.FirstAidRecordExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface FirstAidRecordMapper { |
|||
long countByExample(FirstAidRecordExample example); |
|||
|
|||
int deleteByExample(FirstAidRecordExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAidRecord record); |
|||
|
|||
int insertSelective(FirstAidRecord record); |
|||
|
|||
List<FirstAidRecord> selectByExample(FirstAidRecordExample example); |
|||
|
|||
FirstAidRecord selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAidRecord record, @Param("example") FirstAidRecordExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAidRecord record, @Param("example") FirstAidRecordExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAidRecord record); |
|||
|
|||
int updateByPrimaryKey(FirstAidRecord record); |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAidRecord; |
|||
import com.ccsens.carbasics.bean.po.FirstAidRecordExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FirstAidRecordMapper { |
|||
long countByExample(FirstAidRecordExample example); |
|||
|
|||
int deleteByExample(FirstAidRecordExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAidRecord record); |
|||
|
|||
int insertSelective(FirstAidRecord record); |
|||
|
|||
List<FirstAidRecord> selectByExample(FirstAidRecordExample example); |
|||
|
|||
FirstAidRecord selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAidRecord record, @Param("example") FirstAidRecordExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAidRecord record, @Param("example") FirstAidRecordExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAidRecord record); |
|||
|
|||
int updateByPrimaryKey(FirstAidRecord record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FirstAidStandard; |
|||
import com.ccsens.carbasics.bean.po.FirstAidStandardExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface FirstAidStandardMapper { |
|||
long countByExample(FirstAidStandardExample example); |
|||
|
|||
int deleteByExample(FirstAidStandardExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FirstAidStandard record); |
|||
|
|||
int insertSelective(FirstAidStandard record); |
|||
|
|||
List<FirstAidStandard> selectByExample(FirstAidStandardExample example); |
|||
|
|||
FirstAidStandard selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FirstAidStandard record, @Param("example") FirstAidStandardExample example); |
|||
|
|||
int updateByExample(@Param("record") FirstAidStandard record, @Param("example") FirstAidStandardExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FirstAidStandard record); |
|||
|
|||
int updateByPrimaryKey(FirstAidStandard record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Hospital; |
|||
import com.ccsens.carbasics.bean.po.HospitalExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface HospitalMapper { |
|||
long countByExample(HospitalExample example); |
|||
|
|||
int deleteByExample(HospitalExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Hospital record); |
|||
|
|||
int insertSelective(Hospital record); |
|||
|
|||
List<Hospital> selectByExample(HospitalExample example); |
|||
|
|||
Hospital selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Hospital record, @Param("example") HospitalExample example); |
|||
|
|||
int updateByExample(@Param("record") Hospital record, @Param("example") HospitalExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Hospital record); |
|||
|
|||
int updateByPrimaryKey(Hospital record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.OrganizationDepartment; |
|||
import com.ccsens.carbasics.bean.po.OrganizationDepartmentExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface OrganizationDepartmentMapper { |
|||
long countByExample(OrganizationDepartmentExample example); |
|||
|
|||
int deleteByExample(OrganizationDepartmentExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(OrganizationDepartment record); |
|||
|
|||
int insertSelective(OrganizationDepartment record); |
|||
|
|||
List<OrganizationDepartment> selectByExample(OrganizationDepartmentExample example); |
|||
|
|||
OrganizationDepartment selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") OrganizationDepartment record, @Param("example") OrganizationDepartmentExample example); |
|||
|
|||
int updateByExample(@Param("record") OrganizationDepartment record, @Param("example") OrganizationDepartmentExample example); |
|||
|
|||
int updateByPrimaryKeySelective(OrganizationDepartment record); |
|||
|
|||
int updateByPrimaryKey(OrganizationDepartment record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Organization; |
|||
import com.ccsens.carbasics.bean.po.OrganizationExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface OrganizationMapper { |
|||
long countByExample(OrganizationExample example); |
|||
|
|||
int deleteByExample(OrganizationExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Organization record); |
|||
|
|||
int insertSelective(Organization record); |
|||
|
|||
List<Organization> selectByExample(OrganizationExample example); |
|||
|
|||
Organization selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example); |
|||
|
|||
int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Organization record); |
|||
|
|||
int updateByPrimaryKey(Organization record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.OrganizationMember; |
|||
import com.ccsens.carbasics.bean.po.OrganizationMemberExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface OrganizationMemberMapper { |
|||
long countByExample(OrganizationMemberExample example); |
|||
|
|||
int deleteByExample(OrganizationMemberExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(OrganizationMember record); |
|||
|
|||
int insertSelective(OrganizationMember record); |
|||
|
|||
List<OrganizationMember> selectByExample(OrganizationMemberExample example); |
|||
|
|||
OrganizationMember selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") OrganizationMember record, @Param("example") OrganizationMemberExample example); |
|||
|
|||
int updateByExample(@Param("record") OrganizationMember record, @Param("example") OrganizationMemberExample example); |
|||
|
|||
int updateByPrimaryKeySelective(OrganizationMember record); |
|||
|
|||
int updateByPrimaryKey(OrganizationMember record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.OrganizationParent; |
|||
import com.ccsens.carbasics.bean.po.OrganizationParentExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface OrganizationParentMapper { |
|||
long countByExample(OrganizationParentExample example); |
|||
|
|||
int deleteByExample(OrganizationParentExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(OrganizationParent record); |
|||
|
|||
int insertSelective(OrganizationParent record); |
|||
|
|||
List<OrganizationParent> selectByExample(OrganizationParentExample example); |
|||
|
|||
OrganizationParent selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") OrganizationParent record, @Param("example") OrganizationParentExample example); |
|||
|
|||
int updateByExample(@Param("record") OrganizationParent record, @Param("example") OrganizationParentExample example); |
|||
|
|||
int updateByPrimaryKeySelective(OrganizationParent record); |
|||
|
|||
int updateByPrimaryKey(OrganizationParent record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.OrganizationPosition; |
|||
import com.ccsens.carbasics.bean.po.OrganizationPositionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface OrganizationPositionMapper { |
|||
long countByExample(OrganizationPositionExample example); |
|||
|
|||
int deleteByExample(OrganizationPositionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(OrganizationPosition record); |
|||
|
|||
int insertSelective(OrganizationPosition record); |
|||
|
|||
List<OrganizationPosition> selectByExample(OrganizationPositionExample example); |
|||
|
|||
OrganizationPosition selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") OrganizationPosition record, @Param("example") OrganizationPositionExample example); |
|||
|
|||
int updateByExample(@Param("record") OrganizationPosition record, @Param("example") OrganizationPositionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(OrganizationPosition record); |
|||
|
|||
int updateByPrimaryKey(OrganizationPosition record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.OrganizationProject; |
|||
import com.ccsens.carbasics.bean.po.OrganizationProjectExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface OrganizationProjectMapper { |
|||
long countByExample(OrganizationProjectExample example); |
|||
|
|||
int deleteByExample(OrganizationProjectExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(OrganizationProject record); |
|||
|
|||
int insertSelective(OrganizationProject record); |
|||
|
|||
List<OrganizationProject> selectByExample(OrganizationProjectExample example); |
|||
|
|||
OrganizationProject selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") OrganizationProject record, @Param("example") OrganizationProjectExample example); |
|||
|
|||
int updateByExample(@Param("record") OrganizationProject record, @Param("example") OrganizationProjectExample example); |
|||
|
|||
int updateByPrimaryKeySelective(OrganizationProject record); |
|||
|
|||
int updateByPrimaryKey(OrganizationProject record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.OrganizationTemplate; |
|||
import com.ccsens.carbasics.bean.po.OrganizationTemplateExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface OrganizationTemplateMapper { |
|||
long countByExample(OrganizationTemplateExample example); |
|||
|
|||
int deleteByExample(OrganizationTemplateExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(OrganizationTemplate record); |
|||
|
|||
int insertSelective(OrganizationTemplate record); |
|||
|
|||
List<OrganizationTemplate> selectByExample(OrganizationTemplateExample example); |
|||
|
|||
OrganizationTemplate selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") OrganizationTemplate record, @Param("example") OrganizationTemplateExample example); |
|||
|
|||
int updateByExample(@Param("record") OrganizationTemplate record, @Param("example") OrganizationTemplateExample example); |
|||
|
|||
int updateByPrimaryKeySelective(OrganizationTemplate record); |
|||
|
|||
int updateByPrimaryKey(OrganizationTemplate record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Patient; |
|||
import com.ccsens.carbasics.bean.po.PatientExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface PatientMapper { |
|||
long countByExample(PatientExample example); |
|||
|
|||
int deleteByExample(PatientExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Patient record); |
|||
|
|||
int insertSelective(Patient record); |
|||
|
|||
List<Patient> selectByExample(PatientExample example); |
|||
|
|||
Patient selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Patient record, @Param("example") PatientExample example); |
|||
|
|||
int updateByExample(@Param("record") Patient record, @Param("example") PatientExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Patient record); |
|||
|
|||
int updateByPrimaryKey(Patient record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.PatientWisdomCar; |
|||
import com.ccsens.carbasics.bean.po.PatientWisdomCarExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface PatientWisdomCarMapper { |
|||
long countByExample(PatientWisdomCarExample example); |
|||
|
|||
int deleteByExample(PatientWisdomCarExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(PatientWisdomCar record); |
|||
|
|||
int insertSelective(PatientWisdomCar record); |
|||
|
|||
List<PatientWisdomCar> selectByExample(PatientWisdomCarExample example); |
|||
|
|||
PatientWisdomCar selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") PatientWisdomCar record, @Param("example") PatientWisdomCarExample example); |
|||
|
|||
int updateByExample(@Param("record") PatientWisdomCar record, @Param("example") PatientWisdomCarExample example); |
|||
|
|||
int updateByPrimaryKeySelective(PatientWisdomCar record); |
|||
|
|||
int updateByPrimaryKey(PatientWisdomCar record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Rfid; |
|||
import com.ccsens.carbasics.bean.po.RfidExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface RfidMapper { |
|||
long countByExample(RfidExample example); |
|||
|
|||
int deleteByExample(RfidExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Rfid record); |
|||
|
|||
int insertSelective(Rfid record); |
|||
|
|||
List<Rfid> selectByExample(RfidExample example); |
|||
|
|||
Rfid selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Rfid record, @Param("example") RfidExample example); |
|||
|
|||
int updateByExample(@Param("record") Rfid record, @Param("example") RfidExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Rfid record); |
|||
|
|||
int updateByPrimaryKey(Rfid record); |
|||
} |
@ -1,31 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Step; |
|||
import com.ccsens.carbasics.bean.po.StepExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface StepMapper { |
|||
long countByExample(StepExample example); |
|||
|
|||
int deleteByExample(StepExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Step record); |
|||
|
|||
int insertSelective(Step record); |
|||
|
|||
List<Step> selectByExample(StepExample example); |
|||
|
|||
Step selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Step record, @Param("example") StepExample example); |
|||
|
|||
int updateByExample(@Param("record") Step record, @Param("example") StepExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Step record); |
|||
|
|||
int updateByPrimaryKey(Step record); |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Step; |
|||
import com.ccsens.carbasics.bean.po.StepExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface StepMapper { |
|||
long countByExample(StepExample example); |
|||
|
|||
int deleteByExample(StepExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Step record); |
|||
|
|||
int insertSelective(Step record); |
|||
|
|||
List<Step> selectByExample(StepExample example); |
|||
|
|||
Step selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Step record, @Param("example") StepExample example); |
|||
|
|||
int updateByExample(@Param("record") Step record, @Param("example") StepExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Step record); |
|||
|
|||
int updateByPrimaryKey(Step record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.WisdomCar; |
|||
import com.ccsens.carbasics.bean.po.WisdomCarExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface WisdomCarMapper { |
|||
long countByExample(WisdomCarExample example); |
|||
|
|||
int deleteByExample(WisdomCarExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(WisdomCar record); |
|||
|
|||
int insertSelective(WisdomCar record); |
|||
|
|||
List<WisdomCar> selectByExample(WisdomCarExample example); |
|||
|
|||
WisdomCar selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") WisdomCar record, @Param("example") WisdomCarExample example); |
|||
|
|||
int updateByExample(@Param("record") WisdomCar record, @Param("example") WisdomCarExample example); |
|||
|
|||
int updateByPrimaryKeySelective(WisdomCar record); |
|||
|
|||
int updateByPrimaryKey(WisdomCar record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Working; |
|||
import com.ccsens.carbasics.bean.po.WorkingExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface WorkingMapper { |
|||
long countByExample(WorkingExample example); |
|||
|
|||
int deleteByExample(WorkingExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Working record); |
|||
|
|||
int insertSelective(Working record); |
|||
|
|||
List<Working> selectByExample(WorkingExample example); |
|||
|
|||
Working selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Working record, @Param("example") WorkingExample example); |
|||
|
|||
int updateByExample(@Param("record") Working record, @Param("example") WorkingExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Working record); |
|||
|
|||
int updateByPrimaryKey(Working record); |
|||
} |
@ -1,31 +0,0 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Wroking; |
|||
import com.ccsens.carbasics.bean.po.WrokingExample; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface WrokingMapper { |
|||
long countByExample(WrokingExample example); |
|||
|
|||
int deleteByExample(WrokingExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Wroking record); |
|||
|
|||
int insertSelective(Wroking record); |
|||
|
|||
List<Wroking> selectByExample(WrokingExample example); |
|||
|
|||
Wroking selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Wroking record, @Param("example") WrokingExample example); |
|||
|
|||
int updateByExample(@Param("record") Wroking record, @Param("example") WrokingExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Wroking record); |
|||
|
|||
int updateByPrimaryKey(Wroking record); |
|||
} |
@ -0,0 +1,194 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.lang.Snowflake; |
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.po.*; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.ccsens.carbasics.persist.dao.CodeParentDao; |
|||
import com.ccsens.carbasics.persist.dao.FirstAidDao; |
|||
import com.ccsens.carbasics.persist.dao.PatientDao; |
|||
import com.ccsens.carbasics.persist.mapper.CodeDictionariesMapper; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidRecordLogMapper; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidRecordMapper; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.carbasics.util.DefaultCodeError; |
|||
import com.ccsens.util.exception.BaseException; |
|||
import com.github.pagehelper.PageInfo; |
|||
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.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
|||
public class FirstAidRecordService implements IFirstAidRecordService { |
|||
@Resource |
|||
private PatientDao patientDao; |
|||
@Resource |
|||
private Snowflake snowflake; |
|||
@Resource |
|||
private FirstAidRecordLogMapper firstAidRecordLogMapper; |
|||
@Resource |
|||
private FirstAidRecordMapper firstAidRecordMapper; |
|||
@Resource |
|||
private CodeDictionariesMapper dictionariesMapper; |
|||
@Resource |
|||
private CodeParentDao codeParentDao; |
|||
@Resource |
|||
private FirstAidDao firstAidDao; |
|||
|
|||
|
|||
@Override |
|||
public PatientVo.QuerySubordinate querySubordinate(PatientDto.QuerySubordinate param, Long userId) { |
|||
return patientDao.querySubordinate(param.getProjectId(),param.getCode()); |
|||
} |
|||
|
|||
|
|||
|
|||
@Override |
|||
public PatientVo.QueryAidRecordN queryAidRecordN(PatientDto.QueryAidRecord param, Long userId) { |
|||
PatientVo.QueryAidRecordN queryAidRecord = new PatientVo.QueryAidRecordN(); |
|||
Map<String,List<String>> recordMap = new HashMap<>(); |
|||
//查询记录信息
|
|||
List<PatientVo.AidRecord> aidRecords = patientDao.queryRecordByAidId(param.getProjectId(),param.getCodeList()); |
|||
if(CollectionUtil.isNotEmpty(aidRecords)){ |
|||
//封装进map内
|
|||
aidRecords.forEach(aidRecord -> { |
|||
if(ObjectUtil.isNull(recordMap.get(aidRecord.getQuestionCode()))){ |
|||
List<String> stringList = new ArrayList<>(); |
|||
stringList.add(aidRecord.getAnswer()); |
|||
recordMap.put(aidRecord.getQuestionCode(),stringList); |
|||
}else { |
|||
recordMap.get(aidRecord.getQuestionCode()).add(aidRecord.getAnswer()); |
|||
} |
|||
}); |
|||
queryAidRecord.setId(aidRecords.get(0).getFirstAidId()); |
|||
} |
|||
queryAidRecord.setRecord(recordMap); |
|||
return queryAidRecord; |
|||
} |
|||
|
|||
@Override |
|||
public void saveAidRecordN(PatientDto.SaveAidRecordN param, Long userId) { |
|||
//验证急救信息
|
|||
FirstAidExample aidExample = new FirstAidExample(); |
|||
aidExample.createCriteria().andProjectIdEqualTo(param.getProjectId()); |
|||
aidExample.setOrderByClause("id desc limit 1"); |
|||
List<FirstAid> firstAids = firstAidDao.selectByExample(aidExample); |
|||
log.info("急救信息:{}", firstAids); |
|||
if(CollectionUtil.isEmpty(firstAids)) { |
|||
throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); |
|||
} |
|||
|
|||
if(CollectionUtil.isEmpty(param.getCodeAndAnswerList())){ |
|||
return; |
|||
} |
|||
FirstAid firstAid = firstAids.get(0); |
|||
|
|||
|
|||
if (firstAid.getDataStatus() == Constant.DataStatus.Create.status || firstAid.getDataStatus() == Constant.DataStatus.FirstAidRefuse.status) { |
|||
// 不校验,允许修改
|
|||
log.info("允许修改:{}", firstAid.getDataStatus()); |
|||
} else if (firstAid.getDataStatus() == Constant.DataStatus.FirstAidPass.status) { |
|||
// 急救审核通过,急救不能修改
|
|||
List<String> children = codeParentDao.queryChildren(Constant.QuestionCode.FIRST_AID); |
|||
param.getCodeAndAnswerList().forEach(codeAndAnswer -> { |
|||
if (children.contains(codeAndAnswer.getQuestionCode())) { |
|||
log.info("{}是急救的code,不能修改", codeAndAnswer.getQuestionCode() ); |
|||
throw new BaseException(DefaultCodeError.NO_DATA_MODIFY_PRIVILEGE); |
|||
} |
|||
}); |
|||
} else if (firstAid.getDataStatus() == Constant.DataStatus.DischargeRefuse.status) { |
|||
// 出院审核拒绝,只允许修改出院信息
|
|||
List<String> children = codeParentDao.queryChildren(Constant.QuestionCode.DISCHARGE); |
|||
param.getCodeAndAnswerList().forEach(codeAndAnswer -> { |
|||
if (!children.contains(codeAndAnswer.getQuestionCode())) { |
|||
log.info("{}不是出院的code,不能修改", codeAndAnswer.getQuestionCode() ); |
|||
throw new BaseException(DefaultCodeError.NO_DATA_MODIFY_PRIVILEGE); |
|||
} |
|||
}); |
|||
|
|||
} else { |
|||
throw new BaseException(DefaultCodeError.NO_DATA_MODIFY_PRIVILEGE); |
|||
} |
|||
|
|||
|
|||
|
|||
//遍历传入的code
|
|||
param.getCodeAndAnswerList().forEach(codeAndAnswer -> { |
|||
if(StrUtil.isNotEmpty(codeAndAnswer.getQuestionCode())) { |
|||
//添加记录表,需要查找之前的记录,删除后重新添加
|
|||
FirstAidRecordExample recordExample = new FirstAidRecordExample(); |
|||
recordExample.createCriteria().andFirstAidIdEqualTo(firstAid.getId()).andQuestionCodeEqualTo(codeAndAnswer.getQuestionCode()); |
|||
List<FirstAidRecord> firstAidRecords = firstAidRecordMapper.selectByExample(recordExample); |
|||
if (CollectionUtil.isNotEmpty(firstAidRecords)) { |
|||
firstAidRecords.forEach(firstAidRecord -> { |
|||
firstAidRecord.setRecStatus((byte) 2); |
|||
firstAidRecordMapper.updateByPrimaryKeySelective(firstAidRecord); |
|||
}); |
|||
} |
|||
//判断答案是否为空
|
|||
if(CollectionUtil.isNotEmpty(codeAndAnswer.getAnswer())){ |
|||
//循环答案
|
|||
codeAndAnswer.getAnswer().forEach(answer -> { |
|||
saveRecord(param.getUserType(), userId, firstAid.getId(), codeAndAnswer.getQuestionCode(), answer,param.getProjectId()); |
|||
}); |
|||
}else { |
|||
saveRecord(param.getUserType(), userId, firstAid.getId(), codeAndAnswer.getQuestionCode(), "",param.getProjectId()); |
|||
} |
|||
} |
|||
}); |
|||
|
|||
} |
|||
|
|||
private void saveRecord(byte userType, Long userId, Long firstAidId, String code, String answer,Long projectId) { |
|||
//添加日志表,不管数据是否重复
|
|||
FirstAidRecordLog firstAidRecordLog = new FirstAidRecordLog(); |
|||
firstAidRecordLog.setId(snowflake.nextId()); |
|||
firstAidRecordLog.setFirstAidId(firstAidId); |
|||
firstAidRecordLog.setQuestionCode(code); |
|||
firstAidRecordLog.setAnswer(answer); |
|||
firstAidRecordLog.setSubmitUserId(userId); |
|||
firstAidRecordLog.setSubmitUserType(userType); |
|||
firstAidRecordLog.setOperator(userId); |
|||
firstAidRecordLogMapper.insertSelective(firstAidRecordLog); |
|||
//添加
|
|||
FirstAidRecord firstAidRecord = new FirstAidRecord(); |
|||
firstAidRecord.setId(snowflake.nextId()); |
|||
firstAidRecord.setFirstAidId(firstAidId); |
|||
firstAidRecord.setQuestionCode(code); |
|||
firstAidRecord.setAnswer(answer); |
|||
firstAidRecord.setSubmitUserType(userType); |
|||
firstAidRecord.setSubmitUserId(userId); |
|||
firstAidRecord.setOperator(userId); |
|||
firstAidRecordMapper.insertSelective(firstAidRecord); |
|||
// //根据code查找字典表
|
|||
// CodeDictionariesExample dictionariesExample = new CodeDictionariesExample();
|
|||
// dictionariesExample.createCriteria().andQuestionCodeEqualTo(code);
|
|||
// List<CodeDictionaries> dictionariesList = dictionariesMapper.selectByExample(dictionariesExample);
|
|||
// dictionariesList.forEach(codeDictionaries -> {
|
|||
// if(StrUtil.isNotEmpty(codeDictionaries.getTaskName())){
|
|||
// //如果关联的任务名称不为空,查找任务id,然后修改任务真实开始时间
|
|||
// long now = System.currentTimeMillis();
|
|||
// Long subTaskId = sTaskDao.getNowTask(codeDictionaries.getTaskName(),projectId,now);
|
|||
// if(ObjectUtil.isNotNull(subTaskId)){
|
|||
// //TODO 如果分解id不为空,调用修改任务真实时间的接口
|
|||
// taskService.updateTaskStartTime(subTaskId, (byte) 0);
|
|||
// }
|
|||
// }
|
|||
// });
|
|||
} |
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.dto.StatisticalDto; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.github.pagehelper.PageInfo; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
public interface IFirstAidRecordService { |
|||
|
|||
/** |
|||
* 查询code的下级完成情况 |
|||
* @param param 急救id和code |
|||
* @param userId userId |
|||
* @return 返回总数和完成数 |
|||
*/ |
|||
PatientVo.QuerySubordinate querySubordinate(PatientDto.QuerySubordinate param, Long userId); |
|||
|
|||
/** |
|||
* 批量添加(数组) |
|||
* @param param |
|||
* @param userId |
|||
*/ |
|||
void saveAidRecordN(PatientDto.SaveAidRecordN param, Long userId); |
|||
|
|||
/** |
|||
* 批量查询(数组) |
|||
* @param param |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
PatientVo.QueryAidRecordN queryAidRecordN(PatientDto.QueryAidRecord param, Long userId); |
|||
} |
@ -1,6 +1,17 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
|
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.github.pagehelper.PageInfo; |
|||
|
|||
public interface IFirstAidService { |
|||
|
|||
/** |
|||
* 查询和自己相关的病例信息 |
|||
* @param param 搜索条件 |
|||
* @param userId 操作人用户ID |
|||
* @return |
|||
*/ |
|||
PageInfo<PatientVo.QueryPatientList> querySelf(PatientDto.QueryPatient param, Long userId); |
|||
} |
|||
|
@ -1,65 +0,0 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.dto.StatisticalDto; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.github.pagehelper.PageInfo; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
public interface IPatientService { |
|||
/** |
|||
* 查询医院下患者列表信息 |
|||
* @param param 医院id,类型,名称,分页信息 |
|||
* @param userId userId |
|||
* @return 返回患者列表 |
|||
*/ |
|||
PageInfo<PatientVo.QueryPatientList> queryPatientList(PatientDto.QueryPatient param, Long userId); |
|||
|
|||
/** |
|||
* 批量提交急救记录 |
|||
* @param param 急救记录信息 |
|||
* @param userId userId |
|||
*/ |
|||
void saveAidRecord(PatientDto.SaveAidRecord param, Long userId); |
|||
|
|||
/** |
|||
* 批量查询急救记录 |
|||
* @param param 急救id |
|||
* @param userId userId |
|||
* @return 返回记录信息 |
|||
*/ |
|||
PatientVo.QueryAidRecord queryAidRecord(PatientDto.QueryAidRecord param, Long userId); |
|||
|
|||
/** |
|||
* 查询code的下级完成情况 |
|||
* @param param 急救id和code |
|||
* @param userId userId |
|||
* @return 返回总数和完成数 |
|||
*/ |
|||
PatientVo.QuerySubordinate querySubordinate(PatientDto.QuerySubordinate param, Long userId); |
|||
|
|||
/** |
|||
* 时间沙漏 |
|||
* @param param 项目id |
|||
* @param userId userId |
|||
* @return 返回发病、分诊、溶栓、ct的时间 |
|||
*/ |
|||
PatientVo.TimeSandClock timeSandClock(StatisticalDto.QueryStep param, Long userId); |
|||
|
|||
/** |
|||
* 批量添加(数组) |
|||
* @param param |
|||
* @param userId |
|||
*/ |
|||
void saveAidRecordN(PatientDto.SaveAidRecordN param, Long userId); |
|||
|
|||
/** |
|||
* 批量查询(数组) |
|||
* @param param |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
PatientVo.QueryAidRecordN queryAidRecordN(PatientDto.QueryAidRecord param, Long userId); |
|||
} |
@ -1,32 +0,0 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.CarDto; |
|||
import com.ccsens.carbasics.bean.vo.CarVo; |
|||
import com.ccsens.util.CodeError; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface IPatientWisdomCarService { |
|||
/** |
|||
* 查询用户所在医院的平车情况 |
|||
* @param userId 用户ID |
|||
* @return 平车 |
|||
*/ |
|||
List<CarVo.Car> query(Long userId); |
|||
|
|||
/** |
|||
* 查询患者绑定的平车 |
|||
* @param param |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
CarVo.QueryBind queryBind(CarDto.QueryBind param, Long userId); |
|||
|
|||
/** |
|||
* 绑定平车 |
|||
* @param param 平车信息 |
|||
* @param userId 操作者用户ID |
|||
* @return 绑定结果 |
|||
*/ |
|||
CodeError.Code bind(CarDto.Bind param, Long userId); |
|||
} |
@ -1,33 +0,0 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.RecordDto; |
|||
import com.ccsens.carbasics.bean.dto.message.CarRecordMessageDto; |
|||
import com.ccsens.carbasics.bean.vo.RecordVo; |
|||
import org.apache.poi.ss.usermodel.Workbook; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface IRecordService { |
|||
|
|||
/** |
|||
* 后台接受消息并处理 |
|||
* @param carRecordMessageDto 接收到的消息 |
|||
* @throws Exception |
|||
*/ |
|||
void disposeMessage(CarRecordMessageDto carRecordMessageDto) throws Exception; |
|||
|
|||
/** |
|||
* 查询称重和Rfid记录 |
|||
* @param param 查询条件 |
|||
* @param userId 查询用户ID |
|||
* @return 记录 |
|||
*/ |
|||
List<RecordVo.WeightAndRfid> queryWeightAndRfid(RecordDto.WeightAndRfid param, Long userId); |
|||
|
|||
/** |
|||
* 导出称重和Rfid记录 |
|||
* @param param 查询条件 |
|||
*/ |
|||
Workbook exportWeightAndRfid(RecordDto.WeightAndRfidExport param) ; |
|||
|
|||
} |
@ -1,34 +0,0 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.WorkerDto; |
|||
import com.ccsens.carbasics.bean.vo.WorkerVo; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
public interface IWorkerService { |
|||
/** |
|||
* 添加到场人员信息 |
|||
* @param param 到场人员信息 |
|||
* @param userId 用户id |
|||
*/ |
|||
void addArriveWorker(WorkerDto.AddArriveWorker param, Long userId); |
|||
|
|||
/** |
|||
* 查询到场人员信息 |
|||
* @param param 项目id |
|||
* @param userId 用户id |
|||
* @return 到场人员信息列表 |
|||
*/ |
|||
List<WorkerVo.WorkInformation> queryArriveWorker(WorkerDto.QueryArriveWorker param, Long userId); |
|||
|
|||
/** |
|||
* 查询医院里所有医生 |
|||
* @param userId 用户id |
|||
* @return 医生列表 |
|||
*/ |
|||
Map<Byte, List<WorkerVo.AllDoctor>> queryAllDoctor(Long userId); |
|||
} |
@ -1,312 +0,0 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.lang.Snowflake; |
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.dto.StatisticalDto; |
|||
import com.ccsens.carbasics.bean.po.*; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.ccsens.carbasics.persist.dao.DoctorDao; |
|||
import com.ccsens.carbasics.persist.dao.FirstAidDao; |
|||
import com.ccsens.carbasics.persist.dao.PatientDao; |
|||
import com.ccsens.carbasics.persist.dao.STaskDao; |
|||
import com.ccsens.carbasics.persist.mapper.CodeDictionariesMapper; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidRecordLogMapper; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidRecordMapper; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.carbasics.util.DefaultCodeError; |
|||
import com.ccsens.common.service.ITaskService; |
|||
import com.ccsens.util.exception.BaseException; |
|||
import com.github.pagehelper.PageHelper; |
|||
import com.github.pagehelper.PageInfo; |
|||
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.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
|||
public class PatientService implements IPatientService{ |
|||
@Resource |
|||
private PatientDao patientDao; |
|||
@Resource |
|||
private Snowflake snowflake; |
|||
@Resource |
|||
private FirstAidRecordLogMapper firstAidRecordLogMapper; |
|||
@Resource |
|||
private FirstAidRecordMapper firstAidRecordMapper; |
|||
@Resource |
|||
private CodeDictionariesMapper dictionariesMapper; |
|||
@Resource |
|||
private STaskDao sTaskDao; |
|||
@Resource |
|||
private FirstAidDao firstAidDao; |
|||
@Resource |
|||
private ITaskService taskService; |
|||
@Resource |
|||
private DoctorDao doctorDao; |
|||
|
|||
@Override |
|||
public PageInfo<PatientVo.QueryPatientList> queryPatientList(PatientDto.QueryPatient param, Long userId) { |
|||
Doctor doctor = doctorDao.findByUserId(userId); |
|||
if(ObjectUtil.isNull(doctor)){ |
|||
throw new BaseException(DefaultCodeError.NO_POWER); |
|||
} |
|||
//查询患者
|
|||
List<PatientVo.QueryPatientList> patientList; |
|||
PageHelper.startPage(param.getPage(),param.getPageSize()); |
|||
if(param.getType() == 1){ |
|||
//查询平车患者
|
|||
patientList = patientDao.queryCarPatient(doctor.getHospitalId()); |
|||
}else { |
|||
patientList = patientDao.queryByHospital(doctor.getHospitalId(), param.getPatientName(), param.getType()); |
|||
} |
|||
if(CollectionUtil.isNotEmpty(patientList)) { |
|||
patientList.forEach(patient -> { |
|||
//查询转归信息
|
|||
PatientVo.AidRecord aidRecordZg = patientDao.getRecordByAidIdAndCode(patient.getFirstAidId(), Constant.QuestionCode.ZG); |
|||
if (ObjectUtil.isNotNull(aidRecordZg)) { |
|||
patient.setTransformation(aidRecordZg.getAnswer()); |
|||
} |
|||
//查询开启绿道的时间(分诊时间)
|
|||
PatientVo.AidRecord aidRecord = patientDao.getRecordByAidIdAndCode(patient.getFirstAidId(), Constant.QuestionCode.FZSJ); |
|||
if (ObjectUtil.isNotNull(aidRecord)) { |
|||
try { |
|||
patient.setGreenwayTime(Long.valueOf(aidRecord.getAnswer())); |
|||
} catch (Exception e) { |
|||
log.info("查询开启绿道时间异常"); |
|||
} |
|||
} |
|||
//查询到场的医生的信息
|
|||
List<PatientVo.Doctor> doctorList = patientDao.getAttendanceDoctor(patient.getFirstAidId()); |
|||
patient.setDoctorList(doctorList); |
|||
}); |
|||
} |
|||
|
|||
return new PageInfo<>(patientList); |
|||
} |
|||
|
|||
@Override |
|||
public void saveAidRecord(PatientDto.SaveAidRecord param, Long userId) { |
|||
//验证急救信息
|
|||
Long firstAidId = firstAidDao.getIdByProjectId(param.getProjectId()); |
|||
if(ObjectUtil.isNull(firstAidId)){ |
|||
throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); |
|||
} |
|||
if(CollectionUtil.isNotEmpty(param.getCodeAndAnswerList())){ |
|||
param.getCodeAndAnswerList().forEach(codeAndAnswer -> { |
|||
if(StrUtil.isNotEmpty(codeAndAnswer.getQuestionCode())) { |
|||
//添加日志表,不管数据是否重复
|
|||
FirstAidRecordLog firstAidRecordLog = new FirstAidRecordLog(); |
|||
firstAidRecordLog.setId(snowflake.nextId()); |
|||
firstAidRecordLog.setFirstAidId(firstAidId); |
|||
firstAidRecordLog.setQuestionCode(codeAndAnswer.getQuestionCode()); |
|||
firstAidRecordLog.setAnswer(codeAndAnswer.getAnswer()); |
|||
firstAidRecordLog.setSubmitUserId(userId); |
|||
firstAidRecordLog.setSubmitUserType(param.getUserType()); |
|||
firstAidRecordLog.setOperator(userId); |
|||
firstAidRecordLogMapper.insertSelective(firstAidRecordLog); |
|||
//添加记录表,需要查找之前的记录,删除后重新添加
|
|||
FirstAidRecordExample recordExample = new FirstAidRecordExample(); |
|||
recordExample.createCriteria().andFirstAidIdEqualTo(firstAidId).andQuestionCodeEqualTo(codeAndAnswer.getQuestionCode()); |
|||
List<FirstAidRecord> firstAidRecords = firstAidRecordMapper.selectByExample(recordExample); |
|||
if (CollectionUtil.isNotEmpty(firstAidRecords)) { |
|||
firstAidRecords.forEach(firstAidRecord -> { |
|||
firstAidRecord.setRecStatus((byte) 2); |
|||
firstAidRecordMapper.updateByPrimaryKeySelective(firstAidRecord); |
|||
}); |
|||
} |
|||
//添加
|
|||
FirstAidRecord firstAidRecord = new FirstAidRecord(); |
|||
firstAidRecord.setId(snowflake.nextId()); |
|||
firstAidRecord.setFirstAidId(firstAidId); |
|||
firstAidRecord.setQuestionCode(codeAndAnswer.getQuestionCode()); |
|||
firstAidRecord.setAnswer(codeAndAnswer.getAnswer()); |
|||
firstAidRecord.setSubmitUserType(param.getUserType()); |
|||
firstAidRecord.setSubmitUserId(userId); |
|||
firstAidRecord.setOperator(userId); |
|||
firstAidRecordMapper.insertSelective(firstAidRecord); |
|||
//根据code查找字典表
|
|||
CodeDictionariesExample dictionariesExample = new CodeDictionariesExample(); |
|||
dictionariesExample.createCriteria().andQuestionCodeEqualTo(codeAndAnswer.getQuestionCode()); |
|||
List<CodeDictionaries> dictionariesList = dictionariesMapper.selectByExample(dictionariesExample); |
|||
dictionariesList.forEach(codeDictionaries -> { |
|||
if(StrUtil.isNotEmpty(codeDictionaries.getTaskName())){ |
|||
//如果关联的任务名称不为空,查找任务id,然后修改任务真实开始时间
|
|||
long now = System.currentTimeMillis(); |
|||
Long subTaskId = sTaskDao.getNowTask(codeDictionaries.getTaskName(),param.getProjectId(),now); |
|||
if(ObjectUtil.isNotNull(subTaskId)){ |
|||
//TODO 如果分解id不为空,调用修改任务真实时间的接口
|
|||
taskService.updateTaskStartTime(subTaskId, (byte) 0); |
|||
} |
|||
} |
|||
}); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
|
|||
|
|||
@Override |
|||
public PatientVo.QueryAidRecord queryAidRecord(PatientDto.QueryAidRecord param, Long userId) { |
|||
PatientVo.QueryAidRecord queryAidRecord = new PatientVo.QueryAidRecord(); |
|||
Map<String,String> recordMap = new HashMap<>(); |
|||
//查询记录信息
|
|||
List<PatientVo.AidRecord> aidRecords = patientDao.queryRecordByAidId(param.getProjectId(),param.getCodeList()); |
|||
if(CollectionUtil.isNotEmpty(aidRecords)){ |
|||
//封装进map内
|
|||
aidRecords.forEach(aidRecord -> { |
|||
recordMap.put(aidRecord.getQuestionCode(),aidRecord.getAnswer()); |
|||
}); |
|||
queryAidRecord.setId(aidRecords.get(0).getFirstAidId()); |
|||
} |
|||
queryAidRecord.setRecord(recordMap); |
|||
return queryAidRecord; |
|||
} |
|||
|
|||
@Override |
|||
public PatientVo.QuerySubordinate querySubordinate(PatientDto.QuerySubordinate param, Long userId) { |
|||
return patientDao.querySubordinate(param.getProjectId(),param.getCode()); |
|||
} |
|||
|
|||
@Override |
|||
public PatientVo.TimeSandClock timeSandClock(StatisticalDto.QueryStep param, Long userId) { |
|||
PatientVo.TimeSandClock timeSandClock = new PatientVo.TimeSandClock(); |
|||
//查询急救id
|
|||
FirstAidExample firstAidExample = new FirstAidExample(); |
|||
firstAidExample.createCriteria().andProjectIdEqualTo(param.getProjectId()); |
|||
List<FirstAid> firstAids = firstAidDao.selectByExample(firstAidExample); |
|||
if(CollectionUtil.isEmpty(firstAids)){ |
|||
throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); |
|||
} |
|||
FirstAid firstAid = firstAids.get(0); |
|||
//查询发病时间
|
|||
timeSandClock.setDiseaseTime(firstAid.getTime()); |
|||
//查询分诊时间
|
|||
PatientVo.AidRecord aidRecordTriage = patientDao.getRecordByAidIdAndCode(firstAid.getId(), Constant.QuestionCode.FZSJ); |
|||
if(ObjectUtil.isNotNull(aidRecordTriage) && StrUtil.isNotEmpty(aidRecordTriage.getAnswer())){ |
|||
timeSandClock.setTriageTime(Long.valueOf(aidRecordTriage.getAnswer())); |
|||
} |
|||
//查询静脉溶栓时间
|
|||
PatientVo.AidRecord aidRecordThrombosis = patientDao.getRecordByAidIdAndCode(firstAid.getId(), Constant.QuestionCode.JMRSSJ); |
|||
if(ObjectUtil.isNotNull(aidRecordThrombosis) && StrUtil.isNotEmpty(aidRecordThrombosis.getAnswer())){ |
|||
timeSandClock.setThrombosisTime(Long.valueOf(aidRecordThrombosis.getAnswer())); |
|||
} |
|||
//查询ct时间
|
|||
PatientVo.AidRecord aidRecordCt = patientDao.getRecordByAidIdAndCode(firstAid.getId(), Constant.QuestionCode.CT_START); |
|||
if(ObjectUtil.isNotNull(aidRecordCt) && StrUtil.isNotEmpty(aidRecordCt.getAnswer())) { |
|||
timeSandClock.setCtTime(Long.valueOf(aidRecordCt.getAnswer())); |
|||
} |
|||
return timeSandClock; |
|||
} |
|||
|
|||
|
|||
@Override |
|||
public PatientVo.QueryAidRecordN queryAidRecordN(PatientDto.QueryAidRecord param, Long userId) { |
|||
PatientVo.QueryAidRecordN queryAidRecord = new PatientVo.QueryAidRecordN(); |
|||
Map<String,List<String>> recordMap = new HashMap<>(); |
|||
//查询记录信息
|
|||
List<PatientVo.AidRecord> aidRecords = patientDao.queryRecordByAidId(param.getProjectId(),param.getCodeList()); |
|||
if(CollectionUtil.isNotEmpty(aidRecords)){ |
|||
//封装进map内
|
|||
aidRecords.forEach(aidRecord -> { |
|||
if(ObjectUtil.isNull(recordMap.get(aidRecord.getQuestionCode()))){ |
|||
List<String> stringList = new ArrayList<>(); |
|||
stringList.add(aidRecord.getAnswer()); |
|||
recordMap.put(aidRecord.getQuestionCode(),stringList); |
|||
}else { |
|||
recordMap.get(aidRecord.getQuestionCode()).add(aidRecord.getAnswer()); |
|||
} |
|||
}); |
|||
queryAidRecord.setId(aidRecords.get(0).getFirstAidId()); |
|||
} |
|||
queryAidRecord.setRecord(recordMap); |
|||
return queryAidRecord; |
|||
} |
|||
|
|||
@Override |
|||
public void saveAidRecordN(PatientDto.SaveAidRecordN param, Long userId) { |
|||
//验证急救信息
|
|||
Long firstAidId = firstAidDao.getIdByProjectId(param.getProjectId()); |
|||
if(ObjectUtil.isNull(firstAidId)){ |
|||
throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); |
|||
} |
|||
|
|||
if(CollectionUtil.isNotEmpty(param.getCodeAndAnswerList())){ |
|||
//遍历传入的code
|
|||
param.getCodeAndAnswerList().forEach(codeAndAnswer -> { |
|||
if(StrUtil.isNotEmpty(codeAndAnswer.getQuestionCode())) { |
|||
//添加记录表,需要查找之前的记录,删除后重新添加
|
|||
FirstAidRecordExample recordExample = new FirstAidRecordExample(); |
|||
recordExample.createCriteria().andFirstAidIdEqualTo(firstAidId).andQuestionCodeEqualTo(codeAndAnswer.getQuestionCode()); |
|||
List<FirstAidRecord> firstAidRecords = firstAidRecordMapper.selectByExample(recordExample); |
|||
if (CollectionUtil.isNotEmpty(firstAidRecords)) { |
|||
firstAidRecords.forEach(firstAidRecord -> { |
|||
firstAidRecord.setRecStatus((byte) 2); |
|||
firstAidRecordMapper.updateByPrimaryKeySelective(firstAidRecord); |
|||
}); |
|||
} |
|||
//判断答案是否为空
|
|||
if(CollectionUtil.isNotEmpty(codeAndAnswer.getAnswer())){ |
|||
//循环答案
|
|||
codeAndAnswer.getAnswer().forEach(answer -> { |
|||
saveRecord(param.getUserType(), userId, firstAidId, codeAndAnswer.getQuestionCode(), answer,param.getProjectId()); |
|||
}); |
|||
}else { |
|||
saveRecord(param.getUserType(), userId, firstAidId, codeAndAnswer.getQuestionCode(), "",param.getProjectId()); |
|||
} |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
|
|||
private void saveRecord(byte userType, Long userId, Long firstAidId, String code, String answer,Long projectId) { |
|||
//添加日志表,不管数据是否重复
|
|||
FirstAidRecordLog firstAidRecordLog = new FirstAidRecordLog(); |
|||
firstAidRecordLog.setId(snowflake.nextId()); |
|||
firstAidRecordLog.setFirstAidId(firstAidId); |
|||
firstAidRecordLog.setQuestionCode(code); |
|||
firstAidRecordLog.setAnswer(answer); |
|||
firstAidRecordLog.setSubmitUserId(userId); |
|||
firstAidRecordLog.setSubmitUserType(userType); |
|||
firstAidRecordLog.setOperator(userId); |
|||
firstAidRecordLogMapper.insertSelective(firstAidRecordLog); |
|||
//添加
|
|||
FirstAidRecord firstAidRecord = new FirstAidRecord(); |
|||
firstAidRecord.setId(snowflake.nextId()); |
|||
firstAidRecord.setFirstAidId(firstAidId); |
|||
firstAidRecord.setQuestionCode(code); |
|||
firstAidRecord.setAnswer(answer); |
|||
firstAidRecord.setSubmitUserType(userType); |
|||
firstAidRecord.setSubmitUserId(userId); |
|||
firstAidRecord.setOperator(userId); |
|||
firstAidRecordMapper.insertSelective(firstAidRecord); |
|||
//根据code查找字典表
|
|||
CodeDictionariesExample dictionariesExample = new CodeDictionariesExample(); |
|||
dictionariesExample.createCriteria().andQuestionCodeEqualTo(code); |
|||
List<CodeDictionaries> dictionariesList = dictionariesMapper.selectByExample(dictionariesExample); |
|||
dictionariesList.forEach(codeDictionaries -> { |
|||
if(StrUtil.isNotEmpty(codeDictionaries.getTaskName())){ |
|||
//如果关联的任务名称不为空,查找任务id,然后修改任务真实开始时间
|
|||
long now = System.currentTimeMillis(); |
|||
Long subTaskId = sTaskDao.getNowTask(codeDictionaries.getTaskName(),projectId,now); |
|||
if(ObjectUtil.isNotNull(subTaskId)){ |
|||
//TODO 如果分解id不为空,调用修改任务真实时间的接口
|
|||
taskService.updateTaskStartTime(subTaskId, (byte) 0); |
|||
} |
|||
} |
|||
}); |
|||
} |
|||
} |
@ -1,178 +0,0 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.lang.Snowflake; |
|||
import com.ccsens.carbasics.bean.dto.CarDto; |
|||
import com.ccsens.carbasics.bean.po.*; |
|||
import com.ccsens.carbasics.bean.vo.CarVo; |
|||
import com.ccsens.carbasics.persist.dao.AttendanceRecordDao; |
|||
import com.ccsens.carbasics.persist.dao.FirstAidDao; |
|||
import com.ccsens.carbasics.persist.dao.PatientWisdomCarDao; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidRecordLogMapper; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidRecordMapper; |
|||
import com.ccsens.carbasics.persist.mapper.WisdomCarMapper; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.carbasics.util.DefaultCodeError; |
|||
import com.ccsens.util.CodeError; |
|||
import com.ccsens.util.RedisUtil; |
|||
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.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author whj |
|||
* 患者平车 |
|||
*/ |
|||
|
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
|||
public class PatientWisdomCarService implements IPatientWisdomCarService { |
|||
|
|||
@Resource |
|||
private Snowflake snowflake; |
|||
@Resource |
|||
private RedisUtil redisUtil; |
|||
@Resource |
|||
private PatientWisdomCarDao patientWisdomCarDao; |
|||
@Resource |
|||
private FirstAidDao firstAidDao; |
|||
@Resource |
|||
private WisdomCarMapper wisdomCarMapper; |
|||
@Resource |
|||
private FirstAidRecordMapper firstAidRecordMapper; |
|||
@Resource |
|||
private FirstAidRecordLogMapper firstAidRecordLogMapper; |
|||
@Resource |
|||
private AttendanceRecordDao attendanceRecordDao; |
|||
|
|||
@Override |
|||
public List<CarVo.Car> query(Long userId) { |
|||
return patientWisdomCarDao.queryCar(userId); |
|||
} |
|||
|
|||
@Override |
|||
public CarVo.QueryBind queryBind(CarDto.QueryBind param, Long userId) { |
|||
return patientWisdomCarDao.queryBind(param); |
|||
} |
|||
|
|||
@Override |
|||
public CodeError.Code bind(CarDto.Bind param, Long userId) { |
|||
// 将未结束或结束时间过长的,修改成任务的开始时间
|
|||
param.setStartTime(param.getStartTime() == null || param.getStartTime() == 0 ? System.currentTimeMillis() : param.getStartTime()); |
|||
|
|||
// TODO 将开始的,尚未结束的绑定结束(大于绑定时间的,未考虑)
|
|||
patientWisdomCarDao.updateEndTime(param.getCarId(), param.getStartTime(), userId); |
|||
// 查询急救ID
|
|||
FirstAidExample aidExample = new FirstAidExample(); |
|||
aidExample.createCriteria().andProjectIdEqualTo(param.getProjectId()); |
|||
aidExample.setOrderByClause("id desc limit 1"); |
|||
List<FirstAid> firstAids = firstAidDao.selectByExample(aidExample); |
|||
if (CollectionUtil.isEmpty(firstAids)) { |
|||
return DefaultCodeError.PARAM_ERROR; |
|||
} |
|||
FirstAid aid = firstAids.get(0); |
|||
// 平车ID
|
|||
WisdomCar wisdomCar = wisdomCarMapper.selectByPrimaryKey(param.getCarId()); |
|||
if (wisdomCar == null) { |
|||
return DefaultCodeError.PARAM_ERROR; |
|||
} |
|||
// 绑定平车
|
|||
PatientWisdomCar patientWisdomCar = new PatientWisdomCar(); |
|||
patientWisdomCar.setId(snowflake.nextId()); |
|||
patientWisdomCar.setCarId(param.getCarId()); |
|||
patientWisdomCar.setFirstAidId(aid.getId()); |
|||
patientWisdomCar.setStartTime(param.getStartTime()); |
|||
patientWisdomCar.setEndTime(param.getEndTime()); |
|||
patientWisdomCar.setOperator(userId); |
|||
patientWisdomCarDao.insertSelective(patientWisdomCar); |
|||
// 删除倾角redis
|
|||
String keyX = Constant.Car.FIRST_AID + wisdomCar.getSerial() + 21; |
|||
String keyY = Constant.Car.FIRST_AID + wisdomCar.getSerial() + 22; |
|||
String keyZ = Constant.Car.FIRST_AID + wisdomCar.getSerial() + 23; |
|||
redisUtil.del(keyX,keyY,keyZ); |
|||
// TODO 将所有时间段内的平车产生的记录和到场信息修改成当前急救
|
|||
Long aidId = aid.getId(); |
|||
Long carUserId = wisdomCar.getUserId(); |
|||
Date startTime = new Date(); |
|||
startTime.setTime(param.getStartTime()); |
|||
Date endTime = null; |
|||
if (param.getEndTime() != null && param.getEndTime() > 0) { |
|||
endTime = new Date(); |
|||
endTime.setTime(param.getEndTime()); |
|||
} |
|||
updateRecord(aidId, carUserId, startTime, endTime); |
|||
updateRecordLog(aidId, carUserId, startTime, endTime); |
|||
updateAttendance(aidId, carUserId, startTime, endTime); |
|||
|
|||
return DefaultCodeError.SUCCESS; |
|||
} |
|||
|
|||
/** |
|||
* 更新平车在这段时间内产生的到场信息的急救ID |
|||
* @param aidId 急救ID |
|||
* @param carUserId 平车userId |
|||
* @param startTime 开始时间 |
|||
* @param endTime 结束时间 |
|||
*/ |
|||
private void updateAttendance(Long aidId, Long carUserId, Date startTime, Date endTime) { |
|||
AttendanceRecordExample example = new AttendanceRecordExample(); |
|||
AttendanceRecordExample.Criteria criteria = example.createCriteria() |
|||
.andUserIdEqualTo(carUserId) |
|||
.andTypeEqualTo(Constant.Car.OPERATION_CAR) |
|||
.andCreatedAtGreaterThanOrEqualTo(startTime); |
|||
if (endTime != null) { |
|||
criteria.andCreatedAtLessThan(endTime); |
|||
} |
|||
AttendanceRecord record = new AttendanceRecord(); |
|||
record.setFirstAidId(aidId); |
|||
attendanceRecordDao.updateByExampleSelective(record, example); |
|||
} |
|||
|
|||
/** |
|||
* 更新平车在这段时间内产生的recordLog数据的急救ID |
|||
* @param aidId 急救ID |
|||
* @param carUserId 平车userId |
|||
* @param startTime 开始时间 |
|||
* @param endTime 结束时间 |
|||
*/ |
|||
private void updateRecordLog(Long aidId, Long carUserId, Date startTime, Date endTime) { |
|||
FirstAidRecordLogExample recordLogExample = new FirstAidRecordLogExample(); |
|||
FirstAidRecordLogExample.Criteria criteria = recordLogExample.createCriteria() |
|||
.andSubmitUserIdEqualTo(carUserId) |
|||
.andSubmitUserTypeEqualTo(Constant.Car.OPERATION_CAR) |
|||
.andCreatedAtGreaterThanOrEqualTo(startTime); |
|||
if (endTime != null) { |
|||
criteria.andCreatedAtLessThan(endTime); |
|||
} |
|||
FirstAidRecordLog recordLog = new FirstAidRecordLog(); |
|||
recordLog.setFirstAidId(aidId); |
|||
firstAidRecordLogMapper.updateByExampleSelective(recordLog, recordLogExample); |
|||
} |
|||
|
|||
/** |
|||
* 更新平车在这段时间内产生的record数据的急救ID |
|||
* @param aidId 急救ID |
|||
* @param carUserId 平车userId |
|||
* @param startTime 开始时间 |
|||
* @param endTime 结束时间 |
|||
*/ |
|||
private void updateRecord(Long aidId, Long carUserId, Date startTime, Date endTime) { |
|||
FirstAidRecordExample recordExample = new FirstAidRecordExample(); |
|||
FirstAidRecordExample.Criteria criteria = recordExample.createCriteria() |
|||
.andSubmitUserIdEqualTo(carUserId) |
|||
.andSubmitUserTypeEqualTo(Constant.Car.OPERATION_CAR) |
|||
.andCreatedAtGreaterThanOrEqualTo(startTime); |
|||
if (endTime != null) { |
|||
criteria.andCreatedAtLessThan(endTime); |
|||
} |
|||
FirstAidRecord record = new FirstAidRecord(); |
|||
record.setFirstAidId(aidId); |
|||
firstAidRecordMapper.updateByExampleSelective(record, recordExample); |
|||
} |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue