作者 zhangFan

add logicOperation

... ... @@ -90,6 +90,13 @@
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.47</version>
</dependency>
<!--IMF need jar-->
<dependency>
<groupId>org.apache.xmlbeans</groupId>
... ...
package com.sy.controller;
package com.sy.bwAnalysis;
import com.sy.bwAnalysis.*;
import com.sy.bwAssist.Message;
import com.sy.model.*;
import com.sy.service.*;
... ... @@ -52,49 +51,7 @@ public class AnalysisRoute {
route.infoService = this.infoService;
route.commandService = this.commandService;
}
/* public static void main(String[] args) {
AnalysisRoute route = new AnalysisRoute();
route.analysis("<MSG><META><SNDR>KAKO</SNDR><RCVR></RCVR><SEQN>20181226160547</SEQN><DDTM>20181226160547</DDTM><TYPE>KAKO</TYPE><STYP>CARM</STYP></META><GATHER_INFO AREA_ID=\"4604000000\" CHNL_NO=\"4604333322\" I_E_TYPE=\"E\" SEQ_NO=\"20181128144318000004\">\n" +
"\t<IC>\n" +
"\t\t<DR_IC_NO/>\n" +
"\t\t<IC_DR_CUSTOMS_NO/>\n" +
"\t\t<IC_CO_CUSTOMS_NO/>\n" +
"\t\t<IC_BILL_NO/>\n" +
"\t\t<IC_FORM_TYPE/>\n" +
"\t\t<IC_GROSS_WT/>\n" +
"\t\t<IC_VE_CUSTOMS_NO/>\n" +
"\t\t<IC_VE_NAME/>\n" +
"\t\t<IC_CONTA_ID/>\n" +
"\t\t<IC_ESEAL_ID/>\n" +
"\t\t<IC_REG_DATETIME/>\n" +
"\t\t<IC_PER_DAY_DUE/>\n" +
"\t</IC>\n" +
"\t<WEIGHT>\n" +
"\t\t<GROSS_WT>9100</GROSS_WT>\n" +
"\t</WEIGHT>\n" +
"\t<CAR>\n" +
"\t\t<VE_NAME>豫AJ1205</VE_NAME>\n" +
"\t\t<CAR_EC_NO>E0040000BFB0C007</CAR_EC_NO>\n" +
"\t\t<CAR_EC_NO2/>\n" +
"\t\t<VE_CUSTOMS_NO/>\n" +
"\t\t<VE_WT/>\n" +
"\t</CAR>\n" +
"\t<CONTA>\n" +
"\t\t<CONTA_NUM/>\n" +
"\t\t<CONTA_RECO>1</CONTA_RECO>\n" +
"\t\t<CONTA_ID_F/>\n" +
"\t\t<CONTA_ID_B/>\n" +
"\t\t<CONTA_MODEL_F/>\n" +
"\t\t<CONTA_MODEL_B/>\n" +
"\t</CONTA>\n" +
"\t<ORDER_NUM/>\n" +
"\t<BAR_CODE/>\n" +
"\t<SEAL>\n" +
"\t\t<ESEAL_ID/>\n" +
"\t\t<SEAL_KEY/>\n" +
"\t</SEAL>\n" +
"</GATHER_INFO></MSG>");
}*/
public void analysis(String string) {
Message message = analysis.readTicketsXml(string);
String stype = message.getMeta().getSmType();
... ...
package com.sy.logic;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import org.springframework.stereotype.Component;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.Map;
@Component
public class GainGrossWt {
/**
* @Param waybill 主单号
* @Param imp 进出港标识
* @Result 获取运单重量
* */
//根据主单号和进出标志获取运单重量
public static double getGrossWt(String waybill, String imp) {
String url = "http://tjfx.15miaoo.com:8003/tj/orig/orig?waybill=" + waybill + "&imp=" + imp;
StringBuilder json = new StringBuilder();
Map map = null;
double bg = 0;
try {
URL oracle = new URL(url);
URLConnection yc = oracle.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));
String inputLine = null;
while ((inputLine = in.readLine()) != null) {
json.append(inputLine);
}
JSONArray array = JSONArray.parseArray(json.toString());
for (int i = 0; i < array.size(); i++) {
map = JSON.parseObject(array.getString(i));
if (map.get("receiptinformation").toString().startsWith("41301")) {
bg = Double.parseDouble((String) map.get("totalweight"));
return bg;
}
}
in.close();
} catch (MalformedURLException e) {
e.getMessage();
} catch (IOException e) {
e.getMessage();
}
return bg;
}
}
... ...
package com.sy.logic;
import com.sy.model.GatherInfo;
import com.sy.model.LandBusinessTypeList;
import com.sy.service.LandBusListService;
import com.sy.socket.CommandClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.math.BigDecimal;
import java.util.List;
@Component
public class LogicOperation {
@Autowired
private LandBusListService listService;
private static LogicOperation logic;
@PostConstruct
public void init(){
logic = this;
logic.listService = this.listService;
}
public boolean operation(GatherInfo info){
boolean sign = false;
BigDecimal grosssWt = info.getGrosswt();
String ietype = info.getIetype();
List<LandBusinessTypeList>lists = null;
if("E".equals(ietype)){
ietype = "出场站";
lists = listService.selectByFrameNoAndType(info.getIcvename(),ietype);
for (LandBusinessTypeList list:lists) {
//查询是否做了出场申请
if(list.getContrastflag()==""|list.getContrastflag()==null){
//判断车重
//判断载货重量是否符合所设定的范围
//发送放行指令
String flag = "";
CommandClient.Client(info,flag);
sign = true;
}
}
}else {
ietype = "进场站";
lists = listService.selectByFrameNoAndType(info.getIcvename(),ietype);
}
return sign;
}
}
... ...
package com.sy.mapper;
import com.sy.model.GatherInfo;
import org.springframework.stereotype.Component;
@Component
public interface GatherInfoMapper {
int deleteByPrimaryKey(String seqno);
... ...
package com.sy.mapper;
import com.sy.model.User;
public interface UserMapper {
int deleteByPrimaryKey(Integer userId);
int insert(User record);
int insertSelective(User record);
User selectByPrimaryKey(Integer userId);
int updateByPrimaryKeySelective(User record);
int updateByPrimaryKey(User record);
}
\ No newline at end of file
package com.sy.mapper;
import com.sy.model.airone_ex_stock;
import org.springframework.stereotype.Component;
@Component
public interface airone_ex_stockMapper {
int deleteByPrimaryKey(String workNo);
... ...
package com.sy.mapper;
import com.sy.model.airone_im_stock;
import org.springframework.stereotype.Component;
@Component
public interface airone_im_stockMapper {
int deleteByPrimaryKey(String workNo);
... ...
package com.sy.mapper;
import com.sy.model.commandInfo;
import org.springframework.stereotype.Component;
@Component
public interface commandInfoMapper {
int deleteByPrimaryKey(String seqNo);
... ...
package com.sy.mapper;
import com.sy.model.messagehead;
import org.springframework.stereotype.Component;
@Component
public interface messageheadMapper {
int deleteByPrimaryKey(String messageid);
... ...
package com.sy.mapper;
import com.sy.model.port_manifest_body;
import org.springframework.stereotype.Component;
@Component
public interface port_manifest_bodyMapper {
int deleteByPrimaryKey(String autoid);
... ...
package com.sy.mapper;
import com.sy.model.port_manifest_head;
import org.springframework.stereotype.Component;
@Component
public interface port_manifest_headMapper {
int deleteByPrimaryKey(String baseid);
... ...
package com.sy.mapper;
import com.sy.model.port_manifest_head_stat;
import org.springframework.stereotype.Component;
@Component
public interface port_manifest_head_statMapper {
int deleteByPrimaryKey(String baseid);
... ...
package com.sy.mapper;
import com.sy.model.v_express_billno;
import org.springframework.stereotype.Component;
@Component
public interface v_express_billnoMapper {
int deleteByPrimaryKey(String hawbGuid);
... ...
package com.sy.service;
import com.sy.model.LandBusinessTypeList;
import java.util.List;
public interface LandBusListService {
List<LandBusinessTypeList> selectByFrameNoAndType(String frameNo, String flag);
int updateById(LandBusinessTypeList list);
}
... ...
package com.sy.service.impl;
import com.sy.mapper.LandBusinessTypeListMapper;
import com.sy.model.LandBusinessTypeList;
import com.sy.service.LandBusListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class LandBusListServiceImpl implements LandBusListService {
@Autowired
private LandBusinessTypeListMapper listMapper;
@Override
public List<LandBusinessTypeList> selectByFrameNoAndType(String frameNo, String flag) {
List<LandBusinessTypeList> lists = listMapper.selectFrameNoAndType(frameNo,flag);
return lists;
}
@Override
public int updateById(LandBusinessTypeList list) {
int result = 0;
try{
result = listMapper.updateByPrimaryKeySelective(list);
}catch (Exception e){
e.printStackTrace();
}
return 0;
}
}
... ...
package com.sy.socket;
import com.sy.model.GatherInfo;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
@Component
public class CommandClient {
private static final Logger logger = Logger.getLogger(CommandClient.class);
/**
* @Param GatherInfo 所传卡口信息
* @Param flag 是否放行标识符
* */
public static void Client(GatherInfo info,String flag) {
String xmlBody = getXmlInfo(info,flag);
Socket socket =null;
OutputStream op = null;
try {
socket = new Socket("192.168.1.107", 9002);
logger.info("socket通讯创建连接成功");
op = socket.getOutputStream();
byte[]xBody =xmlBody.getBytes("GB2312");
byte[] head = new byte[4];
head[0]=(byte)0xE2;
head[1]=(byte)0x5C;
head[2]=(byte)0x4B;
head[3]=(byte)0x89;
byte[]packge = intToByte4((40+xBody.length));
byte[] mType = new byte[1];
mType[0] = (byte)0x22;
byte[]station ="4257010001".getBytes("ASCII");
byte[]aisle ="4257011005".getBytes("ASCII");
byte[]eType ="E".getBytes("ASCII");
byte[] bwFlag = new byte[4];
bwFlag[0]=(byte)0xFF;
bwFlag[1]=(byte)0xFF;
bwFlag[2]=(byte)0xFF;
bwFlag[3]=(byte)0xFF;
byte[]xmlLength = intToByte4(xBody.length);
byte[]end = new byte[2];
end[0]=(byte)0xFF;
end[1]=(byte)0xFF;
byte[]b1 = byteMerger(head,packge);
byte[]b2 = byteMerger(mType,station);
byte[]b3 = byteMerger(aisle,eType);
byte[]b4 = byteMerger(bwFlag, xmlLength);
byte[]b5 = byteMerger(xBody, end);
byte[]b6 = byteMerger(b1,b2);
byte[]b7 = byteMerger(b3,b4);
byte[]b8 = byteMerger(b5,b6);
byte[]b9 = byteMerger(b7,b8);
op.write(b9);
op.close();
logger.info("发送完毕");
socket.close();
} catch (UnknownHostException e) {
e.printStackTrace();
logger.info("创建连接失败"+e.getMessage());
} catch (IOException e) {
e.printStackTrace();
logger.info("文件发送失败"+e.getMessage());
}
}
private static String getXmlInfo(GatherInfo info,String flag) {
StringBuffer buffer = new StringBuffer();
buffer.append("<?xml version='1.0' encoding='GB2312' ?>");
buffer.append("<COMMAND_INFO AREA_ID="+info.getAreaid()+" CHNL_NO="+info.getChnlno()+" I_E_TYPE="+info
.getIetype()+" SEQ_NO="+info.getSeqno()+">");
buffer.append("<CHECK_RESULT>11000000000000000000</CHECK_RESULT><OP_HINT>数据不完整</OP_HINT>");
buffer.append("<SEAL>");
buffer.append("<ESEAL_ID></ESEAL_ID>");
buffer.append("<SEAL_KEY></SEAL_KEY>");
buffer.append("<OPEN_TIMES></OPEN_TIMES>");
buffer.append("<ESEAL_IC_NO></ESEAL_IC_NO>");
buffer.append("</SEAL>");
buffer.append("<SZ_MSG></SZ_MSG>");
buffer.append("</COMMAND_INFO>");
return buffer.toString();
}
//int转byte
public static byte[] intToByte4(int i) {
byte[] targets = new byte[4];
//低位到高位
targets[0] = (byte) (i & 0xFF);
targets[1] = (byte) (i >> 8 & 0xFF);
targets[2] = (byte) (i >> 16 & 0xFF);
targets[3] = (byte) (i >> 24 & 0xFF);
return targets;
}
//合并两个byte数组
public static byte[] byteMerger(byte[] bt1, byte[] bt2) {
byte[] bt3 = new byte[bt1.length + bt2.length];
System.arraycopy(bt1, 0, bt3, 0, bt1.length);
System.arraycopy(bt2, 0, bt3, bt1.length, bt2.length);
return bt3;
}
//byte转int
public static int byteArrayToInt(byte[] bytes) {
int value = 0;
// 由高位到低位
for (int i = 0; i < 4; i++) {
int shift = (4 - 1 - i) * 8;
value += (bytes[i] & 0x000000FF) << shift;// 往高位游
}
return value;
}
}
... ...
<?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.sy.mapper.LandBusinessTypeListMapper">
<resultMap id="BaseResultMap" type="com.sy.model.LandBusinessTypeList">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="MASSAGE_ID" jdbcType="VARCHAR" property="massageId" />
<result column="TRAILER_FRAME_NO" jdbcType="VARCHAR" property="trailerFrameNo" />
<result column="TRAILER_LICENSE_NO" jdbcType="VARCHAR" property="trailerLicenseNo" />
<result column="MASTER_LIST" jdbcType="VARCHAR" property="masterList" />
<result column="PRODECT_TIME" jdbcType="TIMESTAMP" property="prodectTime" />
<result column="RETURNMESSAGE" jdbcType="VARCHAR" property="returnmessage" />
<result column="AGENTNO" jdbcType="VARCHAR" property="agentno" />
<result column="AGENTNAME" jdbcType="VARCHAR" property="agentname" />
<result column="COCODE" jdbcType="VARCHAR" property="cocode" />
<result column="DRIVERNAME" jdbcType="VARCHAR" property="drivername" />
<result column="DRIVERID" jdbcType="VARCHAR" property="driverid" />
<result column="STARTPORT" jdbcType="VARCHAR" property="startport" />
<result column="ENDPORT" jdbcType="VARCHAR" property="endport" />
<result column="STARTSATATION" jdbcType="VARCHAR" property="startsatation" />
<result column="ENDSTATION" jdbcType="VARCHAR" property="endstation" />
<result column="AISLE" jdbcType="VARCHAR" property="aisle" />
<result column="BUSINESSTYPE" jdbcType="VARCHAR" property="businesstype" />
<result column="TURNOVERFLAG" jdbcType="VARCHAR" property="turnoverflag" />
<result column="CONTRASTFLAG" jdbcType="VARCHAR" property="contrastflag" />
<result column="CREATE_BY" jdbcType="VARCHAR" property="createBy" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="UPDATE_BY" jdbcType="VARCHAR" property="updateBy" />
<result column="UPDATE_DATE" jdbcType="TIMESTAMP" property="updateDate" />
</resultMap>
<sql id="Base_Column_List">
id, MASSAGE_ID, TRAILER_FRAME_NO, TRAILER_LICENSE_NO, MASTER_LIST, PRODECT_TIME,
RETURNMESSAGE, AGENTNO, AGENTNAME, COCODE, DRIVERNAME, DRIVERID, STARTPORT, ENDPORT,
STARTSATATION, ENDSTATION, AISLE, BUSINESSTYPE, TURNOVERFLAG, CONTRASTFLAG, CREATE_BY,
CREATE_DATE, UPDATE_BY, UPDATE_DATE
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from land_businesstype_list
where id = #{id,jdbcType=VARCHAR}
</select>
<select id="selectFrameNoAndType" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from land_businesstype_list
where TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR}
and TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from land_businesstype_list
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sy.model.LandBusinessTypeList">
insert into land_businesstype_list (id, MASSAGE_ID, TRAILER_FRAME_NO,
TRAILER_LICENSE_NO, MASTER_LIST, PRODECT_TIME,
RETURNMESSAGE, AGENTNO, AGENTNAME,
COCODE, DRIVERNAME, DRIVERID,
STARTPORT, ENDPORT, STARTSATATION,
ENDSTATION, AISLE, BUSINESSTYPE,
TURNOVERFLAG, CONTRASTFLAG, CREATE_BY,
CREATE_DATE, UPDATE_BY, UPDATE_DATE
)
values (#{id,jdbcType=VARCHAR}, #{massageId,jdbcType=VARCHAR}, #{trailerFrameNo,jdbcType=VARCHAR},
#{trailerLicenseNo,jdbcType=VARCHAR}, #{masterList,jdbcType=VARCHAR}, #{prodectTime,jdbcType=TIMESTAMP},
#{returnmessage,jdbcType=VARCHAR}, #{agentno,jdbcType=VARCHAR}, #{agentname,jdbcType=VARCHAR},
#{cocode,jdbcType=VARCHAR}, #{drivername,jdbcType=VARCHAR}, #{driverid,jdbcType=VARCHAR},
#{startport,jdbcType=VARCHAR}, #{endport,jdbcType=VARCHAR}, #{startsatation,jdbcType=VARCHAR},
#{endstation,jdbcType=VARCHAR}, #{aisle,jdbcType=VARCHAR}, #{businesstype,jdbcType=VARCHAR},
#{turnoverflag,jdbcType=VARCHAR}, #{contrastflag,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{createDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateDate,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.sy.model.LandBusinessTypeList">
insert into land_businesstype_list
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="massageId != null">
MASSAGE_ID,
</if>
<if test="trailerFrameNo != null">
TRAILER_FRAME_NO,
</if>
<if test="trailerLicenseNo != null">
TRAILER_LICENSE_NO,
</if>
<if test="masterList != null">
MASTER_LIST,
</if>
<if test="prodectTime != null">
PRODECT_TIME,
</if>
<if test="returnmessage != null">
RETURNMESSAGE,
</if>
<if test="agentno != null">
AGENTNO,
</if>
<if test="agentname != null">
AGENTNAME,
</if>
<if test="cocode != null">
COCODE,
</if>
<if test="drivername != null">
DRIVERNAME,
</if>
<if test="driverid != null">
DRIVERID,
</if>
<if test="startport != null">
STARTPORT,
</if>
<if test="endport != null">
ENDPORT,
</if>
<if test="startsatation != null">
STARTSATATION,
</if>
<if test="endstation != null">
ENDSTATION,
</if>
<if test="aisle != null">
AISLE,
</if>
<if test="businesstype != null">
BUSINESSTYPE,
</if>
<if test="turnoverflag != null">
TURNOVERFLAG,
</if>
<if test="contrastflag != null">
CONTRASTFLAG,
</if>
<if test="createBy != null">
CREATE_BY,
</if>
<if test="createDate != null">
CREATE_DATE,
</if>
<if test="updateBy != null">
UPDATE_BY,
</if>
<if test="updateDate != null">
UPDATE_DATE,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="massageId != null">
#{massageId,jdbcType=VARCHAR},
</if>
<if test="trailerFrameNo != null">
#{trailerFrameNo,jdbcType=VARCHAR},
</if>
<if test="trailerLicenseNo != null">
#{trailerLicenseNo,jdbcType=VARCHAR},
</if>
<if test="masterList != null">
#{masterList,jdbcType=VARCHAR},
</if>
<if test="prodectTime != null">
#{prodectTime,jdbcType=TIMESTAMP},
</if>
<if test="returnmessage != null">
#{returnmessage,jdbcType=VARCHAR},
</if>
<if test="agentno != null">
#{agentno,jdbcType=VARCHAR},
</if>
<if test="agentname != null">
#{agentname,jdbcType=VARCHAR},
</if>
<if test="cocode != null">
#{cocode,jdbcType=VARCHAR},
</if>
<if test="drivername != null">
#{drivername,jdbcType=VARCHAR},
</if>
<if test="driverid != null">
#{driverid,jdbcType=VARCHAR},
</if>
<if test="startport != null">
#{startport,jdbcType=VARCHAR},
</if>
<if test="endport != null">
#{endport,jdbcType=VARCHAR},
</if>
<if test="startsatation != null">
#{startsatation,jdbcType=VARCHAR},
</if>
<if test="endstation != null">
#{endstation,jdbcType=VARCHAR},
</if>
<if test="aisle != null">
#{aisle,jdbcType=VARCHAR},
</if>
<if test="businesstype != null">
#{businesstype,jdbcType=VARCHAR},
</if>
<if test="turnoverflag != null">
#{turnoverflag,jdbcType=VARCHAR},
</if>
<if test="contrastflag != null">
#{contrastflag,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createDate != null">
#{createDate,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateDate != null">
#{updateDate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sy.model.LandBusinessTypeList">
update land_businesstype_list
<set>
<if test="massageId != null">
MASSAGE_ID = #{massageId,jdbcType=VARCHAR},
</if>
<if test="trailerFrameNo != null">
TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR},
</if>
<if test="trailerLicenseNo != null">
TRAILER_LICENSE_NO = #{trailerLicenseNo,jdbcType=VARCHAR},
</if>
<if test="masterList != null">
MASTER_LIST = #{masterList,jdbcType=VARCHAR},
</if>
<if test="prodectTime != null">
PRODECT_TIME = #{prodectTime,jdbcType=TIMESTAMP},
</if>
<if test="returnmessage != null">
RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR},
</if>
<if test="agentno != null">
AGENTNO = #{agentno,jdbcType=VARCHAR},
</if>
<if test="agentname != null">
AGENTNAME = #{agentname,jdbcType=VARCHAR},
</if>
<if test="cocode != null">
COCODE = #{cocode,jdbcType=VARCHAR},
</if>
<if test="drivername != null">
DRIVERNAME = #{drivername,jdbcType=VARCHAR},
</if>
<if test="driverid != null">
DRIVERID = #{driverid,jdbcType=VARCHAR},
</if>
<if test="startport != null">
STARTPORT = #{startport,jdbcType=VARCHAR},
</if>
<if test="endport != null">
ENDPORT = #{endport,jdbcType=VARCHAR},
</if>
<if test="startsatation != null">
STARTSATATION = #{startsatation,jdbcType=VARCHAR},
</if>
<if test="endstation != null">
ENDSTATION = #{endstation,jdbcType=VARCHAR},
</if>
<if test="aisle != null">
AISLE = #{aisle,jdbcType=VARCHAR},
</if>
<if test="businesstype != null">
BUSINESSTYPE = #{businesstype,jdbcType=VARCHAR},
</if>
<if test="turnoverflag != null">
TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR},
</if>
<if test="contrastflag != null">
CONTRASTFLAG = #{contrastflag,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
CREATE_BY = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createDate != null">
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateDate != null">
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sy.model.LandBusinessTypeList">
update land_businesstype_list
set MASSAGE_ID = #{massageId,jdbcType=VARCHAR},
TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR},
TRAILER_LICENSE_NO = #{trailerLicenseNo,jdbcType=VARCHAR},
MASTER_LIST = #{masterList,jdbcType=VARCHAR},
PRODECT_TIME = #{prodectTime,jdbcType=TIMESTAMP},
RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR},
AGENTNO = #{agentno,jdbcType=VARCHAR},
AGENTNAME = #{agentname,jdbcType=VARCHAR},
COCODE = #{cocode,jdbcType=VARCHAR},
DRIVERNAME = #{drivername,jdbcType=VARCHAR},
DRIVERID = #{driverid,jdbcType=VARCHAR},
STARTPORT = #{startport,jdbcType=VARCHAR},
ENDPORT = #{endport,jdbcType=VARCHAR},
STARTSATATION = #{startsatation,jdbcType=VARCHAR},
ENDSTATION = #{endstation,jdbcType=VARCHAR},
AISLE = #{aisle,jdbcType=VARCHAR},
BUSINESSTYPE = #{businesstype,jdbcType=VARCHAR},
TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR},
CONTRASTFLAG = #{contrastflag,jdbcType=VARCHAR},
CREATE_BY = #{createBy,jdbcType=VARCHAR},
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
... ...