Commit 012639fb authored by 谢希宇's avatar 谢希宇

create entity

parent d86fb068
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
<result column="description" property="description"/> <result column="description" property="description"/>
<result column="create_by" property="createBy"/> <result column="create_by" property="createBy"/>
<result column="update_by" property="updateBy"/> <result column="update_by" property="updateBy"/>
<result column="price" property="price"/>
</resultMap> </resultMap>
<sql id="sqlWhere"> <sql id="sqlWhere">
...@@ -53,8 +54,7 @@ ...@@ -53,8 +54,7 @@
</sql> </sql>
<sql id="sqlColumns"> <sql id="sqlColumns">
id id,
,
drug_erp_no, drug_erp_no,
otc, otc,
drug_unit, drug_unit,
...@@ -73,7 +73,8 @@ ...@@ -73,7 +73,8 @@
update_time, update_time,
description, description,
create_by, create_by,
update_by update_by,
price
</sql> </sql>
...@@ -104,7 +105,8 @@ ...@@ -104,7 +105,8 @@
now(), now(),
#{description, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR},
#{createBy, jdbcType=BIGINT}, #{createBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT} #{updateBy, jdbcType=BIGINT},
#{price, jdbcType=VARCHAR}
) )
</insert> </insert>
...@@ -190,6 +192,9 @@ ...@@ -190,6 +192,9 @@
<if test="updateBy != null"> <if test="updateBy != null">
update_by = #{updateBy, jdbcType=BIGINT}, update_by = #{updateBy, jdbcType=BIGINT},
</if> </if>
<if test="price != null">
price = #{price, jdbcType=VARCHAR},
</if>
</set> </set>
where id=#{id,jdbcType=BIGINT} where id=#{id,jdbcType=BIGINT}
</update> </update>
......
...@@ -38,6 +38,9 @@ public class PreDrugs implements Serializable { ...@@ -38,6 +38,9 @@ public class PreDrugs implements Serializable {
/* 数量 */ /* 数量 */
@ExportConfig(value = "数量", width = 100, showLevel = 1) @ExportConfig(value = "数量", width = 100, showLevel = 1)
private Long drugNum; private Long drugNum;
/* 金额 */
@ExportConfig(value = "金额", width = 100, showLevel = 1 )
private String price;
/* 药品生产厂家 */ /* 药品生产厂家 */
@ExportConfig(value = "药品生产厂家", width = 100, showLevel = 1) @ExportConfig(value = "药品生产厂家", width = 100, showLevel = 1)
private String drugCompay; private String drugCompay;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment