正在显示
13 个修改的文件
包含
741 行增加
和
10 行删除
| 1 | +package com.sy.bwAnalysis; | ||
| 2 | + | ||
| 3 | +import com.sy.bwAssist.CommandInfo; | ||
| 4 | +import com.sy.bwAssist.Message; | ||
| 5 | +import com.sy.bwAssist.Meta; | ||
| 6 | +import com.sy.model.commandInfo; | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +public class CommandInfoAnalysis { | ||
| 10 | + | ||
| 11 | + public commandInfo toJavaBean(Message msg) { | ||
| 12 | + commandInfo bean = new commandInfo(); | ||
| 13 | + CommandInfo info = msg.getComInfo(); | ||
| 14 | + Meta meta = msg.getMeta(); | ||
| 15 | +/* bean.setSender(meta.getSender()); | ||
| 16 | + bean.setReceiver(meta.getReceiver()); | ||
| 17 | + bean.setSeqn(meta.getSeqn()); | ||
| 18 | + bean.setSendtime(meta.getSendTime()); | ||
| 19 | + bean.setType(meta.getType()); | ||
| 20 | + bean.setSmtype(meta.getSmType());*/ | ||
| 21 | + bean.setAreaId(info.getAREA_ID()); | ||
| 22 | + bean.setChnlNo(info.getCHNL_NO()); | ||
| 23 | + bean.setiEType(info.getI_E_TYPE()); | ||
| 24 | + bean.setSeqNo(info.getSEQ_NO()); | ||
| 25 | + bean.setExecuteResult(info.getExecuteResult()); | ||
| 26 | + bean.setEsealIcNo(info.getSeal().getEsealIcNo()); | ||
| 27 | + bean.setEsealId(info.getSeal().getEsealId()); | ||
| 28 | + bean.setEsealStatecode(info.getSeal().getEsealStateCode()); | ||
| 29 | + bean.setEsealStatehint(info.getSeal().getEsealStateHint()); | ||
| 30 | + bean.setAction(info.getMessageInfo().getAction()); | ||
| 31 | + bean.setSource(info.getMessageInfo().getSource()); | ||
| 32 | + bean.setEsealKey(info.getCtrlChanging().getEsealKey()); | ||
| 33 | + bean.setActionModel(info.getCtrlChanging().getActionModel()); | ||
| 34 | + bean.setActionModel(info.getCtrlChanging().getActionModel()); | ||
| 35 | + bean.setOpenTimes(info.getSeal().getOperTimes()); | ||
| 36 | + bean.setOpHint(info.getOpHint()); | ||
| 37 | + bean.setChangeCause(info.getCtrlChanging().getChanceCause()); | ||
| 38 | + bean.setChangeTime(info.getCtrlChanging().getChanceTime()); | ||
| 39 | + bean.setOperName(info.getCtrlChanging().getOperName()); | ||
| 40 | + bean.setOldesealId(info.getCtrlChanging().getOldesealId()); | ||
| 41 | + bean.setNewesealId(info.getCtrlChanging().getNewesealId()); | ||
| 42 | + | ||
| 43 | + return bean; | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | +} |
| 1 | +package com.sy.bwAssist; | ||
| 2 | + | ||
| 3 | +import com.thoughtworks.xstream.annotations.XStreamAlias; | ||
| 4 | +import com.thoughtworks.xstream.annotations.XStreamAsAttribute; | ||
| 5 | +import org.springframework.stereotype.Component; | ||
| 6 | + | ||
| 7 | +@Component | ||
| 8 | +public class CommandInfo { | ||
| 9 | + | ||
| 10 | + @XStreamAsAttribute | ||
| 11 | + private String AREA_ID; | ||
| 12 | + | ||
| 13 | + @XStreamAsAttribute | ||
| 14 | + private String CHNL_NO; | ||
| 15 | + | ||
| 16 | + @XStreamAsAttribute | ||
| 17 | + private String I_E_TYPE; | ||
| 18 | + | ||
| 19 | + @XStreamAsAttribute | ||
| 20 | + private String SEQ_NO; | ||
| 21 | + | ||
| 22 | + @XStreamAlias("EXECUTE_RESULT") | ||
| 23 | + private String executeResult; | ||
| 24 | + | ||
| 25 | + @XStreamAlias("MESSAGE_INFO ") | ||
| 26 | + private MessageInfo messageInfo; | ||
| 27 | + | ||
| 28 | + @XStreamAlias("CTRL_CHANGING") | ||
| 29 | + private CtrlChanging ctrlChanging; | ||
| 30 | + | ||
| 31 | + @XStreamAlias("OP_HINT") | ||
| 32 | + private String opHint; | ||
| 33 | + | ||
| 34 | + @XStreamAlias("SEAL") | ||
| 35 | + private Seal seal; | ||
| 36 | + | ||
| 37 | + | ||
| 38 | + | ||
| 39 | + public String getAREA_ID() { | ||
| 40 | + return AREA_ID; | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + public void setAREA_ID(String aREA_ID) { | ||
| 44 | + AREA_ID = aREA_ID; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + public String getCHNL_NO() { | ||
| 48 | + return CHNL_NO; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + public void setCHNL_NO(String cHNL_NO) { | ||
| 52 | + CHNL_NO = cHNL_NO; | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + public String getI_E_TYPE() { | ||
| 56 | + return I_E_TYPE; | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + public void setI_E_TYPE(String i_E_TYPE) { | ||
| 60 | + I_E_TYPE = i_E_TYPE; | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + public String getSEQ_NO() { | ||
| 64 | + return SEQ_NO; | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + public void setSEQ_NO(String sEQ_NO) { | ||
| 68 | + SEQ_NO = sEQ_NO; | ||
| 69 | + } | ||
| 70 | + public Seal getSeal() { | ||
| 71 | + return seal; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + public void setSeal(Seal seal) { | ||
| 75 | + this.seal = seal; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + public String getExecuteResult() { | ||
| 79 | + return executeResult; | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + public void setExecuteResult(String executeResult) { | ||
| 83 | + this.executeResult = executeResult; | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + public MessageInfo getMessageInfo() { | ||
| 87 | + return messageInfo; | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + public void setMessageInfo(MessageInfo messageInfo) { | ||
| 91 | + this.messageInfo = messageInfo; | ||
| 92 | + } | ||
| 93 | + | ||
| 94 | + public CtrlChanging getCtrlChanging() { | ||
| 95 | + return ctrlChanging; | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + public void setCtrlChanging(CtrlChanging ctrlChanging) { | ||
| 99 | + this.ctrlChanging = ctrlChanging; | ||
| 100 | + } | ||
| 101 | + | ||
| 102 | + public String getOpHint() { | ||
| 103 | + return opHint; | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + public void setOpHint(String opHint) { | ||
| 107 | + this.opHint = opHint; | ||
| 108 | + } | ||
| 109 | +} |
| 1 | +package com.sy.bwAssist; | ||
| 2 | + | ||
| 3 | + | ||
| 4 | +import com.sy.utils.DateTimeConverter; | ||
| 5 | +import com.thoughtworks.xstream.annotations.XStreamAlias; | ||
| 6 | +import com.thoughtworks.xstream.annotations.XStreamConverter; | ||
| 7 | + | ||
| 8 | +import java.util.Date; | ||
| 9 | + | ||
| 10 | +@XStreamAlias("CTRL_CHANGING") | ||
| 11 | +public class CtrlChanging { | ||
| 12 | + | ||
| 13 | + @XStreamAlias("OLDESEAL_ID") | ||
| 14 | + private String oldesealId; | ||
| 15 | + | ||
| 16 | + @XStreamAlias("NEWESEAL_ID") | ||
| 17 | + private String newesealId; | ||
| 18 | + | ||
| 19 | + @XStreamAlias("ESEAL_KEY") | ||
| 20 | + private String esealKey; | ||
| 21 | + | ||
| 22 | + @XStreamAlias("ACTION_MODEL") | ||
| 23 | + private String actionModel; | ||
| 24 | + | ||
| 25 | + @XStreamAlias("CHANGE_CAUSE") | ||
| 26 | + private String chanceCause; | ||
| 27 | + | ||
| 28 | + @XStreamAlias("CHANGE_TIME") | ||
| 29 | + @XStreamConverter(DateTimeConverter.class) | ||
| 30 | + private Date chanceTime; | ||
| 31 | + | ||
| 32 | + @XStreamAlias("OPER_NAME") | ||
| 33 | + private String operName; | ||
| 34 | + | ||
| 35 | + public String getOldesealId() { | ||
| 36 | + return oldesealId; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + public void setOldesealId(String oldesealId) { | ||
| 40 | + this.oldesealId = oldesealId; | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + public String getNewesealId() { | ||
| 44 | + return newesealId; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + public void setNewesealId(String newesealId) { | ||
| 48 | + this.newesealId = newesealId; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + public String getEsealKey() { | ||
| 52 | + return esealKey; | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + public void setEsealKey(String esealKey) { | ||
| 56 | + this.esealKey = esealKey; | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + public String getActionModel() { | ||
| 60 | + return actionModel; | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + public void setActionModel(String actionModel) { | ||
| 64 | + this.actionModel = actionModel; | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + public String getChanceCause() { | ||
| 68 | + return chanceCause; | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + public void setChanceCause(String chanceCause) { | ||
| 72 | + this.chanceCause = chanceCause; | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + public Date getChanceTime() { | ||
| 76 | + return chanceTime; | ||
| 77 | + } | ||
| 78 | + | ||
| 79 | + public void setChanceTime(Date chanceTime) { | ||
| 80 | + this.chanceTime = chanceTime; | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + public String getOperName() { | ||
| 84 | + return operName; | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + public void setOperName(String operName) { | ||
| 88 | + this.operName = operName; | ||
| 89 | + } | ||
| 90 | +} |
| @@ -13,6 +13,9 @@ public class Message { | @@ -13,6 +13,9 @@ public class Message { | ||
| 13 | @XStreamAlias("GATHER_INFO") | 13 | @XStreamAlias("GATHER_INFO") |
| 14 | private GatherInfo info; | 14 | private GatherInfo info; |
| 15 | 15 | ||
| 16 | + @XStreamAlias("COMMAND_INFO") | ||
| 17 | + private CommandInfo ComInfo; | ||
| 18 | + | ||
| 16 | @XStreamAlias("DTC_Message") | 19 | @XStreamAlias("DTC_Message") |
| 17 | private DTC_Message message; | 20 | private DTC_Message message; |
| 18 | 21 | ||
| @@ -40,9 +43,13 @@ public class Message { | @@ -40,9 +43,13 @@ public class Message { | ||
| 40 | this.info = info; | 43 | this.info = info; |
| 41 | } | 44 | } |
| 42 | 45 | ||
| 46 | + public CommandInfo getComInfo() { | ||
| 47 | + return ComInfo; | ||
| 48 | + } | ||
| 43 | 49 | ||
| 44 | - | ||
| 45 | - | 50 | + public void setComInfo(CommandInfo comInfo) { |
| 51 | + ComInfo = comInfo; | ||
| 52 | + } | ||
| 46 | } | 53 | } |
| 47 | 54 | ||
| 48 | 55 |
| 1 | +package com.sy.bwAssist; | ||
| 2 | + | ||
| 3 | + | ||
| 4 | +import com.thoughtworks.xstream.annotations.XStreamAlias; | ||
| 5 | + | ||
| 6 | +@XStreamAlias("MESSAGR_INFO") | ||
| 7 | +public class MessageInfo { | ||
| 8 | + | ||
| 9 | + @XStreamAlias("SOURCE") | ||
| 10 | + private String source; | ||
| 11 | + | ||
| 12 | + @XStreamAlias("ACTION") | ||
| 13 | + private String action; | ||
| 14 | + | ||
| 15 | + public String getSource() { | ||
| 16 | + return source; | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + public void setSource(String source) { | ||
| 20 | + this.source = source; | ||
| 21 | + } | ||
| 22 | + | ||
| 23 | + public String getAction() { | ||
| 24 | + return action; | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + public void setAction(String action) { | ||
| 28 | + this.action = action; | ||
| 29 | + } | ||
| 30 | +} |
| 1 | package com.sy.bwAssist; | 1 | package com.sy.bwAssist; |
| 2 | 2 | ||
| 3 | +import com.sy.utils.NumberConverter; | ||
| 3 | import com.thoughtworks.xstream.annotations.XStreamAlias; | 4 | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| 5 | +import com.thoughtworks.xstream.annotations.XStreamConverter; | ||
| 4 | 6 | ||
| 5 | @XStreamAlias("SEAL") | 7 | @XStreamAlias("SEAL") |
| 6 | public class Seal { | 8 | public class Seal { |
| @@ -11,6 +13,18 @@ public class Seal { | @@ -11,6 +13,18 @@ public class Seal { | ||
| 11 | @XStreamAlias("ESEAL_IC_NO") | 13 | @XStreamAlias("ESEAL_IC_NO") |
| 12 | private String EsealIcNo; | 14 | private String EsealIcNo; |
| 13 | 15 | ||
| 16 | + @XStreamAlias("OPEN_TIMES") | ||
| 17 | + @XStreamConverter(NumberConverter.class) | ||
| 18 | + private Integer operTimes; | ||
| 19 | + | ||
| 20 | + @XStreamAlias("ESEAL_STATEHINT") | ||
| 21 | + private String EsealStateHint; | ||
| 22 | + | ||
| 23 | + @XStreamAlias("ESEAL_STATECODE") | ||
| 24 | + private String EsealStateCode; | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + | ||
| 14 | public String getEsealId() { | 28 | public String getEsealId() { |
| 15 | return EsealId; | 29 | return EsealId; |
| 16 | } | 30 | } |
| @@ -26,7 +40,28 @@ public class Seal { | @@ -26,7 +40,28 @@ public class Seal { | ||
| 26 | public void setEsealIcNo(String esealIcNo) { | 40 | public void setEsealIcNo(String esealIcNo) { |
| 27 | EsealIcNo = esealIcNo; | 41 | EsealIcNo = esealIcNo; |
| 28 | } | 42 | } |
| 29 | - | ||
| 30 | - | ||
| 31 | 43 | ||
| 44 | + public Integer getOperTimes() { | ||
| 45 | + return operTimes; | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + public void setOperTimes(Integer operTimes) { | ||
| 49 | + this.operTimes = operTimes; | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + public String getEsealStateHint() { | ||
| 53 | + return EsealStateHint; | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + public void setEsealStateHint(String esealStateHint) { | ||
| 57 | + EsealStateHint = esealStateHint; | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + public String getEsealStateCode() { | ||
| 61 | + return EsealStateCode; | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + public void setEsealStateCode(String esealStateCode) { | ||
| 65 | + EsealStateCode = esealStateCode; | ||
| 66 | + } | ||
| 32 | } | 67 | } |
| @@ -10,12 +10,7 @@ import org.springframework.stereotype.Component; | @@ -10,12 +10,7 @@ import org.springframework.stereotype.Component; | ||
| 10 | import javax.annotation.PostConstruct; | 10 | import javax.annotation.PostConstruct; |
| 11 | import java.util.List; | 11 | import java.util.List; |
| 12 | 12 | ||
| 13 | -/** | ||
| 14 | - * @author zhangfan | ||
| 15 | - * @web www.sy.com | ||
| 16 | - * @company 郑州商友科技有限公司 | ||
| 17 | - * @time 2018-11-27 16:12 | ||
| 18 | - */ | 13 | + |
| 19 | @Component | 14 | @Component |
| 20 | public class AnalysisRoute { | 15 | public class AnalysisRoute { |
| 21 | 16 |
src/main/java/com/sy/model/commandInfo.java
0 → 100644
| 1 | +package com.sy.model; | ||
| 2 | + | ||
| 3 | +import java.util.Date; | ||
| 4 | + | ||
| 5 | +public class commandInfo { | ||
| 6 | + | ||
| 7 | + private String areaId; | ||
| 8 | + | ||
| 9 | + private String chnlNo; | ||
| 10 | + | ||
| 11 | + private String iEType; | ||
| 12 | + | ||
| 13 | + private String seqNo; | ||
| 14 | + | ||
| 15 | + private String executeResult; | ||
| 16 | + | ||
| 17 | + private String source; | ||
| 18 | + | ||
| 19 | + private String action; | ||
| 20 | + | ||
| 21 | + private Integer openTimes; | ||
| 22 | + | ||
| 23 | + private String esealIcNo; | ||
| 24 | + | ||
| 25 | + private String esealId; | ||
| 26 | + | ||
| 27 | + private String esealStatehint; | ||
| 28 | + | ||
| 29 | + private String esealStatecode; | ||
| 30 | + | ||
| 31 | + private String oldesealId; | ||
| 32 | + | ||
| 33 | + private String newesealId; | ||
| 34 | + | ||
| 35 | + private String esealKey; | ||
| 36 | + | ||
| 37 | + private String actionModel; | ||
| 38 | + | ||
| 39 | + private String changeCause; | ||
| 40 | + | ||
| 41 | + private Date changeTime; | ||
| 42 | + | ||
| 43 | + private String operName; | ||
| 44 | + | ||
| 45 | + private String opHint; | ||
| 46 | + | ||
| 47 | + public String getAreaId() { | ||
| 48 | + return areaId; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + public void setAreaId(String areaId) { | ||
| 52 | + this.areaId = areaId == null ? null : areaId.trim(); | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + public String getChnlNo() { | ||
| 56 | + return chnlNo; | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + public void setChnlNo(String chnlNo) { | ||
| 60 | + this.chnlNo = chnlNo == null ? null : chnlNo.trim(); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + public String getiEType() { | ||
| 64 | + return iEType; | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + public void setiEType(String iEType) { | ||
| 68 | + this.iEType = iEType == null ? null : iEType.trim(); | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + public String getSeqNo() { | ||
| 72 | + return seqNo; | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + public void setSeqNo(String seqNo) { | ||
| 76 | + this.seqNo = seqNo == null ? null : seqNo.trim(); | ||
| 77 | + } | ||
| 78 | + | ||
| 79 | + public String getExecuteResult() { | ||
| 80 | + return executeResult; | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + public void setExecuteResult(String executeResult) { | ||
| 84 | + this.executeResult = executeResult == null ? null : executeResult.trim(); | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + public String getSource() { | ||
| 88 | + return source; | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + public void setSource(String source) { | ||
| 92 | + this.source = source == null ? null : source.trim(); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + public String getAction() { | ||
| 96 | + return action; | ||
| 97 | + } | ||
| 98 | + | ||
| 99 | + public void setAction(String action) { | ||
| 100 | + this.action = action == null ? null : action.trim(); | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + public Integer getOpenTimes() { | ||
| 104 | + return openTimes; | ||
| 105 | + } | ||
| 106 | + | ||
| 107 | + public void setOpenTimes(Integer openTimes) { | ||
| 108 | + this.openTimes = openTimes; | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + public String getEsealIcNo() { | ||
| 112 | + return esealIcNo; | ||
| 113 | + } | ||
| 114 | + | ||
| 115 | + public void setEsealIcNo(String esealIcNo) { | ||
| 116 | + this.esealIcNo = esealIcNo == null ? null : esealIcNo.trim(); | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + public String getEsealId() { | ||
| 120 | + return esealId; | ||
| 121 | + } | ||
| 122 | + | ||
| 123 | + public void setEsealId(String esealId) { | ||
| 124 | + this.esealId = esealId == null ? null : esealId.trim(); | ||
| 125 | + } | ||
| 126 | + | ||
| 127 | + public String getEsealStatehint() { | ||
| 128 | + return esealStatehint; | ||
| 129 | + } | ||
| 130 | + | ||
| 131 | + public void setEsealStatehint(String esealStatehint) { | ||
| 132 | + this.esealStatehint = esealStatehint == null ? null : esealStatehint.trim(); | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + public String getEsealStatecode() { | ||
| 136 | + return esealStatecode; | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + public void setEsealStatecode(String esealStatecode) { | ||
| 140 | + this.esealStatecode = esealStatecode == null ? null : esealStatecode.trim(); | ||
| 141 | + } | ||
| 142 | + | ||
| 143 | + public String getOldesealId() { | ||
| 144 | + return oldesealId; | ||
| 145 | + } | ||
| 146 | + | ||
| 147 | + public void setOldesealId(String oldesealId) { | ||
| 148 | + this.oldesealId = oldesealId == null ? null : oldesealId.trim(); | ||
| 149 | + } | ||
| 150 | + | ||
| 151 | + public String getNewesealI() { | ||
| 152 | + return newesealId; | ||
| 153 | + } | ||
| 154 | + | ||
| 155 | + public void setNewesealId(String ewesealId) { | ||
| 156 | + this.newesealId = ewesealId == null ? null : ewesealId.trim(); | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + public String getEsealKey() { | ||
| 160 | + return esealKey; | ||
| 161 | + } | ||
| 162 | + | ||
| 163 | + public void setEsealKey(String esealKey) { | ||
| 164 | + this.esealKey = esealKey == null ? null : esealKey.trim(); | ||
| 165 | + } | ||
| 166 | + | ||
| 167 | + public String getActionModel() { | ||
| 168 | + return actionModel; | ||
| 169 | + } | ||
| 170 | + | ||
| 171 | + public void setActionModel(String actionModel) { | ||
| 172 | + this.actionModel = actionModel == null ? null : actionModel.trim(); | ||
| 173 | + } | ||
| 174 | + | ||
| 175 | + public String getChangeCause() { | ||
| 176 | + return changeCause; | ||
| 177 | + } | ||
| 178 | + | ||
| 179 | + public void setChangeCause(String changeCause) { | ||
| 180 | + this.changeCause = changeCause == null ? null : changeCause.trim(); | ||
| 181 | + } | ||
| 182 | + | ||
| 183 | + public Date getChangeTime() { | ||
| 184 | + return changeTime; | ||
| 185 | + } | ||
| 186 | + | ||
| 187 | + public void setChangeTime(Date changeTime) { | ||
| 188 | + this.changeTime = changeTime; | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + public String getOperName() { | ||
| 192 | + return operName; | ||
| 193 | + } | ||
| 194 | + | ||
| 195 | + public void setOperName(String operName) { | ||
| 196 | + this.operName = operName == null ? null : operName.trim(); | ||
| 197 | + } | ||
| 198 | + | ||
| 199 | + public String getOpHint() { | ||
| 200 | + return opHint; | ||
| 201 | + } | ||
| 202 | + | ||
| 203 | + public void setOpHint(String opHint) { | ||
| 204 | + this.opHint = opHint == null ? null : opHint.trim(); | ||
| 205 | + } | ||
| 206 | +} |
| 1 | +package com.sy.service.impl; | ||
| 2 | + | ||
| 3 | + | ||
| 4 | +import com.sy.mapper.commandInfoMapper; | ||
| 5 | +import com.sy.model.commandInfo; | ||
| 6 | +import com.sy.service.CommandInfoService; | ||
| 7 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 8 | + | ||
| 9 | +public class CommandInfoImpl implements CommandInfoService { | ||
| 10 | + | ||
| 11 | + @Autowired | ||
| 12 | + private commandInfoMapper infoMapper; | ||
| 13 | + | ||
| 14 | + @Override | ||
| 15 | + public int save(commandInfo info) { | ||
| 16 | + int row = 0; | ||
| 17 | + try { | ||
| 18 | + row =infoMapper.insert(info); | ||
| 19 | + }catch (Exception e){ | ||
| 20 | + e.printStackTrace(); | ||
| 21 | + } | ||
| 22 | + return row; | ||
| 23 | + } | ||
| 24 | +} |
| @@ -62,5 +62,7 @@ | @@ -62,5 +62,7 @@ | ||
| 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="commandInfo" domainObjectName="commandInfo" enableCountByExample="false" enableUpdateByExample="false" | ||
| 66 | + enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | ||
| 65 | </context> | 67 | </context> |
| 66 | </generatorConfiguration> | 68 | </generatorConfiguration> |
| 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.commandInfoMapper"> | ||
| 4 | + <resultMap id="BaseResultMap" type="com.sy.model.commandInfo"> | ||
| 5 | + <result column="AREA_ID" jdbcType="VARCHAR" property="areaId" /> | ||
| 6 | + <result column="CHNL_NO" jdbcType="VARCHAR" property="chnlNo" /> | ||
| 7 | + <result column="I_E_TYPE" jdbcType="VARCHAR" property="iEType" /> | ||
| 8 | + <result column="SEQ_NO" jdbcType="VARCHAR" property="seqNo" /> | ||
| 9 | + <result column="EXECUTE_RESULT" jdbcType="VARCHAR" property="executeResult" /> | ||
| 10 | + <result column="SOURCE" jdbcType="VARCHAR" property="source" /> | ||
| 11 | + <result column="ACTION" jdbcType="VARCHAR" property="action" /> | ||
| 12 | + <result column="OPEN_TIMES" jdbcType="DECIMAL" property="openTimes" /> | ||
| 13 | + <result column="ESEAL_IC_NO" jdbcType="VARCHAR" property="esealIcNo" /> | ||
| 14 | + <result column="ESEAL_ID" jdbcType="VARCHAR" property="esealId" /> | ||
| 15 | + <result column="ESEAL_STATEHINT" jdbcType="VARCHAR" property="esealStatehint" /> | ||
| 16 | + <result column="ESEAL_STATECODE" jdbcType="VARCHAR" property="esealStatecode" /> | ||
| 17 | + <result column="OLDESEAL_ID" jdbcType="VARCHAR" property="oldesealId" /> | ||
| 18 | + <result column="NEWESEAL_ID" jdbcType="VARCHAR" property="newesealId" /> | ||
| 19 | + <result column="ESEAL_KEY" jdbcType="VARCHAR" property="esealKey" /> | ||
| 20 | + <result column="ACTION_MODEL" jdbcType="VARCHAR" property="actionModel" /> | ||
| 21 | + <result column="CHANGE_CAUSE" jdbcType="VARCHAR" property="changeCause" /> | ||
| 22 | + <result column="CHANGE_TIME" jdbcType="TIMESTAMP" property="changeTime" /> | ||
| 23 | + <result column="OPER_NAME" jdbcType="VARCHAR" property="operName" /> | ||
| 24 | + <result column="OP_HINT" jdbcType="VARCHAR" property="opHint" /> | ||
| 25 | + </resultMap> | ||
| 26 | + <insert id="insert" parameterType="com.sy.model.commandInfo"> | ||
| 27 | + insert into commandinfo (AREA_ID, CHNL_NO, I_E_TYPE, | ||
| 28 | + SEQ_NO, EXECUTE_RESULT, SOURCE, | ||
| 29 | + ACTION, OPEN_TIMES, ESEAL_IC_NO, | ||
| 30 | + ESEAL_ID, ESEAL_STATEHINT, ESEAL_STATECODE, | ||
| 31 | + OLDESEAL_ID, NEWESEAL_ID, ESEAL_KEY, | ||
| 32 | + ACTION_MODEL, CHANGE_CAUSE, CHANGE_TIME, | ||
| 33 | + OPER_NAME, OP_HINT) | ||
| 34 | + values (#{areaId,jdbcType=VARCHAR}, #{chnlNo,jdbcType=VARCHAR}, #{iEType,jdbcType=VARCHAR}, | ||
| 35 | + #{seqNo,jdbcType=VARCHAR}, #{executeResult,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, | ||
| 36 | + #{action,jdbcType=VARCHAR}, #{openTimes,jdbcType=DECIMAL}, #{esealIcNo,jdbcType=VARCHAR}, | ||
| 37 | + #{esealId,jdbcType=VARCHAR}, #{esealStatehint,jdbcType=VARCHAR}, #{esealStatecode,jdbcType=VARCHAR}, | ||
| 38 | + #{oldesealId,jdbcType=VARCHAR}, #{newesealId,jdbcType=VARCHAR}, #{esealKey,jdbcType=VARCHAR}, | ||
| 39 | + #{actionModel,jdbcType=VARCHAR}, #{changeCause,jdbcType=VARCHAR}, #{changeTime,jdbcType=TIMESTAMP}, | ||
| 40 | + #{operName,jdbcType=VARCHAR}, #{opHint,jdbcType=VARCHAR}) | ||
| 41 | + </insert> | ||
| 42 | + <insert id="insertSelective" parameterType="com.sy.model.commandInfo"> | ||
| 43 | + insert into commandinfo | ||
| 44 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
| 45 | + <if test="areaId != null"> | ||
| 46 | + AREA_ID, | ||
| 47 | + </if> | ||
| 48 | + <if test="chnlNo != null"> | ||
| 49 | + CHNL_NO, | ||
| 50 | + </if> | ||
| 51 | + <if test="iEType != null"> | ||
| 52 | + I_E_TYPE, | ||
| 53 | + </if> | ||
| 54 | + <if test="seqNo != null"> | ||
| 55 | + SEQ_NO, | ||
| 56 | + </if> | ||
| 57 | + <if test="executeResult != null"> | ||
| 58 | + EXECUTE_RESULT, | ||
| 59 | + </if> | ||
| 60 | + <if test="source != null"> | ||
| 61 | + SOURCE, | ||
| 62 | + </if> | ||
| 63 | + <if test="action != null"> | ||
| 64 | + ACTION, | ||
| 65 | + </if> | ||
| 66 | + <if test="openTimes != null"> | ||
| 67 | + OPEN_TIMES, | ||
| 68 | + </if> | ||
| 69 | + <if test="esealIcNo != null"> | ||
| 70 | + ESEAL_IC_NO, | ||
| 71 | + </if> | ||
| 72 | + <if test="esealId != null"> | ||
| 73 | + ESEAL_ID, | ||
| 74 | + </if> | ||
| 75 | + <if test="esealStatehint != null"> | ||
| 76 | + ESEAL_STATEHINT, | ||
| 77 | + </if> | ||
| 78 | + <if test="esealStatecode != null"> | ||
| 79 | + ESEAL_STATECODE, | ||
| 80 | + </if> | ||
| 81 | + <if test="oldesealId != null"> | ||
| 82 | + OLDESEAL_ID, | ||
| 83 | + </if> | ||
| 84 | + <if test="newesealId != null"> | ||
| 85 | + NEWESEAL_ID, | ||
| 86 | + </if> | ||
| 87 | + <if test="esealKey != null"> | ||
| 88 | + ESEAL_KEY, | ||
| 89 | + </if> | ||
| 90 | + <if test="actionModel != null"> | ||
| 91 | + ACTION_MODEL, | ||
| 92 | + </if> | ||
| 93 | + <if test="changeCause != null"> | ||
| 94 | + CHANGE_CAUSE, | ||
| 95 | + </if> | ||
| 96 | + <if test="changeTime != null"> | ||
| 97 | + CHANGE_TIME, | ||
| 98 | + </if> | ||
| 99 | + <if test="operName != null"> | ||
| 100 | + OPER_NAME, | ||
| 101 | + </if> | ||
| 102 | + <if test="opHint != null"> | ||
| 103 | + OP_HINT, | ||
| 104 | + </if> | ||
| 105 | + </trim> | ||
| 106 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
| 107 | + <if test="areaId != null"> | ||
| 108 | + #{areaId,jdbcType=VARCHAR}, | ||
| 109 | + </if> | ||
| 110 | + <if test="chnlNo != null"> | ||
| 111 | + #{chnlNo,jdbcType=VARCHAR}, | ||
| 112 | + </if> | ||
| 113 | + <if test="iEType != null"> | ||
| 114 | + #{iEType,jdbcType=VARCHAR}, | ||
| 115 | + </if> | ||
| 116 | + <if test="seqNo != null"> | ||
| 117 | + #{seqNo,jdbcType=VARCHAR}, | ||
| 118 | + </if> | ||
| 119 | + <if test="executeResult != null"> | ||
| 120 | + #{executeResult,jdbcType=VARCHAR}, | ||
| 121 | + </if> | ||
| 122 | + <if test="source != null"> | ||
| 123 | + #{source,jdbcType=VARCHAR}, | ||
| 124 | + </if> | ||
| 125 | + <if test="action != null"> | ||
| 126 | + #{action,jdbcType=VARCHAR}, | ||
| 127 | + </if> | ||
| 128 | + <if test="openTimes != null"> | ||
| 129 | + #{openTimes,jdbcType=DECIMAL}, | ||
| 130 | + </if> | ||
| 131 | + <if test="esealIcNo != null"> | ||
| 132 | + #{esealIcNo,jdbcType=VARCHAR}, | ||
| 133 | + </if> | ||
| 134 | + <if test="esealId != null"> | ||
| 135 | + #{esealId,jdbcType=VARCHAR}, | ||
| 136 | + </if> | ||
| 137 | + <if test="esealStatehint != null"> | ||
| 138 | + #{esealStatehint,jdbcType=VARCHAR}, | ||
| 139 | + </if> | ||
| 140 | + <if test="esealStatecode != null"> | ||
| 141 | + #{esealStatecode,jdbcType=VARCHAR}, | ||
| 142 | + </if> | ||
| 143 | + <if test="oldesealId != null"> | ||
| 144 | + #{oldesealId,jdbcType=VARCHAR}, | ||
| 145 | + </if> | ||
| 146 | + <if test="newesealId != null"> | ||
| 147 | + #{newesealId,jdbcType=VARCHAR}, | ||
| 148 | + </if> | ||
| 149 | + <if test="esealKey != null"> | ||
| 150 | + #{esealKey,jdbcType=VARCHAR}, | ||
| 151 | + </if> | ||
| 152 | + <if test="actionModel != null"> | ||
| 153 | + #{actionModel,jdbcType=VARCHAR}, | ||
| 154 | + </if> | ||
| 155 | + <if test="changeCause != null"> | ||
| 156 | + #{changeCause,jdbcType=VARCHAR}, | ||
| 157 | + </if> | ||
| 158 | + <if test="changeTime != null"> | ||
| 159 | + #{changeTime,jdbcType=TIMESTAMP}, | ||
| 160 | + </if> | ||
| 161 | + <if test="operName != null"> | ||
| 162 | + #{operName,jdbcType=VARCHAR}, | ||
| 163 | + </if> | ||
| 164 | + <if test="opHint != null"> | ||
| 165 | + #{opHint,jdbcType=VARCHAR}, | ||
| 166 | + </if> | ||
| 167 | + </trim> | ||
| 168 | + </insert> | ||
| 169 | +</mapper> |
-
请 注册 或 登录 后发表评论