| | |
| | | import com.ltkj.framework.config.MatchUtils; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.domain.TjOrderRemark; |
| | | import com.ltkj.hosp.service.ITjOrderDetailService; |
| | | import com.ltkj.hosp.service.ITjOrderRemarkService; |
| | | import com.ltkj.hosp.service.ITjOrderService; |
| | | import com.sun.javafx.tk.TKClipboard; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.ltkj.common.core.controller.BaseController; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/hosp/inspection") |
| | | @Api(tags = "弃检记录接口") |
| | | public class TjDiscardInspectionController extends BaseController { |
| | | @Autowired |
| | | private ITjDiscardInspectionService tjDiscardInspectionService; |
| | |
| | | private ITjOrderService tjOrderService; |
| | | @Resource |
| | | private ITjOrderDetailService tjOrderDetailService; |
| | | @Resource |
| | | private ITjOrderRemarkService remarkService; |
| | | |
| | | /** |
| | | * 查询弃检列表 |
| | |
| | | } |
| | | return success("撤回成功"); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/csqijianhuifujiekou") |
| | | @ApiOperation(value = "初审页面弃检恢复接口") |
| | | @Transactional |
| | | public AjaxResult chushenyemianqijianjiekou(@RequestParam String tjNUm, @RequestParam String proId) { |
| | | TjOrder order = tjOrderService.getOrderByTjNum(tjNUm); |
| | | if(null !=order && null !=order.getReportTime()){ |
| | | return AjaxResult.error("该人员报告已生成,不可恢复!"); |
| | | } |
| | | LambdaQueryWrapper<TjOrderRemark> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjOrderRemark::getTjNumber, tjNUm); |
| | | wq.eq(TjOrderRemark::getProId, proId); |
| | | TjOrderRemark remark = remarkService.getOne(wq); |
| | | remark.setType(0); |
| | | remarkService.updateById(remark); |
| | | return AjaxResult.success("操作成功!"); |
| | | } |
| | | } |