Compare commits
2 Commits
e822fc5c54
...
b88c7fc95a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b88c7fc95a | ||
![]() |
959ad7e4c3 |
@ -0,0 +1,104 @@
|
|||||||
|
package com.zhyc.module.produce.pregnancy.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
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;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.zhyc.common.annotation.Log;
|
||||||
|
import com.zhyc.common.core.controller.BaseController;
|
||||||
|
import com.zhyc.common.core.domain.AjaxResult;
|
||||||
|
import com.zhyc.common.enums.BusinessType;
|
||||||
|
import com.zhyc.module.produce.pregnancy.domain.ScPregnancyRecord;
|
||||||
|
import com.zhyc.module.produce.pregnancy.service.IScPregnancyRecordService;
|
||||||
|
import com.zhyc.common.utils.poi.ExcelUtil;
|
||||||
|
import com.zhyc.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 孕检记录Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-17
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/Pregnancy_Test/Pregnancy_Test")
|
||||||
|
public class ScPregnancyRecordController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IScPregnancyRecordService scPregnancyRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询孕检记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Pregnancy_Test:Pregnancy_Test:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ScPregnancyRecord scPregnancyRecord)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ScPregnancyRecord> list = scPregnancyRecordService.selectScPregnancyRecordList(scPregnancyRecord);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出孕检记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Pregnancy_Test:Pregnancy_Test:export')")
|
||||||
|
@Log(title = "孕检记录", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, ScPregnancyRecord scPregnancyRecord)
|
||||||
|
{
|
||||||
|
List<ScPregnancyRecord> list = scPregnancyRecordService.selectScPregnancyRecordList(scPregnancyRecord);
|
||||||
|
ExcelUtil<ScPregnancyRecord> util = new ExcelUtil<ScPregnancyRecord>(ScPregnancyRecord.class);
|
||||||
|
util.exportExcel(response, list, "孕检记录数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取孕检记录详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Pregnancy_Test:Pregnancy_Test:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(scPregnancyRecordService.selectScPregnancyRecordById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增孕检记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Pregnancy_Test:Pregnancy_Test:add')")
|
||||||
|
@Log(title = "孕检记录", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ScPregnancyRecord scPregnancyRecord)
|
||||||
|
{
|
||||||
|
return toAjax(scPregnancyRecordService.insertScPregnancyRecord(scPregnancyRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改孕检记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Pregnancy_Test:Pregnancy_Test:edit')")
|
||||||
|
@Log(title = "孕检记录", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody ScPregnancyRecord scPregnancyRecord)
|
||||||
|
{
|
||||||
|
return toAjax(scPregnancyRecordService.updateScPregnancyRecord(scPregnancyRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除孕检记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Pregnancy_Test:Pregnancy_Test:remove')")
|
||||||
|
@Log(title = "孕检记录", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(scPregnancyRecordService.deleteScPregnancyRecordByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,117 @@
|
|||||||
|
package com.zhyc.module.produce.pregnancy.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.zhyc.common.annotation.Excel;
|
||||||
|
import com.zhyc.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 孕检记录对象 sc_pregnancy_record
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-17
|
||||||
|
*/
|
||||||
|
public class ScPregnancyRecord extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 孕检日期 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "孕检日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date datetime;
|
||||||
|
|
||||||
|
/** 孕检结果 */
|
||||||
|
@Excel(name = "孕检结果")
|
||||||
|
private String result;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Long number;
|
||||||
|
|
||||||
|
/** 技术员 */
|
||||||
|
@Excel(name = "技术员")
|
||||||
|
private String technician;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Long way;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatetime(Date datetime)
|
||||||
|
{
|
||||||
|
this.datetime = datetime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDatetime()
|
||||||
|
{
|
||||||
|
return datetime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResult(String result)
|
||||||
|
{
|
||||||
|
this.result = result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResult()
|
||||||
|
{
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumber(Long number)
|
||||||
|
{
|
||||||
|
this.number = number;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getNumber()
|
||||||
|
{
|
||||||
|
return number;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTechnician(String technician)
|
||||||
|
{
|
||||||
|
this.technician = technician;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTechnician()
|
||||||
|
{
|
||||||
|
return technician;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWay(Long way)
|
||||||
|
{
|
||||||
|
this.way = way;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getWay()
|
||||||
|
{
|
||||||
|
return way;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("datetime", getDatetime())
|
||||||
|
.append("result", getResult())
|
||||||
|
.append("number", getNumber())
|
||||||
|
.append("technician", getTechnician())
|
||||||
|
.append("way", getWay())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.zhyc.module.produce.pregnancy.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.zhyc.module.produce.pregnancy.domain.ScPregnancyRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 孕检记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-17
|
||||||
|
*/
|
||||||
|
public interface ScPregnancyRecordMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询孕检记录
|
||||||
|
*
|
||||||
|
* @param id 孕检记录主键
|
||||||
|
* @return 孕检记录
|
||||||
|
*/
|
||||||
|
public ScPregnancyRecord selectScPregnancyRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询孕检记录列表
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 孕检记录集合
|
||||||
|
*/
|
||||||
|
public List<ScPregnancyRecord> selectScPregnancyRecordList(ScPregnancyRecord scPregnancyRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增孕检记录
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertScPregnancyRecord(ScPregnancyRecord scPregnancyRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改孕检记录
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateScPregnancyRecord(ScPregnancyRecord scPregnancyRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除孕检记录
|
||||||
|
*
|
||||||
|
* @param id 孕检记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteScPregnancyRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除孕检记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteScPregnancyRecordByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.zhyc.module.produce.pregnancy.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.zhyc.module.produce.pregnancy.domain.ScPregnancyRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 孕检记录Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-17
|
||||||
|
*/
|
||||||
|
public interface IScPregnancyRecordService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询孕检记录
|
||||||
|
*
|
||||||
|
* @param id 孕检记录主键
|
||||||
|
* @return 孕检记录
|
||||||
|
*/
|
||||||
|
public ScPregnancyRecord selectScPregnancyRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询孕检记录列表
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 孕检记录集合
|
||||||
|
*/
|
||||||
|
public List<ScPregnancyRecord> selectScPregnancyRecordList(ScPregnancyRecord scPregnancyRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增孕检记录
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertScPregnancyRecord(ScPregnancyRecord scPregnancyRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改孕检记录
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateScPregnancyRecord(ScPregnancyRecord scPregnancyRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除孕检记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的孕检记录主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteScPregnancyRecordByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除孕检记录信息
|
||||||
|
*
|
||||||
|
* @param id 孕检记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteScPregnancyRecordById(Long id);
|
||||||
|
}
|
@ -0,0 +1,95 @@
|
|||||||
|
package com.zhyc.module.produce.pregnancy.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.zhyc.module.produce.pregnancy.mapper.ScPregnancyRecordMapper;
|
||||||
|
import com.zhyc.module.produce.pregnancy.domain.ScPregnancyRecord;
|
||||||
|
import com.zhyc.module.produce.pregnancy.service.IScPregnancyRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 孕检记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-17
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ScPregnancyRecordServiceImpl implements IScPregnancyRecordService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ScPregnancyRecordMapper scPregnancyRecordMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询孕检记录
|
||||||
|
*
|
||||||
|
* @param id 孕检记录主键
|
||||||
|
* @return 孕检记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ScPregnancyRecord selectScPregnancyRecordById(Long id)
|
||||||
|
{
|
||||||
|
return scPregnancyRecordMapper.selectScPregnancyRecordById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询孕检记录列表
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 孕检记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ScPregnancyRecord> selectScPregnancyRecordList(ScPregnancyRecord scPregnancyRecord)
|
||||||
|
{
|
||||||
|
return scPregnancyRecordMapper.selectScPregnancyRecordList(scPregnancyRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增孕检记录
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertScPregnancyRecord(ScPregnancyRecord scPregnancyRecord)
|
||||||
|
{
|
||||||
|
scPregnancyRecord.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return scPregnancyRecordMapper.insertScPregnancyRecord(scPregnancyRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改孕检记录
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateScPregnancyRecord(ScPregnancyRecord scPregnancyRecord)
|
||||||
|
{
|
||||||
|
return scPregnancyRecordMapper.updateScPregnancyRecord(scPregnancyRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除孕检记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的孕检记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteScPregnancyRecordByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return scPregnancyRecordMapper.deleteScPregnancyRecordByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除孕检记录信息
|
||||||
|
*
|
||||||
|
* @param id 孕检记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteScPregnancyRecordById(Long id)
|
||||||
|
{
|
||||||
|
return scPregnancyRecordMapper.deleteScPregnancyRecordById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.zhyc.module.produce.pregnancy.mapper.ScPregnancyRecordMapper">
|
||||||
|
|
||||||
|
<resultMap type="ScPregnancyRecord" id="ScPregnancyRecordResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="datetime" column="datetime" />
|
||||||
|
<result property="result" column="result" />
|
||||||
|
<result property="number" column="number" />
|
||||||
|
<result property="technician" column="technician" />
|
||||||
|
<result property="way" column="way" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectScPregnancyRecordVo">
|
||||||
|
select id, datetime, result, number, technician, way, create_by, create_time from sc_pregnancy_record
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectScPregnancyRecordList" parameterType="ScPregnancyRecord" resultMap="ScPregnancyRecordResult">
|
||||||
|
<include refid="selectScPregnancyRecordVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="datetime != null "> and datetime = #{datetime}</if>
|
||||||
|
<if test="result != null and result != ''"> and result = #{result}</if>
|
||||||
|
<if test="number != null "> and number = #{number}</if>
|
||||||
|
<if test="technician != null and technician != ''"> and technician = #{technician}</if>
|
||||||
|
<if test="way != null "> and way = #{way}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectScPregnancyRecordById" parameterType="Long" resultMap="ScPregnancyRecordResult">
|
||||||
|
<include refid="selectScPregnancyRecordVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertScPregnancyRecord" parameterType="ScPregnancyRecord" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into sc_pregnancy_record
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="datetime != null">datetime,</if>
|
||||||
|
<if test="result != null">result,</if>
|
||||||
|
<if test="number != null">number,</if>
|
||||||
|
<if test="technician != null">technician,</if>
|
||||||
|
<if test="way != null">way,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="datetime != null">#{datetime},</if>
|
||||||
|
<if test="result != null">#{result},</if>
|
||||||
|
<if test="number != null">#{number},</if>
|
||||||
|
<if test="technician != null">#{technician},</if>
|
||||||
|
<if test="way != null">#{way},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateScPregnancyRecord" parameterType="ScPregnancyRecord">
|
||||||
|
update sc_pregnancy_record
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="datetime != null">datetime = #{datetime},</if>
|
||||||
|
<if test="result != null">result = #{result},</if>
|
||||||
|
<if test="number != null">number = #{number},</if>
|
||||||
|
<if test="technician != null">technician = #{technician},</if>
|
||||||
|
<if test="way != null">way = #{way},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteScPregnancyRecordById" parameterType="Long">
|
||||||
|
delete from sc_pregnancy_record where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteScPregnancyRecordByIds" parameterType="String">
|
||||||
|
delete from sc_pregnancy_record where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
Loading…
x
Reference in New Issue
Block a user