diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/GyzjTz.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/GyzjTz.java index 469da5a..fad3626 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/GyzjTz.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/GyzjTz.java @@ -1,5 +1,6 @@ package com.hxhq.business.domain; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.hxhq.common.core.domain.MpBaseEntity; @@ -57,12 +58,35 @@ public class GyzjTz extends MpBaseEntity /** 签名意义-英文 */ private String qmyyEn; + /** 表单id */ + private Long bdId; + + /** 表单名称 */ + @TableField(exist = false) + private String bdMc; + /** 操作量 */ private String czl; /** 操作量单位 */ private String czldw; + public String getBdMc() { + return bdMc; + } + + public void setBdMc(String bdMc) { + this.bdMc = bdMc; + } + + public Long getBdId() { + return bdId; + } + + public void setBdId(Long bdId) { + this.bdId = bdId; + } + public String getLqrMcEn() { return lqrMcEn; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/MjyTz.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/MjyTz.java index 46dea03..4ccf2d2 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/MjyTz.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/MjyTz.java @@ -1,5 +1,6 @@ package com.hxhq.business.domain; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.hxhq.common.core.domain.MpBaseEntity; @@ -57,12 +58,35 @@ public class MjyTz extends MpBaseEntity /** 签名意义英文 */ private String qmyyEn; + /** 表单id */ + private Long bdId; + + /** 表单名称 */ + @TableField(exist = false) + private String bdMc; + /** 操作量 */ private String czl; /** 操作量单位 */ private String czldw; + public String getBdMc() { + return bdMc; + } + + public void setBdMc(String bdMc) { + this.bdMc = bdMc; + } + + public Long getBdId() { + return bdId; + } + + public void setBdId(Long bdId) { + this.bdId = bdId; + } + public String getLqrMcEn() { return lqrMcEn; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/GyzjTzMapper.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/GyzjTzMapper.java index b8db374..4c76bbc 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/GyzjTzMapper.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/GyzjTzMapper.java @@ -1,7 +1,13 @@ package com.hxhq.business.mapper; +import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.hxhq.business.domain.GyzjTz; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hxhq.business.domain.MjyTz; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + /** * 给药制剂-台账Mapper接口 * @@ -10,5 +16,10 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; */ public interface GyzjTzMapper extends BaseMapper { - + /** + * 查询列表 + * @param queryWrapper + * @return + */ + List queryList(@Param("ew") Wrapper queryWrapper); } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/MjyTzMapper.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/MjyTzMapper.java index f6de08b..32bf3c2 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/MjyTzMapper.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/MjyTzMapper.java @@ -1,7 +1,14 @@ package com.hxhq.business.mapper; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.hxhq.business.domain.MjyFfjl; import com.hxhq.business.domain.MjyTz; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hxhq.business.dto.mjy.FfjlListDto; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + /** * 麻精药-台账Mapper接口 * @@ -10,5 +17,10 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; */ public interface MjyTzMapper extends BaseMapper { - + /** + * 查询列表 + * @param queryWrapper + * @return + */ + List queryList(@Param("ew") Wrapper queryWrapper); } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjTzServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjTzServiceImpl.java index 829aac1..7e92e49 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjTzServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjTzServiceImpl.java @@ -37,7 +37,7 @@ public class GyzjTzServiceImpl extends ServiceImpl impleme } queryWrapper.eq("gyzj_id",gyzjTz.getGyzjId()); queryWrapper.orderByDesc("id"); - return this.list(queryWrapper); + return baseMapper.queryList(queryWrapper); } /** diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyTzServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyTzServiceImpl.java index 5b1f466..e180c96 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyTzServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyTzServiceImpl.java @@ -36,7 +36,7 @@ public class MjyTzServiceImpl extends ServiceImpl implements } queryWrapper.eq("mjy_id", mjyTz.getMjyId()); queryWrapper.orderByDesc("id"); - return this.list(queryWrapper); + return baseMapper.queryList(queryWrapper); } /** diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/GyzjJcnrUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/GyzjJcnrUtil.java index e19d1db..a7d5f42 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/GyzjJcnrUtil.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/GyzjJcnrUtil.java @@ -97,6 +97,7 @@ public class GyzjJcnrUtil { mapLang.put("存储","Storage"); mapLang.put("取出","Take Out"); + mapLang.put("表单名称","Preset Name"); mapLang.put("锁定发放记录","锁定发放记录"); mapLang.put("解锁发放记录","解锁发放记录"); mapLang.put("给药制剂入库","给药制剂入库"); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/MjyJcnrUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/MjyJcnrUtil.java index db47002..97792c2 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/MjyJcnrUtil.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/MjyJcnrUtil.java @@ -93,6 +93,7 @@ public class MjyJcnrUtil { mapLang.put("存储","Storage"); mapLang.put("取出","Take Out"); + mapLang.put("表单名称","Preset Name"); mapLang.put("锁定发放记录","锁定发放记录"); mapLang.put("解锁发放记录","解锁发放记录"); mapLang.put("麻精药入库","麻精药入库"); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Dosage.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Dosage.java index 0243025..086993f 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Dosage.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Dosage.java @@ -109,13 +109,14 @@ public class Dosage { Font headerFont = new Font(bfChinese, 8, Font.NORMAL); Font contentFont = new Font(bfChinese, 8, Font.NORMAL); // 8. 创建表格 - PdfPTable table = new PdfPTable(7); + PdfPTable table = new PdfPTable(8); table.setWidthPercentage(100); String[] headers = { "en".equals(lang) ? GyzjJcnrUtil.getEn("使用人") : "使用人", "en".equals(lang) ? GyzjJcnrUtil.getEn("领取/归还人") : "领取/归还人", "en".equals(lang) ? GyzjJcnrUtil.getEn("发放/接收人") : "发放/接收人", "en".equals(lang) ? GyzjJcnrUtil.getEn("操作类型") : "操作类型", + "en".equals(lang) ? GyzjJcnrUtil.getEn("表单名称") : "表单名称", "en".equals(lang) ? GyzjJcnrUtil.getEn("操作量") : "操作量", "en".equals(lang) ? GyzjJcnrUtil.getEn("备注/原因") : "备注/原因", "en".equals(lang) ? GyzjJcnrUtil.getEn("操作时间") : "操作时间" @@ -139,6 +140,7 @@ public class Dosage { table.addCell(PdfBaseUtil.createCell(StringUtils.isNoneBlank(gyzjTz.getLqrMc()) ? gyzjTz.getLqrMc() : "" + (StringUtils.isNoneBlank(gyzjTz.getGhrMc()) ? gyzjTz.getGhrMc() : ""), contentFont)); table.addCell(PdfBaseUtil.createCell(StringUtils.isNoneBlank(gyzjTz.getFfrMc()) ? gyzjTz.getFfrMc() : "" + (StringUtils.isNoneBlank(gyzjTz.getJsrMc()) ? gyzjTz.getJsrMc() : ""), contentFont)); table.addCell(PdfBaseUtil.createCell(gyzjTz.getQmyy(), contentFont)); + table.addCell(PdfBaseUtil.createCell(gyzjTz.getBdMc(), contentFont)); table.addCell(PdfBaseUtil.createCell(gyzjTz.getCzl() + gyzjTz.getCzldw(), contentFont)); table.addCell(PdfBaseUtil.createCell(gyzjTz.getRemark(), contentFont)); table.addCell(PdfBaseUtil.createCell(sdf.format(gyzjTz.getCreateTime()), contentFont)); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Drug.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Drug.java index 69812e5..bbf0e3c 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Drug.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Drug.java @@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.hxhq.business.domain.*; import com.hxhq.business.dto.mjy.DetailDto; import com.hxhq.business.enums.zykgl.ZjztEnum; +import com.hxhq.business.utils.GyzjJcnrUtil; import com.hxhq.business.utils.MjyJcnrUtil; import com.hxhq.business.utils.pdf.PdfBaseUtil; import com.hxhq.common.core.utils.StringUtils; @@ -109,13 +110,14 @@ public class Drug { Font headerFont = new Font(bfChinese, 8, Font.NORMAL); Font contentFont = new Font(bfChinese, 8, Font.NORMAL); // 8. 创建表格 - PdfPTable table = new PdfPTable(7); + PdfPTable table = new PdfPTable(8); table.setWidthPercentage(100); String[] headers = { "en".equals(lang) ? MjyJcnrUtil.getEn("使用人") : "使用人", "en".equals(lang) ? MjyJcnrUtil.getEn("领取/归还人") : "领取/归还人", "en".equals(lang) ? MjyJcnrUtil.getEn("发放/接收人") : "发放/接收人", "en".equals(lang) ? MjyJcnrUtil.getEn("操作类型") : "操作类型", + "en".equals(lang) ? GyzjJcnrUtil.getEn("表单名称") : "表单名称", "en".equals(lang) ? MjyJcnrUtil.getEn("操作量") : "操作量", "en".equals(lang) ? MjyJcnrUtil.getEn("备注/原因") : "备注/原因", "en".equals(lang) ? MjyJcnrUtil.getEn("操作时间") : "操作时间" @@ -139,6 +141,7 @@ public class Drug { table.addCell(PdfBaseUtil.createCell(StringUtils.isNoneBlank(mjyTz.getLqrMc()) ? mjyTz.getLqrMc() : "" + (StringUtils.isNoneBlank(mjyTz.getGhrMc()) ? mjyTz.getGhrMc() : ""), contentFont)); table.addCell(PdfBaseUtil.createCell(StringUtils.isNoneBlank(mjyTz.getFfrMc()) ? mjyTz.getFfrMc() : "" + (StringUtils.isNoneBlank(mjyTz.getJsrMc()) ? mjyTz.getJsrMc() : ""), contentFont)); table.addCell(PdfBaseUtil.createCell(mjyTz.getQmyy(), contentFont)); + table.addCell(PdfBaseUtil.createCell(mjyTz.getBdMc(), contentFont)); table.addCell(PdfBaseUtil.createCell(mjyTz.getCzl() + mjyTz.getCzldw(), contentFont)); table.addCell(PdfBaseUtil.createCell(mjyTz.getRemark(), contentFont)); table.addCell(PdfBaseUtil.createCell(sdf.format(mjyTz.getCreateTime()), contentFont)); diff --git a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjTzMapper.xml b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjTzMapper.xml index 44c8a06..34f81e2 100644 --- a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjTzMapper.xml +++ b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjTzMapper.xml @@ -3,4 +3,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> + \ No newline at end of file diff --git a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/MjyTzMapper.xml b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/MjyTzMapper.xml index e341dc4..0b9f327 100644 --- a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/MjyTzMapper.xml +++ b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/MjyTzMapper.xml @@ -3,4 +3,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> + \ No newline at end of file