正在显示
14 个修改的文件
包含
1791 行增加
和
145 行删除
1 | package com.sy.IMF; | 1 | package com.sy.IMF; |
2 | 2 | ||
3 | import com.caac.imf.api.IMFClient; | 3 | import com.caac.imf.api.IMFClient; |
4 | -import com.sy.controller.AnalysisRoute; | 4 | +import com.sy.bwAnalysis.AnalysisRoute; |
5 | import org.apache.log4j.Logger; | 5 | import org.apache.log4j.Logger; |
6 | 6 | ||
7 | public class KAKO_Reader extends Thread{ | 7 | public class KAKO_Reader extends Thread{ |
1 | package com.sy.bwAnalysis; | 1 | package com.sy.bwAnalysis; |
2 | 2 | ||
3 | import com.sy.bwAssist.Message; | 3 | import com.sy.bwAssist.Message; |
4 | +import com.sy.logic.LogicOperation; | ||
4 | import com.sy.model.*; | 5 | import com.sy.model.*; |
5 | import com.sy.service.*; | 6 | import com.sy.service.*; |
7 | +import com.sy.socket.CommandClient; | ||
6 | import org.springframework.beans.factory.annotation.Autowired; | 8 | import org.springframework.beans.factory.annotation.Autowired; |
7 | import org.springframework.stereotype.Component; | 9 | import org.springframework.stereotype.Component; |
8 | 10 | ||
@@ -62,6 +64,14 @@ public class AnalysisRoute { | @@ -62,6 +64,14 @@ public class AnalysisRoute { | ||
62 | }else{ | 64 | }else{ |
63 | GatherInfo info = gatherInfoAnalysis.toJavaBean(message); | 65 | GatherInfo info = gatherInfoAnalysis.toJavaBean(message); |
64 | route.infoService.save(info); | 66 | route.infoService.save(info); |
67 | + String flag = null; | ||
68 | + if(new LogicOperation().operation(info)){ | ||
69 | + flag = "11"; | ||
70 | + CommandClient.Client(info,flag); | ||
71 | + }else{ | ||
72 | + flag = "00"; | ||
73 | + CommandClient.Client(info,flag); | ||
74 | + } | ||
65 | } | 75 | } |
66 | } else if (stype.equals("ES1")) { | 76 | } else if (stype.equals("ES1")) { |
67 | airone_ex_stock exStock = exStockAnalysis.toExStock(message); | 77 | airone_ex_stock exStock = exStockAnalysis.toExStock(message); |
1 | -package com.sy.logic; | ||
2 | - | ||
3 | - | ||
4 | -import com.alibaba.fastjson.JSON; | ||
5 | -import com.alibaba.fastjson.JSONArray; | ||
6 | -import org.springframework.stereotype.Component; | ||
7 | - | ||
8 | -import java.io.BufferedReader; | ||
9 | -import java.io.IOException; | ||
10 | -import java.io.InputStreamReader; | ||
11 | -import java.net.MalformedURLException; | ||
12 | -import java.net.URL; | ||
13 | -import java.net.URLConnection; | ||
14 | -import java.util.Map; | ||
15 | - | ||
16 | -@Component | ||
17 | -public class GainGrossWt { | ||
18 | - | ||
19 | - /** | ||
20 | - * @Param waybill 主单号 | ||
21 | - * @Param imp 进出港标识 | ||
22 | - * @Result 获取运单重量 | ||
23 | - * */ | ||
24 | - | ||
25 | - //根据主单号和进出标志获取运单重量 | ||
26 | - public static double getGrossWt(String waybill, String imp) { | ||
27 | - | ||
28 | - String url = "http://tjfx.15miaoo.com:8003/tj/orig/orig?waybill=" + waybill + "&imp=" + imp; | ||
29 | - StringBuilder json = new StringBuilder(); | ||
30 | - Map map = null; | ||
31 | - double bg = 0; | ||
32 | - try { | ||
33 | - URL oracle = new URL(url); | ||
34 | - URLConnection yc = oracle.openConnection(); | ||
35 | - BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream())); | ||
36 | - String inputLine = null; | ||
37 | - while ((inputLine = in.readLine()) != null) { | ||
38 | - json.append(inputLine); | ||
39 | - } | ||
40 | - JSONArray array = JSONArray.parseArray(json.toString()); | ||
41 | - for (int i = 0; i < array.size(); i++) { | ||
42 | - map = JSON.parseObject(array.getString(i)); | ||
43 | - if (map.get("receiptinformation").toString().startsWith("41301")) { | ||
44 | - bg = Double.parseDouble((String) map.get("totalweight")); | ||
45 | - return bg; | ||
46 | - } | ||
47 | - } | ||
48 | - in.close(); | ||
49 | - } catch (MalformedURLException e) { | ||
50 | - e.getMessage(); | ||
51 | - } catch (IOException e) { | ||
52 | - e.getMessage(); | ||
53 | - } | ||
54 | - return bg; | ||
55 | - } | ||
56 | -} |
1 | package com.sy.logic; | 1 | package com.sy.logic; |
2 | 2 | ||
3 | 3 | ||
4 | +import com.alibaba.fastjson.JSON; | ||
5 | +import com.alibaba.fastjson.JSONArray; | ||
4 | import com.sy.model.GatherInfo; | 6 | import com.sy.model.GatherInfo; |
5 | import com.sy.model.LandBusinessTypeList; | 7 | import com.sy.model.LandBusinessTypeList; |
8 | +import com.sy.model.LandRoadVe; | ||
6 | import com.sy.service.LandBusListService; | 9 | import com.sy.service.LandBusListService; |
10 | +import com.sy.service.LandRoadVeService; | ||
7 | import com.sy.socket.CommandClient; | 11 | import com.sy.socket.CommandClient; |
12 | +import com.sy.utils.FileTool; | ||
13 | +import org.apache.log4j.Logger; | ||
8 | import org.springframework.beans.factory.annotation.Autowired; | 14 | import org.springframework.beans.factory.annotation.Autowired; |
9 | import org.springframework.stereotype.Component; | 15 | import org.springframework.stereotype.Component; |
10 | 16 | ||
11 | import javax.annotation.PostConstruct; | 17 | import javax.annotation.PostConstruct; |
18 | +import java.io.BufferedReader; | ||
19 | +import java.io.IOException; | ||
20 | +import java.io.InputStreamReader; | ||
12 | import java.math.BigDecimal; | 21 | import java.math.BigDecimal; |
22 | +import java.net.MalformedURLException; | ||
23 | +import java.net.URL; | ||
24 | +import java.net.URLConnection; | ||
25 | +import java.text.NumberFormat; | ||
26 | +import java.text.ParseException; | ||
13 | import java.util.List; | 27 | import java.util.List; |
28 | +import java.util.Map; | ||
14 | 29 | ||
15 | @Component | 30 | @Component |
16 | public class LogicOperation { | 31 | public class LogicOperation { |
17 | 32 | ||
33 | + private static final Logger logger = Logger.getLogger(LogicOperation.class); | ||
34 | + | ||
18 | @Autowired | 35 | @Autowired |
19 | private LandBusListService listService; | 36 | private LandBusListService listService; |
20 | 37 | ||
38 | + @Autowired | ||
39 | + private LandRoadVeService veService; | ||
40 | + | ||
21 | private static LogicOperation logic; | 41 | private static LogicOperation logic; |
22 | 42 | ||
43 | + //读取配置文件里的载重与称重的可控范围 | ||
44 | + private static String checkWt = FileTool.readProperties("grossWt"); | ||
45 | + | ||
23 | @PostConstruct | 46 | @PostConstruct |
24 | public void init(){ | 47 | public void init(){ |
25 | logic = this; | 48 | logic = this; |
26 | logic.listService = this.listService; | 49 | logic.listService = this.listService; |
50 | + logic.veService = this.veService; | ||
27 | } | 51 | } |
28 | 52 | ||
29 | public boolean operation(GatherInfo info){ | 53 | public boolean operation(GatherInfo info){ |
54 | + //开关 | ||
30 | boolean sign = false; | 55 | boolean sign = false; |
31 | - BigDecimal grosssWt = info.getGrosswt(); | 56 | + BigDecimal grosswt = info.getGrosswt(); |
57 | + //转为double类型 | ||
58 | + double growsswWt = grosswt.doubleValue(); | ||
32 | String ietype = info.getIetype(); | 59 | String ietype = info.getIetype(); |
33 | List<LandBusinessTypeList>lists = null; | 60 | List<LandBusinessTypeList>lists = null; |
61 | + LandRoadVe ve = logic.veService.selectByFrameNo(info.getIcvename()); | ||
34 | if("E".equals(ietype)){ | 62 | if("E".equals(ietype)){ |
35 | ietype = "出场站"; | 63 | ietype = "出场站"; |
36 | - lists = listService.selectByFrameNoAndType(info.getIcvename(),ietype); | 64 | + lists = logic.listService.selectByFrameNoAndType(info.getIcvename(),ietype); |
37 | for (LandBusinessTypeList list:lists) { | 65 | for (LandBusinessTypeList list:lists) { |
38 | //查询是否做了出场申请 | 66 | //查询是否做了出场申请 |
39 | - if(list.getContrastflag()==""|list.getContrastflag()==null){ | 67 | + if(list.getContrastflag()=="" | list.getContrastflag()==null){ |
40 | //判断车重 | 68 | //判断车重 |
41 | //判断载货重量是否符合所设定的范围 | 69 | //判断载货重量是否符合所设定的范围 |
70 | + double goodsWt = GoodsWt(list.getMasterList(),"E"); | ||
71 | + if(checkResult(growsswWt,Double.parseDouble(ve.getSelfWt()),goodsWt)){ | ||
72 | + sign = true; | ||
73 | + } | ||
42 | //发送放行指令 | 74 | //发送放行指令 |
43 | String flag = ""; | 75 | String flag = ""; |
44 | CommandClient.Client(info,flag); | 76 | CommandClient.Client(info,flag); |
45 | - sign = true; | ||
46 | } | 77 | } |
47 | } | 78 | } |
48 | }else { | 79 | }else { |
@@ -51,4 +82,84 @@ public class LogicOperation { | @@ -51,4 +82,84 @@ public class LogicOperation { | ||
51 | } | 82 | } |
52 | return sign; | 83 | return sign; |
53 | } | 84 | } |
85 | + | ||
86 | + //将获取的checkWt进行小数转化 | ||
87 | + public static double valueDob(){ | ||
88 | + NumberFormat nf=NumberFormat.getPercentInstance(); | ||
89 | + Number m = null; | ||
90 | + try { | ||
91 | + m=nf.parse(checkWt);//将百分数转换成Number类型 | ||
92 | + }catch (ParseException e){ | ||
93 | + e.printStackTrace(); | ||
94 | + logger.info(e.getMessage()); | ||
95 | + } | ||
96 | + return m.doubleValue(); | ||
97 | + } | ||
98 | + | ||
99 | + /** | ||
100 | + * @Param grossWt 地磅称重 | ||
101 | + * @Param wt 车辆自重 | ||
102 | + * @Param goodsWt 货物总重 | ||
103 | + * @Result 获取运单重量 | ||
104 | + * */ | ||
105 | + //校验载重和称重是否在合理的范围 | ||
106 | + public boolean checkResult(double grossWt,double wt,double goodsWt){ | ||
107 | + boolean flag = false; | ||
108 | + double result = (grossWt-wt)/goodsWt; | ||
109 | + BigDecimal bd = new BigDecimal(result); | ||
110 | + if(bd.setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue()<=valueDob()){ | ||
111 | + flag = true; | ||
112 | + } | ||
113 | + return flag; | ||
114 | + } | ||
115 | + | ||
116 | + /** | ||
117 | + * @Param mainifast 主单列表 | ||
118 | + * @Param ietype 进出标志 | ||
119 | + * 获取货物总重 | ||
120 | + * */ | ||
121 | + public static double GoodsWt(String mainifast,String ietype){ | ||
122 | + String [] mainifastList = mainifast.split(","); | ||
123 | + Double sum = 0.0; | ||
124 | + for (String mainBill:mainifastList) { | ||
125 | + sum = sum+=getGrossWt(mainBill,ietype); | ||
126 | + } | ||
127 | + return sum; | ||
128 | + } | ||
129 | + | ||
130 | + | ||
131 | + /** | ||
132 | + * @Param waybill 主单号 | ||
133 | + * @Param imp 进出港标识 | ||
134 | + * @Result 获取运单重量 | ||
135 | + * */ | ||
136 | + public static double getGrossWt(String waybill, String imp) { | ||
137 | + String url = "http://tjfx.15miaoo.com:8003/tj/orig/orig?waybill=" + waybill + "&imp=" + imp; | ||
138 | + StringBuilder json = new StringBuilder(); | ||
139 | + Map map = null; | ||
140 | + double bg = 0; | ||
141 | + try { | ||
142 | + URL oracle = new URL(url); | ||
143 | + URLConnection yc = oracle.openConnection(); | ||
144 | + BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream())); | ||
145 | + String inputLine = null; | ||
146 | + while ((inputLine = in.readLine()) != null) { | ||
147 | + json.append(inputLine); | ||
148 | + } | ||
149 | + JSONArray array = JSONArray.parseArray(json.toString()); | ||
150 | + for (int i = 0; i < array.size(); i++) { | ||
151 | + map = JSON.parseObject(array.getString(i)); | ||
152 | + if (map.get("receiptinformation").toString().startsWith("41301")) { | ||
153 | + bg = Double.parseDouble((String) map.get("totalweight")); | ||
154 | + return bg; | ||
155 | + } | ||
156 | + } | ||
157 | + in.close(); | ||
158 | + } catch (MalformedURLException e) { | ||
159 | + e.getMessage(); | ||
160 | + } catch (IOException e) { | ||
161 | + e.getMessage(); | ||
162 | + } | ||
163 | + return bg; | ||
164 | + } | ||
54 | } | 165 | } |
1 | +package com.sy.mapper; | ||
2 | + | ||
3 | +import com.sy.model.LandBusinessTypeList; | ||
4 | +import org.springframework.stereotype.Component; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | +@Component | ||
8 | +public interface LandBusinessTypeListMapper { | ||
9 | + int deleteByPrimaryKey(String id); | ||
10 | + | ||
11 | + int insert(LandBusinessTypeList record); | ||
12 | + | ||
13 | + int insertSelective(LandBusinessTypeList record); | ||
14 | + | ||
15 | + LandBusinessTypeList selectByPrimaryKey(String id); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(LandBusinessTypeList record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(LandBusinessTypeList record); | ||
20 | + //根据车牌号和进出场标志查询 | ||
21 | + List<LandBusinessTypeList> selectFrameNoAndType(String frameNo,String flag); | ||
22 | +} |
1 | +package com.sy.mapper; | ||
2 | + | ||
3 | +import com.sy.model.LandRoadVe; | ||
4 | +import org.springframework.stereotype.Component; | ||
5 | + | ||
6 | +@Component | ||
7 | +public interface LandRoadVeMapper { | ||
8 | + int deleteByPrimaryKey(String id); | ||
9 | + | ||
10 | + int insert(LandRoadVe record); | ||
11 | + | ||
12 | + int insertSelective(LandRoadVe record); | ||
13 | + | ||
14 | + LandRoadVe selectByPrimaryKey(String id); | ||
15 | + | ||
16 | + int updateByPrimaryKeySelective(LandRoadVe record); | ||
17 | + | ||
18 | + int updateByPrimaryKey(LandRoadVe record); | ||
19 | + //根据车牌号查询 | ||
20 | + LandRoadVe selectByFrameNo(String frameNo); | ||
21 | +} |
1 | +package com.sy.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class LandBusinessTypeList { | ||
6 | + private String id; | ||
7 | + | ||
8 | + private String massageId; | ||
9 | + | ||
10 | + private String trailerFrameNo; | ||
11 | + | ||
12 | + private String trailerLicenseNo; | ||
13 | + | ||
14 | + private String masterList; | ||
15 | + | ||
16 | + private Date prodectTime; | ||
17 | + | ||
18 | + private String returnmessage; | ||
19 | + | ||
20 | + private String agentno; | ||
21 | + | ||
22 | + private String agentname; | ||
23 | + | ||
24 | + private String cocode; | ||
25 | + | ||
26 | + private String drivername; | ||
27 | + | ||
28 | + private String driverid; | ||
29 | + | ||
30 | + private String startport; | ||
31 | + | ||
32 | + private String endport; | ||
33 | + | ||
34 | + private String startsatation; | ||
35 | + | ||
36 | + private String endstation; | ||
37 | + | ||
38 | + private String aisle; | ||
39 | + | ||
40 | + private String businesstype; | ||
41 | + | ||
42 | + private String turnoverflag; | ||
43 | + | ||
44 | + private String contrastflag; | ||
45 | + | ||
46 | + private String createBy; | ||
47 | + | ||
48 | + private Date createDate; | ||
49 | + | ||
50 | + private String updateBy; | ||
51 | + | ||
52 | + private Date updateDate; | ||
53 | + | ||
54 | + public String getId() { | ||
55 | + return id; | ||
56 | + } | ||
57 | + | ||
58 | + public void setId(String id) { | ||
59 | + this.id = id == null ? null : id.trim(); | ||
60 | + } | ||
61 | + | ||
62 | + public String getMassageId() { | ||
63 | + return massageId; | ||
64 | + } | ||
65 | + | ||
66 | + public void setMassageId(String massageId) { | ||
67 | + this.massageId = massageId == null ? null : massageId.trim(); | ||
68 | + } | ||
69 | + | ||
70 | + public String getTrailerFrameNo() { | ||
71 | + return trailerFrameNo; | ||
72 | + } | ||
73 | + | ||
74 | + public void setTrailerFrameNo(String trailerFrameNo) { | ||
75 | + this.trailerFrameNo = trailerFrameNo == null ? null : trailerFrameNo.trim(); | ||
76 | + } | ||
77 | + | ||
78 | + public String getTrailerLicenseNo() { | ||
79 | + return trailerLicenseNo; | ||
80 | + } | ||
81 | + | ||
82 | + public void setTrailerLicenseNo(String trailerLicenseNo) { | ||
83 | + this.trailerLicenseNo = trailerLicenseNo == null ? null : trailerLicenseNo.trim(); | ||
84 | + } | ||
85 | + | ||
86 | + public String getMasterList() { | ||
87 | + return masterList; | ||
88 | + } | ||
89 | + | ||
90 | + public void setMasterList(String masterList) { | ||
91 | + this.masterList = masterList == null ? null : masterList.trim(); | ||
92 | + } | ||
93 | + | ||
94 | + public Date getProdectTime() { | ||
95 | + return prodectTime; | ||
96 | + } | ||
97 | + | ||
98 | + public void setProdectTime(Date prodectTime) { | ||
99 | + this.prodectTime = prodectTime; | ||
100 | + } | ||
101 | + | ||
102 | + public String getReturnmessage() { | ||
103 | + return returnmessage; | ||
104 | + } | ||
105 | + | ||
106 | + public void setReturnmessage(String returnmessage) { | ||
107 | + this.returnmessage = returnmessage == null ? null : returnmessage.trim(); | ||
108 | + } | ||
109 | + | ||
110 | + public String getAgentno() { | ||
111 | + return agentno; | ||
112 | + } | ||
113 | + | ||
114 | + public void setAgentno(String agentno) { | ||
115 | + this.agentno = agentno == null ? null : agentno.trim(); | ||
116 | + } | ||
117 | + | ||
118 | + public String getAgentname() { | ||
119 | + return agentname; | ||
120 | + } | ||
121 | + | ||
122 | + public void setAgentname(String agentname) { | ||
123 | + this.agentname = agentname == null ? null : agentname.trim(); | ||
124 | + } | ||
125 | + | ||
126 | + public String getCocode() { | ||
127 | + return cocode; | ||
128 | + } | ||
129 | + | ||
130 | + public void setCocode(String cocode) { | ||
131 | + this.cocode = cocode == null ? null : cocode.trim(); | ||
132 | + } | ||
133 | + | ||
134 | + public String getDrivername() { | ||
135 | + return drivername; | ||
136 | + } | ||
137 | + | ||
138 | + public void setDrivername(String drivername) { | ||
139 | + this.drivername = drivername == null ? null : drivername.trim(); | ||
140 | + } | ||
141 | + | ||
142 | + public String getDriverid() { | ||
143 | + return driverid; | ||
144 | + } | ||
145 | + | ||
146 | + public void setDriverid(String driverid) { | ||
147 | + this.driverid = driverid == null ? null : driverid.trim(); | ||
148 | + } | ||
149 | + | ||
150 | + public String getStartport() { | ||
151 | + return startport; | ||
152 | + } | ||
153 | + | ||
154 | + public void setStartport(String startport) { | ||
155 | + this.startport = startport == null ? null : startport.trim(); | ||
156 | + } | ||
157 | + | ||
158 | + public String getEndport() { | ||
159 | + return endport; | ||
160 | + } | ||
161 | + | ||
162 | + public void setEndport(String endport) { | ||
163 | + this.endport = endport == null ? null : endport.trim(); | ||
164 | + } | ||
165 | + | ||
166 | + public String getStartsatation() { | ||
167 | + return startsatation; | ||
168 | + } | ||
169 | + | ||
170 | + public void setStartsatation(String startsatation) { | ||
171 | + this.startsatation = startsatation == null ? null : startsatation.trim(); | ||
172 | + } | ||
173 | + | ||
174 | + public String getEndstation() { | ||
175 | + return endstation; | ||
176 | + } | ||
177 | + | ||
178 | + public void setEndstation(String endstation) { | ||
179 | + this.endstation = endstation == null ? null : endstation.trim(); | ||
180 | + } | ||
181 | + | ||
182 | + public String getAisle() { | ||
183 | + return aisle; | ||
184 | + } | ||
185 | + | ||
186 | + public void setAisle(String aisle) { | ||
187 | + this.aisle = aisle == null ? null : aisle.trim(); | ||
188 | + } | ||
189 | + | ||
190 | + public String getBusinesstype() { | ||
191 | + return businesstype; | ||
192 | + } | ||
193 | + | ||
194 | + public void setBusinesstype(String businesstype) { | ||
195 | + this.businesstype = businesstype == null ? null : businesstype.trim(); | ||
196 | + } | ||
197 | + | ||
198 | + public String getTurnoverflag() { | ||
199 | + return turnoverflag; | ||
200 | + } | ||
201 | + | ||
202 | + public void setTurnoverflag(String turnoverflag) { | ||
203 | + this.turnoverflag = turnoverflag == null ? null : turnoverflag.trim(); | ||
204 | + } | ||
205 | + | ||
206 | + public String getContrastflag() { | ||
207 | + return contrastflag; | ||
208 | + } | ||
209 | + | ||
210 | + public void setContrastflag(String contrastflag) { | ||
211 | + this.contrastflag = contrastflag == null ? null : contrastflag.trim(); | ||
212 | + } | ||
213 | + | ||
214 | + public String getCreateBy() { | ||
215 | + return createBy; | ||
216 | + } | ||
217 | + | ||
218 | + public void setCreateBy(String createBy) { | ||
219 | + this.createBy = createBy == null ? null : createBy.trim(); | ||
220 | + } | ||
221 | + | ||
222 | + public Date getCreateDate() { | ||
223 | + return createDate; | ||
224 | + } | ||
225 | + | ||
226 | + public void setCreateDate(Date createDate) { | ||
227 | + this.createDate = createDate; | ||
228 | + } | ||
229 | + | ||
230 | + public String getUpdateBy() { | ||
231 | + return updateBy; | ||
232 | + } | ||
233 | + | ||
234 | + public void setUpdateBy(String updateBy) { | ||
235 | + this.updateBy = updateBy == null ? null : updateBy.trim(); | ||
236 | + } | ||
237 | + | ||
238 | + public Date getUpdateDate() { | ||
239 | + return updateDate; | ||
240 | + } | ||
241 | + | ||
242 | + public void setUpdateDate(Date updateDate) { | ||
243 | + this.updateDate = updateDate; | ||
244 | + } | ||
245 | +} |
src/main/java/com/sy/model/LandRoadVe.java
0 → 100644
1 | +package com.sy.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class LandRoadVe { | ||
6 | + private String id; | ||
7 | + | ||
8 | + private String eportId; | ||
9 | + | ||
10 | + private String mainPort; | ||
11 | + | ||
12 | + private String coCode; | ||
13 | + | ||
14 | + private String veTargetNo; | ||
15 | + | ||
16 | + private String domesticLisenceNo; | ||
17 | + | ||
18 | + private String domesticLicenseColor; | ||
19 | + | ||
20 | + private String foreignLicense; | ||
21 | + | ||
22 | + private String veRegPlace; | ||
23 | + | ||
24 | + private String veProperty; | ||
25 | + | ||
26 | + private String veConveyQua; | ||
27 | + | ||
28 | + private String veCardNo; | ||
29 | + | ||
30 | + private String veOwnerName; | ||
31 | + | ||
32 | + private String veOwnerNo; | ||
33 | + | ||
34 | + private String ownerInsideAddr; | ||
35 | + | ||
36 | + private String ownerInsideTel; | ||
37 | + | ||
38 | + private String veType; | ||
39 | + | ||
40 | + private String brand; | ||
41 | + | ||
42 | + private String model; | ||
43 | + | ||
44 | + private String exhaustCapacity; | ||
45 | + | ||
46 | + private Date veFactoryDate; | ||
47 | + | ||
48 | + private String veMotorNo; | ||
49 | + | ||
50 | + private String veFrameNo; | ||
51 | + | ||
52 | + private String veTon; | ||
53 | + | ||
54 | + private String selfWt; | ||
55 | + | ||
56 | + private String allowTowTotalWt; | ||
57 | + | ||
58 | + private String containerInnerLength; | ||
59 | + | ||
60 | + private String containerInnerWidth; | ||
61 | + | ||
62 | + private String containerInnerHeight; | ||
63 | + | ||
64 | + private String outerLength; | ||
65 | + | ||
66 | + private String outerWidth; | ||
67 | + | ||
68 | + private String outerHeight; | ||
69 | + | ||
70 | + private String veBodyColor; | ||
71 | + | ||
72 | + private String oilBoxCapcity; | ||
73 | + | ||
74 | + private String allowVeIePort; | ||
75 | + | ||
76 | + private String apprNo; | ||
77 | + | ||
78 | + private Date apprPeriod; | ||
79 | + | ||
80 | + private String currApplyBussiness; | ||
81 | + | ||
82 | + private String front45cPic; | ||
83 | + | ||
84 | + private String back45cPic; | ||
85 | + | ||
86 | + private String oilBoxPic; | ||
87 | + | ||
88 | + private String veBottomPic; | ||
89 | + | ||
90 | + private String memo; | ||
91 | + | ||
92 | + private String proposer; | ||
93 | + | ||
94 | + private Date proposeTime; | ||
95 | + | ||
96 | + private String veClassFlag; | ||
97 | + | ||
98 | + private String operationType; | ||
99 | + | ||
100 | + private String trailerLicenseNo; | ||
101 | + | ||
102 | + private String trailerFrameNo; | ||
103 | + | ||
104 | + private String approNoPic; | ||
105 | + | ||
106 | + private String veFrameNoPic; | ||
107 | + | ||
108 | + private String motorNoPic; | ||
109 | + | ||
110 | + private String foreignLicensePic; | ||
111 | + | ||
112 | + private String nationality; | ||
113 | + | ||
114 | + private String returnmessage; | ||
115 | + | ||
116 | + private String createBy; | ||
117 | + | ||
118 | + private Date createDate; | ||
119 | + | ||
120 | + private String updateBy; | ||
121 | + | ||
122 | + private Date updateDate; | ||
123 | + | ||
124 | + public String getId() { | ||
125 | + return id; | ||
126 | + } | ||
127 | + | ||
128 | + public void setId(String id) { | ||
129 | + this.id = id == null ? null : id.trim(); | ||
130 | + } | ||
131 | + | ||
132 | + public String getEportId() { | ||
133 | + return eportId; | ||
134 | + } | ||
135 | + | ||
136 | + public void setEportId(String eportId) { | ||
137 | + this.eportId = eportId == null ? null : eportId.trim(); | ||
138 | + } | ||
139 | + | ||
140 | + public String getMainPort() { | ||
141 | + return mainPort; | ||
142 | + } | ||
143 | + | ||
144 | + public void setMainPort(String mainPort) { | ||
145 | + this.mainPort = mainPort == null ? null : mainPort.trim(); | ||
146 | + } | ||
147 | + | ||
148 | + public String getCoCode() { | ||
149 | + return coCode; | ||
150 | + } | ||
151 | + | ||
152 | + public void setCoCode(String coCode) { | ||
153 | + this.coCode = coCode == null ? null : coCode.trim(); | ||
154 | + } | ||
155 | + | ||
156 | + public String getVeTargetNo() { | ||
157 | + return veTargetNo; | ||
158 | + } | ||
159 | + | ||
160 | + public void setVeTargetNo(String veTargetNo) { | ||
161 | + this.veTargetNo = veTargetNo == null ? null : veTargetNo.trim(); | ||
162 | + } | ||
163 | + | ||
164 | + public String getDomesticLisenceNo() { | ||
165 | + return domesticLisenceNo; | ||
166 | + } | ||
167 | + | ||
168 | + public void setDomesticLisenceNo(String domesticLisenceNo) { | ||
169 | + this.domesticLisenceNo = domesticLisenceNo == null ? null : domesticLisenceNo.trim(); | ||
170 | + } | ||
171 | + | ||
172 | + public String getDomesticLicenseColor() { | ||
173 | + return domesticLicenseColor; | ||
174 | + } | ||
175 | + | ||
176 | + public void setDomesticLicenseColor(String domesticLicenseColor) { | ||
177 | + this.domesticLicenseColor = domesticLicenseColor == null ? null : domesticLicenseColor.trim(); | ||
178 | + } | ||
179 | + | ||
180 | + public String getForeignLicense() { | ||
181 | + return foreignLicense; | ||
182 | + } | ||
183 | + | ||
184 | + public void setForeignLicense(String foreignLicense) { | ||
185 | + this.foreignLicense = foreignLicense == null ? null : foreignLicense.trim(); | ||
186 | + } | ||
187 | + | ||
188 | + public String getVeRegPlace() { | ||
189 | + return veRegPlace; | ||
190 | + } | ||
191 | + | ||
192 | + public void setVeRegPlace(String veRegPlace) { | ||
193 | + this.veRegPlace = veRegPlace == null ? null : veRegPlace.trim(); | ||
194 | + } | ||
195 | + | ||
196 | + public String getVeProperty() { | ||
197 | + return veProperty; | ||
198 | + } | ||
199 | + | ||
200 | + public void setVeProperty(String veProperty) { | ||
201 | + this.veProperty = veProperty == null ? null : veProperty.trim(); | ||
202 | + } | ||
203 | + | ||
204 | + public String getVeConveyQua() { | ||
205 | + return veConveyQua; | ||
206 | + } | ||
207 | + | ||
208 | + public void setVeConveyQua(String veConveyQua) { | ||
209 | + this.veConveyQua = veConveyQua == null ? null : veConveyQua.trim(); | ||
210 | + } | ||
211 | + | ||
212 | + public String getVeCardNo() { | ||
213 | + return veCardNo; | ||
214 | + } | ||
215 | + | ||
216 | + public void setVeCardNo(String veCardNo) { | ||
217 | + this.veCardNo = veCardNo == null ? null : veCardNo.trim(); | ||
218 | + } | ||
219 | + | ||
220 | + public String getVeOwnerName() { | ||
221 | + return veOwnerName; | ||
222 | + } | ||
223 | + | ||
224 | + public void setVeOwnerName(String veOwnerName) { | ||
225 | + this.veOwnerName = veOwnerName == null ? null : veOwnerName.trim(); | ||
226 | + } | ||
227 | + | ||
228 | + public String getVeOwnerNo() { | ||
229 | + return veOwnerNo; | ||
230 | + } | ||
231 | + | ||
232 | + public void setVeOwnerNo(String veOwnerNo) { | ||
233 | + this.veOwnerNo = veOwnerNo == null ? null : veOwnerNo.trim(); | ||
234 | + } | ||
235 | + | ||
236 | + public String getOwnerInsideAddr() { | ||
237 | + return ownerInsideAddr; | ||
238 | + } | ||
239 | + | ||
240 | + public void setOwnerInsideAddr(String ownerInsideAddr) { | ||
241 | + this.ownerInsideAddr = ownerInsideAddr == null ? null : ownerInsideAddr.trim(); | ||
242 | + } | ||
243 | + | ||
244 | + public String getOwnerInsideTel() { | ||
245 | + return ownerInsideTel; | ||
246 | + } | ||
247 | + | ||
248 | + public void setOwnerInsideTel(String ownerInsideTel) { | ||
249 | + this.ownerInsideTel = ownerInsideTel == null ? null : ownerInsideTel.trim(); | ||
250 | + } | ||
251 | + | ||
252 | + public String getVeType() { | ||
253 | + return veType; | ||
254 | + } | ||
255 | + | ||
256 | + public void setVeType(String veType) { | ||
257 | + this.veType = veType == null ? null : veType.trim(); | ||
258 | + } | ||
259 | + | ||
260 | + public String getBrand() { | ||
261 | + return brand; | ||
262 | + } | ||
263 | + | ||
264 | + public void setBrand(String brand) { | ||
265 | + this.brand = brand == null ? null : brand.trim(); | ||
266 | + } | ||
267 | + | ||
268 | + public String getModel() { | ||
269 | + return model; | ||
270 | + } | ||
271 | + | ||
272 | + public void setModel(String model) { | ||
273 | + this.model = model == null ? null : model.trim(); | ||
274 | + } | ||
275 | + | ||
276 | + public String getExhaustCapacity() { | ||
277 | + return exhaustCapacity; | ||
278 | + } | ||
279 | + | ||
280 | + public void setExhaustCapacity(String exhaustCapacity) { | ||
281 | + this.exhaustCapacity = exhaustCapacity == null ? null : exhaustCapacity.trim(); | ||
282 | + } | ||
283 | + | ||
284 | + public Date getVeFactoryDate() { | ||
285 | + return veFactoryDate; | ||
286 | + } | ||
287 | + | ||
288 | + public void setVeFactoryDate(Date veFactoryDate) { | ||
289 | + this.veFactoryDate = veFactoryDate; | ||
290 | + } | ||
291 | + | ||
292 | + public String getVeMotorNo() { | ||
293 | + return veMotorNo; | ||
294 | + } | ||
295 | + | ||
296 | + public void setVeMotorNo(String veMotorNo) { | ||
297 | + this.veMotorNo = veMotorNo == null ? null : veMotorNo.trim(); | ||
298 | + } | ||
299 | + | ||
300 | + public String getVeFrameNo() { | ||
301 | + return veFrameNo; | ||
302 | + } | ||
303 | + | ||
304 | + public void setVeFrameNo(String veFrameNo) { | ||
305 | + this.veFrameNo = veFrameNo == null ? null : veFrameNo.trim(); | ||
306 | + } | ||
307 | + | ||
308 | + public String getVeTon() { | ||
309 | + return veTon; | ||
310 | + } | ||
311 | + | ||
312 | + public void setVeTon(String veTon) { | ||
313 | + this.veTon = veTon == null ? null : veTon.trim(); | ||
314 | + } | ||
315 | + | ||
316 | + public String getSelfWt() { | ||
317 | + return selfWt; | ||
318 | + } | ||
319 | + | ||
320 | + public void setSelfWt(String selfWt) { | ||
321 | + this.selfWt = selfWt == null ? null : selfWt.trim(); | ||
322 | + } | ||
323 | + | ||
324 | + public String getAllowTowTotalWt() { | ||
325 | + return allowTowTotalWt; | ||
326 | + } | ||
327 | + | ||
328 | + public void setAllowTowTotalWt(String allowTowTotalWt) { | ||
329 | + this.allowTowTotalWt = allowTowTotalWt == null ? null : allowTowTotalWt.trim(); | ||
330 | + } | ||
331 | + | ||
332 | + public String getContainerInnerLength() { | ||
333 | + return containerInnerLength; | ||
334 | + } | ||
335 | + | ||
336 | + public void setContainerInnerLength(String containerInnerLength) { | ||
337 | + this.containerInnerLength = containerInnerLength == null ? null : containerInnerLength.trim(); | ||
338 | + } | ||
339 | + | ||
340 | + public String getContainerInnerWidth() { | ||
341 | + return containerInnerWidth; | ||
342 | + } | ||
343 | + | ||
344 | + public void setContainerInnerWidth(String containerInnerWidth) { | ||
345 | + this.containerInnerWidth = containerInnerWidth == null ? null : containerInnerWidth.trim(); | ||
346 | + } | ||
347 | + | ||
348 | + public String getContainerInnerHeight() { | ||
349 | + return containerInnerHeight; | ||
350 | + } | ||
351 | + | ||
352 | + public void setContainerInnerHeight(String containerInnerHeight) { | ||
353 | + this.containerInnerHeight = containerInnerHeight == null ? null : containerInnerHeight.trim(); | ||
354 | + } | ||
355 | + | ||
356 | + public String getOuterLength() { | ||
357 | + return outerLength; | ||
358 | + } | ||
359 | + | ||
360 | + public void setOuterLength(String outerLength) { | ||
361 | + this.outerLength = outerLength == null ? null : outerLength.trim(); | ||
362 | + } | ||
363 | + | ||
364 | + public String getOuterWidth() { | ||
365 | + return outerWidth; | ||
366 | + } | ||
367 | + | ||
368 | + public void setOuterWidth(String outerWidth) { | ||
369 | + this.outerWidth = outerWidth == null ? null : outerWidth.trim(); | ||
370 | + } | ||
371 | + | ||
372 | + public String getOuterHeight() { | ||
373 | + return outerHeight; | ||
374 | + } | ||
375 | + | ||
376 | + public void setOuterHeight(String outerHeight) { | ||
377 | + this.outerHeight = outerHeight == null ? null : outerHeight.trim(); | ||
378 | + } | ||
379 | + | ||
380 | + public String getVeBodyColor() { | ||
381 | + return veBodyColor; | ||
382 | + } | ||
383 | + | ||
384 | + public void setVeBodyColor(String veBodyColor) { | ||
385 | + this.veBodyColor = veBodyColor == null ? null : veBodyColor.trim(); | ||
386 | + } | ||
387 | + | ||
388 | + public String getOilBoxCapcity() { | ||
389 | + return oilBoxCapcity; | ||
390 | + } | ||
391 | + | ||
392 | + public void setOilBoxCapcity(String oilBoxCapcity) { | ||
393 | + this.oilBoxCapcity = oilBoxCapcity == null ? null : oilBoxCapcity.trim(); | ||
394 | + } | ||
395 | + | ||
396 | + public String getAllowVeIePort() { | ||
397 | + return allowVeIePort; | ||
398 | + } | ||
399 | + | ||
400 | + public void setAllowVeIePort(String allowVeIePort) { | ||
401 | + this.allowVeIePort = allowVeIePort == null ? null : allowVeIePort.trim(); | ||
402 | + } | ||
403 | + | ||
404 | + public String getApprNo() { | ||
405 | + return apprNo; | ||
406 | + } | ||
407 | + | ||
408 | + public void setApprNo(String apprNo) { | ||
409 | + this.apprNo = apprNo == null ? null : apprNo.trim(); | ||
410 | + } | ||
411 | + | ||
412 | + public Date getApprPeriod() { | ||
413 | + return apprPeriod; | ||
414 | + } | ||
415 | + | ||
416 | + public void setApprPeriod(Date apprPeriod) { | ||
417 | + this.apprPeriod = apprPeriod; | ||
418 | + } | ||
419 | + | ||
420 | + public String getCurrApplyBussiness() { | ||
421 | + return currApplyBussiness; | ||
422 | + } | ||
423 | + | ||
424 | + public void setCurrApplyBussiness(String currApplyBussiness) { | ||
425 | + this.currApplyBussiness = currApplyBussiness == null ? null : currApplyBussiness.trim(); | ||
426 | + } | ||
427 | + | ||
428 | + public String getFront45cPic() { | ||
429 | + return front45cPic; | ||
430 | + } | ||
431 | + | ||
432 | + public void setFront45cPic(String front45cPic) { | ||
433 | + this.front45cPic = front45cPic == null ? null : front45cPic.trim(); | ||
434 | + } | ||
435 | + | ||
436 | + public String getBack45cPic() { | ||
437 | + return back45cPic; | ||
438 | + } | ||
439 | + | ||
440 | + public void setBack45cPic(String back45cPic) { | ||
441 | + this.back45cPic = back45cPic == null ? null : back45cPic.trim(); | ||
442 | + } | ||
443 | + | ||
444 | + public String getOilBoxPic() { | ||
445 | + return oilBoxPic; | ||
446 | + } | ||
447 | + | ||
448 | + public void setOilBoxPic(String oilBoxPic) { | ||
449 | + this.oilBoxPic = oilBoxPic == null ? null : oilBoxPic.trim(); | ||
450 | + } | ||
451 | + | ||
452 | + public String getVeBottomPic() { | ||
453 | + return veBottomPic; | ||
454 | + } | ||
455 | + | ||
456 | + public void setVeBottomPic(String veBottomPic) { | ||
457 | + this.veBottomPic = veBottomPic == null ? null : veBottomPic.trim(); | ||
458 | + } | ||
459 | + | ||
460 | + public String getMemo() { | ||
461 | + return memo; | ||
462 | + } | ||
463 | + | ||
464 | + public void setMemo(String memo) { | ||
465 | + this.memo = memo == null ? null : memo.trim(); | ||
466 | + } | ||
467 | + | ||
468 | + public String getProposer() { | ||
469 | + return proposer; | ||
470 | + } | ||
471 | + | ||
472 | + public void setProposer(String proposer) { | ||
473 | + this.proposer = proposer == null ? null : proposer.trim(); | ||
474 | + } | ||
475 | + | ||
476 | + public Date getProposeTime() { | ||
477 | + return proposeTime; | ||
478 | + } | ||
479 | + | ||
480 | + public void setProposeTime(Date proposeTime) { | ||
481 | + this.proposeTime = proposeTime; | ||
482 | + } | ||
483 | + | ||
484 | + public String getVeClassFlag() { | ||
485 | + return veClassFlag; | ||
486 | + } | ||
487 | + | ||
488 | + public void setVeClassFlag(String veClassFlag) { | ||
489 | + this.veClassFlag = veClassFlag == null ? null : veClassFlag.trim(); | ||
490 | + } | ||
491 | + | ||
492 | + public String getOperationType() { | ||
493 | + return operationType; | ||
494 | + } | ||
495 | + | ||
496 | + public void setOperationType(String operationType) { | ||
497 | + this.operationType = operationType == null ? null : operationType.trim(); | ||
498 | + } | ||
499 | + | ||
500 | + public String getTrailerLicenseNo() { | ||
501 | + return trailerLicenseNo; | ||
502 | + } | ||
503 | + | ||
504 | + public void setTrailerLicenseNo(String trailerLicenseNo) { | ||
505 | + this.trailerLicenseNo = trailerLicenseNo == null ? null : trailerLicenseNo.trim(); | ||
506 | + } | ||
507 | + | ||
508 | + public String getTrailerFrameNo() { | ||
509 | + return trailerFrameNo; | ||
510 | + } | ||
511 | + | ||
512 | + public void setTrailerFrameNo(String trailerFrameNo) { | ||
513 | + this.trailerFrameNo = trailerFrameNo == null ? null : trailerFrameNo.trim(); | ||
514 | + } | ||
515 | + | ||
516 | + public String getApproNoPic() { | ||
517 | + return approNoPic; | ||
518 | + } | ||
519 | + | ||
520 | + public void setApproNoPic(String approNoPic) { | ||
521 | + this.approNoPic = approNoPic == null ? null : approNoPic.trim(); | ||
522 | + } | ||
523 | + | ||
524 | + public String getVeFrameNoPic() { | ||
525 | + return veFrameNoPic; | ||
526 | + } | ||
527 | + | ||
528 | + public void setVeFrameNoPic(String veFrameNoPic) { | ||
529 | + this.veFrameNoPic = veFrameNoPic == null ? null : veFrameNoPic.trim(); | ||
530 | + } | ||
531 | + | ||
532 | + public String getMotorNoPic() { | ||
533 | + return motorNoPic; | ||
534 | + } | ||
535 | + | ||
536 | + public void setMotorNoPic(String motorNoPic) { | ||
537 | + this.motorNoPic = motorNoPic == null ? null : motorNoPic.trim(); | ||
538 | + } | ||
539 | + | ||
540 | + public String getForeignLicensePic() { | ||
541 | + return foreignLicensePic; | ||
542 | + } | ||
543 | + | ||
544 | + public void setForeignLicensePic(String foreignLicensePic) { | ||
545 | + this.foreignLicensePic = foreignLicensePic == null ? null : foreignLicensePic.trim(); | ||
546 | + } | ||
547 | + | ||
548 | + public String getNationality() { | ||
549 | + return nationality; | ||
550 | + } | ||
551 | + | ||
552 | + public void setNationality(String nationality) { | ||
553 | + this.nationality = nationality == null ? null : nationality.trim(); | ||
554 | + } | ||
555 | + | ||
556 | + public String getReturnmessage() { | ||
557 | + return returnmessage; | ||
558 | + } | ||
559 | + | ||
560 | + public void setReturnmessage(String returnmessage) { | ||
561 | + this.returnmessage = returnmessage == null ? null : returnmessage.trim(); | ||
562 | + } | ||
563 | + | ||
564 | + public String getCreateBy() { | ||
565 | + return createBy; | ||
566 | + } | ||
567 | + | ||
568 | + public void setCreateBy(String createBy) { | ||
569 | + this.createBy = createBy == null ? null : createBy.trim(); | ||
570 | + } | ||
571 | + | ||
572 | + public Date getCreateDate() { | ||
573 | + return createDate; | ||
574 | + } | ||
575 | + | ||
576 | + public void setCreateDate(Date createDate) { | ||
577 | + this.createDate = createDate; | ||
578 | + } | ||
579 | + | ||
580 | + public String getUpdateBy() { | ||
581 | + return updateBy; | ||
582 | + } | ||
583 | + | ||
584 | + public void setUpdateBy(String updateBy) { | ||
585 | + this.updateBy = updateBy == null ? null : updateBy.trim(); | ||
586 | + } | ||
587 | + | ||
588 | + public Date getUpdateDate() { | ||
589 | + return updateDate; | ||
590 | + } | ||
591 | + | ||
592 | + public void setUpdateDate(Date updateDate) { | ||
593 | + this.updateDate = updateDate; | ||
594 | + } | ||
595 | +} |
1 | +package com.sy.service.impl; | ||
2 | + | ||
3 | +import com.sy.mapper.LandRoadVeMapper; | ||
4 | +import com.sy.model.LandRoadVe; | ||
5 | +import com.sy.service.LandRoadVeService; | ||
6 | +import org.springframework.stereotype.Service; | ||
7 | + | ||
8 | +@Service | ||
9 | +public class LandRoadVeServiceImpl implements LandRoadVeService { | ||
10 | + | ||
11 | + private LandRoadVeMapper veMapper; | ||
12 | + | ||
13 | + @Override | ||
14 | + public LandRoadVe selectByFrameNo(String frameNo) { | ||
15 | + LandRoadVe ve = null; | ||
16 | + try { | ||
17 | + ve = veMapper.selectByFrameNo(frameNo); | ||
18 | + }catch (Exception e){ | ||
19 | + e.printStackTrace(); | ||
20 | + } | ||
21 | + return ve; | ||
22 | + } | ||
23 | +} |
@@ -62,7 +62,13 @@ | @@ -62,7 +62,13 @@ | ||
62 | enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | 62 | enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> |
63 | <table tableName="vehicle_mainifist_relation" domainObjectName="vehicle_mainifist_relation" enableCountByExample="false" enableUpdateByExample="false" | 63 | <table tableName="vehicle_mainifist_relation" domainObjectName="vehicle_mainifist_relation" enableCountByExample="false" enableUpdateByExample="false" |
64 | enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>--> | 64 | enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>--> |
65 | - <table tableName="gatherinfo" domainObjectName="GatherInfo" enableCountByExample="false" | 65 | + <!-- <table tableName="gatherinfo" domainObjectName="GatherInfo" enableCountByExample="false" |
66 | + enableUpdateByExample="false" | ||
67 | + enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>--> | ||
68 | + <!-- <table tableName="land_businesstype_list" domainObjectName="LandBusinessTypeList" enableCountByExample="false" | ||
69 | + enableUpdateByExample="false" | ||
70 | + enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>--> | ||
71 | + <table tableName="land_road_ve_record" domainObjectName="LandRoadVe" enableCountByExample="false" | ||
66 | enableUpdateByExample="false" | 72 | enableUpdateByExample="false" |
67 | enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | 73 | enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> |
68 | </context> | 74 | </context> |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sy.mapper.LandRoadVeMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sy.model.LandRoadVe"> | ||
5 | + <id column="ID" jdbcType="VARCHAR" property="id" /> | ||
6 | + <result column="EPORT_ID" jdbcType="VARCHAR" property="eportId" /> | ||
7 | + <result column="MAIN_PORT" jdbcType="VARCHAR" property="mainPort" /> | ||
8 | + <result column="CO_CODE" jdbcType="VARCHAR" property="coCode" /> | ||
9 | + <result column="VE_TARGET_NO" jdbcType="VARCHAR" property="veTargetNo" /> | ||
10 | + <result column="DOMESTIC_LISENCE_NO" jdbcType="VARCHAR" property="domesticLisenceNo" /> | ||
11 | + <result column="DOMESTIC_LICENSE_COLOR" jdbcType="VARCHAR" property="domesticLicenseColor" /> | ||
12 | + <result column="FOREIGN_LICENSE" jdbcType="VARCHAR" property="foreignLicense" /> | ||
13 | + <result column="VE_REG_PLACE" jdbcType="VARCHAR" property="veRegPlace" /> | ||
14 | + <result column="VE_PROPERTY" jdbcType="VARCHAR" property="veProperty" /> | ||
15 | + <result column="VE_CONVEY_QUA" jdbcType="VARCHAR" property="veConveyQua" /> | ||
16 | + <result column="VE_CARD_NO" jdbcType="VARCHAR" property="veCardNo" /> | ||
17 | + <result column="VE_OWNER_NAME" jdbcType="VARCHAR" property="veOwnerName" /> | ||
18 | + <result column="VE_OWNER_NO" jdbcType="VARCHAR" property="veOwnerNo" /> | ||
19 | + <result column="OWNER_INSIDE_ADDR" jdbcType="VARCHAR" property="ownerInsideAddr" /> | ||
20 | + <result column="OWNER_INSIDE_TEL" jdbcType="VARCHAR" property="ownerInsideTel" /> | ||
21 | + <result column="VE_TYPE" jdbcType="VARCHAR" property="veType" /> | ||
22 | + <result column="BRAND" jdbcType="VARCHAR" property="brand" /> | ||
23 | + <result column="MODEL" jdbcType="VARCHAR" property="model" /> | ||
24 | + <result column="EXHAUST_CAPACITY" jdbcType="VARCHAR" property="exhaustCapacity" /> | ||
25 | + <result column="VE_FACTORY_DATE" jdbcType="DATE" property="veFactoryDate" /> | ||
26 | + <result column="VE_MOTOR_NO" jdbcType="VARCHAR" property="veMotorNo" /> | ||
27 | + <result column="VE_FRAME_NO" jdbcType="VARCHAR" property="veFrameNo" /> | ||
28 | + <result column="VE_TON" jdbcType="VARCHAR" property="veTon" /> | ||
29 | + <result column="SELF_WT" jdbcType="VARCHAR" property="selfWt" /> | ||
30 | + <result column="ALLOW_TOW_TOTAL_WT" jdbcType="VARCHAR" property="allowTowTotalWt" /> | ||
31 | + <result column="CONTAINER_INNER_LENGTH" jdbcType="VARCHAR" property="containerInnerLength" /> | ||
32 | + <result column="CONTAINER_INNER_WIDTH" jdbcType="VARCHAR" property="containerInnerWidth" /> | ||
33 | + <result column="CONTAINER_INNER_HEIGHT" jdbcType="VARCHAR" property="containerInnerHeight" /> | ||
34 | + <result column="OUTER_LENGTH" jdbcType="VARCHAR" property="outerLength" /> | ||
35 | + <result column="OUTER_WIDTH" jdbcType="VARCHAR" property="outerWidth" /> | ||
36 | + <result column="OUTER_HEIGHT" jdbcType="VARCHAR" property="outerHeight" /> | ||
37 | + <result column="VE_BODY_COLOR" jdbcType="VARCHAR" property="veBodyColor" /> | ||
38 | + <result column="OIL_BOX_CAPCITY" jdbcType="VARCHAR" property="oilBoxCapcity" /> | ||
39 | + <result column="ALLOW_VE_IE_PORT" jdbcType="VARCHAR" property="allowVeIePort" /> | ||
40 | + <result column="APPR_NO" jdbcType="VARCHAR" property="apprNo" /> | ||
41 | + <result column="APPR_PERIOD" jdbcType="DATE" property="apprPeriod" /> | ||
42 | + <result column="CURR_APPLY_BUSSINESS" jdbcType="VARCHAR" property="currApplyBussiness" /> | ||
43 | + <result column="FRONT_45C_PIC" jdbcType="VARCHAR" property="front45cPic" /> | ||
44 | + <result column="BACK_45C_PIC" jdbcType="VARCHAR" property="back45cPic" /> | ||
45 | + <result column="OIL_BOX_PIC" jdbcType="VARCHAR" property="oilBoxPic" /> | ||
46 | + <result column="VE_BOTTOM_PIC" jdbcType="VARCHAR" property="veBottomPic" /> | ||
47 | + <result column="MEMO" jdbcType="VARCHAR" property="memo" /> | ||
48 | + <result column="PROPOSER" jdbcType="VARCHAR" property="proposer" /> | ||
49 | + <result column="PROPOSE_TIME" jdbcType="TIMESTAMP" property="proposeTime" /> | ||
50 | + <result column="VE_CLASS_FLAG" jdbcType="VARCHAR" property="veClassFlag" /> | ||
51 | + <result column="OPERATION_TYPE" jdbcType="VARCHAR" property="operationType" /> | ||
52 | + <result column="TRAILER_LICENSE_NO" jdbcType="VARCHAR" property="trailerLicenseNo" /> | ||
53 | + <result column="TRAILER_FRAME_NO" jdbcType="VARCHAR" property="trailerFrameNo" /> | ||
54 | + <result column="APPRO_NO_PIC" jdbcType="VARCHAR" property="approNoPic" /> | ||
55 | + <result column="VE_FRAME_NO_PIC" jdbcType="VARCHAR" property="veFrameNoPic" /> | ||
56 | + <result column="MOTOR_NO_PIC" jdbcType="VARCHAR" property="motorNoPic" /> | ||
57 | + <result column="FOREIGN_LICENSE_PIC" jdbcType="VARCHAR" property="foreignLicensePic" /> | ||
58 | + <result column="NATIONALITY" jdbcType="VARCHAR" property="nationality" /> | ||
59 | + <result column="RETURNMESSAGE" jdbcType="VARCHAR" property="returnmessage" /> | ||
60 | + <result column="CREATE_BY" jdbcType="VARCHAR" property="createBy" /> | ||
61 | + <result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" /> | ||
62 | + <result column="UPDATE_BY" jdbcType="VARCHAR" property="updateBy" /> | ||
63 | + <result column="UPDATE_DATE" jdbcType="TIMESTAMP" property="updateDate" /> | ||
64 | + </resultMap> | ||
65 | + <sql id="Base_Column_List"> | ||
66 | + ID, EPORT_ID, MAIN_PORT, CO_CODE, VE_TARGET_NO, DOMESTIC_LISENCE_NO, DOMESTIC_LICENSE_COLOR, | ||
67 | + FOREIGN_LICENSE, VE_REG_PLACE, VE_PROPERTY, VE_CONVEY_QUA, VE_CARD_NO, VE_OWNER_NAME, | ||
68 | + VE_OWNER_NO, OWNER_INSIDE_ADDR, OWNER_INSIDE_TEL, VE_TYPE, BRAND, MODEL, EXHAUST_CAPACITY, | ||
69 | + VE_FACTORY_DATE, VE_MOTOR_NO, VE_FRAME_NO, VE_TON, SELF_WT, ALLOW_TOW_TOTAL_WT, CONTAINER_INNER_LENGTH, | ||
70 | + CONTAINER_INNER_WIDTH, CONTAINER_INNER_HEIGHT, OUTER_LENGTH, OUTER_WIDTH, OUTER_HEIGHT, | ||
71 | + VE_BODY_COLOR, OIL_BOX_CAPCITY, ALLOW_VE_IE_PORT, APPR_NO, APPR_PERIOD, CURR_APPLY_BUSSINESS, | ||
72 | + FRONT_45C_PIC, BACK_45C_PIC, OIL_BOX_PIC, VE_BOTTOM_PIC, MEMO, PROPOSER, PROPOSE_TIME, | ||
73 | + VE_CLASS_FLAG, OPERATION_TYPE, TRAILER_LICENSE_NO, TRAILER_FRAME_NO, APPRO_NO_PIC, | ||
74 | + VE_FRAME_NO_PIC, MOTOR_NO_PIC, FOREIGN_LICENSE_PIC, NATIONALITY, RETURNMESSAGE, CREATE_BY, | ||
75 | + CREATE_DATE, UPDATE_BY, UPDATE_DATE | ||
76 | + </sql> | ||
77 | + <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
78 | + select | ||
79 | + <include refid="Base_Column_List" /> | ||
80 | + from land_road_ve_record | ||
81 | + where ID = #{id,jdbcType=VARCHAR} | ||
82 | + </select> | ||
83 | + <select id="selectByFrameNo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
84 | + select | ||
85 | + <include refid="Base_Column_List" /> | ||
86 | + from land_road_ve_record | ||
87 | + where DOMESTIC_LISENCE_NO = #{domesticLisenceNo,jdbcType=VARCHAR} | ||
88 | + </select> | ||
89 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> | ||
90 | + delete from land_road_ve_record | ||
91 | + where ID = #{id,jdbcType=VARCHAR} | ||
92 | + </delete> | ||
93 | + <insert id="insert" parameterType="com.sy.model.LandRoadVe"> | ||
94 | + insert into land_road_ve_record (ID, EPORT_ID, MAIN_PORT, | ||
95 | + CO_CODE, VE_TARGET_NO, DOMESTIC_LISENCE_NO, | ||
96 | + DOMESTIC_LICENSE_COLOR, FOREIGN_LICENSE, VE_REG_PLACE, | ||
97 | + VE_PROPERTY, VE_CONVEY_QUA, VE_CARD_NO, | ||
98 | + VE_OWNER_NAME, VE_OWNER_NO, OWNER_INSIDE_ADDR, | ||
99 | + OWNER_INSIDE_TEL, VE_TYPE, BRAND, | ||
100 | + MODEL, EXHAUST_CAPACITY, VE_FACTORY_DATE, | ||
101 | + VE_MOTOR_NO, VE_FRAME_NO, VE_TON, | ||
102 | + SELF_WT, ALLOW_TOW_TOTAL_WT, CONTAINER_INNER_LENGTH, | ||
103 | + CONTAINER_INNER_WIDTH, CONTAINER_INNER_HEIGHT, | ||
104 | + OUTER_LENGTH, OUTER_WIDTH, OUTER_HEIGHT, | ||
105 | + VE_BODY_COLOR, OIL_BOX_CAPCITY, ALLOW_VE_IE_PORT, | ||
106 | + APPR_NO, APPR_PERIOD, CURR_APPLY_BUSSINESS, | ||
107 | + FRONT_45C_PIC, BACK_45C_PIC, OIL_BOX_PIC, | ||
108 | + VE_BOTTOM_PIC, MEMO, PROPOSER, | ||
109 | + PROPOSE_TIME, VE_CLASS_FLAG, OPERATION_TYPE, | ||
110 | + TRAILER_LICENSE_NO, TRAILER_FRAME_NO, APPRO_NO_PIC, | ||
111 | + VE_FRAME_NO_PIC, MOTOR_NO_PIC, FOREIGN_LICENSE_PIC, | ||
112 | + NATIONALITY, RETURNMESSAGE, CREATE_BY, | ||
113 | + CREATE_DATE, UPDATE_BY, UPDATE_DATE | ||
114 | + ) | ||
115 | + values (#{id,jdbcType=VARCHAR}, #{eportId,jdbcType=VARCHAR}, #{mainPort,jdbcType=VARCHAR}, | ||
116 | + #{coCode,jdbcType=VARCHAR}, #{veTargetNo,jdbcType=VARCHAR}, #{domesticLisenceNo,jdbcType=VARCHAR}, | ||
117 | + #{domesticLicenseColor,jdbcType=VARCHAR}, #{foreignLicense,jdbcType=VARCHAR}, #{veRegPlace,jdbcType=VARCHAR}, | ||
118 | + #{veProperty,jdbcType=VARCHAR}, #{veConveyQua,jdbcType=VARCHAR}, #{veCardNo,jdbcType=VARCHAR}, | ||
119 | + #{veOwnerName,jdbcType=VARCHAR}, #{veOwnerNo,jdbcType=VARCHAR}, #{ownerInsideAddr,jdbcType=VARCHAR}, | ||
120 | + #{ownerInsideTel,jdbcType=VARCHAR}, #{veType,jdbcType=VARCHAR}, #{brand,jdbcType=VARCHAR}, | ||
121 | + #{model,jdbcType=VARCHAR}, #{exhaustCapacity,jdbcType=VARCHAR}, #{veFactoryDate,jdbcType=DATE}, | ||
122 | + #{veMotorNo,jdbcType=VARCHAR}, #{veFrameNo,jdbcType=VARCHAR}, #{veTon,jdbcType=VARCHAR}, | ||
123 | + #{selfWt,jdbcType=VARCHAR}, #{allowTowTotalWt,jdbcType=VARCHAR}, #{containerInnerLength,jdbcType=VARCHAR}, | ||
124 | + #{containerInnerWidth,jdbcType=VARCHAR}, #{containerInnerHeight,jdbcType=VARCHAR}, | ||
125 | + #{outerLength,jdbcType=VARCHAR}, #{outerWidth,jdbcType=VARCHAR}, #{outerHeight,jdbcType=VARCHAR}, | ||
126 | + #{veBodyColor,jdbcType=VARCHAR}, #{oilBoxCapcity,jdbcType=VARCHAR}, #{allowVeIePort,jdbcType=VARCHAR}, | ||
127 | + #{apprNo,jdbcType=VARCHAR}, #{apprPeriod,jdbcType=DATE}, #{currApplyBussiness,jdbcType=VARCHAR}, | ||
128 | + #{front45cPic,jdbcType=VARCHAR}, #{back45cPic,jdbcType=VARCHAR}, #{oilBoxPic,jdbcType=VARCHAR}, | ||
129 | + #{veBottomPic,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{proposer,jdbcType=VARCHAR}, | ||
130 | + #{proposeTime,jdbcType=TIMESTAMP}, #{veClassFlag,jdbcType=VARCHAR}, #{operationType,jdbcType=VARCHAR}, | ||
131 | + #{trailerLicenseNo,jdbcType=VARCHAR}, #{trailerFrameNo,jdbcType=VARCHAR}, #{approNoPic,jdbcType=VARCHAR}, | ||
132 | + #{veFrameNoPic,jdbcType=VARCHAR}, #{motorNoPic,jdbcType=VARCHAR}, #{foreignLicensePic,jdbcType=VARCHAR}, | ||
133 | + #{nationality,jdbcType=VARCHAR}, #{returnmessage,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, | ||
134 | + #{createDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateDate,jdbcType=TIMESTAMP} | ||
135 | + ) | ||
136 | + </insert> | ||
137 | + <insert id="insertSelective" parameterType="com.sy.model.LandRoadVe"> | ||
138 | + insert into land_road_ve_record | ||
139 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
140 | + <if test="id != null"> | ||
141 | + ID, | ||
142 | + </if> | ||
143 | + <if test="eportId != null"> | ||
144 | + EPORT_ID, | ||
145 | + </if> | ||
146 | + <if test="mainPort != null"> | ||
147 | + MAIN_PORT, | ||
148 | + </if> | ||
149 | + <if test="coCode != null"> | ||
150 | + CO_CODE, | ||
151 | + </if> | ||
152 | + <if test="veTargetNo != null"> | ||
153 | + VE_TARGET_NO, | ||
154 | + </if> | ||
155 | + <if test="domesticLisenceNo != null"> | ||
156 | + DOMESTIC_LISENCE_NO, | ||
157 | + </if> | ||
158 | + <if test="domesticLicenseColor != null"> | ||
159 | + DOMESTIC_LICENSE_COLOR, | ||
160 | + </if> | ||
161 | + <if test="foreignLicense != null"> | ||
162 | + FOREIGN_LICENSE, | ||
163 | + </if> | ||
164 | + <if test="veRegPlace != null"> | ||
165 | + VE_REG_PLACE, | ||
166 | + </if> | ||
167 | + <if test="veProperty != null"> | ||
168 | + VE_PROPERTY, | ||
169 | + </if> | ||
170 | + <if test="veConveyQua != null"> | ||
171 | + VE_CONVEY_QUA, | ||
172 | + </if> | ||
173 | + <if test="veCardNo != null"> | ||
174 | + VE_CARD_NO, | ||
175 | + </if> | ||
176 | + <if test="veOwnerName != null"> | ||
177 | + VE_OWNER_NAME, | ||
178 | + </if> | ||
179 | + <if test="veOwnerNo != null"> | ||
180 | + VE_OWNER_NO, | ||
181 | + </if> | ||
182 | + <if test="ownerInsideAddr != null"> | ||
183 | + OWNER_INSIDE_ADDR, | ||
184 | + </if> | ||
185 | + <if test="ownerInsideTel != null"> | ||
186 | + OWNER_INSIDE_TEL, | ||
187 | + </if> | ||
188 | + <if test="veType != null"> | ||
189 | + VE_TYPE, | ||
190 | + </if> | ||
191 | + <if test="brand != null"> | ||
192 | + BRAND, | ||
193 | + </if> | ||
194 | + <if test="model != null"> | ||
195 | + MODEL, | ||
196 | + </if> | ||
197 | + <if test="exhaustCapacity != null"> | ||
198 | + EXHAUST_CAPACITY, | ||
199 | + </if> | ||
200 | + <if test="veFactoryDate != null"> | ||
201 | + VE_FACTORY_DATE, | ||
202 | + </if> | ||
203 | + <if test="veMotorNo != null"> | ||
204 | + VE_MOTOR_NO, | ||
205 | + </if> | ||
206 | + <if test="veFrameNo != null"> | ||
207 | + VE_FRAME_NO, | ||
208 | + </if> | ||
209 | + <if test="veTon != null"> | ||
210 | + VE_TON, | ||
211 | + </if> | ||
212 | + <if test="selfWt != null"> | ||
213 | + SELF_WT, | ||
214 | + </if> | ||
215 | + <if test="allowTowTotalWt != null"> | ||
216 | + ALLOW_TOW_TOTAL_WT, | ||
217 | + </if> | ||
218 | + <if test="containerInnerLength != null"> | ||
219 | + CONTAINER_INNER_LENGTH, | ||
220 | + </if> | ||
221 | + <if test="containerInnerWidth != null"> | ||
222 | + CONTAINER_INNER_WIDTH, | ||
223 | + </if> | ||
224 | + <if test="containerInnerHeight != null"> | ||
225 | + CONTAINER_INNER_HEIGHT, | ||
226 | + </if> | ||
227 | + <if test="outerLength != null"> | ||
228 | + OUTER_LENGTH, | ||
229 | + </if> | ||
230 | + <if test="outerWidth != null"> | ||
231 | + OUTER_WIDTH, | ||
232 | + </if> | ||
233 | + <if test="outerHeight != null"> | ||
234 | + OUTER_HEIGHT, | ||
235 | + </if> | ||
236 | + <if test="veBodyColor != null"> | ||
237 | + VE_BODY_COLOR, | ||
238 | + </if> | ||
239 | + <if test="oilBoxCapcity != null"> | ||
240 | + OIL_BOX_CAPCITY, | ||
241 | + </if> | ||
242 | + <if test="allowVeIePort != null"> | ||
243 | + ALLOW_VE_IE_PORT, | ||
244 | + </if> | ||
245 | + <if test="apprNo != null"> | ||
246 | + APPR_NO, | ||
247 | + </if> | ||
248 | + <if test="apprPeriod != null"> | ||
249 | + APPR_PERIOD, | ||
250 | + </if> | ||
251 | + <if test="currApplyBussiness != null"> | ||
252 | + CURR_APPLY_BUSSINESS, | ||
253 | + </if> | ||
254 | + <if test="front45cPic != null"> | ||
255 | + FRONT_45C_PIC, | ||
256 | + </if> | ||
257 | + <if test="back45cPic != null"> | ||
258 | + BACK_45C_PIC, | ||
259 | + </if> | ||
260 | + <if test="oilBoxPic != null"> | ||
261 | + OIL_BOX_PIC, | ||
262 | + </if> | ||
263 | + <if test="veBottomPic != null"> | ||
264 | + VE_BOTTOM_PIC, | ||
265 | + </if> | ||
266 | + <if test="memo != null"> | ||
267 | + MEMO, | ||
268 | + </if> | ||
269 | + <if test="proposer != null"> | ||
270 | + PROPOSER, | ||
271 | + </if> | ||
272 | + <if test="proposeTime != null"> | ||
273 | + PROPOSE_TIME, | ||
274 | + </if> | ||
275 | + <if test="veClassFlag != null"> | ||
276 | + VE_CLASS_FLAG, | ||
277 | + </if> | ||
278 | + <if test="operationType != null"> | ||
279 | + OPERATION_TYPE, | ||
280 | + </if> | ||
281 | + <if test="trailerLicenseNo != null"> | ||
282 | + TRAILER_LICENSE_NO, | ||
283 | + </if> | ||
284 | + <if test="trailerFrameNo != null"> | ||
285 | + TRAILER_FRAME_NO, | ||
286 | + </if> | ||
287 | + <if test="approNoPic != null"> | ||
288 | + APPRO_NO_PIC, | ||
289 | + </if> | ||
290 | + <if test="veFrameNoPic != null"> | ||
291 | + VE_FRAME_NO_PIC, | ||
292 | + </if> | ||
293 | + <if test="motorNoPic != null"> | ||
294 | + MOTOR_NO_PIC, | ||
295 | + </if> | ||
296 | + <if test="foreignLicensePic != null"> | ||
297 | + FOREIGN_LICENSE_PIC, | ||
298 | + </if> | ||
299 | + <if test="nationality != null"> | ||
300 | + NATIONALITY, | ||
301 | + </if> | ||
302 | + <if test="returnmessage != null"> | ||
303 | + RETURNMESSAGE, | ||
304 | + </if> | ||
305 | + <if test="createBy != null"> | ||
306 | + CREATE_BY, | ||
307 | + </if> | ||
308 | + <if test="createDate != null"> | ||
309 | + CREATE_DATE, | ||
310 | + </if> | ||
311 | + <if test="updateBy != null"> | ||
312 | + UPDATE_BY, | ||
313 | + </if> | ||
314 | + <if test="updateDate != null"> | ||
315 | + UPDATE_DATE, | ||
316 | + </if> | ||
317 | + </trim> | ||
318 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
319 | + <if test="id != null"> | ||
320 | + #{id,jdbcType=VARCHAR}, | ||
321 | + </if> | ||
322 | + <if test="eportId != null"> | ||
323 | + #{eportId,jdbcType=VARCHAR}, | ||
324 | + </if> | ||
325 | + <if test="mainPort != null"> | ||
326 | + #{mainPort,jdbcType=VARCHAR}, | ||
327 | + </if> | ||
328 | + <if test="coCode != null"> | ||
329 | + #{coCode,jdbcType=VARCHAR}, | ||
330 | + </if> | ||
331 | + <if test="veTargetNo != null"> | ||
332 | + #{veTargetNo,jdbcType=VARCHAR}, | ||
333 | + </if> | ||
334 | + <if test="domesticLisenceNo != null"> | ||
335 | + #{domesticLisenceNo,jdbcType=VARCHAR}, | ||
336 | + </if> | ||
337 | + <if test="domesticLicenseColor != null"> | ||
338 | + #{domesticLicenseColor,jdbcType=VARCHAR}, | ||
339 | + </if> | ||
340 | + <if test="foreignLicense != null"> | ||
341 | + #{foreignLicense,jdbcType=VARCHAR}, | ||
342 | + </if> | ||
343 | + <if test="veRegPlace != null"> | ||
344 | + #{veRegPlace,jdbcType=VARCHAR}, | ||
345 | + </if> | ||
346 | + <if test="veProperty != null"> | ||
347 | + #{veProperty,jdbcType=VARCHAR}, | ||
348 | + </if> | ||
349 | + <if test="veConveyQua != null"> | ||
350 | + #{veConveyQua,jdbcType=VARCHAR}, | ||
351 | + </if> | ||
352 | + <if test="veCardNo != null"> | ||
353 | + #{veCardNo,jdbcType=VARCHAR}, | ||
354 | + </if> | ||
355 | + <if test="veOwnerName != null"> | ||
356 | + #{veOwnerName,jdbcType=VARCHAR}, | ||
357 | + </if> | ||
358 | + <if test="veOwnerNo != null"> | ||
359 | + #{veOwnerNo,jdbcType=VARCHAR}, | ||
360 | + </if> | ||
361 | + <if test="ownerInsideAddr != null"> | ||
362 | + #{ownerInsideAddr,jdbcType=VARCHAR}, | ||
363 | + </if> | ||
364 | + <if test="ownerInsideTel != null"> | ||
365 | + #{ownerInsideTel,jdbcType=VARCHAR}, | ||
366 | + </if> | ||
367 | + <if test="veType != null"> | ||
368 | + #{veType,jdbcType=VARCHAR}, | ||
369 | + </if> | ||
370 | + <if test="brand != null"> | ||
371 | + #{brand,jdbcType=VARCHAR}, | ||
372 | + </if> | ||
373 | + <if test="model != null"> | ||
374 | + #{model,jdbcType=VARCHAR}, | ||
375 | + </if> | ||
376 | + <if test="exhaustCapacity != null"> | ||
377 | + #{exhaustCapacity,jdbcType=VARCHAR}, | ||
378 | + </if> | ||
379 | + <if test="veFactoryDate != null"> | ||
380 | + #{veFactoryDate,jdbcType=DATE}, | ||
381 | + </if> | ||
382 | + <if test="veMotorNo != null"> | ||
383 | + #{veMotorNo,jdbcType=VARCHAR}, | ||
384 | + </if> | ||
385 | + <if test="veFrameNo != null"> | ||
386 | + #{veFrameNo,jdbcType=VARCHAR}, | ||
387 | + </if> | ||
388 | + <if test="veTon != null"> | ||
389 | + #{veTon,jdbcType=VARCHAR}, | ||
390 | + </if> | ||
391 | + <if test="selfWt != null"> | ||
392 | + #{selfWt,jdbcType=VARCHAR}, | ||
393 | + </if> | ||
394 | + <if test="allowTowTotalWt != null"> | ||
395 | + #{allowTowTotalWt,jdbcType=VARCHAR}, | ||
396 | + </if> | ||
397 | + <if test="containerInnerLength != null"> | ||
398 | + #{containerInnerLength,jdbcType=VARCHAR}, | ||
399 | + </if> | ||
400 | + <if test="containerInnerWidth != null"> | ||
401 | + #{containerInnerWidth,jdbcType=VARCHAR}, | ||
402 | + </if> | ||
403 | + <if test="containerInnerHeight != null"> | ||
404 | + #{containerInnerHeight,jdbcType=VARCHAR}, | ||
405 | + </if> | ||
406 | + <if test="outerLength != null"> | ||
407 | + #{outerLength,jdbcType=VARCHAR}, | ||
408 | + </if> | ||
409 | + <if test="outerWidth != null"> | ||
410 | + #{outerWidth,jdbcType=VARCHAR}, | ||
411 | + </if> | ||
412 | + <if test="outerHeight != null"> | ||
413 | + #{outerHeight,jdbcType=VARCHAR}, | ||
414 | + </if> | ||
415 | + <if test="veBodyColor != null"> | ||
416 | + #{veBodyColor,jdbcType=VARCHAR}, | ||
417 | + </if> | ||
418 | + <if test="oilBoxCapcity != null"> | ||
419 | + #{oilBoxCapcity,jdbcType=VARCHAR}, | ||
420 | + </if> | ||
421 | + <if test="allowVeIePort != null"> | ||
422 | + #{allowVeIePort,jdbcType=VARCHAR}, | ||
423 | + </if> | ||
424 | + <if test="apprNo != null"> | ||
425 | + #{apprNo,jdbcType=VARCHAR}, | ||
426 | + </if> | ||
427 | + <if test="apprPeriod != null"> | ||
428 | + #{apprPeriod,jdbcType=DATE}, | ||
429 | + </if> | ||
430 | + <if test="currApplyBussiness != null"> | ||
431 | + #{currApplyBussiness,jdbcType=VARCHAR}, | ||
432 | + </if> | ||
433 | + <if test="front45cPic != null"> | ||
434 | + #{front45cPic,jdbcType=VARCHAR}, | ||
435 | + </if> | ||
436 | + <if test="back45cPic != null"> | ||
437 | + #{back45cPic,jdbcType=VARCHAR}, | ||
438 | + </if> | ||
439 | + <if test="oilBoxPic != null"> | ||
440 | + #{oilBoxPic,jdbcType=VARCHAR}, | ||
441 | + </if> | ||
442 | + <if test="veBottomPic != null"> | ||
443 | + #{veBottomPic,jdbcType=VARCHAR}, | ||
444 | + </if> | ||
445 | + <if test="memo != null"> | ||
446 | + #{memo,jdbcType=VARCHAR}, | ||
447 | + </if> | ||
448 | + <if test="proposer != null"> | ||
449 | + #{proposer,jdbcType=VARCHAR}, | ||
450 | + </if> | ||
451 | + <if test="proposeTime != null"> | ||
452 | + #{proposeTime,jdbcType=TIMESTAMP}, | ||
453 | + </if> | ||
454 | + <if test="veClassFlag != null"> | ||
455 | + #{veClassFlag,jdbcType=VARCHAR}, | ||
456 | + </if> | ||
457 | + <if test="operationType != null"> | ||
458 | + #{operationType,jdbcType=VARCHAR}, | ||
459 | + </if> | ||
460 | + <if test="trailerLicenseNo != null"> | ||
461 | + #{trailerLicenseNo,jdbcType=VARCHAR}, | ||
462 | + </if> | ||
463 | + <if test="trailerFrameNo != null"> | ||
464 | + #{trailerFrameNo,jdbcType=VARCHAR}, | ||
465 | + </if> | ||
466 | + <if test="approNoPic != null"> | ||
467 | + #{approNoPic,jdbcType=VARCHAR}, | ||
468 | + </if> | ||
469 | + <if test="veFrameNoPic != null"> | ||
470 | + #{veFrameNoPic,jdbcType=VARCHAR}, | ||
471 | + </if> | ||
472 | + <if test="motorNoPic != null"> | ||
473 | + #{motorNoPic,jdbcType=VARCHAR}, | ||
474 | + </if> | ||
475 | + <if test="foreignLicensePic != null"> | ||
476 | + #{foreignLicensePic,jdbcType=VARCHAR}, | ||
477 | + </if> | ||
478 | + <if test="nationality != null"> | ||
479 | + #{nationality,jdbcType=VARCHAR}, | ||
480 | + </if> | ||
481 | + <if test="returnmessage != null"> | ||
482 | + #{returnmessage,jdbcType=VARCHAR}, | ||
483 | + </if> | ||
484 | + <if test="createBy != null"> | ||
485 | + #{createBy,jdbcType=VARCHAR}, | ||
486 | + </if> | ||
487 | + <if test="createDate != null"> | ||
488 | + #{createDate,jdbcType=TIMESTAMP}, | ||
489 | + </if> | ||
490 | + <if test="updateBy != null"> | ||
491 | + #{updateBy,jdbcType=VARCHAR}, | ||
492 | + </if> | ||
493 | + <if test="updateDate != null"> | ||
494 | + #{updateDate,jdbcType=TIMESTAMP}, | ||
495 | + </if> | ||
496 | + </trim> | ||
497 | + </insert> | ||
498 | + <update id="updateByPrimaryKeySelective" parameterType="com.sy.model.LandRoadVe"> | ||
499 | + update land_road_ve_record | ||
500 | + <set> | ||
501 | + <if test="eportId != null"> | ||
502 | + EPORT_ID = #{eportId,jdbcType=VARCHAR}, | ||
503 | + </if> | ||
504 | + <if test="mainPort != null"> | ||
505 | + MAIN_PORT = #{mainPort,jdbcType=VARCHAR}, | ||
506 | + </if> | ||
507 | + <if test="coCode != null"> | ||
508 | + CO_CODE = #{coCode,jdbcType=VARCHAR}, | ||
509 | + </if> | ||
510 | + <if test="veTargetNo != null"> | ||
511 | + VE_TARGET_NO = #{veTargetNo,jdbcType=VARCHAR}, | ||
512 | + </if> | ||
513 | + <if test="domesticLisenceNo != null"> | ||
514 | + DOMESTIC_LISENCE_NO = #{domesticLisenceNo,jdbcType=VARCHAR}, | ||
515 | + </if> | ||
516 | + <if test="domesticLicenseColor != null"> | ||
517 | + DOMESTIC_LICENSE_COLOR = #{domesticLicenseColor,jdbcType=VARCHAR}, | ||
518 | + </if> | ||
519 | + <if test="foreignLicense != null"> | ||
520 | + FOREIGN_LICENSE = #{foreignLicense,jdbcType=VARCHAR}, | ||
521 | + </if> | ||
522 | + <if test="veRegPlace != null"> | ||
523 | + VE_REG_PLACE = #{veRegPlace,jdbcType=VARCHAR}, | ||
524 | + </if> | ||
525 | + <if test="veProperty != null"> | ||
526 | + VE_PROPERTY = #{veProperty,jdbcType=VARCHAR}, | ||
527 | + </if> | ||
528 | + <if test="veConveyQua != null"> | ||
529 | + VE_CONVEY_QUA = #{veConveyQua,jdbcType=VARCHAR}, | ||
530 | + </if> | ||
531 | + <if test="veCardNo != null"> | ||
532 | + VE_CARD_NO = #{veCardNo,jdbcType=VARCHAR}, | ||
533 | + </if> | ||
534 | + <if test="veOwnerName != null"> | ||
535 | + VE_OWNER_NAME = #{veOwnerName,jdbcType=VARCHAR}, | ||
536 | + </if> | ||
537 | + <if test="veOwnerNo != null"> | ||
538 | + VE_OWNER_NO = #{veOwnerNo,jdbcType=VARCHAR}, | ||
539 | + </if> | ||
540 | + <if test="ownerInsideAddr != null"> | ||
541 | + OWNER_INSIDE_ADDR = #{ownerInsideAddr,jdbcType=VARCHAR}, | ||
542 | + </if> | ||
543 | + <if test="ownerInsideTel != null"> | ||
544 | + OWNER_INSIDE_TEL = #{ownerInsideTel,jdbcType=VARCHAR}, | ||
545 | + </if> | ||
546 | + <if test="veType != null"> | ||
547 | + VE_TYPE = #{veType,jdbcType=VARCHAR}, | ||
548 | + </if> | ||
549 | + <if test="brand != null"> | ||
550 | + BRAND = #{brand,jdbcType=VARCHAR}, | ||
551 | + </if> | ||
552 | + <if test="model != null"> | ||
553 | + MODEL = #{model,jdbcType=VARCHAR}, | ||
554 | + </if> | ||
555 | + <if test="exhaustCapacity != null"> | ||
556 | + EXHAUST_CAPACITY = #{exhaustCapacity,jdbcType=VARCHAR}, | ||
557 | + </if> | ||
558 | + <if test="veFactoryDate != null"> | ||
559 | + VE_FACTORY_DATE = #{veFactoryDate,jdbcType=DATE}, | ||
560 | + </if> | ||
561 | + <if test="veMotorNo != null"> | ||
562 | + VE_MOTOR_NO = #{veMotorNo,jdbcType=VARCHAR}, | ||
563 | + </if> | ||
564 | + <if test="veFrameNo != null"> | ||
565 | + VE_FRAME_NO = #{veFrameNo,jdbcType=VARCHAR}, | ||
566 | + </if> | ||
567 | + <if test="veTon != null"> | ||
568 | + VE_TON = #{veTon,jdbcType=VARCHAR}, | ||
569 | + </if> | ||
570 | + <if test="selfWt != null"> | ||
571 | + SELF_WT = #{selfWt,jdbcType=VARCHAR}, | ||
572 | + </if> | ||
573 | + <if test="allowTowTotalWt != null"> | ||
574 | + ALLOW_TOW_TOTAL_WT = #{allowTowTotalWt,jdbcType=VARCHAR}, | ||
575 | + </if> | ||
576 | + <if test="containerInnerLength != null"> | ||
577 | + CONTAINER_INNER_LENGTH = #{containerInnerLength,jdbcType=VARCHAR}, | ||
578 | + </if> | ||
579 | + <if test="containerInnerWidth != null"> | ||
580 | + CONTAINER_INNER_WIDTH = #{containerInnerWidth,jdbcType=VARCHAR}, | ||
581 | + </if> | ||
582 | + <if test="containerInnerHeight != null"> | ||
583 | + CONTAINER_INNER_HEIGHT = #{containerInnerHeight,jdbcType=VARCHAR}, | ||
584 | + </if> | ||
585 | + <if test="outerLength != null"> | ||
586 | + OUTER_LENGTH = #{outerLength,jdbcType=VARCHAR}, | ||
587 | + </if> | ||
588 | + <if test="outerWidth != null"> | ||
589 | + OUTER_WIDTH = #{outerWidth,jdbcType=VARCHAR}, | ||
590 | + </if> | ||
591 | + <if test="outerHeight != null"> | ||
592 | + OUTER_HEIGHT = #{outerHeight,jdbcType=VARCHAR}, | ||
593 | + </if> | ||
594 | + <if test="veBodyColor != null"> | ||
595 | + VE_BODY_COLOR = #{veBodyColor,jdbcType=VARCHAR}, | ||
596 | + </if> | ||
597 | + <if test="oilBoxCapcity != null"> | ||
598 | + OIL_BOX_CAPCITY = #{oilBoxCapcity,jdbcType=VARCHAR}, | ||
599 | + </if> | ||
600 | + <if test="allowVeIePort != null"> | ||
601 | + ALLOW_VE_IE_PORT = #{allowVeIePort,jdbcType=VARCHAR}, | ||
602 | + </if> | ||
603 | + <if test="apprNo != null"> | ||
604 | + APPR_NO = #{apprNo,jdbcType=VARCHAR}, | ||
605 | + </if> | ||
606 | + <if test="apprPeriod != null"> | ||
607 | + APPR_PERIOD = #{apprPeriod,jdbcType=DATE}, | ||
608 | + </if> | ||
609 | + <if test="currApplyBussiness != null"> | ||
610 | + CURR_APPLY_BUSSINESS = #{currApplyBussiness,jdbcType=VARCHAR}, | ||
611 | + </if> | ||
612 | + <if test="front45cPic != null"> | ||
613 | + FRONT_45C_PIC = #{front45cPic,jdbcType=VARCHAR}, | ||
614 | + </if> | ||
615 | + <if test="back45cPic != null"> | ||
616 | + BACK_45C_PIC = #{back45cPic,jdbcType=VARCHAR}, | ||
617 | + </if> | ||
618 | + <if test="oilBoxPic != null"> | ||
619 | + OIL_BOX_PIC = #{oilBoxPic,jdbcType=VARCHAR}, | ||
620 | + </if> | ||
621 | + <if test="veBottomPic != null"> | ||
622 | + VE_BOTTOM_PIC = #{veBottomPic,jdbcType=VARCHAR}, | ||
623 | + </if> | ||
624 | + <if test="memo != null"> | ||
625 | + MEMO = #{memo,jdbcType=VARCHAR}, | ||
626 | + </if> | ||
627 | + <if test="proposer != null"> | ||
628 | + PROPOSER = #{proposer,jdbcType=VARCHAR}, | ||
629 | + </if> | ||
630 | + <if test="proposeTime != null"> | ||
631 | + PROPOSE_TIME = #{proposeTime,jdbcType=TIMESTAMP}, | ||
632 | + </if> | ||
633 | + <if test="veClassFlag != null"> | ||
634 | + VE_CLASS_FLAG = #{veClassFlag,jdbcType=VARCHAR}, | ||
635 | + </if> | ||
636 | + <if test="operationType != null"> | ||
637 | + OPERATION_TYPE = #{operationType,jdbcType=VARCHAR}, | ||
638 | + </if> | ||
639 | + <if test="trailerLicenseNo != null"> | ||
640 | + TRAILER_LICENSE_NO = #{trailerLicenseNo,jdbcType=VARCHAR}, | ||
641 | + </if> | ||
642 | + <if test="trailerFrameNo != null"> | ||
643 | + TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR}, | ||
644 | + </if> | ||
645 | + <if test="approNoPic != null"> | ||
646 | + APPRO_NO_PIC = #{approNoPic,jdbcType=VARCHAR}, | ||
647 | + </if> | ||
648 | + <if test="veFrameNoPic != null"> | ||
649 | + VE_FRAME_NO_PIC = #{veFrameNoPic,jdbcType=VARCHAR}, | ||
650 | + </if> | ||
651 | + <if test="motorNoPic != null"> | ||
652 | + MOTOR_NO_PIC = #{motorNoPic,jdbcType=VARCHAR}, | ||
653 | + </if> | ||
654 | + <if test="foreignLicensePic != null"> | ||
655 | + FOREIGN_LICENSE_PIC = #{foreignLicensePic,jdbcType=VARCHAR}, | ||
656 | + </if> | ||
657 | + <if test="nationality != null"> | ||
658 | + NATIONALITY = #{nationality,jdbcType=VARCHAR}, | ||
659 | + </if> | ||
660 | + <if test="returnmessage != null"> | ||
661 | + RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR}, | ||
662 | + </if> | ||
663 | + <if test="createBy != null"> | ||
664 | + CREATE_BY = #{createBy,jdbcType=VARCHAR}, | ||
665 | + </if> | ||
666 | + <if test="createDate != null"> | ||
667 | + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}, | ||
668 | + </if> | ||
669 | + <if test="updateBy != null"> | ||
670 | + UPDATE_BY = #{updateBy,jdbcType=VARCHAR}, | ||
671 | + </if> | ||
672 | + <if test="updateDate != null"> | ||
673 | + UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP}, | ||
674 | + </if> | ||
675 | + </set> | ||
676 | + where ID = #{id,jdbcType=VARCHAR} | ||
677 | + </update> | ||
678 | + <update id="updateByPrimaryKey" parameterType="com.sy.model.LandRoadVe"> | ||
679 | + update land_road_ve_record | ||
680 | + set EPORT_ID = #{eportId,jdbcType=VARCHAR}, | ||
681 | + MAIN_PORT = #{mainPort,jdbcType=VARCHAR}, | ||
682 | + CO_CODE = #{coCode,jdbcType=VARCHAR}, | ||
683 | + VE_TARGET_NO = #{veTargetNo,jdbcType=VARCHAR}, | ||
684 | + DOMESTIC_LISENCE_NO = #{domesticLisenceNo,jdbcType=VARCHAR}, | ||
685 | + DOMESTIC_LICENSE_COLOR = #{domesticLicenseColor,jdbcType=VARCHAR}, | ||
686 | + FOREIGN_LICENSE = #{foreignLicense,jdbcType=VARCHAR}, | ||
687 | + VE_REG_PLACE = #{veRegPlace,jdbcType=VARCHAR}, | ||
688 | + VE_PROPERTY = #{veProperty,jdbcType=VARCHAR}, | ||
689 | + VE_CONVEY_QUA = #{veConveyQua,jdbcType=VARCHAR}, | ||
690 | + VE_CARD_NO = #{veCardNo,jdbcType=VARCHAR}, | ||
691 | + VE_OWNER_NAME = #{veOwnerName,jdbcType=VARCHAR}, | ||
692 | + VE_OWNER_NO = #{veOwnerNo,jdbcType=VARCHAR}, | ||
693 | + OWNER_INSIDE_ADDR = #{ownerInsideAddr,jdbcType=VARCHAR}, | ||
694 | + OWNER_INSIDE_TEL = #{ownerInsideTel,jdbcType=VARCHAR}, | ||
695 | + VE_TYPE = #{veType,jdbcType=VARCHAR}, | ||
696 | + BRAND = #{brand,jdbcType=VARCHAR}, | ||
697 | + MODEL = #{model,jdbcType=VARCHAR}, | ||
698 | + EXHAUST_CAPACITY = #{exhaustCapacity,jdbcType=VARCHAR}, | ||
699 | + VE_FACTORY_DATE = #{veFactoryDate,jdbcType=DATE}, | ||
700 | + VE_MOTOR_NO = #{veMotorNo,jdbcType=VARCHAR}, | ||
701 | + VE_FRAME_NO = #{veFrameNo,jdbcType=VARCHAR}, | ||
702 | + VE_TON = #{veTon,jdbcType=VARCHAR}, | ||
703 | + SELF_WT = #{selfWt,jdbcType=VARCHAR}, | ||
704 | + ALLOW_TOW_TOTAL_WT = #{allowTowTotalWt,jdbcType=VARCHAR}, | ||
705 | + CONTAINER_INNER_LENGTH = #{containerInnerLength,jdbcType=VARCHAR}, | ||
706 | + CONTAINER_INNER_WIDTH = #{containerInnerWidth,jdbcType=VARCHAR}, | ||
707 | + CONTAINER_INNER_HEIGHT = #{containerInnerHeight,jdbcType=VARCHAR}, | ||
708 | + OUTER_LENGTH = #{outerLength,jdbcType=VARCHAR}, | ||
709 | + OUTER_WIDTH = #{outerWidth,jdbcType=VARCHAR}, | ||
710 | + OUTER_HEIGHT = #{outerHeight,jdbcType=VARCHAR}, | ||
711 | + VE_BODY_COLOR = #{veBodyColor,jdbcType=VARCHAR}, | ||
712 | + OIL_BOX_CAPCITY = #{oilBoxCapcity,jdbcType=VARCHAR}, | ||
713 | + ALLOW_VE_IE_PORT = #{allowVeIePort,jdbcType=VARCHAR}, | ||
714 | + APPR_NO = #{apprNo,jdbcType=VARCHAR}, | ||
715 | + APPR_PERIOD = #{apprPeriod,jdbcType=DATE}, | ||
716 | + CURR_APPLY_BUSSINESS = #{currApplyBussiness,jdbcType=VARCHAR}, | ||
717 | + FRONT_45C_PIC = #{front45cPic,jdbcType=VARCHAR}, | ||
718 | + BACK_45C_PIC = #{back45cPic,jdbcType=VARCHAR}, | ||
719 | + OIL_BOX_PIC = #{oilBoxPic,jdbcType=VARCHAR}, | ||
720 | + VE_BOTTOM_PIC = #{veBottomPic,jdbcType=VARCHAR}, | ||
721 | + MEMO = #{memo,jdbcType=VARCHAR}, | ||
722 | + PROPOSER = #{proposer,jdbcType=VARCHAR}, | ||
723 | + PROPOSE_TIME = #{proposeTime,jdbcType=TIMESTAMP}, | ||
724 | + VE_CLASS_FLAG = #{veClassFlag,jdbcType=VARCHAR}, | ||
725 | + OPERATION_TYPE = #{operationType,jdbcType=VARCHAR}, | ||
726 | + TRAILER_LICENSE_NO = #{trailerLicenseNo,jdbcType=VARCHAR}, | ||
727 | + TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR}, | ||
728 | + APPRO_NO_PIC = #{approNoPic,jdbcType=VARCHAR}, | ||
729 | + VE_FRAME_NO_PIC = #{veFrameNoPic,jdbcType=VARCHAR}, | ||
730 | + MOTOR_NO_PIC = #{motorNoPic,jdbcType=VARCHAR}, | ||
731 | + FOREIGN_LICENSE_PIC = #{foreignLicensePic,jdbcType=VARCHAR}, | ||
732 | + NATIONALITY = #{nationality,jdbcType=VARCHAR}, | ||
733 | + RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR}, | ||
734 | + CREATE_BY = #{createBy,jdbcType=VARCHAR}, | ||
735 | + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}, | ||
736 | + UPDATE_BY = #{updateBy,jdbcType=VARCHAR}, | ||
737 | + UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP} | ||
738 | + where ID = #{id,jdbcType=VARCHAR} | ||
739 | + </update> | ||
740 | +</mapper> |
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | -<mapper namespace="com.sy.mapper.UserMapper"> | ||
4 | - <resultMap id="BaseResultMap" type="com.sy.model.User"> | ||
5 | - <id column="user_id" jdbcType="INTEGER" property="userId" /> | ||
6 | - <result column="user_name" jdbcType="VARCHAR" property="userName" /> | ||
7 | - <result column="password" jdbcType="VARCHAR" property="password" /> | ||
8 | - <result column="phone" jdbcType="VARCHAR" property="phone" /> | ||
9 | - </resultMap> | ||
10 | - <sql id="Base_Column_List"> | ||
11 | - user_id, user_name, password, phone | ||
12 | - </sql> | ||
13 | - <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | ||
14 | - select | ||
15 | - <include refid="Base_Column_List" /> | ||
16 | - from user | ||
17 | - where user_id = #{userId,jdbcType=INTEGER} | ||
18 | - </select> | ||
19 | - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | ||
20 | - delete from user | ||
21 | - where user_id = #{userId,jdbcType=INTEGER} | ||
22 | - </delete> | ||
23 | - <insert id="insert" parameterType="com.sy.model.User"> | ||
24 | - insert into user (user_id, user_name, password, | ||
25 | - phone) | ||
26 | - values (#{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, | ||
27 | - #{phone,jdbcType=VARCHAR}) | ||
28 | - </insert> | ||
29 | - <insert id="insertSelective" parameterType="com.sy.model.User"> | ||
30 | - insert into user | ||
31 | - <trim prefix="(" suffix=")" suffixOverrides=","> | ||
32 | - <if test="userId != null"> | ||
33 | - user_id, | ||
34 | - </if> | ||
35 | - <if test="userName != null"> | ||
36 | - user_name, | ||
37 | - </if> | ||
38 | - <if test="password != null"> | ||
39 | - password, | ||
40 | - </if> | ||
41 | - <if test="phone != null"> | ||
42 | - phone, | ||
43 | - </if> | ||
44 | - </trim> | ||
45 | - <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
46 | - <if test="userId != null"> | ||
47 | - #{userId,jdbcType=INTEGER}, | ||
48 | - </if> | ||
49 | - <if test="userName != null"> | ||
50 | - #{userName,jdbcType=VARCHAR}, | ||
51 | - </if> | ||
52 | - <if test="password != null"> | ||
53 | - #{password,jdbcType=VARCHAR}, | ||
54 | - </if> | ||
55 | - <if test="phone != null"> | ||
56 | - #{phone,jdbcType=VARCHAR}, | ||
57 | - </if> | ||
58 | - </trim> | ||
59 | - </insert> | ||
60 | - <update id="updateByPrimaryKeySelective" parameterType="com.sy.model.User"> | ||
61 | - update user | ||
62 | - <set> | ||
63 | - <if test="userName != null"> | ||
64 | - user_name = #{userName,jdbcType=VARCHAR}, | ||
65 | - </if> | ||
66 | - <if test="password != null"> | ||
67 | - password = #{password,jdbcType=VARCHAR}, | ||
68 | - </if> | ||
69 | - <if test="phone != null"> | ||
70 | - phone = #{phone,jdbcType=VARCHAR}, | ||
71 | - </if> | ||
72 | - </set> | ||
73 | - where user_id = #{userId,jdbcType=INTEGER} | ||
74 | - </update> | ||
75 | - <update id="updateByPrimaryKey" parameterType="com.sy.model.User"> | ||
76 | - update user | ||
77 | - set user_name = #{userName,jdbcType=VARCHAR}, | ||
78 | - password = #{password,jdbcType=VARCHAR}, | ||
79 | - phone = #{phone,jdbcType=VARCHAR} | ||
80 | - where user_id = #{userId,jdbcType=INTEGER} | ||
81 | - </update> | ||
82 | -</mapper> |
-
请 注册 或 登录 后发表评论