赵文轩
2024-06-21 9469c22c850711a0dd09e394ce3113726e5fc5bb
增加字段
2个文件已修改
12 ■■■■■ 已修改文件
ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjPackage.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-hosp/src/main/resources/mapper/TjPackageMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjPackage.java
@@ -195,6 +195,12 @@
    /** his套餐 */
    private String hisPacId;
    /**
     * 体检类别
     */
    @ApiModelProperty("体检类别")
    private String tjCategory;
    @Override
    public String toString() {
ltkj-hosp/src/main/resources/mapper/TjPackageMapper.xml
@@ -27,6 +27,7 @@
        <result property="categoryId" column="category_id"/>
        <result property="hisPacBm" column="his_pac_bm"/>
        <result property="pym" column="pym"/>
        <result property="tjCategory" column="tj_category"/>
    </resultMap>
    <sql id="selectTjPackageVo">
@@ -51,7 +52,7 @@
               sale_num,
               category_id,
               his_pac_bm,
               pym
               pym,tj_category
        from tj_package
    </sql>
@@ -91,6 +92,7 @@
            <if test="counterPrice != null">counter_price,</if>
            <if test="saleNum != null">sale_num,</if>
            <if test="pym != null">pym,</if>
            <if test="tjCategory != null">tj_category,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -112,6 +114,7 @@
            <if test="counterPrice != null">#{counter_price},</if>
            <if test="saleNum != null">#{sale_num},</if>
            <if test="pym != null">#{pym},</if>
            <if test="tjCategory != null">#{tjCategory},</if>
        </trim>
    </insert>
@@ -136,6 +139,7 @@
            <if test="counterPrice != null">counter_price=#{counterPrice},</if>
            <if test="saleNum != null">sale_num=#{saleNum},</if>
            <if test="pym != null">pym=#{pym},</if>
            <if test="tjCategory != null">tj_category=#{tjCategory},</if>
        </trim>
        where pac_id = #{pacId}
    </update>