fix: 功能优化。

This commit is contained in:
tianyongbao
2024-10-12 10:44:27 +08:00
parent 7b6c701a7a
commit 0504ff0121
4 changed files with 49 additions and 0 deletions

View File

@@ -68,6 +68,19 @@ public class HealthDoctorRecord extends BaseEntity
@Excel(name = "人员id") @Excel(name = "人员id")
private Long personId; private Long personId;
/** 总费用 */
@ApiModelProperty(value="总费用")
@Excel(name = "总费用")
private Double totalCost;
/** 成员 */
@ApiModelProperty(value="成员")
@Excel(name = "成员")
private String partner;
/** 费用明细 */
private String costDetail;
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -85,6 +98,9 @@ public class HealthDoctorRecord extends BaseEntity
.append("visitingTime", getVisitingTime()) .append("visitingTime", getVisitingTime())
.append("prescribe", getPrescribe()) .append("prescribe", getPrescribe())
.append("personId", getPersonId()) .append("personId", getPersonId())
.append("totalCost", getTotalCost())
.append("partner", getPartner())
.append("costDetail", getCostDetail())
.toString(); .toString();
} }
} }

View File

@@ -99,6 +99,12 @@ public class HealthMedicineStockIn extends BaseEntity
@Excel(name = "总价") @Excel(name = "总价")
private Double totalPrice; private Double totalPrice;
/** 医嘱 */
private String usage;
/** 年龄体重 */
private String ageWeight;
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -121,6 +127,8 @@ public class HealthMedicineStockIn extends BaseEntity
.append("usedCount", getUsedCount()) .append("usedCount", getUsedCount())
.append("purchaseAddress", getPurchaseAddress()) .append("purchaseAddress", getPurchaseAddress())
.append("totalPrice", getTotalPrice()) .append("totalPrice", getTotalPrice())
.append("usage", getUsage())
.append("ageWeight", getAgeWeight())
.toString(); .toString();
} }
} }

View File

@@ -21,6 +21,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="personId" column="person_id" /> <result property="personId" column="person_id" />
<result property="personName" column="person_name" /> <result property="personName" column="person_name" />
<result property="healthRecordName" column="health_record_name" /> <result property="healthRecordName" column="health_record_name" />
<result property="totalCost" column="total_cost" />
<result property="partner" column="partner" />
<result property="costDetail" column="cost_detail" />
</resultMap> </resultMap>
<sql id="selectHealthDoctorRecordVo"> <sql id="selectHealthDoctorRecordVo">
@@ -39,6 +42,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.visiting_time, a.visiting_time,
a.prescribe, a.prescribe,
a.person_id, a.person_id,
a.total_cost,
a.partner,
a.cost_detail,
hp."name" as person_name , hp."name" as person_name ,
hr."name" as health_record_name hr."name" as health_record_name
from from
@@ -93,6 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="visitingTime != null">visiting_time,</if> <if test="visitingTime != null">visiting_time,</if>
<if test="prescribe != null and prescribe != ''">prescribe,</if> <if test="prescribe != null and prescribe != ''">prescribe,</if>
<if test="personId != null">person_id,</if> <if test="personId != null">person_id,</if>
<if test="totalCost != null">total_cost,</if>
<if test="partner != null">partner,</if>
<if test="costDetail != null">cost_detail,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if> <if test="id != null">#{id},</if>
@@ -109,6 +118,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="visitingTime != null">#{visitingTime},</if> <if test="visitingTime != null">#{visitingTime},</if>
<if test="prescribe != null and prescribe != ''">#{prescribe},</if> <if test="prescribe != null and prescribe != ''">#{prescribe},</if>
<if test="personId != null">#{personId},</if> <if test="personId != null">#{personId},</if>
<if test="totalCost != null">#{totalCost},</if>
<if test="partner != null">#{partner},</if>
<if test="costDetail != null">#{costDetail},</if>
</trim> </trim>
</insert> </insert>
@@ -128,6 +140,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="visitingTime != null">visiting_time = #{visitingTime},</if> <if test="visitingTime != null">visiting_time = #{visitingTime},</if>
<if test="prescribe != null and prescribe != ''">prescribe = #{prescribe},</if> <if test="prescribe != null and prescribe != ''">prescribe = #{prescribe},</if>
<if test="personId != null">person_id = #{personId},</if> <if test="personId != null">person_id = #{personId},</if>
<if test="totalCost != null">total_cost = #{totalCost},</if>
<if test="partner != null">partner = #{partner},</if>
<if test="costDetail != null">cost_detail = #{costDetail},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>

View File

@@ -25,6 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="purchaseAddress" column="purchase_address" /> <result property="purchaseAddress" column="purchase_address" />
<result property="totalPrice" column="total_price" /> <result property="totalPrice" column="total_price" />
<result property="medicineName" column="medicine_name" /> <result property="medicineName" column="medicine_name" />
<result property="usage" column="usage" />
<result property="ageWeight" column="age_weight" />
</resultMap> </resultMap>
<sql id="selectHealthMedicineStockInVo"> <sql id="selectHealthMedicineStockInVo">
@@ -32,6 +34,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.id, a.id,
a.medicine_id, a.medicine_id,
a.quantity, a.quantity,
a.usage,
a.age_weight,
a.production_date, a.production_date,
a.expiring_date, a.expiring_date,
a.purchase_date, a.purchase_date,
@@ -104,6 +108,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="usedCount != null">used_count,</if> <if test="usedCount != null">used_count,</if>
<if test="purchaseAddress != null">purchase_address,</if> <if test="purchaseAddress != null">purchase_address,</if>
<if test="totalPrice != null">total_price,</if> <if test="totalPrice != null">total_price,</if>
<if test="usage != null">usage,</if>
<if test="ageWeight != null">age_weight,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if> <if test="id != null">#{id},</if>
@@ -125,6 +131,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="usedCount != null">#{usedCount},</if> <if test="usedCount != null">#{usedCount},</if>
<if test="purchaseAddress != null">#{purchaseAddress},</if> <if test="purchaseAddress != null">#{purchaseAddress},</if>
<if test="totalPrice != null">#{totalPrice},</if> <if test="totalPrice != null">#{totalPrice},</if>
<if test="usage != null">#{usage},</if>
<if test="ageWeight != null">#{ageWeight},</if>
</trim> </trim>
</insert> </insert>
@@ -149,6 +157,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="usedCount != null">used_count = #{usedCount},</if> <if test="usedCount != null">used_count = #{usedCount},</if>
<if test="purchaseAddress != null">purchase_address = #{purchaseAddress},</if> <if test="purchaseAddress != null">purchase_address = #{purchaseAddress},</if>
<if test="totalPrice != null">total_price = #{totalPrice},</if> <if test="totalPrice != null">total_price = #{totalPrice},</if>
<if test="usage != null">usage = #{usage},</if>
<if test="ageWeight != null">age_weight = #{ageWeight},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>