Redeem пре 1 година
родитељ
комит
a2f554b14a

+ 1 - 1
pom.xml

@@ -111,7 +111,7 @@
                     <!--包名-->
                     <targetPackage>com.steerinfo.dil</targetPackage>
                     <tables>
-                        <param>RMS_OIL_PRICE</param>
+                        <param>RMS_DIRECTLY_SENT_CITY</param>
                     </tables>
                 </configuration>
                 <executions>

+ 70 - 0
src/main/java/com/steerinfo/dil/controller/RmsDirectlySentCityController.java

@@ -0,0 +1,70 @@
+package com.steerinfo.dil.controller;
+
+
+import com.steerinfo.dil.service.impl.RmsDirectlySentCityServiceImpl;
+import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.dil.util.ColumnDataUtil;
+import com.steerinfo.dil.util.PageListAdd;
+import com.steerinfo.framework.controller.RESTfulResult;
+import com.steerinfo.framework.service.pagehelper.PageHelper;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/${api.version}/RmsDirectlySentCity")
+public class RmsDirectlySentCityController extends BaseRESTfulController {
+
+    @Resource
+    RmsDirectlySentCityServiceImpl rmsDirectlySentCityService;
+
+    @Resource
+    ColumnDataUtil columnDataUtil;
+
+
+    @ApiOperation("查询直发城市维护表")
+    @PostMapping(value = "/getDirectlySentCity")
+    public RESTfulResult getDirectlySentCity(@RequestBody(required = false) Map<String,Object> mapValue,
+                                             Integer apiId,
+                                             Integer pageNum,
+                                             Integer pageSize,
+                                             String con) {
+        if (mapValue==null){
+            mapValue=new HashMap<>();
+        }
+        if (con != null && !"null".equals(con)){
+            mapValue.put("con","%" + con + "%");
+        }
+        PageHelper.startPage(pageNum, pageSize);
+        //分页查询数据
+        List<Map<String, Object>> columnList = rmsDirectlySentCityService.getDirectlySentCity(mapValue);
+        PageListAdd data = columnDataUtil.tableColumnData(apiId, null, columnList);
+        return success(data);
+    }
+
+    @ApiOperation("新增直发城市维护")
+    @PostMapping("insertDirectlySentCityInfo")
+    public RESTfulResult insertDirectlySentCityInfo(@RequestBody Map<String,Object> map) {
+        int i = rmsDirectlySentCityService.insertDirectlySentCityInfo(map);
+        return success();
+    }
+
+    @ApiOperation("删除直发城市维护")
+    @PostMapping("deleteInfo")
+    public RESTfulResult deleteInfo(@RequestBody Map<String,Object> map) {
+        if(map.get("primaryKeyId") != null) {
+            int i = rmsDirectlySentCityService.deleteInfo(map);
+            return success(i);
+        }else{
+            return failed("删除失败");
+        }
+    }
+}

+ 59 - 0
src/main/java/com/steerinfo/dil/controller/RmsMaterialSingleWeightController.java

@@ -0,0 +1,59 @@
+package com.steerinfo.dil.controller;
+
+
+import com.steerinfo.dil.service.impl.RmsMaterialSingleWeightServiceImpl;
+import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.dil.util.ColumnDataUtil;
+import com.steerinfo.dil.util.PageListAdd;
+import com.steerinfo.framework.controller.RESTfulResult;
+import com.steerinfo.framework.service.pagehelper.PageHelper;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/${api.version}/rmsMaterialSingleWeight")
+public class RmsMaterialSingleWeightController extends BaseRESTfulController {
+
+    @Resource
+    RmsMaterialSingleWeightServiceImpl rmsMaterialSingleWeightService;
+
+    @Resource
+    ColumnDataUtil columnDataUtil;
+
+
+
+    @ApiOperation(value="框计算物资种类", notes="分页查询")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "apiId", value = "376", required = false, dataType = "BigDecimal"),
+    })
+    @PostMapping(value = "/getMaterialSingleWeightList")
+    public RESTfulResult getMaterialSingleWeightList(@RequestBody(required = false) Map<String,Object> mapValue,
+                                             Integer apiId,
+                                             Integer pageNum,
+                                             Integer pageSize,
+                                             String con){
+        if (mapValue==null){
+            mapValue=new HashMap<>();
+        }
+        if (con != null && !"null".equals(con)){
+            mapValue.put("con","%" + con + "%");
+        }
+        PageHelper.startPage(pageNum, pageSize);
+        //分页查询数据
+        List<Map<String, Object>> columnList = rmsMaterialSingleWeightService.getMaterialSingleWeightList(mapValue);
+        PageListAdd data = columnDataUtil.tableColumnData(apiId, null, columnList);
+        return success(data);
+    }
+}

+ 18 - 0
src/main/java/com/steerinfo/dil/mapper/RmsDirectlySentCityMapper.java

@@ -0,0 +1,18 @@
+package com.steerinfo.dil.mapper;
+
+import com.steerinfo.dil.model.RmsDirectlySentCity;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.math.BigDecimal;
+import java.util.List;
+import java.util.Map;
+
+@Mapper
+public interface RmsDirectlySentCityMapper extends IBaseMapper<RmsDirectlySentCity, BigDecimal> {
+
+
+    List<Map<String, Object>> getDirectlySentCity(Map<String, Object> mapValue);
+
+    BigDecimal getMaxId();
+}

+ 18 - 0
src/main/java/com/steerinfo/dil/mapper/RmsMaterialSingleWeightMapper.java

@@ -0,0 +1,18 @@
+package com.steerinfo.dil.mapper;
+
+import com.steerinfo.dil.model.RmsMaterialSingleWeight;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.math.BigDecimal;
+import java.util.List;
+import java.util.Map;
+
+@Mapper
+public interface RmsMaterialSingleWeightMapper extends IBaseMapper<RmsMaterialSingleWeight, BigDecimal> {
+
+    List<Map<String, Object>> getMaterialSingleWeightList(Map<String, Object> mapValue);
+
+    List<Map<String, Object>> getOrderMaterialInfo();
+
+}

+ 272 - 0
src/main/java/com/steerinfo/dil/model/RmsDirectlySentCity.java

@@ -0,0 +1,272 @@
+package com.steerinfo.dil.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+
+@ApiModel(value="直发城市维护")
+public class RmsDirectlySentCity implements IBasePO<BigDecimal> {
+    /**
+     * 主键ID(PRIMARY_KEY_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="主键ID",required=true)
+    private BigDecimal primaryKeyId;
+
+    /**
+     * 直发名字(DIRECTLY_SENT_NAME,VARCHAR,255)
+     */
+    @ApiModelProperty(value="直发名字",required=false)
+    private String directlySentName;
+
+    /**
+     * 市城市(DISTRICT_CITY,VARCHAR,255)
+     */
+    @ApiModelProperty(value="市城市",required=false)
+    private String districtCity;
+
+    /**
+     * 县镇城市(TOWN_CITY,VARCHAR,255)
+     */
+    @ApiModelProperty(value="县镇城市",required=false)
+    private String townCity;
+
+    /**
+     * 地点名称(PLACE,VARCHAR,255)
+     */
+    @ApiModelProperty(value="地点名称",required=false)
+    private String place;
+
+    /**
+     * 承运商ID(CARRIER_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="承运商ID",required=false)
+    private BigDecimal carrierId;
+
+    /**
+     * 备注(REMARK,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备注",required=false)
+    private String remark;
+
+    /**
+     * 备用字段1(ALTERNATE_FIELDS1,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段1",required=false)
+    private String alternateFields1;
+
+    /**
+     * 备用字段2(ALTERNATE_FIELDS2,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段2",required=false)
+    private String alternateFields2;
+
+    /**
+     * 备用字段3(ALTERNATE_FIELDS3,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段3",required=false)
+    private String alternateFields3;
+
+    /**
+     * 备用字段4(ALTERNATE_FIELDS4,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段4",required=false)
+    private String alternateFields4;
+
+    /**
+     * 备用字段5(ALTERNATE_FIELDS5,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段5",required=false)
+    private String alternateFields5;
+
+    /**
+     * 备用字段6(ALTERNATE_FIELDS6,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段6",required=false)
+    private String alternateFields6;
+
+    /**
+     * 备用字段7(ALTERNATE_FIELDS7,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段7",required=false)
+    private String alternateFields7;
+
+    /**
+     * 备用字段8(ALTERNATE_FIELDS8,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段8",required=false)
+    private String alternateFields8;
+
+    /**
+     * 省(PROVINCE_CITY,VARCHAR,255)
+     */
+    @ApiModelProperty(value="省",required=false)
+    private String provinceCity;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public BigDecimal getId() {
+        return this.primaryKeyId;
+    }
+
+    @Override
+    public void setId(BigDecimal primaryKeyId) {
+        this.primaryKeyId = primaryKeyId;
+    }
+
+    public BigDecimal getPrimaryKeyId() {
+        return primaryKeyId;
+    }
+
+    public void setPrimaryKeyId(BigDecimal primaryKeyId) {
+        this.primaryKeyId = primaryKeyId;
+    }
+
+    public String getDirectlySentName() {
+        return directlySentName;
+    }
+
+    public void setDirectlySentName(String directlySentName) {
+        this.directlySentName = directlySentName == null ? null : directlySentName.trim();
+    }
+
+    public String getDistrictCity() {
+        return districtCity;
+    }
+
+    public void setDistrictCity(String districtCity) {
+        this.districtCity = districtCity == null ? null : districtCity.trim();
+    }
+
+    public String getTownCity() {
+        return townCity;
+    }
+
+    public void setTownCity(String townCity) {
+        this.townCity = townCity == null ? null : townCity.trim();
+    }
+
+    public String getPlace() {
+        return place;
+    }
+
+    public void setPlace(String place) {
+        this.place = place == null ? null : place.trim();
+    }
+
+    public BigDecimal getCarrierId() {
+        return carrierId;
+    }
+
+    public void setCarrierId(BigDecimal carrierId) {
+        this.carrierId = carrierId;
+    }
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark == null ? null : remark.trim();
+    }
+
+    public String getAlternateFields1() {
+        return alternateFields1;
+    }
+
+    public void setAlternateFields1(String alternateFields1) {
+        this.alternateFields1 = alternateFields1 == null ? null : alternateFields1.trim();
+    }
+
+    public String getAlternateFields2() {
+        return alternateFields2;
+    }
+
+    public void setAlternateFields2(String alternateFields2) {
+        this.alternateFields2 = alternateFields2 == null ? null : alternateFields2.trim();
+    }
+
+    public String getAlternateFields3() {
+        return alternateFields3;
+    }
+
+    public void setAlternateFields3(String alternateFields3) {
+        this.alternateFields3 = alternateFields3 == null ? null : alternateFields3.trim();
+    }
+
+    public String getAlternateFields4() {
+        return alternateFields4;
+    }
+
+    public void setAlternateFields4(String alternateFields4) {
+        this.alternateFields4 = alternateFields4 == null ? null : alternateFields4.trim();
+    }
+
+    public String getAlternateFields5() {
+        return alternateFields5;
+    }
+
+    public void setAlternateFields5(String alternateFields5) {
+        this.alternateFields5 = alternateFields5 == null ? null : alternateFields5.trim();
+    }
+
+    public String getAlternateFields6() {
+        return alternateFields6;
+    }
+
+    public void setAlternateFields6(String alternateFields6) {
+        this.alternateFields6 = alternateFields6 == null ? null : alternateFields6.trim();
+    }
+
+    public String getAlternateFields7() {
+        return alternateFields7;
+    }
+
+    public void setAlternateFields7(String alternateFields7) {
+        this.alternateFields7 = alternateFields7 == null ? null : alternateFields7.trim();
+    }
+
+    public String getAlternateFields8() {
+        return alternateFields8;
+    }
+
+    public void setAlternateFields8(String alternateFields8) {
+        this.alternateFields8 = alternateFields8 == null ? null : alternateFields8.trim();
+    }
+
+    public String getProvinceCity() {
+        return provinceCity;
+    }
+
+    public void setProvinceCity(String provinceCity) {
+        this.provinceCity = provinceCity == null ? null : provinceCity.trim();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", primaryKeyId=").append(primaryKeyId);
+        sb.append(", directlySentName=").append(directlySentName);
+        sb.append(", districtCity=").append(districtCity);
+        sb.append(", townCity=").append(townCity);
+        sb.append(", place=").append(place);
+        sb.append(", carrierId=").append(carrierId);
+        sb.append(", remark=").append(remark);
+        sb.append(", alternateFields1=").append(alternateFields1);
+        sb.append(", alternateFields2=").append(alternateFields2);
+        sb.append(", alternateFields3=").append(alternateFields3);
+        sb.append(", alternateFields4=").append(alternateFields4);
+        sb.append(", alternateFields5=").append(alternateFields5);
+        sb.append(", alternateFields6=").append(alternateFields6);
+        sb.append(", alternateFields7=").append(alternateFields7);
+        sb.append(", alternateFields8=").append(alternateFields8);
+        sb.append(", provinceCity=").append(provinceCity);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 213 - 0
src/main/java/com/steerinfo/dil/model/RmsMaterialSingleWeight.java

@@ -0,0 +1,213 @@
+package com.steerinfo.dil.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.math.BigDecimal;
+
+@ApiModel(value="物资理论单重维护表")
+public class RmsMaterialSingleWeight implements IBasePO<BigDecimal> {
+    /**
+     * 主键ID(PRIMARY_KEY_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="主键ID",required=true)
+    private BigDecimal primaryKeyId;
+
+    /**
+     * 物资ID(MATERIAL_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="物资ID",required=false)
+    private BigDecimal materialId;
+
+    /**
+     * 米数(METER,DECIMAL,38)
+     */
+    @ApiModelProperty(value="米数",required=false)
+    private BigDecimal meter;
+
+    /**
+     * 单重(SINGLE_WEIGHT,DECIMAL,38)
+     */
+    @ApiModelProperty(value="单重",required=false)
+    private BigDecimal singleWeight;
+
+    /**
+     * 备用字段1(ALTERNATE_FIELDS1,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段1",required=false)
+    private String alternateFields1;
+
+    /**
+     * 备用字段2(ALTERNATE_FIELDS2,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段2",required=false)
+    private String alternateFields2;
+
+    /**
+     * 备用字段3(ALTERNATE_FIELDS3,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段3",required=false)
+    private String alternateFields3;
+
+    /**
+     * 备用字段4(ALTERNATE_FIELDS4,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段4",required=false)
+    private String alternateFields4;
+
+    /**
+     * 备用字段5(ALTERNATE_FIELDS5,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段5",required=false)
+    private String alternateFields5;
+
+    /**
+     * 备用字段6(ALTERNATE_FIELDS6,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段6",required=false)
+    private String alternateFields6;
+
+    /**
+     * 备用字段7(ALTERNATE_FIELDS7,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段7",required=false)
+    private String alternateFields7;
+
+    /**
+     * 备用字段8(ALTERNATE_FIELDS8,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备用字段8",required=false)
+    private String alternateFields8;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public BigDecimal getId() {
+        return this.primaryKeyId;
+    }
+
+    @Override
+    public void setId(BigDecimal primaryKeyId) {
+        this.primaryKeyId = primaryKeyId;
+    }
+
+    public BigDecimal getPrimaryKeyId() {
+        return primaryKeyId;
+    }
+
+    public void setPrimaryKeyId(BigDecimal primaryKeyId) {
+        this.primaryKeyId = primaryKeyId;
+    }
+
+    public BigDecimal getMaterialId() {
+        return materialId;
+    }
+
+    public void setMaterialId(BigDecimal materialId) {
+        this.materialId = materialId;
+    }
+
+    public BigDecimal getMeter() {
+        return meter;
+    }
+
+    public void setMeter(BigDecimal meter) {
+        this.meter = meter;
+    }
+
+    public BigDecimal getSingleWeight() {
+        return singleWeight;
+    }
+
+    public void setSingleWeight(BigDecimal singleWeight) {
+        this.singleWeight = singleWeight;
+    }
+
+    public String getAlternateFields1() {
+        return alternateFields1;
+    }
+
+    public void setAlternateFields1(String alternateFields1) {
+        this.alternateFields1 = alternateFields1 == null ? null : alternateFields1.trim();
+    }
+
+    public String getAlternateFields2() {
+        return alternateFields2;
+    }
+
+    public void setAlternateFields2(String alternateFields2) {
+        this.alternateFields2 = alternateFields2 == null ? null : alternateFields2.trim();
+    }
+
+    public String getAlternateFields3() {
+        return alternateFields3;
+    }
+
+    public void setAlternateFields3(String alternateFields3) {
+        this.alternateFields3 = alternateFields3 == null ? null : alternateFields3.trim();
+    }
+
+    public String getAlternateFields4() {
+        return alternateFields4;
+    }
+
+    public void setAlternateFields4(String alternateFields4) {
+        this.alternateFields4 = alternateFields4 == null ? null : alternateFields4.trim();
+    }
+
+    public String getAlternateFields5() {
+        return alternateFields5;
+    }
+
+    public void setAlternateFields5(String alternateFields5) {
+        this.alternateFields5 = alternateFields5 == null ? null : alternateFields5.trim();
+    }
+
+    public String getAlternateFields6() {
+        return alternateFields6;
+    }
+
+    public void setAlternateFields6(String alternateFields6) {
+        this.alternateFields6 = alternateFields6 == null ? null : alternateFields6.trim();
+    }
+
+    public String getAlternateFields7() {
+        return alternateFields7;
+    }
+
+    public void setAlternateFields7(String alternateFields7) {
+        this.alternateFields7 = alternateFields7 == null ? null : alternateFields7.trim();
+    }
+
+    public String getAlternateFields8() {
+        return alternateFields8;
+    }
+
+    public void setAlternateFields8(String alternateFields8) {
+        this.alternateFields8 = alternateFields8 == null ? null : alternateFields8.trim();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", primaryKeyId=").append(primaryKeyId);
+        sb.append(", materialId=").append(materialId);
+        sb.append(", meter=").append(meter);
+        sb.append(", singleWeight=").append(singleWeight);
+        sb.append(", alternateFields1=").append(alternateFields1);
+        sb.append(", alternateFields2=").append(alternateFields2);
+        sb.append(", alternateFields3=").append(alternateFields3);
+        sb.append(", alternateFields4=").append(alternateFields4);
+        sb.append(", alternateFields5=").append(alternateFields5);
+        sb.append(", alternateFields6=").append(alternateFields6);
+        sb.append(", alternateFields7=").append(alternateFields7);
+        sb.append(", alternateFields8=").append(alternateFields8);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 4 - 0
src/main/java/com/steerinfo/dil/service/IRmsDirectlySentCityService.java

@@ -0,0 +1,4 @@
+package com.steerinfo.dil.service;
+
+public interface IRmsDirectlySentCityService {
+}

+ 4 - 0
src/main/java/com/steerinfo/dil/service/IRmsMaterialSingleWeightService.java

@@ -0,0 +1,4 @@
+package com.steerinfo.dil.service;
+
+public interface IRmsMaterialSingleWeightService {
+}

+ 50 - 0
src/main/java/com/steerinfo/dil/service/impl/RmsDirectlySentCityServiceImpl.java

@@ -0,0 +1,50 @@
+package com.steerinfo.dil.service.impl;
+
+
+import com.steerinfo.dil.mapper.RmsDirectlySentCityMapper;
+import com.steerinfo.dil.model.RmsDirectlySentCity;
+import com.steerinfo.dil.service.IRmsDirectlySentCityService;
+import com.steerinfo.dil.service.IRmsDriverCapacityService;
+import com.steerinfo.dil.util.DataChange;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import javax.xml.crypto.Data;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+@Service
+public class RmsDirectlySentCityServiceImpl implements IRmsDirectlySentCityService {
+
+    @Resource
+    RmsDirectlySentCityMapper rmsDirectlySentCityMapper;
+
+
+    public List<Map<String, Object>> getDirectlySentCity(Map<String, Object> mapValue) {
+        return rmsDirectlySentCityMapper.getDirectlySentCity(mapValue);
+    }
+
+    public int insertDirectlySentCityInfo(Map<String, Object> map) {
+        List<Map<String,Object>> mapList = (List<Map<String, Object>>) map.get("mapList");
+        List<RmsDirectlySentCity> rmsDirectlySentCities = new ArrayList<>();
+        for(Map<String,Object> infoMap : mapList) {
+            RmsDirectlySentCity rmsDirectlySentCity = new RmsDirectlySentCity();
+            rmsDirectlySentCity.setPrimaryKeyId(rmsDirectlySentCityMapper.getMaxId());
+            rmsDirectlySentCity.setDirectlySentName(infoMap.get("directlySentName") + "");
+            rmsDirectlySentCity.setProvinceCity(infoMap.get("provinceName") + "");
+            rmsDirectlySentCity.setDistrictCity(infoMap.get("districtName") + "");
+            rmsDirectlySentCity.setTownCity(infoMap.get("townName") + "");
+            rmsDirectlySentCity.setPlace(infoMap.get("place") + "");
+            rmsDirectlySentCity.setCarrierId(DataChange.dataToBigDecimal(infoMap.get("carrierId")));
+            rmsDirectlySentCity.setAlternateFields1(map.get("userName") + "");
+            rmsDirectlySentCities.add(rmsDirectlySentCity);
+        }
+        rmsDirectlySentCityMapper.batchInsert(rmsDirectlySentCities);
+        return 1;
+    }
+
+    public int deleteInfo(Map<String, Object> map) {
+        return rmsDirectlySentCityMapper.deleteByPrimaryKey(DataChange.dataToBigDecimal(map.get("primaryKeyId")));
+    }
+}

+ 28 - 0
src/main/java/com/steerinfo/dil/service/impl/RmsMaterialSingleWeightServiceImpl.java

@@ -0,0 +1,28 @@
+package com.steerinfo.dil.service.impl;
+
+
+import com.steerinfo.dil.mapper.RmsMaterialSingleWeightMapper;
+import com.steerinfo.dil.service.IRmsMaterialSingleWeightService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+@Service
+public class RmsMaterialSingleWeightServiceImpl implements IRmsMaterialSingleWeightService {
+
+
+    @Resource
+    RmsMaterialSingleWeightMapper rmsMaterialSingleWeightMapper;
+
+    public List<Map<String, Object>> getMaterialSingleWeightList(Map<String, Object> mapValue) {
+        return rmsMaterialSingleWeightMapper.getMaterialSingleWeightList(mapValue);
+    }
+
+
+    public int generateInfo() {
+        List<Map<String,Object>> mapList = rmsMaterialSingleWeightMapper.getOrderMaterialInfo();
+        return 1;
+    }
+}

+ 1 - 0
src/main/java/com/steerinfo/dil/service/impl/RmsOilPriceServiceImpl.java

@@ -167,6 +167,7 @@ public class RmsOilPriceServiceImpl implements IRmsOilPriceService {
                 updateMesMap.put("newOilPrice", priceValue);
                 updateMesMap.put("priceDate",rmsOilPrice.getPriceDate());
                 updateMesMap.put("type",transportationType);
+                updateMesMap.put("flag","1");
                 amsFeign.batchUpdateTransportPriceByOilPrice1(updateMesMap);
             }else {
                 //否则设置停用状态

+ 1 - 1
src/main/resources/application-prod.yml

@@ -26,7 +26,7 @@ openFeign:
     ColumnDataFeign:
       url: ${COLUMNDATAFEIGN_URL:172.16.33.166:8083}
     AmsFeign:
-      url: ${AMSFEIGN_URL:172.16.33.166:8079}
+      url: ${AMSFEIGN_URL:localhost:8079}
 
 piction:
   # path: /usr/share/nginx/html/image

+ 518 - 0
src/main/resources/com/steerinfo/dil/mapper/RmsDirectlySentCityMapper.xml

@@ -0,0 +1,518 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.steerinfo.dil.mapper.RmsDirectlySentCityMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsDirectlySentCity">
+    <id column="PRIMARY_KEY_ID" jdbcType="DECIMAL" property="primaryKeyId" />
+    <result column="DIRECTLY_SENT_NAME" jdbcType="VARCHAR" property="directlySentName" />
+    <result column="DISTRICT_CITY" jdbcType="VARCHAR" property="districtCity" />
+    <result column="TOWN_CITY" jdbcType="VARCHAR" property="townCity" />
+    <result column="PLACE" jdbcType="VARCHAR" property="place" />
+    <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
+    <result column="REMARK" jdbcType="VARCHAR" property="remark" />
+    <result column="ALTERNATE_FIELDS1" jdbcType="VARCHAR" property="alternateFields1" />
+    <result column="ALTERNATE_FIELDS2" jdbcType="VARCHAR" property="alternateFields2" />
+    <result column="ALTERNATE_FIELDS3" jdbcType="VARCHAR" property="alternateFields3" />
+    <result column="ALTERNATE_FIELDS4" jdbcType="VARCHAR" property="alternateFields4" />
+    <result column="ALTERNATE_FIELDS5" jdbcType="VARCHAR" property="alternateFields5" />
+    <result column="ALTERNATE_FIELDS6" jdbcType="VARCHAR" property="alternateFields6" />
+    <result column="ALTERNATE_FIELDS7" jdbcType="VARCHAR" property="alternateFields7" />
+    <result column="ALTERNATE_FIELDS8" jdbcType="VARCHAR" property="alternateFields8" />
+    <result column="PROVINCE_CITY" jdbcType="VARCHAR" property="provinceCity" />
+  </resultMap>
+  <sql id="columns">
+    PRIMARY_KEY_ID, DIRECTLY_SENT_NAME, DISTRICT_CITY, TOWN_CITY, PLACE, CARRIER_ID, 
+    REMARK, ALTERNATE_FIELDS1, ALTERNATE_FIELDS2, ALTERNATE_FIELDS3, ALTERNATE_FIELDS4, 
+    ALTERNATE_FIELDS5, ALTERNATE_FIELDS6, ALTERNATE_FIELDS7, ALTERNATE_FIELDS8, PROVINCE_CITY
+  </sql>
+  <sql id="columns_alias">
+    t.PRIMARY_KEY_ID, t.DIRECTLY_SENT_NAME, t.DISTRICT_CITY, t.TOWN_CITY, t.PLACE, t.CARRIER_ID, 
+    t.REMARK, t.ALTERNATE_FIELDS1, t.ALTERNATE_FIELDS2, t.ALTERNATE_FIELDS3, t.ALTERNATE_FIELDS4, 
+    t.ALTERNATE_FIELDS5, t.ALTERNATE_FIELDS6, t.ALTERNATE_FIELDS7, t.ALTERNATE_FIELDS8, 
+    t.PROVINCE_CITY
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM RMS_DIRECTLY_SENT_CITY
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM RMS_DIRECTLY_SENT_CITY t
+  </sql>
+  <sql id="where">
+    <where>
+      <if test="primaryKeyId != null">
+        and PRIMARY_KEY_ID = #{primaryKeyId}
+      </if>
+      <if test="directlySentName != null and directlySentName != ''">
+        and DIRECTLY_SENT_NAME = #{directlySentName}
+      </if>
+      <if test="districtCity != null and districtCity != ''">
+        and DISTRICT_CITY = #{districtCity}
+      </if>
+      <if test="townCity != null and townCity != ''">
+        and TOWN_CITY = #{townCity}
+      </if>
+      <if test="place != null and place != ''">
+        and PLACE = #{place}
+      </if>
+      <if test="carrierId != null">
+        and CARRIER_ID = #{carrierId}
+      </if>
+      <if test="remark != null and remark != ''">
+        and REMARK = #{remark}
+      </if>
+      <if test="alternateFields1 != null and alternateFields1 != ''">
+        and ALTERNATE_FIELDS1 = #{alternateFields1}
+      </if>
+      <if test="alternateFields2 != null and alternateFields2 != ''">
+        and ALTERNATE_FIELDS2 = #{alternateFields2}
+      </if>
+      <if test="alternateFields3 != null and alternateFields3 != ''">
+        and ALTERNATE_FIELDS3 = #{alternateFields3}
+      </if>
+      <if test="alternateFields4 != null and alternateFields4 != ''">
+        and ALTERNATE_FIELDS4 = #{alternateFields4}
+      </if>
+      <if test="alternateFields5 != null and alternateFields5 != ''">
+        and ALTERNATE_FIELDS5 = #{alternateFields5}
+      </if>
+      <if test="alternateFields6 != null and alternateFields6 != ''">
+        and ALTERNATE_FIELDS6 = #{alternateFields6}
+      </if>
+      <if test="alternateFields7 != null and alternateFields7 != ''">
+        and ALTERNATE_FIELDS7 = #{alternateFields7}
+      </if>
+      <if test="alternateFields8 != null and alternateFields8 != ''">
+        and ALTERNATE_FIELDS8 = #{alternateFields8}
+      </if>
+      <if test="provinceCity != null and provinceCity != ''">
+        and PROVINCE_CITY = #{provinceCity}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where>
+      <if test="primaryKeyId != null">
+        and PRIMARY_KEY_ID = #{primaryKeyId}
+      </if>
+      <if test="directlySentName != null and directlySentName != ''">
+        and DIRECTLY_SENT_NAME LIKE '%${directlySentName}%'
+      </if>
+      <if test="districtCity != null and districtCity != ''">
+        and DISTRICT_CITY LIKE '%${districtCity}%'
+      </if>
+      <if test="townCity != null and townCity != ''">
+        and TOWN_CITY LIKE '%${townCity}%'
+      </if>
+      <if test="place != null and place != ''">
+        and PLACE LIKE '%${place}%'
+      </if>
+      <if test="carrierId != null">
+        and CARRIER_ID = #{carrierId}
+      </if>
+      <if test="remark != null and remark != ''">
+        and REMARK LIKE '%${remark}%'
+      </if>
+      <if test="alternateFields1 != null and alternateFields1 != ''">
+        and ALTERNATE_FIELDS1 LIKE '%${alternateFields1}%'
+      </if>
+      <if test="alternateFields2 != null and alternateFields2 != ''">
+        and ALTERNATE_FIELDS2 LIKE '%${alternateFields2}%'
+      </if>
+      <if test="alternateFields3 != null and alternateFields3 != ''">
+        and ALTERNATE_FIELDS3 LIKE '%${alternateFields3}%'
+      </if>
+      <if test="alternateFields4 != null and alternateFields4 != ''">
+        and ALTERNATE_FIELDS4 LIKE '%${alternateFields4}%'
+      </if>
+      <if test="alternateFields5 != null and alternateFields5 != ''">
+        and ALTERNATE_FIELDS5 LIKE '%${alternateFields5}%'
+      </if>
+      <if test="alternateFields6 != null and alternateFields6 != ''">
+        and ALTERNATE_FIELDS6 LIKE '%${alternateFields6}%'
+      </if>
+      <if test="alternateFields7 != null and alternateFields7 != ''">
+        and ALTERNATE_FIELDS7 LIKE '%${alternateFields7}%'
+      </if>
+      <if test="alternateFields8 != null and alternateFields8 != ''">
+        and ALTERNATE_FIELDS8 LIKE '%${alternateFields8}%'
+      </if>
+      <if test="provinceCity != null and provinceCity != ''">
+        and PROVINCE_CITY LIKE '%${provinceCity}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
+    delete from RMS_DIRECTLY_SENT_CITY
+    where PRIMARY_KEY_ID = #{primaryKeyId,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from RMS_DIRECTLY_SENT_CITY
+    where 1!=1
+    <if test="directlySentName != null and directlySentName != ''">
+      or DIRECTLY_SENT_NAME = #{directlySentName}
+    </if>
+    <if test="districtCity != null and districtCity != ''">
+      or DISTRICT_CITY = #{districtCity}
+    </if>
+    <if test="townCity != null and townCity != ''">
+      or TOWN_CITY = #{townCity}
+    </if>
+    <if test="place != null and place != ''">
+      or PLACE = #{place}
+    </if>
+    <if test="carrierId != null">
+      or CARRIER_ID = #{carrierId}
+    </if>
+    <if test="remark != null and remark != ''">
+      or REMARK = #{remark}
+    </if>
+    <if test="alternateFields1 != null and alternateFields1 != ''">
+      or ALTERNATE_FIELDS1 = #{alternateFields1}
+    </if>
+    <if test="alternateFields2 != null and alternateFields2 != ''">
+      or ALTERNATE_FIELDS2 = #{alternateFields2}
+    </if>
+    <if test="alternateFields3 != null and alternateFields3 != ''">
+      or ALTERNATE_FIELDS3 = #{alternateFields3}
+    </if>
+    <if test="alternateFields4 != null and alternateFields4 != ''">
+      or ALTERNATE_FIELDS4 = #{alternateFields4}
+    </if>
+    <if test="alternateFields5 != null and alternateFields5 != ''">
+      or ALTERNATE_FIELDS5 = #{alternateFields5}
+    </if>
+    <if test="alternateFields6 != null and alternateFields6 != ''">
+      or ALTERNATE_FIELDS6 = #{alternateFields6}
+    </if>
+    <if test="alternateFields7 != null and alternateFields7 != ''">
+      or ALTERNATE_FIELDS7 = #{alternateFields7}
+    </if>
+    <if test="alternateFields8 != null and alternateFields8 != ''">
+      or ALTERNATE_FIELDS8 = #{alternateFields8}
+    </if>
+    <if test="provinceCity != null and provinceCity != ''">
+      or PROVINCE_CITY = #{provinceCity}
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.dil.model.RmsDirectlySentCity">
+    insert into RMS_DIRECTLY_SENT_CITY (PRIMARY_KEY_ID, DIRECTLY_SENT_NAME, DISTRICT_CITY,
+                                        TOWN_CITY, PLACE, CARRIER_ID,
+                                        REMARK, ALTERNATE_FIELDS1, ALTERNATE_FIELDS2,
+                                        ALTERNATE_FIELDS3, ALTERNATE_FIELDS4, ALTERNATE_FIELDS5,
+                                        ALTERNATE_FIELDS6, ALTERNATE_FIELDS7, ALTERNATE_FIELDS8,
+                                        PROVINCE_CITY)
+    values (#{primaryKeyId,jdbcType=DECIMAL}, #{directlySentName,jdbcType=VARCHAR}, #{districtCity,jdbcType=VARCHAR},
+            #{townCity,jdbcType=VARCHAR}, #{place,jdbcType=VARCHAR}, #{carrierId,jdbcType=DECIMAL},
+            #{remark,jdbcType=VARCHAR}, #{alternateFields1,jdbcType=VARCHAR}, #{alternateFields2,jdbcType=VARCHAR},
+            #{alternateFields3,jdbcType=VARCHAR}, #{alternateFields4,jdbcType=VARCHAR}, #{alternateFields5,jdbcType=VARCHAR},
+            #{alternateFields6,jdbcType=VARCHAR}, #{alternateFields7,jdbcType=VARCHAR}, #{alternateFields8,jdbcType=VARCHAR},
+            #{provinceCity,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsDirectlySentCity">
+    insert into RMS_DIRECTLY_SENT_CITY
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="primaryKeyId != null">
+        PRIMARY_KEY_ID,
+      </if>
+      <if test="directlySentName != null">
+        DIRECTLY_SENT_NAME,
+      </if>
+      <if test="districtCity != null">
+        DISTRICT_CITY,
+      </if>
+      <if test="townCity != null">
+        TOWN_CITY,
+      </if>
+      <if test="place != null">
+        PLACE,
+      </if>
+      <if test="carrierId != null">
+        CARRIER_ID,
+      </if>
+      <if test="remark != null">
+        REMARK,
+      </if>
+      <if test="alternateFields1 != null">
+        ALTERNATE_FIELDS1,
+      </if>
+      <if test="alternateFields2 != null">
+        ALTERNATE_FIELDS2,
+      </if>
+      <if test="alternateFields3 != null">
+        ALTERNATE_FIELDS3,
+      </if>
+      <if test="alternateFields4 != null">
+        ALTERNATE_FIELDS4,
+      </if>
+      <if test="alternateFields5 != null">
+        ALTERNATE_FIELDS5,
+      </if>
+      <if test="alternateFields6 != null">
+        ALTERNATE_FIELDS6,
+      </if>
+      <if test="alternateFields7 != null">
+        ALTERNATE_FIELDS7,
+      </if>
+      <if test="alternateFields8 != null">
+        ALTERNATE_FIELDS8,
+      </if>
+      <if test="provinceCity != null">
+        PROVINCE_CITY,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="primaryKeyId != null">
+        #{primaryKeyId,jdbcType=DECIMAL},
+      </if>
+      <if test="directlySentName != null">
+        #{directlySentName,jdbcType=VARCHAR},
+      </if>
+      <if test="districtCity != null">
+        #{districtCity,jdbcType=VARCHAR},
+      </if>
+      <if test="townCity != null">
+        #{townCity,jdbcType=VARCHAR},
+      </if>
+      <if test="place != null">
+        #{place,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierId != null">
+        #{carrierId,jdbcType=DECIMAL},
+      </if>
+      <if test="remark != null">
+        #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields1 != null">
+        #{alternateFields1,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields2 != null">
+        #{alternateFields2,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields3 != null">
+        #{alternateFields3,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields4 != null">
+        #{alternateFields4,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields5 != null">
+        #{alternateFields5,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields6 != null">
+        #{alternateFields6,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields7 != null">
+        #{alternateFields7,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields8 != null">
+        #{alternateFields8,jdbcType=VARCHAR},
+      </if>
+      <if test="provinceCity != null">
+        #{provinceCity,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsDirectlySentCity">
+    update RMS_DIRECTLY_SENT_CITY
+    set DIRECTLY_SENT_NAME = #{directlySentName,jdbcType=VARCHAR},
+        DISTRICT_CITY = #{districtCity,jdbcType=VARCHAR},
+        TOWN_CITY = #{townCity,jdbcType=VARCHAR},
+        PLACE = #{place,jdbcType=VARCHAR},
+        CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
+        REMARK = #{remark,jdbcType=VARCHAR},
+        ALTERNATE_FIELDS1 = #{alternateFields1,jdbcType=VARCHAR},
+        ALTERNATE_FIELDS2 = #{alternateFields2,jdbcType=VARCHAR},
+        ALTERNATE_FIELDS3 = #{alternateFields3,jdbcType=VARCHAR},
+        ALTERNATE_FIELDS4 = #{alternateFields4,jdbcType=VARCHAR},
+        ALTERNATE_FIELDS5 = #{alternateFields5,jdbcType=VARCHAR},
+        ALTERNATE_FIELDS6 = #{alternateFields6,jdbcType=VARCHAR},
+        ALTERNATE_FIELDS7 = #{alternateFields7,jdbcType=VARCHAR},
+        ALTERNATE_FIELDS8 = #{alternateFields8,jdbcType=VARCHAR},
+        PROVINCE_CITY = #{provinceCity,jdbcType=VARCHAR}
+    where PRIMARY_KEY_ID = #{primaryKeyId,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsDirectlySentCity">
+    update RMS_DIRECTLY_SENT_CITY
+    <set>
+      <if test="directlySentName != null">
+        DIRECTLY_SENT_NAME = #{directlySentName,jdbcType=VARCHAR},
+      </if>
+      <if test="districtCity != null">
+        DISTRICT_CITY = #{districtCity,jdbcType=VARCHAR},
+      </if>
+      <if test="townCity != null">
+        TOWN_CITY = #{townCity,jdbcType=VARCHAR},
+      </if>
+      <if test="place != null">
+        PLACE = #{place,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierId != null">
+        CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
+      </if>
+      <if test="remark != null">
+        REMARK = #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields1 != null">
+        ALTERNATE_FIELDS1 = #{alternateFields1,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields2 != null">
+        ALTERNATE_FIELDS2 = #{alternateFields2,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields3 != null">
+        ALTERNATE_FIELDS3 = #{alternateFields3,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields4 != null">
+        ALTERNATE_FIELDS4 = #{alternateFields4,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields5 != null">
+        ALTERNATE_FIELDS5 = #{alternateFields5,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields6 != null">
+        ALTERNATE_FIELDS6 = #{alternateFields6,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields7 != null">
+        ALTERNATE_FIELDS7 = #{alternateFields7,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields8 != null">
+        ALTERNATE_FIELDS8 = #{alternateFields8,jdbcType=VARCHAR},
+      </if>
+      <if test="provinceCity != null">
+        PROVINCE_CITY = #{provinceCity,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where PRIMARY_KEY_ID = #{primaryKeyId,jdbcType=DECIMAL}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where PRIMARY_KEY_ID = #{primaryKeyId,jdbcType=DECIMAL}
+  </select>
+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="where"/>
+  </select>
+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="whereLike"/>
+  </select>
+  <insert id="batchInsert" parameterType="java.util.List">
+    insert into RMS_DIRECTLY_SENT_CITY
+    (PRIMARY_KEY_ID,
+    DIRECTLY_SENT_NAME, DISTRICT_CITY,
+    TOWN_CITY, PLACE, CARRIER_ID,
+    REMARK, ALTERNATE_FIELDS1, ALTERNATE_FIELDS2,
+    ALTERNATE_FIELDS3, ALTERNATE_FIELDS4,
+    ALTERNATE_FIELDS5, ALTERNATE_FIELDS6,
+    ALTERNATE_FIELDS7, ALTERNATE_FIELDS8,
+    PROVINCE_CITY)
+    ( <foreach collection="list" item="item" separator="union all">
+    select
+    #{item.primaryKeyId,jdbcType=DECIMAL},
+    #{item.directlySentName,jdbcType=VARCHAR}, #{item.districtCity,jdbcType=VARCHAR},
+    #{item.townCity,jdbcType=VARCHAR}, #{item.place,jdbcType=VARCHAR}, #{item.carrierId,jdbcType=DECIMAL},
+    #{item.remark,jdbcType=VARCHAR}, #{item.alternateFields1,jdbcType=VARCHAR}, #{item.alternateFields2,jdbcType=VARCHAR},
+    #{item.alternateFields3,jdbcType=VARCHAR}, #{item.alternateFields4,jdbcType=VARCHAR},
+    #{item.alternateFields5,jdbcType=VARCHAR}, #{item.alternateFields6,jdbcType=VARCHAR},
+    #{item.alternateFields7,jdbcType=VARCHAR}, #{item.alternateFields8,jdbcType=VARCHAR},
+    #{item.provinceCity,jdbcType=VARCHAR} from dual
+  </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+    update RMS_DIRECTLY_SENT_CITY
+    set
+    PRIMARY_KEY_ID=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.primaryKeyId,jdbcType=DECIMAL}
+    </foreach>
+    ,DIRECTLY_SENT_NAME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.directlySentName,jdbcType=VARCHAR}
+    </foreach>
+    ,DISTRICT_CITY=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.districtCity,jdbcType=VARCHAR}
+    </foreach>
+    ,TOWN_CITY=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.townCity,jdbcType=VARCHAR}
+    </foreach>
+    ,PLACE=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.place,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_ID=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
+    </foreach>
+    ,REMARK=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.remark,jdbcType=VARCHAR}
+    </foreach>
+    ,ALTERNATE_FIELDS1=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields1,jdbcType=VARCHAR}
+    </foreach>
+    ,ALTERNATE_FIELDS2=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields2,jdbcType=VARCHAR}
+    </foreach>
+    ,ALTERNATE_FIELDS3=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields3,jdbcType=VARCHAR}
+    </foreach>
+    ,ALTERNATE_FIELDS4=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields4,jdbcType=VARCHAR}
+    </foreach>
+    ,ALTERNATE_FIELDS5=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields5,jdbcType=VARCHAR}
+    </foreach>
+    ,ALTERNATE_FIELDS6=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields6,jdbcType=VARCHAR}
+    </foreach>
+    ,ALTERNATE_FIELDS7=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields7,jdbcType=VARCHAR}
+    </foreach>
+    ,ALTERNATE_FIELDS8=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields8,jdbcType=VARCHAR}
+    </foreach>
+    ,PROVINCE_CITY=
+    <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+      when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.provinceCity,jdbcType=VARCHAR}
+    </foreach>
+    where PRIMARY_KEY_ID in
+    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+      #{item.primaryKeyId,jdbcType=DECIMAL}
+    </foreach>
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from RMS_DIRECTLY_SENT_CITY
+    where PRIMARY_KEY_ID in
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <select id="getDirectlySentCity" resultType="java.util.Map">
+    SELECT RDSC.DIRECTLY_SENT_NAME "directlySentName",
+           RDSC.REMARK "remark",
+           RDSC.ALTERNATE_FIELDS1 "ALTERNATE_FIELDS1",
+           RC.CARRIER_NAME "carrierName",
+           RDSC.PROVINCE_CITY "addressProvince",
+           RDSC.DISTRICT_CITY "addressDistrict",
+           RDSC.TOWN_CITY     "addressTown",
+           RDSC.PRIMARY_KEY_ID  "primaryKeyId"
+    FROM RMS_DIRECTLY_SENT_CITY RDSC
+    LEFT JOIN RMS_CARRIER RC ON RC.CARRIER_ID = RDSC.CARRIER_ID
+    <if test="con != null">
+      WHERE RDSC.DIRECTLY_SENT_NAME LIKE #{con}
+    </if>
+  </select>
+  <select id="getMaxId" resultType="java.math.BigDecimal">
+    SELECT NVL(MAX(PRIMARY_KEY_ID),0) + 1 FROM RMS_DIRECTLY_SENT_CITY
+  </select>
+
+</mapper>

+ 415 - 0
src/main/resources/com/steerinfo/dil/mapper/RmsMaterialSingleWeightMapper.xml

@@ -0,0 +1,415 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.steerinfo.dil.mapper.RmsMaterialSingleWeightMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsMaterialSingleWeight">
+    <id column="PRIMARY_KEY_ID" jdbcType="DECIMAL" property="primaryKeyId" />
+    <result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />
+    <result column="METER" jdbcType="DECIMAL" property="meter" />
+    <result column="SINGLE_WEIGHT" jdbcType="DECIMAL" property="singleWeight" />
+    <result column="ALTERNATE_FIELDS1" jdbcType="VARCHAR" property="alternateFields1" />
+    <result column="ALTERNATE_FIELDS2" jdbcType="VARCHAR" property="alternateFields2" />
+    <result column="ALTERNATE_FIELDS3" jdbcType="VARCHAR" property="alternateFields3" />
+    <result column="ALTERNATE_FIELDS4" jdbcType="VARCHAR" property="alternateFields4" />
+    <result column="ALTERNATE_FIELDS5" jdbcType="VARCHAR" property="alternateFields5" />
+    <result column="ALTERNATE_FIELDS6" jdbcType="VARCHAR" property="alternateFields6" />
+    <result column="ALTERNATE_FIELDS7" jdbcType="VARCHAR" property="alternateFields7" />
+    <result column="ALTERNATE_FIELDS8" jdbcType="VARCHAR" property="alternateFields8" />
+  </resultMap>
+  <sql id="columns">
+    PRIMARY_KEY_ID, MATERIAL_ID, METER, SINGLE_WEIGHT, ALTERNATE_FIELDS1, ALTERNATE_FIELDS2, 
+    ALTERNATE_FIELDS3, ALTERNATE_FIELDS4, ALTERNATE_FIELDS5, ALTERNATE_FIELDS6, ALTERNATE_FIELDS7, 
+    ALTERNATE_FIELDS8
+  </sql>
+  <sql id="columns_alias">
+    t.PRIMARY_KEY_ID, t.MATERIAL_ID, t.METER, t.SINGLE_WEIGHT, t.ALTERNATE_FIELDS1, t.ALTERNATE_FIELDS2, 
+    t.ALTERNATE_FIELDS3, t.ALTERNATE_FIELDS4, t.ALTERNATE_FIELDS5, t.ALTERNATE_FIELDS6, 
+    t.ALTERNATE_FIELDS7, t.ALTERNATE_FIELDS8
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM RMS_MATERIAL_SINGLE_WEIGHT
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM RMS_MATERIAL_SINGLE_WEIGHT t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="primaryKeyId != null">
+        and PRIMARY_KEY_ID = #{primaryKeyId}
+      </if>
+      <if test="materialId != null">
+        and MATERIAL_ID = #{materialId}
+      </if>
+      <if test="meter != null">
+        and METER = #{meter}
+      </if>
+      <if test="singleWeight != null">
+        and SINGLE_WEIGHT = #{singleWeight}
+      </if>
+      <if test="alternateFields1 != null and alternateFields1 != ''">
+        and ALTERNATE_FIELDS1 = #{alternateFields1}
+      </if>
+      <if test="alternateFields2 != null and alternateFields2 != ''">
+        and ALTERNATE_FIELDS2 = #{alternateFields2}
+      </if>
+      <if test="alternateFields3 != null and alternateFields3 != ''">
+        and ALTERNATE_FIELDS3 = #{alternateFields3}
+      </if>
+      <if test="alternateFields4 != null and alternateFields4 != ''">
+        and ALTERNATE_FIELDS4 = #{alternateFields4}
+      </if>
+      <if test="alternateFields5 != null and alternateFields5 != ''">
+        and ALTERNATE_FIELDS5 = #{alternateFields5}
+      </if>
+      <if test="alternateFields6 != null and alternateFields6 != ''">
+        and ALTERNATE_FIELDS6 = #{alternateFields6}
+      </if>
+      <if test="alternateFields7 != null and alternateFields7 != ''">
+        and ALTERNATE_FIELDS7 = #{alternateFields7}
+      </if>
+      <if test="alternateFields8 != null and alternateFields8 != ''">
+        and ALTERNATE_FIELDS8 = #{alternateFields8}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="primaryKeyId != null">
+        and PRIMARY_KEY_ID = #{primaryKeyId}
+      </if>
+      <if test="materialId != null">
+        and MATERIAL_ID = #{materialId}
+      </if>
+      <if test="meter != null">
+        and METER = #{meter}
+      </if>
+      <if test="singleWeight != null">
+        and SINGLE_WEIGHT = #{singleWeight}
+      </if>
+      <if test="alternateFields1 != null and alternateFields1 != ''">
+        and ALTERNATE_FIELDS1 LIKE '%${alternateFields1}%'
+      </if>
+      <if test="alternateFields2 != null and alternateFields2 != ''">
+        and ALTERNATE_FIELDS2 LIKE '%${alternateFields2}%'
+      </if>
+      <if test="alternateFields3 != null and alternateFields3 != ''">
+        and ALTERNATE_FIELDS3 LIKE '%${alternateFields3}%'
+      </if>
+      <if test="alternateFields4 != null and alternateFields4 != ''">
+        and ALTERNATE_FIELDS4 LIKE '%${alternateFields4}%'
+      </if>
+      <if test="alternateFields5 != null and alternateFields5 != ''">
+        and ALTERNATE_FIELDS5 LIKE '%${alternateFields5}%'
+      </if>
+      <if test="alternateFields6 != null and alternateFields6 != ''">
+        and ALTERNATE_FIELDS6 LIKE '%${alternateFields6}%'
+      </if>
+      <if test="alternateFields7 != null and alternateFields7 != ''">
+        and ALTERNATE_FIELDS7 LIKE '%${alternateFields7}%'
+      </if>
+      <if test="alternateFields8 != null and alternateFields8 != ''">
+        and ALTERNATE_FIELDS8 LIKE '%${alternateFields8}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
+    delete from RMS_MATERIAL_SINGLE_WEIGHT
+    where PRIMARY_KEY_ID = #{primaryKeyId,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from RMS_MATERIAL_SINGLE_WEIGHT
+    where 1!=1 
+      <if test="materialId != null">
+        or MATERIAL_ID = #{materialId}
+      </if>
+      <if test="meter != null">
+        or METER = #{meter}
+      </if>
+      <if test="singleWeight != null">
+        or SINGLE_WEIGHT = #{singleWeight}
+      </if>
+      <if test="alternateFields1 != null and alternateFields1 != ''">
+        or ALTERNATE_FIELDS1 = #{alternateFields1}
+      </if>
+      <if test="alternateFields2 != null and alternateFields2 != ''">
+        or ALTERNATE_FIELDS2 = #{alternateFields2}
+      </if>
+      <if test="alternateFields3 != null and alternateFields3 != ''">
+        or ALTERNATE_FIELDS3 = #{alternateFields3}
+      </if>
+      <if test="alternateFields4 != null and alternateFields4 != ''">
+        or ALTERNATE_FIELDS4 = #{alternateFields4}
+      </if>
+      <if test="alternateFields5 != null and alternateFields5 != ''">
+        or ALTERNATE_FIELDS5 = #{alternateFields5}
+      </if>
+      <if test="alternateFields6 != null and alternateFields6 != ''">
+        or ALTERNATE_FIELDS6 = #{alternateFields6}
+      </if>
+      <if test="alternateFields7 != null and alternateFields7 != ''">
+        or ALTERNATE_FIELDS7 = #{alternateFields7}
+      </if>
+      <if test="alternateFields8 != null and alternateFields8 != ''">
+        or ALTERNATE_FIELDS8 = #{alternateFields8}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.dil.model.RmsMaterialSingleWeight">
+    insert into RMS_MATERIAL_SINGLE_WEIGHT (PRIMARY_KEY_ID, MATERIAL_ID, METER, 
+      SINGLE_WEIGHT, ALTERNATE_FIELDS1, ALTERNATE_FIELDS2, 
+      ALTERNATE_FIELDS3, ALTERNATE_FIELDS4, ALTERNATE_FIELDS5, 
+      ALTERNATE_FIELDS6, ALTERNATE_FIELDS7, ALTERNATE_FIELDS8
+      )
+    values (#{primaryKeyId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{meter,jdbcType=DECIMAL}, 
+      #{singleWeight,jdbcType=DECIMAL}, #{alternateFields1,jdbcType=VARCHAR}, #{alternateFields2,jdbcType=VARCHAR}, 
+      #{alternateFields3,jdbcType=VARCHAR}, #{alternateFields4,jdbcType=VARCHAR}, #{alternateFields5,jdbcType=VARCHAR}, 
+      #{alternateFields6,jdbcType=VARCHAR}, #{alternateFields7,jdbcType=VARCHAR}, #{alternateFields8,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsMaterialSingleWeight">
+    insert into RMS_MATERIAL_SINGLE_WEIGHT
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="primaryKeyId != null">
+        PRIMARY_KEY_ID,
+      </if>
+      <if test="materialId != null">
+        MATERIAL_ID,
+      </if>
+      <if test="meter != null">
+        METER,
+      </if>
+      <if test="singleWeight != null">
+        SINGLE_WEIGHT,
+      </if>
+      <if test="alternateFields1 != null">
+        ALTERNATE_FIELDS1,
+      </if>
+      <if test="alternateFields2 != null">
+        ALTERNATE_FIELDS2,
+      </if>
+      <if test="alternateFields3 != null">
+        ALTERNATE_FIELDS3,
+      </if>
+      <if test="alternateFields4 != null">
+        ALTERNATE_FIELDS4,
+      </if>
+      <if test="alternateFields5 != null">
+        ALTERNATE_FIELDS5,
+      </if>
+      <if test="alternateFields6 != null">
+        ALTERNATE_FIELDS6,
+      </if>
+      <if test="alternateFields7 != null">
+        ALTERNATE_FIELDS7,
+      </if>
+      <if test="alternateFields8 != null">
+        ALTERNATE_FIELDS8,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="primaryKeyId != null">
+        #{primaryKeyId,jdbcType=DECIMAL},
+      </if>
+      <if test="materialId != null">
+        #{materialId,jdbcType=DECIMAL},
+      </if>
+      <if test="meter != null">
+        #{meter,jdbcType=DECIMAL},
+      </if>
+      <if test="singleWeight != null">
+        #{singleWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="alternateFields1 != null">
+        #{alternateFields1,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields2 != null">
+        #{alternateFields2,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields3 != null">
+        #{alternateFields3,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields4 != null">
+        #{alternateFields4,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields5 != null">
+        #{alternateFields5,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields6 != null">
+        #{alternateFields6,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields7 != null">
+        #{alternateFields7,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields8 != null">
+        #{alternateFields8,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsMaterialSingleWeight">
+    update RMS_MATERIAL_SINGLE_WEIGHT
+    set MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
+      METER = #{meter,jdbcType=DECIMAL},
+      SINGLE_WEIGHT = #{singleWeight,jdbcType=DECIMAL},
+      ALTERNATE_FIELDS1 = #{alternateFields1,jdbcType=VARCHAR},
+      ALTERNATE_FIELDS2 = #{alternateFields2,jdbcType=VARCHAR},
+      ALTERNATE_FIELDS3 = #{alternateFields3,jdbcType=VARCHAR},
+      ALTERNATE_FIELDS4 = #{alternateFields4,jdbcType=VARCHAR},
+      ALTERNATE_FIELDS5 = #{alternateFields5,jdbcType=VARCHAR},
+      ALTERNATE_FIELDS6 = #{alternateFields6,jdbcType=VARCHAR},
+      ALTERNATE_FIELDS7 = #{alternateFields7,jdbcType=VARCHAR},
+      ALTERNATE_FIELDS8 = #{alternateFields8,jdbcType=VARCHAR}
+    where PRIMARY_KEY_ID = #{primaryKeyId,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsMaterialSingleWeight">
+    update RMS_MATERIAL_SINGLE_WEIGHT
+    <set>
+      <if test="materialId != null">
+        MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
+      </if>
+      <if test="meter != null">
+        METER = #{meter,jdbcType=DECIMAL},
+      </if>
+      <if test="singleWeight != null">
+        SINGLE_WEIGHT = #{singleWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="alternateFields1 != null">
+        ALTERNATE_FIELDS1 = #{alternateFields1,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields2 != null">
+        ALTERNATE_FIELDS2 = #{alternateFields2,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields3 != null">
+        ALTERNATE_FIELDS3 = #{alternateFields3,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields4 != null">
+        ALTERNATE_FIELDS4 = #{alternateFields4,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields5 != null">
+        ALTERNATE_FIELDS5 = #{alternateFields5,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields6 != null">
+        ALTERNATE_FIELDS6 = #{alternateFields6,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields7 != null">
+        ALTERNATE_FIELDS7 = #{alternateFields7,jdbcType=VARCHAR},
+      </if>
+      <if test="alternateFields8 != null">
+        ALTERNATE_FIELDS8 = #{alternateFields8,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where PRIMARY_KEY_ID = #{primaryKeyId,jdbcType=DECIMAL}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where PRIMARY_KEY_ID = #{primaryKeyId,jdbcType=DECIMAL}
+  </select>
+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="where"/>
+  </select>
+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="whereLike"/>
+  </select>
+  <insert id="batchInsert" parameterType="java.util.List">
+    insert into RMS_MATERIAL_SINGLE_WEIGHT 
+      (PRIMARY_KEY_ID, 
+      MATERIAL_ID, METER, SINGLE_WEIGHT, 
+      ALTERNATE_FIELDS1, ALTERNATE_FIELDS2, 
+      ALTERNATE_FIELDS3, ALTERNATE_FIELDS4, 
+      ALTERNATE_FIELDS5, ALTERNATE_FIELDS6, 
+      ALTERNATE_FIELDS7, ALTERNATE_FIELDS8
+      )
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.primaryKeyId,jdbcType=DECIMAL}, 
+      #{item.materialId,jdbcType=DECIMAL}, #{item.meter,jdbcType=DECIMAL}, #{item.singleWeight,jdbcType=DECIMAL}, 
+      #{item.alternateFields1,jdbcType=VARCHAR}, #{item.alternateFields2,jdbcType=VARCHAR}, 
+      #{item.alternateFields3,jdbcType=VARCHAR}, #{item.alternateFields4,jdbcType=VARCHAR}, 
+      #{item.alternateFields5,jdbcType=VARCHAR}, #{item.alternateFields6,jdbcType=VARCHAR}, 
+      #{item.alternateFields7,jdbcType=VARCHAR}, #{item.alternateFields8,jdbcType=VARCHAR}
+       from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update RMS_MATERIAL_SINGLE_WEIGHT
+     set
+       PRIMARY_KEY_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.primaryKeyId,jdbcType=DECIMAL}
+       </foreach>
+       ,MATERIAL_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
+       </foreach>
+       ,METER=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.meter,jdbcType=DECIMAL}
+       </foreach>
+       ,SINGLE_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.singleWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,ALTERNATE_FIELDS1=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields1,jdbcType=VARCHAR}
+       </foreach>
+       ,ALTERNATE_FIELDS2=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields2,jdbcType=VARCHAR}
+       </foreach>
+       ,ALTERNATE_FIELDS3=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields3,jdbcType=VARCHAR}
+       </foreach>
+       ,ALTERNATE_FIELDS4=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields4,jdbcType=VARCHAR}
+       </foreach>
+       ,ALTERNATE_FIELDS5=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields5,jdbcType=VARCHAR}
+       </foreach>
+       ,ALTERNATE_FIELDS6=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields6,jdbcType=VARCHAR}
+       </foreach>
+       ,ALTERNATE_FIELDS7=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields7,jdbcType=VARCHAR}
+       </foreach>
+       ,ALTERNATE_FIELDS8=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PRIMARY_KEY_ID" close="end">
+          when #{item.primaryKeyId,jdbcType=DECIMAL} then #{item.alternateFields8,jdbcType=VARCHAR}
+       </foreach>
+     where PRIMARY_KEY_ID in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.primaryKeyId,jdbcType=DECIMAL}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from RMS_MATERIAL_SINGLE_WEIGHT
+    where PRIMARY_KEY_ID in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <select id="getMaterialSingleWeightList" resultType="java.util.Map">
+    SELECT RMSW.MATERIAL_ID "materialId",
+           RMSW.PRIMARY_KEY_ID "primaryKeyId",
+           RMSW.METER "meter",
+           RMSW.SINGLE_WEIGHT "singleWeight",
+           RM.MATERIAL_NAME "materialName",
+           RM.MATERIAL_SPECIFICATION "materialSpe",
+           RM.MATERIAL_MODEL "model"
+           FROM RMS_MATERIAL_SINGLE_WEIGHT RMSW
+    LEFT JOIN RMS_MATERIAL RM ON RM.MATERIAL_ID = RMSW.MATERIAL_ID
+    <if test="con != null">
+      WHERE RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || RM.MATERIAL_MODEL like #{con}
+    </if>
+  </select>
+  <select id="getOrderMaterialInfo" resultType="java.util.Map">
+
+  </select>
+
+</mapper>