| | |
| | | import com.ltkj.common.utils.bean.BeanUtils; |
| | | import com.ltkj.framework.config.MatchUtils; |
| | | import com.ltkj.hosp.domain.TjReservation; |
| | | import com.ltkj.hosp.mapper.TestMapper; |
| | | import com.ltkj.hosp.service.ITjReservationService; |
| | | import com.ltkj.hosp.sqlDomain.LtkjTjPat; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | @Resource |
| | | private ITjReservationService tjReservationService; |
| | | |
| | | @Resource |
| | | private ISysConfigService sysConfigService; |
| | | |
| | | @Resource |
| | | private TestMapper testMapper; |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | return AjaxResult.error("身份证号码错误"); |
| | | } |
| | | } |
| | | //根据配置调取存储过程 将临时表数据存入预约表2023.12.12 |
| | | final String getInfoFromSqlData = sysConfigService.selectConfigByKey("getInfoFromSqlData"); |
| | | if ("Y".equals(getInfoFromSqlData)){ |
| | | // LtkjTjPat tjPatByIdCard = testMapper.getTjPatByIdCard(cusIdcard); |
| | | testMapper.getTjPatByCusId(cusIdcard); |
| | | } |
| | | //end====2023.12.12 |
| | | LambdaQueryWrapper<TjReservation> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjReservation::getIdCard, cusIdcard); |
| | | wq.eq(TjReservation::getIsExpire, 2); |
| | |
| | | tjCustomer1.setAgeUnit(tjReservation.getAgeUnit()); |
| | | tjCustomer1.setCareer(tjReservation.getCareer()); |
| | | |
| | | |
| | | tjCustomerService.updateById(tjCustomer1); |
| | | tjCustomer1.setTeamNo(tjReservation.getTeamNo()); |
| | | tjCustomer1.setCompId(tjReservation.getCompanyId()); |
| | | tjCustomer1.setReservationId(tjReservation.getId()); |
| | | tjCustomer1.setDiscount(tjReservation.getDiscount()); |
| | | tjCustomer1.setGroupingId(tjReservation.getGroupingId()); |
| | | |
| | | |
| | | return success(tjCustomer1); |
| | | } |
| | | TjCustomer tjCustomer = new TjCustomer(); |
| | |
| | | tjCustomer.setAge(tjReservation.getAge()); |
| | | tjCustomer.setAgeUnit(tjReservation.getAgeUnit()); |
| | | tjCustomer.setCareer(tjReservation.getCareer()); |
| | | |
| | | tjCustomer.setDwPhone(tjReservation.getDwPhone()); |
| | | tjCustomer.setCardId(tjReservation.getCardId()); |
| | | tjCustomer.setIndexCard(tjReservation.getIndexCard()); |
| | | |
| | | //截取密码自动生成set进去 |
| | | String substring = cusIdcard.substring(cusIdcard.length() - 6); |
| | |
| | | /** |
| | | * 查询客户信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:customer:list')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:customer:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查看客户列表") |
| | | public TableDataInfo list(TjCustomer tjCustomer) { |