药品库对象

This commit is contained in:
zhangheng 2024-05-17 14:38:06 +08:00
parent 75323b55ee
commit 516277aa80
4 changed files with 15 additions and 15 deletions

View File

@ -64,7 +64,7 @@ public class BaseDrugInfoController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('system:baseDrug:add')") @PreAuthorize("@ss.hasPermi('system:baseDrug:add')")
@Log(title = "药品库", businessType = BusinessType.INSERT) @Log(title = "药品库", businessType = BusinessType.INSERT)
@PostMapping @PostMapping("/add")
public AjaxResult add(@RequestBody BaseDrugInfo baseDrugInfo) { public AjaxResult add(@RequestBody BaseDrugInfo baseDrugInfo) {
return toAjax(baseDrugInfoService.insertBaseDrugInfo(baseDrugInfo)); return toAjax(baseDrugInfoService.insertBaseDrugInfo(baseDrugInfo));
} }
@ -74,7 +74,7 @@ public class BaseDrugInfoController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('system:baseDrug:edit')") @PreAuthorize("@ss.hasPermi('system:baseDrug:edit')")
@Log(title = "药品库", businessType = BusinessType.UPDATE) @Log(title = "药品库", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping("/edit")
public AjaxResult edit(@RequestBody BaseDrugInfo baseDrugInfo) { public AjaxResult edit(@RequestBody BaseDrugInfo baseDrugInfo) {
return toAjax(baseDrugInfoService.updateBaseDrugInfo(baseDrugInfo)); return toAjax(baseDrugInfoService.updateBaseDrugInfo(baseDrugInfo));
} }

View File

@ -64,7 +64,7 @@ public class BaseNursingInfoController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('system:baseNursing:add')") @PreAuthorize("@ss.hasPermi('system:baseNursing:add')")
@Log(title = "护理知识库", businessType = BusinessType.INSERT) @Log(title = "护理知识库", businessType = BusinessType.INSERT)
@PostMapping @PostMapping("/add")
public AjaxResult add(@RequestBody BaseNursingInfo baseNursingInfo) { public AjaxResult add(@RequestBody BaseNursingInfo baseNursingInfo) {
return toAjax(baseNursingInfoService.insertBaseNursingInfo(baseNursingInfo)); return toAjax(baseNursingInfoService.insertBaseNursingInfo(baseNursingInfo));
} }
@ -74,7 +74,7 @@ public class BaseNursingInfoController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('system:baseNursing:edit')") @PreAuthorize("@ss.hasPermi('system:baseNursing:edit')")
@Log(title = "护理知识库", businessType = BusinessType.UPDATE) @Log(title = "护理知识库", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping("/edit")
public AjaxResult edit(@RequestBody BaseNursingInfo baseNursingInfo) { public AjaxResult edit(@RequestBody BaseNursingInfo baseNursingInfo) {
return toAjax(baseNursingInfoService.updateBaseNursingInfo(baseNursingInfo)); return toAjax(baseNursingInfoService.updateBaseNursingInfo(baseNursingInfo));
} }

View File

@ -62,8 +62,8 @@ public class BaseNursingInfo extends BaseEntity {
* $column.columnComment * $column.columnComment
*/ */
@ApiModelProperty(value = "${comment}") @ApiModelProperty(value = "${comment}")
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") @Excel(name = "居家安全指导")
private String familySecurity; private String homeSafeguard;
@Override @Override
@ -74,7 +74,7 @@ public class BaseNursingInfo extends BaseEntity {
.append("tobaccoWine", getTobaccoWine()) .append("tobaccoWine", getTobaccoWine())
.append("sleep", getSleep()) .append("sleep", getSleep())
.append("emotion", getEmotion()) .append("emotion", getEmotion())
.append("familySecurity", getFamilySecurity()) .append("homeSafeguard", getHomeSafeguard())
.append("createTime", getCreateTime()) .append("createTime", getCreateTime())
.append("createBy", getCreateBy()) .append("createBy", getCreateBy())
.append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())

View File

@ -10,7 +10,7 @@
<result property="tobaccoWine" column="tobacco_wine"/> <result property="tobaccoWine" column="tobacco_wine"/>
<result property="sleep" column="sleep"/> <result property="sleep" column="sleep"/>
<result property="emotion" column="emotion"/> <result property="emotion" column="emotion"/>
<result property="familySecurity" column="family_security"/> <result property="homeSafeguard" column="home_safeguard"/>
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/> <result property="createBy" column="create_by"/>
<result property="updateBy" column="update_by"/> <result property="updateBy" column="update_by"/>
@ -18,7 +18,7 @@
</resultMap> </resultMap>
<sql id="selectBaseNursingInfoVo"> <sql id="selectBaseNursingInfoVo">
select id, nursing_name, tobacco_wine, sleep, emotion, family_security, create_time, create_by, update_by, update_time from base_nursing_info select id, nursing_name, tobacco_wine, sleep, emotion, home_safeguard, create_time, create_by, update_by, update_time from base_nursing_info
</sql> </sql>
<select id="selectBaseNursingInfoList" parameterType="BaseNursingInfo" resultMap="BaseNursingInfoResult"> <select id="selectBaseNursingInfoList" parameterType="BaseNursingInfo" resultMap="BaseNursingInfoResult">
@ -36,8 +36,8 @@
<if test="emotion != null and emotion != ''"> <if test="emotion != null and emotion != ''">
and emotion = #{emotion} and emotion = #{emotion}
</if> </if>
<if test="familySecurity != null and familySecurity != ''"> <if test="homeSafeguard != null and homeSafeguard != ''">
and family_security = #{familySecurity} and home_safeguard = #{homeSafeguard}
</if> </if>
</where> </where>
</select> </select>
@ -60,7 +60,7 @@
</if> </if>
<if test="emotion != null">emotion, <if test="emotion != null">emotion,
</if> </if>
<if test="familySecurity != null">family_security, <if test="homeSafeguard != null">home_safeguard,
</if> </if>
<if test="createTime != null">create_time, <if test="createTime != null">create_time,
</if> </if>
@ -80,7 +80,7 @@
</if> </if>
<if test="emotion != null">#{emotion}, <if test="emotion != null">#{emotion},
</if> </if>
<if test="familySecurity != null">#{familySecurity}, <if test="homeSafeguard != null">#{homeSafeguard},
</if> </if>
<if test="createTime != null">#{createTime}, <if test="createTime != null">#{createTime},
</if> </if>
@ -108,8 +108,8 @@
<if test="emotion != null">emotion = <if test="emotion != null">emotion =
#{emotion}, #{emotion},
</if> </if>
<if test="familySecurity != null">family_security = <if test="homeSafeguard != null">home_safeguard =
#{familySecurity}, #{homeSafeguard},
</if> </if>
<if test="createTime != null">create_time = <if test="createTime != null">create_time =
#{createTime}, #{createTime},