Commit 9f8409c6 authored by 陈晓晋's avatar 陈晓晋

Merge branch 'xjchen' into 'develop'

PC端项目到房间列表修改20230713

See merge request !7
parents 878f3b0e 35f907d9
...@@ -44,9 +44,13 @@ public class LedgerRoomController extends BaseController ...@@ -44,9 +44,13 @@ public class LedgerRoomController extends BaseController
public TableDataInfo list(LedgerRoom ledgerRoom) public TableDataInfo list(LedgerRoom ledgerRoom)
{ {
QueryWrapper<LedgerRoom> queryWrapper = new QueryWrapper<>(); QueryWrapper<LedgerRoom> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("floor_id",ledgerRoom.getFloorId()).eq("del_flag","0"); if (ledgerRoom.getFloorId()!=null) {
queryWrapper.eq("floor_id",ledgerRoom.getFloorId());
}
queryWrapper.eq("del_flag","0");
startPage(); startPage();
List<LedgerRoom> list = ledgerRoomService.list(queryWrapper); //List<LedgerRoom> list = ledgerRoomService.list(queryWrapper);
List<LedgerRoom> list =ledgerRoomService.selectLedgerRoomList(ledgerRoom);
return getDataTable(list); return getDataTable(list);
} }
......
package com.censoft.censoftrongtong.domain; package com.censoft.censoftrongtong.domain;
import java.math.BigDecimal; import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntityClean;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
...@@ -12,7 +16,8 @@ import com.ruoyi.common.core.domain.BaseEntity; ...@@ -12,7 +16,8 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi * @author ruoyi
* @date 2023-06-26 * @date 2023-06-26
*/ */
public class LedgerBuilding extends BaseEntity @Data
public class LedgerBuilding extends BaseEntityClean
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -61,135 +66,20 @@ public class LedgerBuilding extends BaseEntity ...@@ -61,135 +66,20 @@ public class LedgerBuilding extends BaseEntity
/** 删除标志(0代表存在 1代表删除) */ /** 删除标志(0代表存在 1代表删除) */
private String delFlag; private String delFlag;
/**
* 项目名称
*/
@TableField(exist = false)
private String projectName;
/**
* 组织名称
*/
@TableField(exist = false)
private String deptName;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setFloor(String floor)
{
this.floor = floor;
}
public String getFloor()
{
return floor;
}
public String getUseto() {
return useto;
}
public void setUseto(String useto) {
this.useto = useto;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setArea(BigDecimal area)
{
this.area = area;
}
public BigDecimal getArea()
{
return area;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("projectId", getProjectId())
.append("name", getName())
.append("type", getType())
.append("deptId", getDeptId())
.append("floor", getFloor())
.append("useto", getUseto())
.append("city", getCity())
.append("area", getArea())
.append("address", getAddress())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
} }
package com.censoft.censoftrongtong.domain; package com.censoft.censoftrongtong.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntityClean;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
...@@ -11,7 +14,8 @@ import com.ruoyi.common.core.domain.BaseEntity; ...@@ -11,7 +14,8 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi * @author ruoyi
* @date 2023-06-26 * @date 2023-06-26
*/ */
public class LedgerFloor extends BaseEntity @Data
public class LedgerFloor extends BaseEntityClean
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -41,84 +45,11 @@ public class LedgerFloor extends BaseEntity ...@@ -41,84 +45,11 @@ public class LedgerFloor extends BaseEntity
/** 删除标志(0代表存在 1代表删除) */ /** 删除标志(0代表存在 1代表删除) */
private String delFlag; private String delFlag;
public void setId(Long id) /**
{ * 楼栋名称
this.id = id; */
} @TableField(exist = false)
private String buildingName;
public Long getId()
{
return id;
}
public void setBuildingId(Long buildingId)
{
this.buildingId = buildingId;
}
public Long getBuildingId()
{
return buildingId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setRoomNumber(Long roomNumber)
{
this.roomNumber = roomNumber;
}
public Long getRoomNumber()
{
return roomNumber;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("buildingId", getBuildingId())
.append("name", getName())
.append("type", getType())
.append("roomNumber", getRoomNumber())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
} }
package com.censoft.censoftrongtong.domain; package com.censoft.censoftrongtong.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntityClean;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
...@@ -11,7 +14,8 @@ import com.ruoyi.common.core.domain.BaseEntity; ...@@ -11,7 +14,8 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi * @author ruoyi
* @date 2023-06-26 * @date 2023-06-26
*/ */
public class LedgerProject extends BaseEntity @Data
public class LedgerProject extends BaseEntityClean
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -48,105 +52,13 @@ public class LedgerProject extends BaseEntity ...@@ -48,105 +52,13 @@ public class LedgerProject extends BaseEntity
/** 删除标志(0代表存在 1代表删除) */ /** 删除标志(0代表存在 1代表删除) */
private String delFlag; private String delFlag;
/**
* 部门名称名称
*/
@TableField(exist = false)
private String deptName;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("type", getType())
.append("deptId", getDeptId())
.append("city", getCity())
.append("address", getAddress())
.append("source", getSource())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
} }
...@@ -69,4 +69,10 @@ public class LedgerRoom extends BaseEntity ...@@ -69,4 +69,10 @@ public class LedgerRoom extends BaseEntity
@TableField("del_flag") @TableField("del_flag")
@TableLogic @TableLogic
private String delFlag; private String delFlag;
/**
* 楼层名称
*/
@TableField(exist = false)
private String floorName;
} }
package com.censoft.censoftrongtong.mapper; package com.censoft.censoftrongtong.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.censoft.censoftrongtong.domain.LedgerFloor;
import com.censoft.censoftrongtong.domain.LedgerRoom; import com.censoft.censoftrongtong.domain.LedgerRoom;
import java.util.List; import java.util.List;
...@@ -13,5 +14,18 @@ import java.util.List; ...@@ -13,5 +14,18 @@ import java.util.List;
*/ */
public interface LedgerRoomMapper extends BaseMapper<LedgerRoom> public interface LedgerRoomMapper extends BaseMapper<LedgerRoom>
{ {
/**
* 查询基础数据-房间列表
*
* @param ledgerRoom 基础数据-房间
* @return 基础数据-房间集合
*/
/**
* 查询基础数据-楼层列表
*
* @param ledgerRoom 基础数据-楼层
* @return 基础数据-楼层集合
*/
public List<LedgerRoom> selectLedgerRoomList(LedgerRoom ledgerRoom);
} }
...@@ -13,6 +13,19 @@ import java.util.List; ...@@ -13,6 +13,19 @@ import java.util.List;
*/ */
public interface ILedgerRoomService extends IService<LedgerRoom> public interface ILedgerRoomService extends IService<LedgerRoom>
{ {
/**
* 根据楼层查询该楼层房间列表
* @param floorId
* @return
*/
List<LedgerRoom> getRoomListByBuildingId(Long floorId); List<LedgerRoom> getRoomListByBuildingId(Long floorId);
/**
* 查询房间列表
* @param ledgerRoom
* @return
*/
List<LedgerRoom> selectLedgerRoomList(LedgerRoom ledgerRoom);
} }
...@@ -33,4 +33,10 @@ public class LedgerRoomServiceImpl extends ServiceImpl<LedgerRoomMapper, LedgerR ...@@ -33,4 +33,10 @@ public class LedgerRoomServiceImpl extends ServiceImpl<LedgerRoomMapper, LedgerR
.eq(LedgerRoom::getStatus, "0"); .eq(LedgerRoom::getStatus, "0");
return list(wrapper); return list(wrapper);
} }
@Override
public List<LedgerRoom> selectLedgerRoomList(LedgerRoom ledgerRoom) {
return ledgerRoomMapper.selectLedgerRoomList(ledgerRoom);
}
} }
...@@ -28,19 +28,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -28,19 +28,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectLedgerBuildingList" parameterType="com.censoft.censoftrongtong.domain.LedgerBuilding" resultMap="LedgerBuildingResult"> <select id="selectLedgerBuildingList" parameterType="com.censoft.censoftrongtong.domain.LedgerBuilding" resultMap="LedgerBuildingResult">
<include refid="selectLedgerBuildingVo"/> select * from (SELECT b.id, b.project_id, p.NAME 'project_name', b.NAME, b.type, b.dept_id, d.dept_name, b.floor, b.useto, b.city, b.area, b.address, b.STATUS, b.del_flag, b.create_by, b.create_time, b.update_by, b.update_time FROM ledger_building b LEFT JOIN sys_dept d ON b.dept_id = d.dept_id LEFT JOIN ledger_project p ON b.project_id = p.id) tt
<where> <where>
<if test="projectId != null "> and project_id = #{projectId}</if> <if test="projectName != null "> and project_name like concat('%', #{projectName}, '%') </if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''"> and tt.name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if> <if test="type != null and type != ''"> and tt.type = #{type}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <if test="deptId != null "> and tt.dept_name like concat('%', #{deptName}, '%')</if>
<if test="floor != null and floor != ''"> and floor = #{floor}</if> <if test="floor != null and floor != ''"> and tt.floor = #{floor}</if>
<if test="useto != null and useto != ''"> and useto = #{useto}</if> <if test="useto != null and useto != ''"> and tt.useto = #{useto}</if>
<if test="city != null and city != ''"> and city = #{city}</if> <if test="city != null and city != ''"> and tt.city = #{city}</if>
<if test="area != null "> and area = #{area}</if> <if test="area != null "> and tt.area = #{area}</if>
<if test="address != null and address != ''"> and address = #{address}</if> <if test="address != null and address != ''"> and tt.address = #{address}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and tt.status = #{status}</if>
and del_flag = '0' and tt.del_flag = '0'
</where> </where>
</select> </select>
......
...@@ -23,13 +23,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -23,13 +23,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectLedgerFloorList" parameterType="com.censoft.censoftrongtong.domain.LedgerFloor" resultMap="LedgerFloorResult"> <select id="selectLedgerFloorList" parameterType="com.censoft.censoftrongtong.domain.LedgerFloor" resultMap="LedgerFloorResult">
<include refid="selectLedgerFloorVo"/> select * from(SELECT f.id, f.building_id, b.name 'building_name', f.NAME, f.type, f.room_number, f.STATUS, f.del_flag, f.create_by, f.create_time, f.update_by, f.update_time FROM ledger_floor f LEFT JOIN ledger_building b on f.building_id=b.id) tt
<where> <where>
<if test="buildingId != null "> and building_id = #{buildingId}</if> <if test="buildingName != null "> and tt.building_name like concat('%', #{buildingName}, '%')</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''"> and tt.name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if> <if test="type != null and type != ''"> and tt.type = #{type}</if>
<if test="roomNumber != null "> and room_number = #{roomNumber}</if> <if test="roomNumber != null "> and tt.room_number = #{roomNumber}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and tt.status = #{status}</if>
</where> </where>
</select> </select>
......
...@@ -25,15 +25,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -25,15 +25,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectLedgerProjectList" parameterType="com.censoft.censoftrongtong.domain.LedgerProject" resultMap="LedgerProjectResult"> <select id="selectLedgerProjectList" parameterType="com.censoft.censoftrongtong.domain.LedgerProject" resultMap="LedgerProjectResult">
<include refid="selectLedgerProjectVo"/> SELECT p.id, p.NAME, p.type, p.dept_id, d.dept_name, p.city, p.address, p.source, p.STATUS, p.del_flag, p.create_by, p.create_time, p.update_by, p.update_time FROM ledger_project p LEFT JOIN sys_dept d ON p.dept_id = d.dept_id
<where> <where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''"> and p.name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if> <if test="type != null and type != ''"> and p.type = #{type}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <if test="deptId != null "> and p.dept_id = #{deptId}</if>
<if test="city != null and city != ''"> and city = #{city}</if> <if test="city != null and city != ''"> and p.city = #{city}</if>
<if test="address != null and address != ''"> and address = #{address}</if> <if test="address != null and address != ''"> and p.address = #{address}</if>
<if test="source != null and source != ''"> and source = #{source}</if> <if test="source != null and source != ''"> and p.source = #{source}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and p.status = #{status}</if>
</where> </where>
</select> </select>
......
...@@ -4,4 +4,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -4,4 +4,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.censoft.censoftrongtong.mapper.LedgerRoomMapper"> <mapper namespace="com.censoft.censoftrongtong.mapper.LedgerRoomMapper">
<resultMap type="com.censoft.censoftrongtong.domain.LedgerRoom" id="LedgerRoomResult">
<result property="id" column="id" />
<result property="floorId" column="floor_id" />
<result property="name" column="name" />
<result property="number" column="number" />
<result property="area" column="area" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLedgerRoomVo">
select id, floor_id, name, number, area, status, del_flag, create_by, create_time, update_by, update_time from ledger_room
</sql>
<select id="selectLedgerRoomList" parameterType="com.censoft.censoftrongtong.domain.LedgerRoom" resultMap="LedgerRoomResult">
select * from (SELECT r.id, r.floor_id, f.name 'floor_name', r.NAME, r.number, r.area, r.STATUS, r.del_flag, r.create_by, r.create_time, r.update_by, r.update_time FROM ledger_room r LEFT JOIN ledger_floor f on r.floor_id=f.id) tt
<where>
<if test="floorId != null "> and tt.floor_id = #{floorId}</if>
<if test="floorName != null "> and tt.floor_name like concat('%', #{floorName}, '%')</if>
<if test="name != null and name != ''"> and tt.name like concat('%', #{name}, '%')</if>
<if test="number != null and number != ''"> and tt.number = #{number}</if>
<if test="area != null "> and tt.area = #{area}</if>
<if test="status != null and status != ''"> and tt.status = #{status}</if>
</where>
</select>
<select id="selectLedgerRoomById" parameterType="Long" resultMap="LedgerRoomResult">
<include refid="selectLedgerRoomVo"/>
where id = #{id}
</select>
<delete id="deleteLedgerRoomById" parameterType="Long">
delete from ledger_room where id = #{id}
</delete>
<delete id="deleteLedgerRoomByIds" parameterType="String">
delete from ledger_room where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -17,6 +17,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -17,6 +17,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="evaluationModel" column="evaluation_model" /> <result property="evaluationModel" column="evaluation_model" />
<result property="evaluationRange" column="evaluation_range" /> <result property="evaluationRange" column="evaluation_range" />
<result property="level" column="level" /> <result property="level" column="level" />
<result property="riskLikelihood" column="risk_likelihood" />
<result property="riskSeverity" column="risk_severity" />
<result property="presenceLocation" column="presence_location" /> <result property="presenceLocation" column="presence_location" />
<result property="pictureFileIds" column="picture_file_ids" /> <result property="pictureFileIds" column="picture_file_ids" />
<result property="factor" column="factor" /> <result property="factor" column="factor" />
...@@ -35,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -35,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectRiskPlanExistingListVo"> <sql id="selectRiskPlanExistingListVo">
select id, user_id, inherent_id, plan_id, room_id, code, name, type, describe, evaluation_model, evaluation_range, level, presence_location, picture_file_ids, factor, measures_project, measures_project_file_ids, measures_administration, measures_administration_file_ids, measures_emergency, measures_emergency_file_ids, reference_basis, del_flag, create_by, create_time, update_by, update_time from risk_plan_existing_list select id, user_id, inherent_id, plan_id, room_id, code, name, type, describe, evaluation_model, evaluation_range, level,risk_likelihood,risk_severity, presence_location, picture_file_ids, factor, measures_project, measures_project_file_ids, measures_administration, measures_administration_file_ids, measures_emergency, measures_emergency_file_ids, reference_basis, del_flag, create_by, create_time, update_by, update_time from risk_plan_existing_list
</sql> </sql>
<select id="selectRiskPlanExistingListList" parameterType="com.censoft.censoftrongtong.domain.RiskPlanExistingList" resultMap="RiskPlanExistingListResult"> <select id="selectRiskPlanExistingListList" parameterType="com.censoft.censoftrongtong.domain.RiskPlanExistingList" resultMap="RiskPlanExistingListResult">
...@@ -84,6 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -84,6 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="evaluationModel != null">evaluation_model,</if> <if test="evaluationModel != null">evaluation_model,</if>
<if test="evaluationRange != null">evaluation_range,</if> <if test="evaluationRange != null">evaluation_range,</if>
<if test="level != null">level,</if> <if test="level != null">level,</if>
<if test="riskLikelihood != null">risk_likelihood,</if>
<if test="riskSeverity != null">risk_severity,</if>
<if test="presenceLocation != null">presence_location,</if> <if test="presenceLocation != null">presence_location,</if>
<if test="pictureFileIds != null">picture_file_ids,</if> <if test="pictureFileIds != null">picture_file_ids,</if>
<if test="factor != null">factor,</if> <if test="factor != null">factor,</if>
...@@ -112,6 +116,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -112,6 +116,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="evaluationModel != null">#{evaluationModel},</if> <if test="evaluationModel != null">#{evaluationModel},</if>
<if test="evaluationRange != null">#{evaluationRange},</if> <if test="evaluationRange != null">#{evaluationRange},</if>
<if test="level != null">#{level},</if> <if test="level != null">#{level},</if>
<if test="riskLikelihood != null">#{riskLikelihood},</if>
<if test="riskSeverity != null">#{riskSeverity},</if>
<if test="presenceLocation != null">#{presenceLocation},</if> <if test="presenceLocation != null">#{presenceLocation},</if>
<if test="pictureFileIds != null">#{pictureFileIds},</if> <if test="pictureFileIds != null">#{pictureFileIds},</if>
<if test="factor != null">#{factor},</if> <if test="factor != null">#{factor},</if>
...@@ -144,6 +150,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -144,6 +150,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="evaluationModel != null">evaluation_model = #{evaluationModel},</if> <if test="evaluationModel != null">evaluation_model = #{evaluationModel},</if>
<if test="evaluationRange != null">evaluation_range = #{evaluationRange},</if> <if test="evaluationRange != null">evaluation_range = #{evaluationRange},</if>
<if test="level != null">level = #{level},</if> <if test="level != null">level = #{level},</if>
<if test="riskLikelihood != null">risk_likelihood = #{riskLikelihood},</if>
<if test="riskSeverity != null">risk_severity = #{riskSeverity},</if>
<if test="presenceLocation != null">presence_location = #{presenceLocation},</if> <if test="presenceLocation != null">presence_location = #{presenceLocation},</if>
<if test="pictureFileIds != null">picture_file_ids = #{pictureFileIds},</if> <if test="pictureFileIds != null">picture_file_ids = #{pictureFileIds},</if>
<if test="factor != null">factor = #{factor},</if> <if test="factor != null">factor = #{factor},</if>
......
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