Commit 96adfa04 authored by 耿迪迪's avatar 耿迪迪

调研结果

parent d8d87b57
...@@ -63,6 +63,10 @@ public class TInsSpotRecInfor extends BaseEntity ...@@ -63,6 +63,10 @@ public class TInsSpotRecInfor extends BaseEntity
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss") @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
private Date fUpdateTime; private Date fUpdateTime;
private String taskCode;
private String taskName;
public void setfInsSpotRecInforId(Long fInsSpotRecInforId) public void setfInsSpotRecInforId(Long fInsSpotRecInforId)
{ {
this.fInsSpotRecInforId = fInsSpotRecInforId; this.fInsSpotRecInforId = fInsSpotRecInforId;
...@@ -127,6 +131,22 @@ public class TInsSpotRecInfor extends BaseEntity ...@@ -127,6 +131,22 @@ public class TInsSpotRecInfor extends BaseEntity
return fUpdateTime; return fUpdateTime;
} }
public String getTaskCode() {
return taskCode;
}
public void setTaskCode(String taskCode) {
this.taskCode = taskCode;
}
public String getTaskName() {
return taskName;
}
public void setTaskName(String taskName) {
this.taskName = taskName;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
......
...@@ -47,16 +47,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -47,16 +47,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTInsSpotHazardRefList" parameterType="TInsSpotHazardRef" resultMap="TInsSpotHazardRefResult"> <select id="selectTInsSpotHazardRefList" parameterType="TInsSpotHazardRef" resultMap="TInsSpotHazardRefResult">
<include refid="selectTInsSpotHazardRefVo"/> <include refid="selectTInsSpotHazardRefVo"/>
<where> <where>
<if test="fHazardUniqueCode != null and fHazardUniqueCode != ''"> and f_hazard_unique_code like concat('%', #{fHazardUniqueCode}, '%')</if> <if test="fHazardUniqueCode != null and fHazardUniqueCode != ''"> and spot.f_hazard_unique_code like concat('%', #{fHazardUniqueCode}, '%')</if>
<if test="fObjType != null and fObjType != ''"> and f_obj_type = #{fObjType}</if> <if test="fObjType != null and fObjType != ''"> and spot.f_obj_type = #{fObjType}</if>
<if test="fIsEnforcement != null and fIsEnforcement != ''"> and f_is_enforcement = #{fIsEnforcement}</if> <if test="fIsEnforcement != null and fIsEnforcement != ''"> and spot.f_is_enforcement = #{fIsEnforcement}</if>
</where> </where>
ORDER BY f_last_time DESC ORDER BY f_last_time DESC
</select> </select>
<select id="selectTInsSpotHazardRefById" parameterType="Long" resultMap="TInsSpotHazardRefResult"> <select id="selectTInsSpotHazardRefById" parameterType="Long" resultMap="TInsSpotHazardRefResult">
<include refid="selectTInsSpotHazardRefVo"/> <include refid="selectTInsSpotHazardRefVo"/>
where f_ins_spot_hazard_ref_id = #{fInsSpotHazardRefId} where spot.f_ins_spot_hazard_ref_id = #{fInsSpotHazardRefId}
</select> </select>
<insert id="insertTInsSpotHazardRef" parameterType="TInsSpotHazardRef" useGeneratedKeys="true" keyProperty="fInsSpotHazardRefId"> <insert id="insertTInsSpotHazardRef" parameterType="TInsSpotHazardRef" useGeneratedKeys="true" keyProperty="fInsSpotHazardRefId">
......
...@@ -15,21 +15,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -15,21 +15,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectTInsSpotRecInforVo"> <sql id="selectTInsSpotRecInforVo">
select f_ins_spot_rec_infor_id, f_check_code, f_name, f_content, f_method, f_result, f_update_time from t_ins_spot_rec_infor SELECT
spot.f_ins_spot_rec_infor_id,
spot.f_check_code,
spot.f_name,
spot.f_content,
spot.f_method,
spot.f_result,
spot.f_update_time,
rec.f_check_task_code AS taskCode,
task.f_name AS taskName
FROM
t_ins_spot_rec_infor spot
LEFT JOIN t_ins_rec_infor rec ON rec.f_check_code = spot.f_check_code
LEFT JOIN t_ins_task_infor task ON task.f_unique_code = rec.f_check_task_code
</sql> </sql>
<select id="selectTInsSpotRecInforList" parameterType="TInsSpotRecInfor" resultMap="TInsSpotRecInforResult"> <select id="selectTInsSpotRecInforList" parameterType="TInsSpotRecInfor" resultMap="TInsSpotRecInforResult">
<include refid="selectTInsSpotRecInforVo"/> <include refid="selectTInsSpotRecInforVo"/>
<where> <where>
<if test="fCheckCode != null and fCheckCode != ''"> and f_check_code like concat('%', #{fCheckCode}, '%')</if> <if test="fCheckCode != null and fCheckCode != ''"> and spot.f_check_code like concat('%', #{fCheckCode}, '%')</if>
<if test="fName != null and fName != ''"> and f_name like concat('%', #{fName}, '%')</if> <if test="fName != null and fName != ''"> and spot.f_name like concat('%', #{fName}, '%')</if>
<if test="fMethod != null and fMethod != ''"> and f_method = #{fMethod}</if> <if test="fMethod != null and fMethod != ''"> and spot.f_method = #{fMethod}</if>
</where> </where>
</select> </select>
<select id="selectTInsSpotRecInforById" parameterType="Long" resultMap="TInsSpotRecInforResult"> <select id="selectTInsSpotRecInforById" parameterType="Long" resultMap="TInsSpotRecInforResult">
<include refid="selectTInsSpotRecInforVo"/> <include refid="selectTInsSpotRecInforVo"/>
where f_ins_spot_rec_infor_id = #{fInsSpotRecInforId} where spot.f_ins_spot_rec_infor_id = #{fInsSpotRecInforId}
</select> </select>
<insert id="insertTInsSpotRecInfor" parameterType="TInsSpotRecInfor" useGeneratedKeys="true" keyProperty="fInsSpotRecInforId"> <insert id="insertTInsSpotRecInfor" parameterType="TInsSpotRecInfor" useGeneratedKeys="true" keyProperty="fInsSpotRecInforId">
......
...@@ -10,6 +10,20 @@ ...@@ -10,6 +10,20 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="检查任务名称">
<span v-if="detailInfo.taskCode">{{ detailInfo.taskCode }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检查任务编码">
<span v-if="detailInfo.taskName">{{ detailInfo.taskName }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="调研项目名称"> <el-form-item label="调研项目名称">
<span v-if="detailInfo.fName">{{ detailInfo.fName }}</span> <span v-if="detailInfo.fName">{{ detailInfo.fName }}</span>
......
...@@ -81,6 +81,8 @@ ...@@ -81,6 +81,8 @@
<el-table v-loading="loading" :data="inforList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="inforList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="检查记录编码" align="center" prop="fCheckCode" /> <el-table-column label="检查记录编码" align="center" prop="fCheckCode" />
<el-table-column label="检查任务名称" align="center" prop="taskName" />
<el-table-column label="检查任务编号" align="center" prop="taskCode" />
<el-table-column label="调研项目名称" align="center" prop="fName" /> <el-table-column label="调研项目名称" align="center" prop="fName" />
<el-table-column label="调研内容" align="center" prop="fContent" :show-overflow-tooltip="true"> <el-table-column label="调研内容" align="center" prop="fContent" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -100,7 +102,7 @@ ...@@ -100,7 +102,7 @@
<span>{{ parseTime(scope.row.fUpdateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <span>{{ parseTime(scope.row.fUpdateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
...@@ -142,7 +144,7 @@ ...@@ -142,7 +144,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row class="el-row-table"> <el-row class="el-row-table">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="检查记录编码" prop="fCheckCode"> <el-form-item label="检查记录" prop="fCheckCode">
<el-select <el-select
v-model="form.fCheckCode" v-model="form.fCheckCode"
placeholder="请选择检查记录编码" placeholder="请选择检查记录编码"
...@@ -151,7 +153,7 @@ ...@@ -151,7 +153,7 @@
<el-option <el-option
v-for="record in records" v-for="record in records"
:key="record.fInsRecInforId" :key="record.fInsRecInforId"
:label="record.fCheckCode" :label="record.taskName + ' + '+record.fCheckCode"
:value="record.fCheckCode" :value="record.fCheckCode"
></el-option> ></el-option>
</el-select> </el-select>
......
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