| | |
| | | String lis_tmh_prefix = configService.selectConfigByKey("make_lis_tmh_prefix"); |
| | | String isRequestLisAllzx = configService.selectConfigByKey("jcx_is_requestLisAllzx"); |
| | | if (mergeRequest.equals("Y")){ |
| | | if (isRequestLisAllzx != null && isRequestLisAllzx.equals("Y")){ |
| | | log.info("进入团体根据小项标本合并发送方法"); |
| | | LambdaQueryWrapper<TjSampling> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(TjSampling::getTjNum,tjOrder.getTjNumber()); |
| | | List<TjSampling> list = tjSamplingService.list(wrapper); |
| | | if (isRequestLisAllzx != null && isRequestLisAllzx.equals("Y")){ |
| | | log.info("进入团体根据小项标本合并发送方法"); |
| | | if(null !=list && !list.isEmpty()){ |
| | | List<String> strings = list.stream().map(TjSampling::getProId).collect(Collectors.toList()); |
| | | LambdaQueryWrapper<TjProject> wrapper1 = new LambdaQueryWrapper<>(); |
| | |
| | | |
| | | }else{ |
| | | try { |
| | | LambdaQueryWrapper<TjSampling> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(TjSampling::getTjNum,tjOrder.getTjNumber()); |
| | | List<TjSampling> list = tjSamplingService.list(wrapper); |
| | | // LambdaQueryWrapper<TjSampling> wrapper = new LambdaQueryWrapper<>(); |
| | | // wrapper.eq(TjSampling::getTjNum,tjOrder.getTjNumber()); |
| | | // List<TjSampling> list = tjSamplingService.list(wrapper); |
| | | log.info("采样数据 ->{}",JSONUtil.toJsonStr(list)); |
| | | if (!list.isEmpty()) { |
| | | Map<String, List<TjSampling>> listMap = list.stream().collect(Collectors.groupingBy(TjSampling::getSpecimenTypeCode)); |
| | |
| | | }*/ |
| | | |
| | | public AjaxResult hisPDFNew2(TjOrder tjOrder, TjCustomer customer, TjReportTemplate tjReportTemplate, TjReportTemplate zongJianYiShiQianMing) throws Exception { |
| | | try { |
| | | String s1 = sysConfigService.selectConfigByKey("tjreport_font_size_second_page_info"); |
| | | String s2 = sysConfigService.selectConfigByKey("tjreport_font_size_second_page_title"); |
| | | String s3 = sysConfigService.selectConfigByKey("tjreport_font_size_result_title"); |
| | |
| | | |
| | | |
| | | int xmXh = 1; |
| | | Map<Long, List<TjOrderDetail>> collect = orderDetails.stream().collect(Collectors.groupingBy(TjOrderDetail::getProId)); |
| | | // Map<Long, List<TjOrderDetail>> collect = orderDetails.stream().collect(Collectors.groupingBy(TjOrderDetail::getProId)); |
| | | LambdaQueryWrapper<TjOrderYcxm> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjOrderYcxm::getTjh, tjOrder.getTjNumber()); |
| | | List<TjOrderYcxm> ycxms = ycxmService.list(wq); |
| | |
| | | String outputFileName1 = customer.getCusId() + tjOrder.getTjNumber() + customer.getCusName() + "_报告.pdf"; |
| | | savePDFFile(outputFileName1, tjOrder, customer, finalOutput); |
| | | return AjaxResult.success(); |
| | | } catch (Exception e) { |
| | | log.error(String.valueOf(e)); |
| | | throw new Exception(e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | * @throws DocumentException |
| | | */ |
| | | private void makeHisJianYanTable(Document document1, HashMap<String, Object> map, DictHosp dictHosp, String colorStr) throws DocumentException { |
| | | try { |
| | | if (!map.isEmpty()) { |
| | | String[] titles = new String[]{"体检项目", "体检结果", "提示", "单位", "参考范围"}; |
| | | float[] titlesWidth = new float[]{280, 100, 40, 100, 120}; |
| | |
| | | } |
| | | } |
| | | } |
| | | } catch (DocumentException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | * @throws DocumentException |
| | | */ |
| | | private void notHuaYanTable(Document document1, Map<TjOrderRemark, List<TjPdfVO>> printReport, DictHosp dictHosp, String colorStr, boolean isPacs) throws DocumentException { |
| | | try { |
| | | List<TjReportSpecialProject> tjReportSpecialProjects = tjReportSpecialProjectService.list(); |
| | | for (Map.Entry<TjOrderRemark, List<TjPdfVO>> entry : printReport.entrySet()) { |
| | | LambdaQueryWrapper<TjProject> wqqq = new LambdaQueryWrapper<>(); |
| | |
| | | paragraph.setLeading(5f); |
| | | document1.add(ppp); |
| | | } |
| | | if (StrUtil.isNotBlank(value.get(0).getTs())) { |
| | | pp = PdfUtils.setParagraph(remarkFonts, "检查提示:"+value.get(0).getTs().replaceAll("\n","")); |
| | | document1.add(pp); |
| | | } |
| | | |
| | | // ppp = new Paragraph(value.get(0).getTs(), remarkFonts); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // paragraph.setLeading(5f); |
| | |
| | | } |
| | | } |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (DocumentException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | public HashMap<String, Object> makeHisJianYan(TjOrder tjOrder, TjCustomer customer) { |
| | | try { |
| | | LambdaQueryWrapper<LtkjHysqd> ltkjHysqdLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | ltkjHysqdLambdaQueryWrapper.eq(LtkjHysqd::getTjh, tjOrder.getCardId()); |
| | | List<LtkjHysqd> list = ltkjHysqdService.list(ltkjHysqdLambdaQueryWrapper); |
| | |
| | | } |
| | | } |
| | | return data; |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param customer |
| | | */ |
| | | private void notHuaYanData(String tjNumber, Map<TjOrderRemark, List<TjPdfVO>> printReport, TjOrder one, TjCustomer customer) { |
| | | try { |
| | | // LambdaQueryWrapper<TjOrderRemark> wqq = new LambdaQueryWrapper<>(); |
| | | // wqq.eq(TjOrderRemark::getTjNumber, tjNumber); |
| | | // wqq.ne(TjOrderRemark::getDeptId, "241"); |
| | |
| | | } |
| | | printReport.put(entry.getKey(), tjPdfVOS); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | private void pacsJianChaData(String tjNumber, Map<TjOrderRemark, List<TjPdfVO>> printReport, TjOrder one, TjCustomer customer) { |
| | |
| | | // wqq.in(TjOrderRemark::getDeptId, "269", "270", "253", "254", "255", "257"); |
| | | // wqq.notIn(TjOrderRemark::getProId, projectService.getNneedReprotProId()); |
| | | // List<TjOrderRemark> tjOrderRemarks = tjOrderRemarkService.list(wqq); |
| | | try { |
| | | List<TjOrderRemark> tjOrderRemarks = tjOrderRemarkService.pacsJianChaData(tjNumber); |
| | | for (TjOrderRemark tjOrderRemark : tjOrderRemarks) { |
| | | printReport.put(tjOrderRemark, null); |
| | |
| | | } |
| | | printReport.put(entry.getKey(), tjPdfVOS); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.transaction.interceptor.TransactionAspectSupport; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | |
| | | List<TbTransition> detailList = transitionService.getBlTbTransitionListByCusId(customer.getCusIdcard(), cardId, jxbz); |
| | | // Boolean useLisAndPacsRegister = lisApiMethod.isUseLisAndPacsRegister(order); |
| | | List<OutpinmedicapplyDetilsDto> outpinmedicapplyDetilsDtos = new ArrayList<>(); |
| | | String isRequestLisAllzx = configService.selectConfigByKey("jcx_is_requestLisAllzx"); |
| | | |
| | | if (isTuanTiPiao) { |
| | | |
| | | // 检查申请 |
| | | pacsReg(order, customer, jianChaProjects); |
| | | LambdaQueryWrapper<TjSampling> wrapper = new LambdaQueryWrapper<>(); |
| | |
| | | wrapper.eq(TjSampling::getJxbz, jxbz); |
| | | List<TjSampling> list = tjSamplingService.list(wrapper); |
| | | log.info("采样数据 ->{}", JSONUtil.toJsonStr(list)); |
| | | |
| | | if (isRequestLisAllzx != null && isRequestLisAllzx.equalsIgnoreCase("Y")){ |
| | | log.info("补录项目进入团体根据小项标本合并发送方法"); |
| | | |
| | | if(null !=list && !list.isEmpty()){ |
| | | List<String> strings = list.stream().map(TjSampling::getProId).collect(Collectors.toList()); |
| | | LambdaQueryWrapper<TjProject> wrapper1 = new LambdaQueryWrapper<>(); |
| | | wrapper1.in(TjProject::getProParentId,strings); |
| | | wrapper1.eq(TjProject::getProStatus,0); |
| | | wrapper1.groupBy(TjProject::getProId); |
| | | List<TjProject> tjProjectList = projectService.list(wrapper1); |
| | | if(null != tjProjectList && !tjProjectList.isEmpty()){ |
| | | Map<String, List<TjProject>> listMap = tjProjectList.stream() |
| | | .collect(Collectors.groupingBy(p->p.getSpecimenType()+"_"+p.getYb())); |
| | | |
| | | log.info("分组后 ->{}",JSONUtil.toJsonStr(listMap)); |
| | | boolean save = lisApiMethod.save(listMap, order, customer); |
| | | if (!save) { |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return AjaxResult.error("处理失败"); |
| | | } |
| | | for (TjSampling tjSampling : list) { |
| | | tjSampling.setIsSignFor("0"); |
| | | } |
| | | tjSamplingService.updateBatchById(list); |
| | | } |
| | | } |
| | | |
| | | |
| | | }else { |
| | | if (!list.isEmpty()) { |
| | | // Map<String, List<TjSampling>> listMap = list.stream().collect(Collectors.groupingBy(TjSampling::getSpecimenTypeCode)); |
| | | Map<String, List<TjSampling>> listMap = list.stream() |
| | |
| | | if (!confirmed) |
| | | return AjaxResult.error("处理失败"); |
| | | } |
| | | } |
| | | |
| | | } else { |
| | | List<TjOutpinmedicXm> outpinmedicXms = tjOutpinmedicXmService.list(); |
| | | //检验申请 |
New file |
| | |
| | | package com.ltkj.web.controller.system; |
| | | |
| | | import com.ltkj.common.annotation.Log; |
| | | import com.ltkj.common.core.controller.BaseController; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.common.core.page.TableDataInfo; |
| | | import com.ltkj.common.enums.BusinessType; |
| | | import com.ltkj.common.utils.poi.ExcelUtil; |
| | | import com.ltkj.hosp.domain.LtkjHtxxb; |
| | | import com.ltkj.hosp.service.ILtkjHtxxbService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 合同信息Controller |
| | | * |
| | | * @author ltkj |
| | | * @date 2025-02-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/htxxb") |
| | | @Api(tags = "LT合同信息Controller") |
| | | public class LtkjHtxxbController extends BaseController { |
| | | @Autowired |
| | | private ILtkjHtxxbService ltkjHtxxbService; |
| | | |
| | | /** |
| | | * 查询合同信息列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:htxxb:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询合同信息列表") |
| | | public TableDataInfo list(LtkjHtxxb ltkjHtxxb) { |
| | | startPage(); |
| | | List<LtkjHtxxb> list = ltkjHtxxbService.selectLtkjHtxxbList(ltkjHtxxb); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出合同信息列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:htxxb:export')") |
| | | @Log(title = "合同信息", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出合同信息列表") |
| | | public void export(HttpServletResponse response, LtkjHtxxb ltkjHtxxb) { |
| | | List<LtkjHtxxb> list = ltkjHtxxbService.selectLtkjHtxxbList(ltkjHtxxb); |
| | | ExcelUtil<LtkjHtxxb> util = new ExcelUtil<LtkjHtxxb>(LtkjHtxxb.class); |
| | | util.exportExcel(response, list, "合同信息数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取合同信息详细信息 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:htxxb:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取合同信息详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ltkjHtxxbService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增合同信息 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:htxxb:add')") |
| | | @Log(title = "合同信息", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增合同信息") |
| | | public AjaxResult add(@RequestBody LtkjHtxxb ltkjHtxxb) { |
| | | return toAjax(ltkjHtxxbService.save(ltkjHtxxb)); |
| | | } |
| | | |
| | | /** |
| | | * 修改合同信息 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:htxxb:edit')") |
| | | @Log(title = "合同信息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改合同信息") |
| | | public AjaxResult edit(@RequestBody LtkjHtxxb ltkjHtxxb) { |
| | | return toAjax(ltkjHtxxbService.updateById(ltkjHtxxb)); |
| | | } |
| | | |
| | | /** |
| | | * 删除合同信息 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:htxxb:remove')") |
| | | @Log(title = "合同信息", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除合同信息") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(ltkjHtxxbService.deleteLtkjHtxxbByIds(ids)); |
| | | } |
| | | } |
| | |
| | | public TableDataInfo list(SysNotice notice) { |
| | | startPage(); |
| | | List<SysNotice> list = noticeService.selectNoticeList(notice); |
| | | for (SysNotice sysNotice : list) { |
| | | LambdaQueryWrapper<SysNoticeUser> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(SysNoticeUser::getNoticeId, sysNotice.getNoticeId()); |
| | | List<SysNoticeUser> sysNoticeUsers = sysNoticeUserService.list(wq); |
| | | if(null != sysNoticeUsers && !sysNoticeUsers.isEmpty()){ |
| | | List<String> longList = sysNoticeUsers.stream().map(i -> i.getUserId().toString()).collect(Collectors.toList()); |
| | | sysNotice.setUserIds(longList); |
| | | } |
| | | } |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | order.setIdType(tjCustomer.getIdType()); |
| | | order.setAgeUnit(tjCustomer.getAgeUnit()); |
| | | order.setTjCount(String.valueOf(tjCustomer.getCusNumber())); |
| | | if (null != tjCustomer.getCompName()) { |
| | | order.setDictCompName(tjCustomer.getCompName()); |
| | | } else { |
| | | String firmId = order.getFirmId(); |
| | | if (firmId != null && null != iDictCompService.getById(String.valueOf(order.getFirmId()))) { |
| | | order.setDictCompName(iDictCompService.getById(String.valueOf(order.getFirmId())).getCnName()); |
| | | } |
| | | String firmName = order.getFirmName(); |
| | | if (StringUtil.isNotBlank(firmName)) { |
| | | order.setDictCompName(firmName); |
| | | } |
| | | if (null != order.getPacId()) { |
| | | if (null != tjPackageService.getById(order.getPacId())) { |
| | |
| | | |
| | | ajaxResult = hisPDFUtil.hisPDFNew2(tjOrder, tjCustomer, reportTemplate,zongJianYiShiQianMing); |
| | | } catch (Exception e) { |
| | | // e.printStackTrace(); |
| | | // log.error(String.valueOf(e)); |
| | | e.printStackTrace(); |
| | | log.error(String.valueOf(e)); |
| | | throw new Exception(e); |
| | | } |
| | | if (!ajaxResult.get("code").toString().equals("200")) { |
New file |
| | |
| | | package com.ltkj.hosp.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import com.ltkj.common.annotation.Excel; |
| | | import com.ltkj.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 合同信息对象 ltkj_htxxb |
| | | * |
| | | * @author ltkj |
| | | * @date 2025-02-24 |
| | | */ |
| | | @Data |
| | | @ApiModel |
| | | public class LtkjHtxxb extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 合同类型 |
| | | */ |
| | | @Excel(name = "合同类型") |
| | | @ApiModelProperty(value = "合同类型") |
| | | private String htlx; |
| | | |
| | | /** |
| | | * 合同负责人 |
| | | */ |
| | | @Excel(name = "合同负责人") |
| | | @ApiModelProperty(value = "合同负责人") |
| | | private String htfzr; |
| | | |
| | | /** |
| | | * 合同日期起始 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "合同日期起始", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "合同日期起始") |
| | | private Date htrqqz; |
| | | |
| | | /** |
| | | * 合同日期终止 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "合同日期终止", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "合同日期终止") |
| | | private Date htrqzz; |
| | | |
| | | /** |
| | | * 联系人姓名 |
| | | */ |
| | | @Excel(name = "联系人姓名") |
| | | @ApiModelProperty(value = "联系人姓名") |
| | | private String lxrxm; |
| | | |
| | | /** |
| | | * 联系人电话 |
| | | */ |
| | | @Excel(name = "联系人电话") |
| | | @ApiModelProperty(value = "联系人电话") |
| | | private String lxrdh; |
| | | |
| | | /** |
| | | * 合同金额 |
| | | */ |
| | | @Excel(name = "合同金额") |
| | | @ApiModelProperty(value = "合同金额") |
| | | private BigDecimal htje; |
| | | |
| | | /** |
| | | * 续签标志 |
| | | */ |
| | | @Excel(name = "续签标志") |
| | | @ApiModelProperty(value = "续签标志") |
| | | private String xqbz; |
| | | |
| | | /** |
| | | * 原合同序号 |
| | | */ |
| | | @Excel(name = "原合同序号") |
| | | @ApiModelProperty(value = "原合同序号") |
| | | private String yhtxh; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @Excel(name = "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String bz; |
| | | |
| | | /** |
| | | * 企业名称 |
| | | */ |
| | | @Excel(name = "企业名称") |
| | | @ApiModelProperty(value = "企业名称") |
| | | private String qymc; |
| | | |
| | | /** |
| | | * 合同编号 |
| | | */ |
| | | @Excel(name = "合同编号") |
| | | @ApiModelProperty(value = "合同编号") |
| | | private String htbh; |
| | | |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setHtlx(String htlx) { |
| | | this.htlx = htlx; |
| | | } |
| | | |
| | | public String getHtlx() { |
| | | return htlx; |
| | | } |
| | | |
| | | public void setHtfzr(String htfzr) { |
| | | this.htfzr = htfzr; |
| | | } |
| | | |
| | | public String getHtfzr() { |
| | | return htfzr; |
| | | } |
| | | |
| | | public void setHtrqqz(Date htrqqz) { |
| | | this.htrqqz = htrqqz; |
| | | } |
| | | |
| | | public Date getHtrqqz() { |
| | | return htrqqz; |
| | | } |
| | | |
| | | public void setHtrqzz(Date htrqzz) { |
| | | this.htrqzz = htrqzz; |
| | | } |
| | | |
| | | public Date getHtrqzz() { |
| | | return htrqzz; |
| | | } |
| | | |
| | | public void setLxrxm(String lxrxm) { |
| | | this.lxrxm = lxrxm; |
| | | } |
| | | |
| | | public String getLxrxm() { |
| | | return lxrxm; |
| | | } |
| | | |
| | | public void setLxrdh(String lxrdh) { |
| | | this.lxrdh = lxrdh; |
| | | } |
| | | |
| | | public String getLxrdh() { |
| | | return lxrdh; |
| | | } |
| | | |
| | | public void setHtje(BigDecimal htje) { |
| | | this.htje = htje; |
| | | } |
| | | |
| | | public BigDecimal getHtje() { |
| | | return htje; |
| | | } |
| | | |
| | | public void setXqbz(String xqbz) { |
| | | this.xqbz = xqbz; |
| | | } |
| | | |
| | | public String getXqbz() { |
| | | return xqbz; |
| | | } |
| | | |
| | | public void setYhtxh(String yhtxh) { |
| | | this.yhtxh = yhtxh; |
| | | } |
| | | |
| | | public String getYhtxh() { |
| | | return yhtxh; |
| | | } |
| | | |
| | | public void setBz(String bz) { |
| | | this.bz = bz; |
| | | } |
| | | |
| | | public String getBz() { |
| | | return bz; |
| | | } |
| | | |
| | | public void setQymc(String qymc) { |
| | | this.qymc = qymc; |
| | | } |
| | | |
| | | public String getQymc() { |
| | | return qymc; |
| | | } |
| | | |
| | | public void setHtbh(String htbh) { |
| | | this.htbh = htbh; |
| | | } |
| | | |
| | | public String getHtbh() { |
| | | return htbh; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("htlx", getHtlx()) |
| | | .append("htfzr", getHtfzr()) |
| | | .append("htrqqz", getHtrqqz()) |
| | | .append("htrqzz", getHtrqzz()) |
| | | .append("lxrxm", getLxrxm()) |
| | | .append("lxrdh", getLxrdh()) |
| | | .append("htje", getHtje()) |
| | | .append("xqbz", getXqbz()) |
| | | .append("yhtxh", getYhtxh()) |
| | | .append("bz", getBz()) |
| | | .append("qymc", getQymc()) |
| | | .append("htbh", getHtbh()) |
| | | .append("remark", getRemark()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("deleted", getDeleted()) |
| | | .append("createId", getCreateId()) |
| | | .append("updateId", getUpdateId()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ltkj.hosp.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ltkj.hosp.domain.LtkjHtxxb; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * 合同信息Mapper接口 |
| | | * |
| | | * @author ltkj |
| | | * @date 2025-02-24 |
| | | */ |
| | | @Mapper |
| | | public interface LtkjHtxxbMapper extends BaseMapper<LtkjHtxxb> { |
| | | /** |
| | | * 查询合同信息 |
| | | * |
| | | * @param id 合同信息主键 |
| | | * @return 合同信息 |
| | | */ |
| | | public LtkjHtxxb selectLtkjHtxxbById(Long id); |
| | | |
| | | /** |
| | | * 查询合同信息列表 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 合同信息集合 |
| | | */ |
| | | public List<LtkjHtxxb> selectLtkjHtxxbList(LtkjHtxxb ltkjHtxxb); |
| | | |
| | | /** |
| | | * 新增合同信息 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertLtkjHtxxb(LtkjHtxxb ltkjHtxxb); |
| | | |
| | | /** |
| | | * 修改合同信息 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateLtkjHtxxb(LtkjHtxxb ltkjHtxxb); |
| | | |
| | | /** |
| | | * 删除合同信息 |
| | | * |
| | | * @param id 合同信息主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteLtkjHtxxbById(Long id); |
| | | |
| | | /** |
| | | * 批量删除合同信息 |
| | | * |
| | | * @param ids 需要删除的数据主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteLtkjHtxxbByIds(Long[] ids); |
| | | } |
New file |
| | |
| | | package com.ltkj.hosp.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ltkj.hosp.domain.LtkjHtxxb; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * 合同信息Service接口 |
| | | * |
| | | * @author ltkj |
| | | * @date 2025-02-24 |
| | | */ |
| | | public interface ILtkjHtxxbService extends IService<LtkjHtxxb> { |
| | | /** |
| | | * 查询合同信息 |
| | | * |
| | | * @param id 合同信息主键 |
| | | * @return 合同信息 |
| | | */ |
| | | public LtkjHtxxb selectLtkjHtxxbById(Long id); |
| | | |
| | | /** |
| | | * 查询合同信息列表 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 合同信息集合 |
| | | */ |
| | | public List<LtkjHtxxb> selectLtkjHtxxbList(LtkjHtxxb ltkjHtxxb); |
| | | |
| | | /** |
| | | * 新增合同信息 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertLtkjHtxxb(LtkjHtxxb ltkjHtxxb); |
| | | |
| | | /** |
| | | * 修改合同信息 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateLtkjHtxxb(LtkjHtxxb ltkjHtxxb); |
| | | |
| | | /** |
| | | * 批量删除合同信息 |
| | | * |
| | | * @param ids 需要删除的合同信息主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteLtkjHtxxbByIds(Long[] ids); |
| | | |
| | | /** |
| | | * 删除合同信息信息 |
| | | * |
| | | * @param id 合同信息主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteLtkjHtxxbById(Long id); |
| | | } |
New file |
| | |
| | | package com.ltkj.hosp.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ltkj.common.utils.DateUtils; |
| | | import com.ltkj.hosp.domain.LtkjHtxxb; |
| | | import com.ltkj.hosp.mapper.LtkjHtxxbMapper; |
| | | import com.ltkj.hosp.service.ILtkjHtxxbService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 合同信息Service业务层处理 |
| | | * |
| | | * @author ltkj |
| | | * @date 2025-02-24 |
| | | */ |
| | | @Service |
| | | public class LtkjHtxxbServiceImpl extends ServiceImpl<LtkjHtxxbMapper,LtkjHtxxb> implements ILtkjHtxxbService { |
| | | @Autowired |
| | | private LtkjHtxxbMapper ltkjHtxxbMapper; |
| | | |
| | | /** |
| | | * 查询合同信息 |
| | | * |
| | | * @param id 合同信息主键 |
| | | * @return 合同信息 |
| | | */ |
| | | @Override |
| | | public LtkjHtxxb selectLtkjHtxxbById(Long id) { |
| | | return ltkjHtxxbMapper.selectLtkjHtxxbById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询合同信息列表 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 合同信息 |
| | | */ |
| | | @Override |
| | | public List<LtkjHtxxb> selectLtkjHtxxbList(LtkjHtxxb ltkjHtxxb) { |
| | | return ltkjHtxxbMapper.selectLtkjHtxxbList(ltkjHtxxb); |
| | | } |
| | | |
| | | /** |
| | | * 新增合同信息 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertLtkjHtxxb(LtkjHtxxb ltkjHtxxb) { |
| | | ltkjHtxxb.setCreateTime(DateUtils.getNowDate()); |
| | | return ltkjHtxxbMapper.insertLtkjHtxxb(ltkjHtxxb); |
| | | } |
| | | |
| | | /** |
| | | * 修改合同信息 |
| | | * |
| | | * @param ltkjHtxxb 合同信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateLtkjHtxxb(LtkjHtxxb ltkjHtxxb) { |
| | | ltkjHtxxb.setUpdateTime(DateUtils.getNowDate()); |
| | | return ltkjHtxxbMapper.updateLtkjHtxxb(ltkjHtxxb); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除合同信息 |
| | | * |
| | | * @param ids 需要删除的合同信息主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteLtkjHtxxbByIds(Long[] ids) { |
| | | return ltkjHtxxbMapper.deleteLtkjHtxxbByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除合同信息信息 |
| | | * |
| | | * @param id 合同信息主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteLtkjHtxxbById(Long id) { |
| | | return ltkjHtxxbMapper.deleteLtkjHtxxbById(id); |
| | | } |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ltkj.hosp.mapper.LtkjHtxxbMapper"> |
| | | |
| | | <resultMap type="LtkjHtxxb" id="LtkjHtxxbResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="htlx" column="htlx"/> |
| | | <result property="htfzr" column="htfzr"/> |
| | | <result property="htrqqz" column="htrqqz"/> |
| | | <result property="htrqzz" column="htrqzz"/> |
| | | <result property="lxrxm" column="lxrxm"/> |
| | | <result property="lxrdh" column="lxrdh"/> |
| | | <result property="htje" column="htje"/> |
| | | <result property="xqbz" column="xqbz"/> |
| | | <result property="yhtxh" column="yhtxh"/> |
| | | <result property="bz" column="bz"/> |
| | | <result property="qymc" column="qymc"/> |
| | | <result property="htbh" column="htbh"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="createId" column="create_id"/> |
| | | <result property="updateId" column="update_id"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectLtkjHtxxbVo"> |
| | | select id, htlx, htfzr, htrqqz, htrqzz, lxrxm, lxrdh, htje, xqbz, yhtxh, bz, qymc, htbh, remark, create_by, create_time, update_by, update_time, deleted, create_id, update_id |
| | | from ltkj_htxxb |
| | | </sql> |
| | | |
| | | <select id="selectLtkjHtxxbList" parameterType="LtkjHtxxb" resultMap="LtkjHtxxbResult"> |
| | | <include refid="selectLtkjHtxxbVo"/> |
| | | <where> |
| | | <if test="htlx != null and htlx != ''"> |
| | | and htlx = #{htlx} |
| | | </if> |
| | | <if test="htfzr != null and htfzr != ''"> |
| | | and htfzr = #{htfzr} |
| | | </if> |
| | | <if test="htrqqz != null "> |
| | | and htrqqz = #{htrqqz} |
| | | </if> |
| | | <if test="htrqzz != null "> |
| | | and htrqzz = #{htrqzz} |
| | | </if> |
| | | <if test="lxrxm != null and lxrxm != ''"> |
| | | and lxrxm = #{lxrxm} |
| | | </if> |
| | | <if test="lxrdh != null and lxrdh != ''"> |
| | | and lxrdh = #{lxrdh} |
| | | </if> |
| | | <if test="htje != null "> |
| | | and htje = #{htje} |
| | | </if> |
| | | <if test="xqbz != null and xqbz != ''"> |
| | | and xqbz = #{xqbz} |
| | | </if> |
| | | <if test="yhtxh != null and yhtxh != ''"> |
| | | and yhtxh = #{yhtxh} |
| | | </if> |
| | | <if test="bz != null and bz != ''"> |
| | | and bz = #{bz} |
| | | </if> |
| | | <if test="qymc != null and qymc != ''"> |
| | | and qymc = #{qymc} |
| | | </if> |
| | | <if test="htbh != null and htbh != ''"> |
| | | and htbh = #{htbh} |
| | | </if> |
| | | <if test="deleted != null "> |
| | | and deleted = #{deleted} |
| | | </if> |
| | | <if test="createId != null and createId != ''"> |
| | | and create_id = #{createId} |
| | | </if> |
| | | <if test="updateId != null and updateId != ''"> |
| | | and update_id = #{updateId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectLtkjHtxxbById" parameterType="Long" |
| | | resultMap="LtkjHtxxbResult"> |
| | | <include refid="selectLtkjHtxxbVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertLtkjHtxxb" parameterType="LtkjHtxxb" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into ltkj_htxxb |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="htlx != null">htlx, |
| | | </if> |
| | | <if test="htfzr != null">htfzr, |
| | | </if> |
| | | <if test="htrqqz != null">htrqqz, |
| | | </if> |
| | | <if test="htrqzz != null">htrqzz, |
| | | </if> |
| | | <if test="lxrxm != null">lxrxm, |
| | | </if> |
| | | <if test="lxrdh != null">lxrdh, |
| | | </if> |
| | | <if test="htje != null">htje, |
| | | </if> |
| | | <if test="xqbz != null">xqbz, |
| | | </if> |
| | | <if test="yhtxh != null">yhtxh, |
| | | </if> |
| | | <if test="bz != null">bz, |
| | | </if> |
| | | <if test="qymc != null">qymc, |
| | | </if> |
| | | <if test="htbh != null">htbh, |
| | | </if> |
| | | <if test="remark != null">remark, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="deleted != null">deleted, |
| | | </if> |
| | | <if test="createId != null">create_id, |
| | | </if> |
| | | <if test="updateId != null">update_id, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="htlx != null">#{htlx}, |
| | | </if> |
| | | <if test="htfzr != null">#{htfzr}, |
| | | </if> |
| | | <if test="htrqqz != null">#{htrqqz}, |
| | | </if> |
| | | <if test="htrqzz != null">#{htrqzz}, |
| | | </if> |
| | | <if test="lxrxm != null">#{lxrxm}, |
| | | </if> |
| | | <if test="lxrdh != null">#{lxrdh}, |
| | | </if> |
| | | <if test="htje != null">#{htje}, |
| | | </if> |
| | | <if test="xqbz != null">#{xqbz}, |
| | | </if> |
| | | <if test="yhtxh != null">#{yhtxh}, |
| | | </if> |
| | | <if test="bz != null">#{bz}, |
| | | </if> |
| | | <if test="qymc != null">#{qymc}, |
| | | </if> |
| | | <if test="htbh != null">#{htbh}, |
| | | </if> |
| | | <if test="remark != null">#{remark}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="deleted != null">#{deleted}, |
| | | </if> |
| | | <if test="createId != null">#{createId}, |
| | | </if> |
| | | <if test="updateId != null">#{updateId}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateLtkjHtxxb" parameterType="LtkjHtxxb"> |
| | | update ltkj_htxxb |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="htlx != null">htlx = |
| | | #{htlx}, |
| | | </if> |
| | | <if test="htfzr != null">htfzr = |
| | | #{htfzr}, |
| | | </if> |
| | | <if test="htrqqz != null">htrqqz = |
| | | #{htrqqz}, |
| | | </if> |
| | | <if test="htrqzz != null">htrqzz = |
| | | #{htrqzz}, |
| | | </if> |
| | | <if test="lxrxm != null">lxrxm = |
| | | #{lxrxm}, |
| | | </if> |
| | | <if test="lxrdh != null">lxrdh = |
| | | #{lxrdh}, |
| | | </if> |
| | | <if test="htje != null">htje = |
| | | #{htje}, |
| | | </if> |
| | | <if test="xqbz != null">xqbz = |
| | | #{xqbz}, |
| | | </if> |
| | | <if test="yhtxh != null">yhtxh = |
| | | #{yhtxh}, |
| | | </if> |
| | | <if test="bz != null">bz = |
| | | #{bz}, |
| | | </if> |
| | | <if test="qymc != null">qymc = |
| | | #{qymc}, |
| | | </if> |
| | | <if test="htbh != null">htbh = |
| | | #{htbh}, |
| | | </if> |
| | | <if test="remark != null">remark = |
| | | #{remark}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="deleted != null">deleted = |
| | | #{deleted}, |
| | | </if> |
| | | <if test="createId != null">create_id = |
| | | #{createId}, |
| | | </if> |
| | | <if test="updateId != null">update_id = |
| | | #{updateId}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteLtkjHtxxbById" parameterType="Long"> |
| | | delete |
| | | from ltkj_htxxb where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteLtkjHtxxbByIds" parameterType="String"> |
| | | delete from ltkj_htxxb where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | remark |
| | | remark, |
| | | dept_id |
| | | |
| | | from sys_notice |
| | | </sql> |
| | | |