| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ltkj.common.core.domain.entity.SysUser; |
| | | import com.ltkj.common.utils.SecurityUtils; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.service.ITjCustomerService; |
| | | import com.ltkj.hosp.service.ITjOrderService; |
| | | import com.ltkj.system.service.ISysUserService; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | private ITjOrderService orderService; |
| | | @Resource |
| | | private ITjCustomerService customerService; |
| | | @Autowired |
| | | private ISysUserService userService; |
| | | |
| | | /** |
| | | * 查询体检导检单打印记录列表 |
| | |
| | | log.info(json.toJSONString()); |
| | | |
| | | String tjNumber = json.getString("tjNumber"); |
| | | String dqdlr = json.getString("dqdlr"); |
| | | SysUser user = userService.getById(dqdlr); |
| | | |
| | | TjOrder order = orderService.getOrderByTjNum(tjNumber); |
| | | if(null !=order){ |
| | |
| | | dycs+=1; |
| | | dyjl.setDycs(dycs); |
| | | dyjl.setDysj(date); |
| | | // dyjl.setCreateBy(nickName); |
| | | dyjl.setCreateBy(user.getNickName()); |
| | | dyjl.setUpdateTime(date); |
| | | tjDjdDyjlService.updateById(dyjl); |
| | | return AjaxResult.success(); |
| | |
| | | djdDyjl.setDylx("0"); |
| | | djdDyjl.setCardId(order.getCardId()); |
| | | djdDyjl.setHzxm(customer.getCusName()); |
| | | // djdDyjl.setCreateBy(nickName); |
| | | djdDyjl.setCreateBy(user.getNickName()); |
| | | djdDyjl.setCreateTime(date); |
| | | djdDyjl.setDysj(date); |
| | | tjDjdDyjlService.save(djdDyjl); |
| | |
| | | log.info(json.toJSONString()); |
| | | |
| | | String tjNumber = json.getString("tjNumber"); |
| | | String dqdlr = json.getString("dqdlr"); |
| | | SysUser user = userService.getById(dqdlr); |
| | | |
| | | TjOrder order = orderService.getOrderByTjNum(tjNumber); |
| | | if(null !=order){ |
| | |
| | | dycs+=1; |
| | | dyjl.setDycs(dycs); |
| | | dyjl.setDysj(date); |
| | | // dyjl.setCreateBy(nickName); |
| | | dyjl.setCreateBy(user.getNickName()); |
| | | dyjl.setUpdateTime(date); |
| | | tjDjdDyjlService.updateById(dyjl); |
| | | return AjaxResult.success(); |
| | |
| | | djdDyjl.setDylx("1"); |
| | | djdDyjl.setCardId(order.getCardId()); |
| | | djdDyjl.setHzxm(customer.getCusName()); |
| | | // djdDyjl.setCreateBy(nickName); |
| | | djdDyjl.setCreateBy(user.getNickName()); |
| | | djdDyjl.setCreateTime(date); |
| | | djdDyjl.setDysj(date); |
| | | tjDjdDyjlService.save(djdDyjl); |