Bladeren bron

'销售master'

HUJIANGUO 3 jaren geleden
bovenliggende
commit
1c5922d75c

+ 12 - 6
src/main/java/com/steerinfo/dil/controller/DilVersionController.java

@@ -14,19 +14,25 @@ import org.springframework.web.bind.annotation.RestController;
  * @ time      :2021/12/14 22:42
  */
 @RestController
-@RequestMapping("/appVersion")
+@RequestMapping("${api.version}/appVersion")
 public class DilVersionController {
 
     @Autowired
     DilVersionServiceImpl dilVersionService;
 
-    @ApiOperation(value = "查询版本号")
-    @PostMapping("/checkVersion/{version}")
-    public int deleteTruckRailDayPlan(@PathVariable("version") String version) {
-        return dilVersionService.compareAppVersion(version);
+    @ApiOperation(value = "查询APP版本号")
+    @PostMapping("/checkVersion")
+    public String getAppVersion() {
+        return dilVersionService.getAppVersion();
     }
 
-    @ApiOperation(value = "新增版本号")
+    @ApiOperation(value = "查询PDA版本号")
+    @PostMapping("/getPDAVersion")
+    public String getPDAVersion() {
+        return dilVersionService.getPDAVersion();
+    }
+
+    @ApiOperation(value = "新增APP版本号")
     @PostMapping("/addAppVersion/{version}")
     public String addAppVersion(@PathVariable("version") String version) {
         return dilVersionService.addAppVersion(version);

+ 36 - 2
src/main/java/com/steerinfo/dil/controller/RMScontroller.java

@@ -420,9 +420,10 @@ public class RMScontroller {
                                                Integer pageNum,
                                                Integer pageSize,
                                                Integer apiId,
-                                               String con) {
+                                               String con,
+                                               String carrierSSOId) {
 
-        return rmsFeign.getCapacityList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
+        return rmsFeign.getCapacityList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con,carrierSSOId);
     }
 
     @ApiOperation(value="新增汽车衡信息", notes="根据rmsCapacity对象创建")
@@ -1021,4 +1022,37 @@ public class RMScontroller {
     public Map<String,Object> getShipperMap(@RequestParam Integer shipperId) {
         return  rmsFeign.getShipperMap(shipperId);
     }
+    //根据运力id查询承运商
+    @PostMapping(value = "getCarrierNameById/{id}")
+    public Map<String,Object> getCarrierNameById(@PathVariable("id") BigDecimal id){
+        return rmsFeign.getCarrierNameById(id);
+    }
+   //根据司机id查询承运商
+   @PostMapping(value = "getCarrierNameByDriverId/{id}")
+   public Map<String,Object> getCarrierNameByDriverId(@PathVariable("id") BigDecimal id){
+       return rmsFeign.getCarrierNameByDriverId(id);
+   }
+
+
+
+    /*
+        txf
+     */
+    @ApiOperation(value="新增组织结构实绩")
+    @PostMapping(value = "/addShipperResult")
+    public Map<String,Object>  addShipperResult(@RequestBody(required = false) Map<String, Object> map){
+        return rmsFeign.addShipperResult(map);
+    }
+
+    @ApiOperation(value="修改组织结构实绩")
+    @PostMapping(value = "/updateShipperResult")
+    public Map<String,Object>  updateShipperResult(@RequestBody(required = false) Map<String, Object> map){
+        return rmsFeign.updateShipperResult(map);
+    }
+
+    @ApiOperation(value="修改组织结构实绩")
+    @PostMapping(value = "/deleteShipperResult")
+    public Map<String,Object>  deleteShipperResult(@RequestBody(required = false) Map<String, Object> map){
+        return rmsFeign.deleteShipperResult(map);
+    }
 }

+ 22 - 1
src/main/java/com/steerinfo/dil/feign/RmsFeign.java

@@ -217,7 +217,8 @@ public interface RmsFeign {
                                         @RequestParam Integer pageNum,
                                         @RequestParam Integer pageSize,
                                         @RequestParam Integer apiId,
-                                        @RequestParam String con);
+                                        @RequestParam String con,
+                                        @RequestParam String carrierSSOId);
 
     //根据id获取运力详细信息
     @PostMapping(value = "api/v1/rms/rmscapacity/getCapacityById/{id}")
@@ -550,4 +551,24 @@ public interface RmsFeign {
     // 查询SSO主键和机构编码
     @PostMapping(value = "api/v1/rms/rmspersonnel/getShipperMap")
     Map<String, Object> getShipperMap(@RequestParam Integer shipperId);
+    //根据运力id查询承运商名称
+    @PostMapping(value = "api/v1/rms/rmscarrier/getCarrierNameById/{id}")
+    Map<String,Object> getCarrierNameById(@PathVariable("id") BigDecimal id);
+
+    //根据司机id查询承运商名称
+    @PostMapping(value = "api/v1/rms/rmscardriver/getCarrierNameByDriverId/{id}")
+    Map<String,Object> getCarrierNameByDriverId(@PathVariable("id") BigDecimal id);
+
+    @ApiOperation(value="新增组织结构实绩")
+    @PostMapping(value = "api/v1/rms/rmsshipper/addShipperResult")
+    Map<String,Object>  addShipperResult(@RequestBody(required = false) Map<String, Object> map);
+
+    @ApiOperation(value="修改组织结构实绩")
+    @PostMapping(value = "api/v1/rms/rmsshipper/updateShipperResult")
+    Map<String,Object>  updateShipperResult(@RequestBody(required = false) Map<String, Object> map);
+
+    @ApiOperation(value="修改组织结构实绩")
+    @PostMapping(value = "api/v1/rms/rmsshipper/deleteShipperResult")
+    Map<String,Object>  deleteShipperResult(@RequestBody(required = false) Map<String, Object> map);
+
 }

+ 5 - 2
src/main/java/com/steerinfo/dil/mapper/DilVersionMapper.java

@@ -14,8 +14,11 @@ public interface DilVersionMapper extends IBaseMapper<DilVersion, BigDecimal> {
     @Select("select max(DV.VERSION_ID) + 1 from DIL_VERSION")
     BigDecimal selectMaxId();
 
-    //查询最新的版本号
-    String compareVersion();
+    //查询最新的APP版本号
+    String getAppVersion();
+
+    //查询最新的PDA版本号
+    String getPDAVersion();
 
     //查询版本号是否已存在
     Integer getVersionId(String version);

+ 15 - 0
src/main/java/com/steerinfo/dil/model/DilVersion.java

@@ -50,6 +50,12 @@ public class DilVersion implements IBasePO<BigDecimal> {
     @ApiModelProperty(value="记录创建或修改备注",required=false)
     private String insertUpdateRemark;
 
+    /**
+     * 版本类型(0:APP   1:PDA)(VERSION_TYPE,DECIMAL,0)
+     */
+    @ApiModelProperty(value="版本类型(0:APP   1:PDA)",required=false)
+    private Short versionType;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -118,6 +124,14 @@ public class DilVersion implements IBasePO<BigDecimal> {
         this.insertUpdateRemark = insertUpdateRemark == null ? null : insertUpdateRemark.trim();
     }
 
+    public Short getVersionType() {
+        return versionType;
+    }
+
+    public void setVersionType(Short versionType) {
+        this.versionType = versionType;
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -131,6 +145,7 @@ public class DilVersion implements IBasePO<BigDecimal> {
         sb.append(", updateUsername=").append(updateUsername);
         sb.append(", updateTime=").append(updateTime);
         sb.append(", insertUpdateRemark=").append(insertUpdateRemark);
+        sb.append(", versionType=").append(versionType);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 1 - 1
src/main/java/com/steerinfo/dil/service/IDilVersionService.java

@@ -20,7 +20,7 @@ import java.math.BigDecimal;
  */
 public interface IDilVersionService{
 
-    int compareAppVersion(String version);
+    String getAppVersion();
 
     String addAppVersion(String version);
 

+ 13 - 10
src/main/java/com/steerinfo/dil/service/impl/DilVersionServiceImpl.java

@@ -32,18 +32,21 @@ public class DilVersionServiceImpl implements IDilVersionService {
 
 
     /**
-     * 传入版本号查询是否为最新版本
-     * @param version 版本号
-     * @return 0 不需要更新  1 需要更新
+     * 查询最新版本号
+     * @return 版本号
      */
-    public int compareAppVersion(String version){
+    public String getAppVersion(){
         //查找当前最新版本号
-        String theLastVersion = dilVersionMapper.compareVersion();
-        //判断是否为最新版本号
-        if(theLastVersion.equals(version)){
-            return 0;
-        }
-        return 1;
+        return  dilVersionMapper.getAppVersion();
+    }
+
+    /**
+     * 查询PDA最新版本号
+     * @return
+     */
+    public String getPDAVersion(){
+        //查询PDA当前最新版本号
+        return dilVersionMapper.getPDAVersion();
     }
 
     /**

+ 129 - 93
src/main/resources/com/steerinfo/dil/mapper/DilVersionMapper.xml

@@ -9,23 +9,24 @@
     <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
     <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
     <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
+    <result column="VERSION_TYPE" jdbcType="DECIMAL" property="versionType" />
   </resultMap>
   <sql id="columns">
     VERSION_ID, VERSION_VALUE, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, 
-    INSERT_UPDATE_REMARK
+    INSERT_UPDATE_REMARK, VERSION_TYPE
   </sql>
   <sql id="columns_alias">
     t.VERSION_ID, t.VERSION_VALUE, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, 
-    t.UPDATE_TIME, t.INSERT_UPDATE_REMARK
+    t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.VERSION_TYPE
   </sql>
   <sql id="select">
-    SELECT <include refid="columns"/> FROM DIL_VERSION
+    SELECT <include refid="columns" /> FROM DIL_VERSION
   </sql>
   <sql id="select_alias">
-    SELECT <include refid="columns_alias"/> FROM DIL_VERSION t
+    SELECT <include refid="columns_alias" /> FROM DIL_VERSION t
   </sql>
   <sql id="where">
-    <where> 
+    <where>
       <if test="versionId != null">
         and VERSION_ID = #{versionId}
       </if>
@@ -47,10 +48,13 @@
       <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
         and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
       </if>
+      <if test="versionType != null">
+        and VERSION_TYPE = #{versionType}
+      </if>
     </where>
   </sql>
   <sql id="whereLike">
-    <where> 
+    <where>
       <if test="versionId != null">
         and VERSION_ID = #{versionId}
       </if>
@@ -72,6 +76,9 @@
       <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
         and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
       </if>
+      <if test="versionType != null">
+        and VERSION_TYPE = #{versionType}
+      </if>
     </where>
   </sql>
   <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
@@ -80,33 +87,36 @@
   </delete>
   <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
     delete from DIL_VERSION
-    where 1!=1 
-      <if test="versionValue != null and versionValue != ''">
-        or VERSION_VALUE = #{versionValue}
-      </if>
-      <if test="insertUsername != null and insertUsername != ''">
-        or INSERT_USERNAME = #{insertUsername}
-      </if>
-      <if test="insertTime != null">
-        or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
-      </if>
-      <if test="updateUsername != null and updateUsername != ''">
-        or UPDATE_USERNAME = #{updateUsername}
-      </if>
-      <if test="updateTime != null">
-        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
-      </if>
-      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
-        or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
-      </if>
+    where 1!=1
+    <if test="versionValue != null and versionValue != ''">
+      or VERSION_VALUE = #{versionValue}
+    </if>
+    <if test="insertUsername != null and insertUsername != ''">
+      or INSERT_USERNAME = #{insertUsername}
+    </if>
+    <if test="insertTime != null">
+      or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
+    </if>
+    <if test="updateUsername != null and updateUsername != ''">
+      or UPDATE_USERNAME = #{updateUsername}
+    </if>
+    <if test="updateTime != null">
+      or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+    </if>
+    <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+      or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
+    </if>
+    <if test="versionType != null">
+      or VERSION_TYPE = #{versionType}
+    </if>
   </delete>
   <insert id="insert" parameterType="com.steerinfo.dil.model.DilVersion">
-    insert into DIL_VERSION (VERSION_ID, VERSION_VALUE, INSERT_USERNAME, 
-      INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, 
-      INSERT_UPDATE_REMARK)
-    values (#{versionId,jdbcType=DECIMAL}, #{versionValue,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, 
-      #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
-      #{insertUpdateRemark,jdbcType=VARCHAR})
+    insert into DIL_VERSION (VERSION_ID, VERSION_VALUE, INSERT_USERNAME,
+                             INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
+                             INSERT_UPDATE_REMARK, VERSION_TYPE)
+    values (#{versionId,jdbcType=DECIMAL}, #{versionValue,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
+            #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
+            #{insertUpdateRemark,jdbcType=VARCHAR}, #{versionType,jdbcType=DECIMAL})
   </insert>
   <insert id="insertSelective" parameterType="com.steerinfo.dil.model.DilVersion">
     insert into DIL_VERSION
@@ -132,6 +142,9 @@
       <if test="insertUpdateRemark != null">
         INSERT_UPDATE_REMARK,
       </if>
+      <if test="versionType != null">
+        VERSION_TYPE,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="versionId != null">
@@ -155,16 +168,20 @@
       <if test="insertUpdateRemark != null">
         #{insertUpdateRemark,jdbcType=VARCHAR},
       </if>
+      <if test="versionType != null">
+        #{versionType,jdbcType=DECIMAL},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.DilVersion">
     update DIL_VERSION
     set VERSION_VALUE = #{versionValue,jdbcType=VARCHAR},
-      INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
-      INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
-      UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
-      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-      INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}
+        INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+        INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+        UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+        INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
+        VERSION_TYPE = #{versionType,jdbcType=DECIMAL}
     where VERSION_ID = #{versionId,jdbcType=DECIMAL}
   </update>
   <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.DilVersion">
@@ -188,88 +205,95 @@
       <if test="insertUpdateRemark != null">
         INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
       </if>
+      <if test="versionType != null">
+        VERSION_TYPE = #{versionType,jdbcType=DECIMAL},
+      </if>
     </set>
     where VERSION_ID = #{versionId,jdbcType=DECIMAL}
   </update>
   <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
-    <include refid="select"/>
+    <include refid="select" />
     where VERSION_ID = #{versionId,jdbcType=DECIMAL}
   </select>
   <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-    <include refid="select"/>
-    <include refid="where"/>
+    <include refid="select" />
+    <include refid="where" />
   </select>
   <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-    <include refid="select"/>
-    <include refid="whereLike"/>
+    <include refid="select" />
+    <include refid="whereLike" />
   </select>
   <insert id="batchInsert" parameterType="java.util.List">
-    insert into DIL_VERSION 
-      (VERSION_ID, 
-      VERSION_VALUE, INSERT_USERNAME, 
-      INSERT_TIME, UPDATE_USERNAME, 
-      UPDATE_TIME, INSERT_UPDATE_REMARK
-      )
-    ( <foreach collection="list" item="item" separator="union all"> 
-   select  
-      #{item.versionId,jdbcType=DECIMAL}, 
-      #{item.versionValue,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR}, 
-      #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, 
-      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}
-       from dual  
-   </foreach> )
+    insert into DIL_VERSION
+    (VERSION_ID,
+    VERSION_VALUE, INSERT_USERNAME,
+    INSERT_TIME, UPDATE_USERNAME,
+    UPDATE_TIME, INSERT_UPDATE_REMARK,
+    VERSION_TYPE)
+    ( <foreach collection="list" item="item" separator="union all">
+    select
+    #{item.versionId,jdbcType=DECIMAL},
+    #{item.versionValue,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
+    #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
+    #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
+    #{item.versionType,jdbcType=DECIMAL} from dual
+  </foreach> )
   </insert>
   <update id="batchUpdate" parameterType="java.util.List">
-     update DIL_VERSION
-     set
-       VERSION_ID=
-       <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
-          when #{item.versionId,jdbcType=DECIMAL} then #{item.versionId,jdbcType=DECIMAL}
-       </foreach>
-       ,VERSION_VALUE=
-       <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
-          when #{item.versionId,jdbcType=DECIMAL} then #{item.versionValue,jdbcType=VARCHAR}
-       </foreach>
-       ,INSERT_USERNAME=
-       <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
-          when #{item.versionId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
-       </foreach>
-       ,INSERT_TIME=
-       <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
-          when #{item.versionId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
-       </foreach>
-       ,UPDATE_USERNAME=
-       <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
-          when #{item.versionId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
-       </foreach>
-       ,UPDATE_TIME=
-       <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
-          when #{item.versionId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
-       </foreach>
-       ,INSERT_UPDATE_REMARK=
-       <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
-          when #{item.versionId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
-       </foreach>
-     where VERSION_ID in 
-     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
-    #{item.versionId,jdbcType=DECIMAL}
-     </foreach> 
+    update DIL_VERSION
+    set
+    VERSION_ID=
+    <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
+      when #{item.versionId,jdbcType=DECIMAL} then #{item.versionId,jdbcType=DECIMAL}
+    </foreach>
+    ,VERSION_VALUE=
+    <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
+      when #{item.versionId,jdbcType=DECIMAL} then #{item.versionValue,jdbcType=VARCHAR}
+    </foreach>
+    ,INSERT_USERNAME=
+    <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
+      when #{item.versionId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+    </foreach>
+    ,INSERT_TIME=
+    <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
+      when #{item.versionId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+    </foreach>
+    ,UPDATE_USERNAME=
+    <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
+      when #{item.versionId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+    </foreach>
+    ,UPDATE_TIME=
+    <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
+      when #{item.versionId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+    </foreach>
+    ,INSERT_UPDATE_REMARK=
+    <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
+      when #{item.versionId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+    </foreach>
+    ,VERSION_TYPE=
+    <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
+      when #{item.versionId,jdbcType=DECIMAL} then #{item.versionType,jdbcType=DECIMAL}
+    </foreach>
+    where VERSION_ID in
+    <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
+      #{item.versionId,jdbcType=DECIMAL}
+    </foreach>
   </update>
   <delete id="batchDelete" parameterType="java.util.List">
     delete from DIL_VERSION
-    where VERSION_ID in 
-    <foreach collection="list" item="id" open="(" close=")" separator=",">
+    where VERSION_ID in
+    <foreach close=")" collection="list" item="id" open="(" separator=",">
       #{id}
     </foreach>
   </delete>
   <!-- 友情提示!!!-->
   <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
-
-  <select id="compareVersion" resultType="string">
+  <select id="getAppVersion" resultType="string">
     select *
     from (
            select DV.VERSION_VALUE
            from DIL_VERSION DV
+           where DV.VERSION_TYPE = 0
            order by DV.VERSION_ID desc
          )
     where ROWNUM = 1
@@ -281,4 +305,16 @@
     where DV.VERSION_VALUE = #{versionValue}
   </select>
 
+
+  <select id="getPDAVersion" resultType="java.lang.String">
+    select *
+    from (
+           select DV.VERSION_VALUE
+           from DIL_VERSION DV
+           where DV.VERSION_TYPE = 1
+           order by DV.VERSION_ID desc
+         )
+    where ROWNUM = 1
+  </select>
+
 </mapper>

+ 1 - 1
src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

@@ -314,7 +314,7 @@
                 RM.MATERIAL_CODE LIKE #{startNum}
             </if>
             <if test="startNum == null">
-                RM.MATERIAL_CODE LIKE '010%' OR RM.MATERIAL_CODE LIKE '0801%'
+                RM.MATERIAL_CODE LIKE '010%' OR RM.MATERIAL_CODE LIKE '080%'
             </if>
         </where>
         )