Sfoglia il codice sorgente

【CHG】修改字段名

ZhaoMn 3 anni fa
parent
commit
cd9d6a5af0

+ 1 - 1
railway-business/src/main/java/com/railway/business/safetool/domain/vo/SecExpInfoVo.java

@@ -32,7 +32,7 @@ public class SecExpInfoVo implements Serializable {
     private String labName;
 
     @ApiModelProperty(value = "送检计划id")
-    private Long schedledId;
+    private Long scheduledId;
 
     @ApiModelProperty(value = "截止时间")
     @JsonFormat(pattern = "yyyy-MM-dd")

+ 5 - 5
railway-business/src/main/resources/mapper/safetool/SecExperimentMapper.xml

@@ -6,9 +6,9 @@
 
   <insert id="insertExp" keyProperty="id"
     parameterType="com.railway.business.safetool.domain.vo.SecExpAddParmVo">
-    INSERT INTO sec_experiment (lab_id,lab_name,schedled_id,end_time,dept_id,dept_name,
+    INSERT INTO sec_experiment (lab_id,lab_name,scheduled_id,end_time,dept_id,dept_name,
     scheduled_time,state,del_flag,create_time,create_by)
-    select lab_id,d2.dept_name lab_name,s.id schedled_id,
+    select lab_id,d2.dept_name lab_name,s.id scheduled_id,
     ADDDATE(now(),3) end_time ,s.dept_id,d.dept_name,
     now() scheduled_time,
     '0' state ,'0' del_flag, now() create_time , #{createby} create_by
@@ -31,7 +31,7 @@
     UPDATE sec_experiment
     <set>
       <if test='null != labId'>lab_id = #{labId},</if>
-      <if test='null != schedledId'>schedled_id = #{schedledId},</if>
+      <if test='null != scheduledId'>scheduled_id = #{scheduledId},</if>
       <if test='null != endTime'>end_time = #{endTime},</if>
       <if test='null != deptName'>dept_name = #{deptName},</if>
       <if test='null != labName'>lab_name = #{labName},</if>
@@ -50,7 +50,7 @@
     update sec_scheduled
     set state = #{state}
     where id = (
-    select schedled_id from sec_experiment where id = #{id}
+    select scheduled_id from sec_experiment where id = #{id}
     )
   </update>
 
@@ -87,7 +87,7 @@
     <result column="syr_id" property="syrId"/>
     <result column="dept_id" property="deptId"/>
     <result column="lab_id" property="labId"/>
-    <result column="scheduled_id" property="schedledId"/>
+    <result column="scheduled_id" property="scheduledId"/>
     <result column="deptName" property="deptName"/>
     <result column="labName" property="labName"/>
   </resultMap>