药品库对象

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

View File

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

View File

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

View File

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