liusheng
2025-11-07 c27e4ce95a0489907ba3848851f14ac7cca1caca
代码提交
已删除1个文件
已修改4个文件
316 ■■■■ 文件已修改
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatBabyGrowthController.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/resources/application-local.yml 251 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/PatBabyGrowth.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/ExternalInfoServiceImpl.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/PatBabyGrowthMapper.xml 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatBabyGrowthController.java
@@ -1,9 +1,16 @@
package com.ruoyi.web.controller.smartor;
import java.util.Date;
import java.util.List;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.SecurityUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -32,8 +39,7 @@
@Api("婴儿成长记录")
@RestController
@RequestMapping("/smartor/growth")
public class PatBabyGrowthController extends BaseController
{
public class PatBabyGrowthController extends BaseController {
    @Autowired
    private IPatBabyGrowthService patBabyGrowthService;
@@ -43,8 +49,7 @@
    @ApiOperation("查询【请填写功能名称】列表")
    //@PreAuthorize("@ss.hasPermi('smartor:growth:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody PatBabyGrowth patBabyGrowth)
    {
    public TableDataInfo list(@RequestBody PatBabyGrowth patBabyGrowth) {
        startPage();
        List<PatBabyGrowth> list = patBabyGrowthService.selectPatBabyGrowthList(patBabyGrowth);
        return getDataTable(list);
@@ -57,8 +62,7 @@
    @ApiOperation("查询婴儿成长记录史")
    //@PreAuthorize("@ss.hasPermi('smartor:growth:list')")
    @PostMapping("/dateLine")
    public TableDataInfo dateLine(@RequestBody PatBabyGrowth patBabyGrowth)
    {
    public TableDataInfo dateLine(@RequestBody PatBabyGrowth patBabyGrowth) {
        List<PatBabyGrowth> list = patBabyGrowthService.selectPatBabyGrowthList(patBabyGrowth);
        return getDataTable(list);
    }
@@ -70,8 +74,7 @@
    //@PreAuthorize("@ss.hasPermi('smartor:growth:export')")
    @Log(title = "【导出】", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, PatBabyGrowth patBabyGrowth)
    {
    public void export(HttpServletResponse response, PatBabyGrowth patBabyGrowth) {
        List<PatBabyGrowth> list = patBabyGrowthService.selectPatBabyGrowthList(patBabyGrowth);
        ExcelUtil<PatBabyGrowth> util = new ExcelUtil<PatBabyGrowth>(PatBabyGrowth.class);
        util.exportExcel(response, list, "婴儿成长记录数据");
@@ -83,8 +86,7 @@
    @ApiOperation("获取婴儿成长记录详细信息")
    //@PreAuthorize("@ss.hasPermi('smartor:growth:query')")
    @GetMapping(value = "/getInfo/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(patBabyGrowthService.selectPatBabyGrowthById(id));
    }
@@ -95,8 +97,10 @@
    //@PreAuthorize("@ss.hasPermi('smartor:growth:add')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    public AjaxResult add(@RequestBody PatBabyGrowth patBabyGrowth)
    {
    public AjaxResult add(@RequestBody PatBabyGrowth patBabyGrowth) {
        SysUser sysUser = SecurityUtils.getLoginUser().getUser();
        patBabyGrowth.setDoctor(sysUser.getNickName());
        patBabyGrowth.setDoctorCode(sysUser.getUserName());
        return toAjax(patBabyGrowthService.insertPatBabyGrowth(patBabyGrowth));
    }
@@ -107,8 +111,9 @@
    //@PreAuthorize("@ss.hasPermi('smartor:growth:edit')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody PatBabyGrowth patBabyGrowth)
    {
    public AjaxResult edit(@RequestBody PatBabyGrowth patBabyGrowth) {
        SysUser sysUser = SecurityUtils.getLoginUser().getUser();
        patBabyGrowth.setUpdateBy(sysUser.getNickName());
        return toAjax(patBabyGrowthService.updatePatBabyGrowth(patBabyGrowth));
    }
@@ -118,9 +123,8 @@
    @ApiOperation("删除婴儿成长记录")
    //@PreAuthorize("@ss.hasPermi('smartor:growth:remove')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(patBabyGrowthService.deletePatBabyGrowthByIds(ids));
    @GetMapping("/remove/{id}")
    public AjaxResult remove(@PathVariable("id") Long id) {
        return toAjax(patBabyGrowthService.deletePatBabyGrowthById(id));
    }
}
ruoyi-admin/src/main/resources/application-local.yml
ÎļþÒÑɾ³ý
smartor/src/main/java/com/smartor/domain/PatBabyGrowth.java
@@ -1,10 +1,13 @@
package com.smartor.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
 * ã€è¯·å¡«å†™åŠŸèƒ½åç§°ã€‘å¯¹è±¡ pat_baby_growth
@@ -129,5 +132,12 @@
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String sex;
    /**
     * æ–°ç”Ÿå„¿æ•°æ®æ—¥æœŸæ—¶é—´
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date generatedTime;
}
smartor/src/main/java/com/smartor/service/impl/ExternalInfoServiceImpl.java
@@ -242,6 +242,7 @@
            patMedInhosp.setInhospno(externalInHospPatientInfo.getZyhm());
            List<PatMedInhosp> patMedInhospList = patMedInhospMapper.selectPatMedInhospList2(patMedInhosp);
            if (CollectionUtils.isNotEmpty(patMedInhospList) && patMedInhospList.size() > 0) {
                log.error("****patMedInhospList的值为:{}",patMedInhospList.get(0).getInhospid());
                continue;
            }
smartor/src/main/resources/mapper/smartor/PatBabyGrowthMapper.xml
@@ -23,12 +23,14 @@
        <result property="updateTime" column="update_time"/>
        <result property="createTime" column="create_time"/>
        <result property="sex" column="sex"/>
        <result property="generatedTime" column="generated_time"/>
    </resultMap>
    <sql id="selectPatBabyGrowthVo">
        select id,
               pat_id,
               height,
               generated_time,
               sex,
               head_cir,
               weight,
@@ -57,6 +59,9 @@
            </if>
            <if test="sex != null ">
                and sex = #{sex}
            </if>
            <if test="generatedTime != null ">
                and generated_time = #{generatedTime}
            </if>
            <if test="height != null  and height != ''">
                and height = #{height}
@@ -146,6 +151,9 @@
            </if>
            <if test="sex != null">sex,
            </if>
            <if test="generatedTime != null ">
                generated_time,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},
@@ -183,6 +191,9 @@
            <if test="createTime != null">#{createTime},
            </if>
            <if test="sex != null">#{sex},
            </if>
            <if test="generatedTime != null ">
                #{generatedTime},
            </if>
        </trim>
    </insert>
@@ -241,6 +252,9 @@
            <if test="sex != null">sex =
                #{sex},
            </if>
            <if test="generatedTime != null ">
                generated_time = #{generatedTime},
            </if>
        </trim>
        where id = #{id}
    </update>