| | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ltkj.common.enums.DataSourceType; |
| | | import com.ltkj.common.utils.bean.BeanUtils; |
| | | import com.ltkj.framework.config.MatchUtils; |
| | | import com.ltkj.framework.datasource.DynamicDataSourceContextHolder; |
| | | import com.ltkj.hosp.domain.TjReservation; |
| | |
| | | import com.ltkj.hosp.sqlDomain.LtkjMiddleHead; |
| | | import com.ltkj.hosp.sqlDomain.LtkjTjPat; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import com.sun.xml.internal.bind.v2.TODO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.DigestUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.ltkj.common.annotation.Log; |
| | | import com.ltkj.common.core.controller.BaseController; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.common.enums.BusinessType; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.common.utils.poi.ExcelUtil; |
| | | import com.ltkj.common.core.page.TableDataInfo; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | private LtkjMiddleHeadService headService; |
| | | @Resource |
| | | private LtkjMiddleDetailService middleDetailService; |
| | | @Resource |
| | | private ITjOrderService tjOrderService; |
| | | |
| | | @GetMapping("/newGetTjPat") |
| | | @ApiOperation(value = "查询his数据库返回新的数据") |
| | |
| | | extracted(customer); |
| | | return success(customer); |
| | | }else { |
| | | String cardId = tjCustomer.getCardId(); |
| | | // TODO: 2023/12/23 该处用cardid查询order表数据 |
| | | if(null !=cardId && cardId.equals(tjPatByIdCard.getFcardId())){ |
| | | String cardId = tjPatByIdCard.getFcardId(); |
| | | if(null !=cardId && !cardId.equals("0")){ |
| | | int i = tjOrderService.selectTjOrderByCardId(cardId); |
| | | if(i>0){ |
| | | return AjaxResult.error("不可重复签到"); |
| | | } |
| | | |
| | | } |
| | | tjCustomer.setReservationId(tjCustomer.getCardId()); |
| | | tjCustomer.setCardId(tjPatByIdCard.getFcardId()); |
| | | tjCustomerService.updateById(tjCustomer); |