Kaynağa Gözat

修改开通驾校

zhangbin 2 yıl önce
ebeveyn
işleme
ac56836317

+ 2 - 2
jsjp-service/src/main/java/com/miaxis/newgzpt/domain/GzptSchPayConfig.java

@@ -54,11 +54,11 @@ public class GzptSchPayConfig implements Serializable {
 
     @ApiModelProperty(value = "是否打开")
     @TableField("IS_OPEN")
-    private String isOpen;
+    private Integer isOpen;
 
     @ApiModelProperty(value = "同步计时平台状态 0 待同步 1 同步成功 ")
     @TableField("SYNC")
-    private String sync;
+    private Integer sync;
 
     @ApiModelProperty(value = "同步时间 ")
     @TableField("SYNC_TIME")

+ 14 - 1
jsjp-service/src/main/resources/mapper/newgzpt/GzptSchPayConfigMapper.xml

@@ -3,11 +3,24 @@
 <mapper namespace="com.miaxis.newgzpt.mapper.GzptSchPayConfigMapper">
 
 
+    <resultMap type="GzptSchPayConfig" id="GzptSchPayConfigResult">
+        <result property="id"    column="id"    />
+        <result property="dqbh"    column="dqbh"    />
+        <result property="dqmc"    column="dqmc"    />
+        <result property="jxbh"    column="jxbh"    />
+        <result property="jxmc"    column="jxmc"    />
+        <result property="openTime"    column="open_time"    />
+        <result property="isOpen"    column="is_open"    />
+        <result property="sync"    column="sync"    />
+        <result property="syncTime"    column="sync_time"    />
+    </resultMap>
+
+
     <select id="getSchPayConfigByJxbh"  resultType="com.miaxis.newgzpt.domain.GzptSchPayConfig">
         select * from GZPT_SCH_PAY_CONFIG where jxbh =#{jxbh}
     </select>
 
-    <select id="selectSchPayConfigList"  resultType="com.miaxis.newgzpt.dto.GzptSchPayConfigDTO">
+    <select id="selectSchPayConfigList"  parameterType="com.miaxis.newgzpt.dto.GzptSchPayConfigDTO" resultMap="GzptSchPayConfigResult">
         select * from GZPT_SCH_PAY_CONFIG
         <where>
             <if test="isOpen != null"> and is_open = #{isOpen }</if>