Merge remote-tracking branch 'origin/forWechatService' into forWechatService
正在显示
12 个修改的文件
包含
711 行增加
和
1 行删除
@@ -150,6 +150,12 @@ | @@ -150,6 +150,12 @@ | ||
150 | <artifactId>ojdbc6</artifactId> | 150 | <artifactId>ojdbc6</artifactId> |
151 | <version>11.2.0.4.0-atlassian-hosted</version> | 151 | <version>11.2.0.4.0-atlassian-hosted</version> |
152 | </dependency> | 152 | </dependency> |
153 | + <dependency> | ||
154 | + <groupId>commons-codec</groupId> | ||
155 | + <artifactId>commons-codec</artifactId> | ||
156 | + <scope>compile</scope> | ||
157 | + <version>1.13</version> | ||
158 | + </dependency> | ||
153 | <!--util依赖--> | 159 | <!--util依赖--> |
154 | <dependency> | 160 | <dependency> |
155 | <groupId>com.tianbo</groupId> | 161 | <groupId>com.tianbo</groupId> |
1 | +package com.tianbo.analysis.controller; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.analysis.model.FFMInfo; | ||
5 | +import com.tianbo.analysis.model.ResultJson; | ||
6 | +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT; | ||
7 | +import com.tianbo.analysis.service.FFMResolve; | ||
8 | +import com.tianbo.util.Date.DateUtil; | ||
9 | +import io.swagger.annotations.Api; | ||
10 | +import io.swagger.annotations.ApiOperation; | ||
11 | +import org.apache.commons.lang.StringUtils; | ||
12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
13 | +import org.springframework.web.bind.annotation.*; | ||
14 | + | ||
15 | +import java.util.Date; | ||
16 | +import java.util.List; | ||
17 | + | ||
18 | +@Api(description = "舱单解析表接口") | ||
19 | +@RestController | ||
20 | +@RequestMapping("/ffminfo/") | ||
21 | +public class FFMInfoController { | ||
22 | + @Autowired | ||
23 | + FFMResolve ffmResolve; | ||
24 | + @ApiOperation(value = "查询未解析的入业务表的航班列表") | ||
25 | + @RequestMapping("/selectFlightnoList") | ||
26 | + public ResultJson<List<FFMInfo>> unresolvedFlightnoList(){ | ||
27 | + List<FFMInfo> list=ffmResolve.unresolvedFlightnoList(); | ||
28 | + return new ResultJson("200","success",list); | ||
29 | + } | ||
30 | + @ApiOperation(value = "查询未解析入业务表的舱单列表(参数:航班号,航班日期)") | ||
31 | + @GetMapping("/selectFFMList") | ||
32 | + public ResultJson<List<FFMInfo>> selectFFMList(@RequestParam(value = "flightno", required = false) String flightno, | ||
33 | + @RequestParam(value = "flightdate", required = false) String flightdate){ | ||
34 | + FFMInfo ffmInfo=new FFMInfo(); | ||
35 | + ffmInfo.setFlightno(flightno); | ||
36 | + if(StringUtils.isNotEmpty(flightdate)){ | ||
37 | + Date flight_Date = DateUtil.parseDate(flightdate,"yyyy-MM-dd"); | ||
38 | + ffmInfo.setFlightdate(flight_Date); | ||
39 | + } | ||
40 | + List<FFMInfo> list=ffmResolve.unresolvedFFMList(ffmInfo); | ||
41 | + return new ResultJson("200","success",list); | ||
42 | + } | ||
43 | + @ApiOperation(value = "删除航班舱单临时表接口 (接口参数:航班号,航班日期,autoid,都为条件项)") | ||
44 | + @GetMapping("/delFlightno") | ||
45 | + public ResultJson delFlightno(@RequestParam(value = "flightno", required = false) String flightno, | ||
46 | + @RequestParam(value = "flightdate", required = false) String flightdate, | ||
47 | + @RequestParam(value = "autoid", required = false) String autiod){ | ||
48 | + FFMInfo ffmInfo=new FFMInfo(); | ||
49 | + ffmInfo.setFlightno(flightno); | ||
50 | + if(StringUtils.isNotEmpty(flightdate)){ | ||
51 | + Date flight_Date = DateUtil.parseDate(flightdate,"yyyy-MM-dd"); | ||
52 | + ffmInfo.setFlightdate(flight_Date); | ||
53 | + } | ||
54 | + ffmInfo.setAutoid(autiod); | ||
55 | + int result=ffmResolve.delFlightno(ffmInfo); | ||
56 | + return result>0?new ResultJson("200","删除成功!"):new ResultJson("201","删除失败"); | ||
57 | + } | ||
58 | + @ApiOperation(value = "批量删除舱单临时表接口(接口参数:list[autoid])") | ||
59 | + @PostMapping("/batchSend") | ||
60 | + public ResultJson batchSend(@RequestBody List<String> autoIDlist){ | ||
61 | + int result=ffmResolve.delByAutoidList(autoIDlist); | ||
62 | + return result>0?new ResultJson("200","删除成功!"):new ResultJson("201","删除失败"); | ||
63 | + } | ||
64 | + | ||
65 | +} |
1 | +package com.tianbo.analysis.controller; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.analysis.model.ResultJson; | ||
5 | +import com.tianbo.analysis.model.TB_ANTIVIRUS_LOG; | ||
6 | +import com.tianbo.analysis.service.TB_ANTIVIRUS_LOGService; | ||
7 | +import org.springframework.beans.factory.annotation.Autowired; | ||
8 | +import org.springframework.web.bind.annotation.*; | ||
9 | + | ||
10 | +/** | ||
11 | + * @author shenhl | ||
12 | + * <p> | ||
13 | + * 2022/1/18/11:24 | ||
14 | + */ | ||
15 | +@RestController | ||
16 | +@RequestMapping(value = "/antivirus_log") | ||
17 | +public class TB_ANTIVIRUS_LOGCongtoller { | ||
18 | + | ||
19 | + @Autowired | ||
20 | + TB_ANTIVIRUS_LOGService tbAntivirusLogService; | ||
21 | + | ||
22 | + /** | ||
23 | + * 消毒记录查询 | ||
24 | + * @return | ||
25 | + */ | ||
26 | + @GetMapping(value = "/antivirus_log_list") | ||
27 | + @ResponseBody | ||
28 | + public ResultJson antivirus_log_list(@RequestParam(value = "pageSize", required = false, defaultValue = "1") int pageSize, | ||
29 | + @RequestParam(value = "limitSize", required = false, defaultValue = "10") int limitSize, | ||
30 | + @RequestParam(value = "antivirusName", required = false) String antivirusName){ | ||
31 | + TB_ANTIVIRUS_LOG tbAntivirusLog = new TB_ANTIVIRUS_LOG(); | ||
32 | + tbAntivirusLog.setAntivirusName(antivirusName); | ||
33 | + | ||
34 | + PageInfo<TB_ANTIVIRUS_LOG> list = tbAntivirusLogService.list(tbAntivirusLog, pageSize, limitSize); | ||
35 | + | ||
36 | + return new ResultJson("200","success",list); | ||
37 | + } | ||
38 | + | ||
39 | + /** | ||
40 | + * 消毒记录新增 | ||
41 | + * @return | ||
42 | + */ | ||
43 | + @GetMapping(value = "/antivirus_log_add") | ||
44 | + @ResponseBody | ||
45 | + public ResultJson antivirus_log_add(TB_ANTIVIRUS_LOG tbAntivirusLog){ | ||
46 | + | ||
47 | + return tbAntivirusLogService.updateByPrimaryKeySelective(tbAntivirusLog) > 0 ? new ResultJson("200", "新增成功") | ||
48 | + : new ResultJson("201", "新增失败"); | ||
49 | + } | ||
50 | + | ||
51 | + /** | ||
52 | + * 消毒记录修改 | ||
53 | + * @return | ||
54 | + */ | ||
55 | + @GetMapping(value = "/antivirus_log_edit") | ||
56 | + @ResponseBody | ||
57 | + public ResultJson antivirus_log_edit(TB_ANTIVIRUS_LOG tbAntivirusLog){ | ||
58 | + | ||
59 | + return tbAntivirusLogService.updateByPrimaryKeySelective(tbAntivirusLog) > 0 ? new ResultJson("200", "修改成功") | ||
60 | + : new ResultJson("201", "修改失败"); | ||
61 | + } | ||
62 | + | ||
63 | + /** | ||
64 | + * 消毒记录删除 | ||
65 | + * @return | ||
66 | + */ | ||
67 | + @GetMapping(value = "/antivirus_log_remove") | ||
68 | + @ResponseBody | ||
69 | + public ResultJson antivirus_log_remove(@RequestParam(value = "autoid") String autoid){ | ||
70 | + | ||
71 | + return tbAntivirusLogService.deleteByPrimaryKey(autoid) > 0 ? new ResultJson("200", "删除成功") | ||
72 | + : new ResultJson("201", "删除失败"); | ||
73 | + } | ||
74 | +} |
@@ -2,6 +2,8 @@ package com.tianbo.analysis.dao; | @@ -2,6 +2,8 @@ package com.tianbo.analysis.dao; | ||
2 | 2 | ||
3 | import com.tianbo.analysis.model.FFMInfo; | 3 | import com.tianbo.analysis.model.FFMInfo; |
4 | 4 | ||
5 | +import java.util.List; | ||
6 | + | ||
5 | public interface FFMInfoDao { | 7 | public interface FFMInfoDao { |
6 | int deleteByPrimaryKey(String autoid); | 8 | int deleteByPrimaryKey(String autoid); |
7 | 9 | ||
@@ -14,4 +16,12 @@ public interface FFMInfoDao { | @@ -14,4 +16,12 @@ public interface FFMInfoDao { | ||
14 | int updateByPrimaryKeySelective(FFMInfo record); | 16 | int updateByPrimaryKeySelective(FFMInfo record); |
15 | 17 | ||
16 | int updateByPrimaryKey(FFMInfo record); | 18 | int updateByPrimaryKey(FFMInfo record); |
17 | -} | ||
19 | + | ||
20 | + List<FFMInfo> unresolvedFlightnoList(); | ||
21 | + | ||
22 | + List<FFMInfo> unresolvedFFMList(FFMInfo record); | ||
23 | + | ||
24 | + int delFlightno(FFMInfo record); | ||
25 | + | ||
26 | + int delByAutoidList(List<String> idList); | ||
27 | +} |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.TB_ANTIVIRUS_LOG; | ||
4 | +import org.springframework.web.bind.annotation.RequestParam; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface TB_ANTIVIRUS_LOGMapper { | ||
9 | + | ||
10 | + List<TB_ANTIVIRUS_LOG> selectAll(@RequestParam(value = "tbAntivirusLog") TB_ANTIVIRUS_LOG tbAntivirusLog); | ||
11 | + | ||
12 | + int deleteByPrimaryKey(String autoid); | ||
13 | + | ||
14 | + int insert(TB_ANTIVIRUS_LOG record); | ||
15 | + | ||
16 | + int insertSelective(TB_ANTIVIRUS_LOG record); | ||
17 | + | ||
18 | + TB_ANTIVIRUS_LOG selectByPrimaryKey(String autoid); | ||
19 | + | ||
20 | + int updateByPrimaryKeySelective(TB_ANTIVIRUS_LOG record); | ||
21 | + | ||
22 | + int updateByPrimaryKey(TB_ANTIVIRUS_LOG record); | ||
23 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.math.BigDecimal; | ||
4 | +import java.util.Date; | ||
5 | + | ||
6 | +public class TB_ANTIVIRUS_LOG { | ||
7 | + private String autoid; | ||
8 | + | ||
9 | + private String flightno; | ||
10 | + | ||
11 | + private Date flightDate; | ||
12 | + | ||
13 | + private String waybillnomaster; | ||
14 | + | ||
15 | + private String waybillnosecondary; | ||
16 | + | ||
17 | + private BigDecimal antivirusPc; | ||
18 | + | ||
19 | + private BigDecimal antivirusWt; | ||
20 | + | ||
21 | + private Date antivirusTime; | ||
22 | + | ||
23 | + private String antivirusName; | ||
24 | + | ||
25 | + private Date updateTime; | ||
26 | + | ||
27 | + private BigDecimal antivirusStatus; | ||
28 | + | ||
29 | + private String antivirusDes; | ||
30 | + | ||
31 | + private String trayNum; | ||
32 | + | ||
33 | + private BigDecimal isDelete; | ||
34 | + | ||
35 | + private String bindingAutoid; | ||
36 | + | ||
37 | + public String getAutoid() { | ||
38 | + return autoid; | ||
39 | + } | ||
40 | + | ||
41 | + public void setAutoid(String autoid) { | ||
42 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
43 | + } | ||
44 | + | ||
45 | + public String getFlightno() { | ||
46 | + return flightno; | ||
47 | + } | ||
48 | + | ||
49 | + public void setFlightno(String flightno) { | ||
50 | + this.flightno = flightno == null ? null : flightno.trim(); | ||
51 | + } | ||
52 | + | ||
53 | + public Date getFlightDate() { | ||
54 | + return flightDate; | ||
55 | + } | ||
56 | + | ||
57 | + public void setFlightDate(Date flightDate) { | ||
58 | + this.flightDate = flightDate; | ||
59 | + } | ||
60 | + | ||
61 | + public String getWaybillnomaster() { | ||
62 | + return waybillnomaster; | ||
63 | + } | ||
64 | + | ||
65 | + public void setWaybillnomaster(String waybillnomaster) { | ||
66 | + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
67 | + } | ||
68 | + | ||
69 | + public String getWaybillnosecondary() { | ||
70 | + return waybillnosecondary; | ||
71 | + } | ||
72 | + | ||
73 | + public void setWaybillnosecondary(String waybillnosecondary) { | ||
74 | + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim(); | ||
75 | + } | ||
76 | + | ||
77 | + public BigDecimal getAntivirusPc() { | ||
78 | + return antivirusPc; | ||
79 | + } | ||
80 | + | ||
81 | + public void setAntivirusPc(BigDecimal antivirusPc) { | ||
82 | + this.antivirusPc = antivirusPc; | ||
83 | + } | ||
84 | + | ||
85 | + public BigDecimal getAntivirusWt() { | ||
86 | + return antivirusWt; | ||
87 | + } | ||
88 | + | ||
89 | + public void setAntivirusWt(BigDecimal antivirusWt) { | ||
90 | + this.antivirusWt = antivirusWt; | ||
91 | + } | ||
92 | + | ||
93 | + public Date getAntivirusTime() { | ||
94 | + return antivirusTime; | ||
95 | + } | ||
96 | + | ||
97 | + public void setAntivirusTime(Date antivirusTime) { | ||
98 | + this.antivirusTime = antivirusTime; | ||
99 | + } | ||
100 | + | ||
101 | + public String getAntivirusName() { | ||
102 | + return antivirusName; | ||
103 | + } | ||
104 | + | ||
105 | + public void setAntivirusName(String antivirusName) { | ||
106 | + this.antivirusName = antivirusName == null ? null : antivirusName.trim(); | ||
107 | + } | ||
108 | + | ||
109 | + public Date getUpdateTime() { | ||
110 | + return updateTime; | ||
111 | + } | ||
112 | + | ||
113 | + public void setUpdateTime(Date updateTime) { | ||
114 | + this.updateTime = updateTime; | ||
115 | + } | ||
116 | + | ||
117 | + public BigDecimal getAntivirusStatus() { | ||
118 | + return antivirusStatus; | ||
119 | + } | ||
120 | + | ||
121 | + public void setAntivirusStatus(BigDecimal antivirusStatus) { | ||
122 | + this.antivirusStatus = antivirusStatus; | ||
123 | + } | ||
124 | + | ||
125 | + public String getAntivirusDes() { | ||
126 | + return antivirusDes; | ||
127 | + } | ||
128 | + | ||
129 | + public void setAntivirusDes(String antivirusDes) { | ||
130 | + this.antivirusDes = antivirusDes == null ? null : antivirusDes.trim(); | ||
131 | + } | ||
132 | + | ||
133 | + public String getTrayNum() { | ||
134 | + return trayNum; | ||
135 | + } | ||
136 | + | ||
137 | + public void setTrayNum(String trayNum) { | ||
138 | + this.trayNum = trayNum == null ? null : trayNum.trim(); | ||
139 | + } | ||
140 | + | ||
141 | + public BigDecimal getIsDelete() { | ||
142 | + return isDelete; | ||
143 | + } | ||
144 | + | ||
145 | + public void setIsDelete(BigDecimal isDelete) { | ||
146 | + this.isDelete = isDelete; | ||
147 | + } | ||
148 | + | ||
149 | + public String getBindingAutoid() { | ||
150 | + return bindingAutoid; | ||
151 | + } | ||
152 | + | ||
153 | + public void setBindingAutoid(String bindingAutoid) { | ||
154 | + this.bindingAutoid = bindingAutoid == null ? null : bindingAutoid.trim(); | ||
155 | + } | ||
156 | +} |
@@ -2,6 +2,15 @@ package com.tianbo.analysis.service; | @@ -2,6 +2,15 @@ package com.tianbo.analysis.service; | ||
2 | 2 | ||
3 | import com.tianbo.analysis.model.FFMInfo; | 3 | import com.tianbo.analysis.model.FFMInfo; |
4 | 4 | ||
5 | +import java.util.List; | ||
6 | + | ||
5 | public interface FFMResolve { | 7 | public interface FFMResolve { |
6 | boolean resolve(FFMInfo ffmInfo); | 8 | boolean resolve(FFMInfo ffmInfo); |
9 | + List<FFMInfo> unresolvedFlightnoList(); | ||
10 | + | ||
11 | + List<FFMInfo> unresolvedFFMList(FFMInfo record); | ||
12 | + | ||
13 | + int delFlightno(FFMInfo record); | ||
14 | + | ||
15 | + int delByAutoidList(List<String> idList); | ||
7 | } | 16 | } |
1 | +package com.tianbo.analysis.service; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.analysis.model.TB_ANTIVIRUS_LOG; | ||
5 | + | ||
6 | +/** | ||
7 | + * @author shenhl | ||
8 | + * <p> | ||
9 | + * 2022/1/18/16:15 | ||
10 | + */ | ||
11 | +public interface TB_ANTIVIRUS_LOGService { | ||
12 | + | ||
13 | + PageInfo<TB_ANTIVIRUS_LOG> list(TB_ANTIVIRUS_LOG tbAntivirusLog, int pageSize, int limitSize); | ||
14 | + | ||
15 | + int deleteByPrimaryKey(String autoid); | ||
16 | + | ||
17 | + int insert(TB_ANTIVIRUS_LOG record); | ||
18 | + | ||
19 | + int insertSelective(TB_ANTIVIRUS_LOG record); | ||
20 | + | ||
21 | + TB_ANTIVIRUS_LOG selectByPrimaryKey(String autoid); | ||
22 | + | ||
23 | + int updateByPrimaryKeySelective(TB_ANTIVIRUS_LOG record); | ||
24 | + | ||
25 | + int updateByPrimaryKey(TB_ANTIVIRUS_LOG record); | ||
26 | +} |
@@ -65,4 +65,24 @@ public class FFMResolveImpl implements FFMResolve { | @@ -65,4 +65,24 @@ public class FFMResolveImpl implements FFMResolve { | ||
65 | 65 | ||
66 | return false; | 66 | return false; |
67 | } | 67 | } |
68 | + | ||
69 | + @Override | ||
70 | + public List<FFMInfo> unresolvedFlightnoList() { | ||
71 | + return ffmInfoDao.unresolvedFlightnoList(); | ||
72 | + } | ||
73 | + | ||
74 | + @Override | ||
75 | + public List<FFMInfo> unresolvedFFMList(FFMInfo record) { | ||
76 | + return ffmInfoDao.unresolvedFFMList(record); | ||
77 | + } | ||
78 | + | ||
79 | + @Override | ||
80 | + public int delFlightno(FFMInfo record) { | ||
81 | + return ffmInfoDao.delFlightno(record); | ||
82 | + } | ||
83 | + | ||
84 | + @Override | ||
85 | + public int delByAutoidList(List<String> idList) { | ||
86 | + return ffmInfoDao.delByAutoidList(idList); | ||
87 | + } | ||
68 | } | 88 | } |
1 | +package com.tianbo.analysis.service.imp; | ||
2 | + | ||
3 | +import com.github.pagehelper.Page; | ||
4 | +import com.github.pagehelper.PageHelper; | ||
5 | +import com.github.pagehelper.PageInfo; | ||
6 | +import com.tianbo.analysis.dao.TB_ANTIVIRUS_LOGMapper; | ||
7 | +import com.tianbo.analysis.model.TB_ANTIVIRUS_LOG; | ||
8 | +import com.tianbo.analysis.service.TB_ANTIVIRUS_LOGService; | ||
9 | +import org.apache.commons.lang.StringUtils; | ||
10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
11 | +import org.springframework.stereotype.Service; | ||
12 | + | ||
13 | +import java.util.ArrayList; | ||
14 | +import java.util.List; | ||
15 | + | ||
16 | +/** | ||
17 | + * @author shenhl | ||
18 | + * <p> | ||
19 | + * 2022/1/18/16:16 | ||
20 | + */ | ||
21 | +@Service | ||
22 | +public class TB_ANTIVIRUS_LOGServiceImpI implements TB_ANTIVIRUS_LOGService { | ||
23 | + | ||
24 | + @Autowired | ||
25 | + TB_ANTIVIRUS_LOGMapper tbAntivirusLogMapper; | ||
26 | + | ||
27 | + @Override | ||
28 | + public PageInfo<TB_ANTIVIRUS_LOG> list(TB_ANTIVIRUS_LOG tbAntivirusLog, int pageSize, int limitSize) { | ||
29 | + | ||
30 | + Page<TB_ANTIVIRUS_LOG> page = PageHelper.startPage(pageSize, limitSize); | ||
31 | + | ||
32 | + List<TB_ANTIVIRUS_LOG> tbAntivirusLogs = tbAntivirusLogMapper.selectAll(tbAntivirusLog); | ||
33 | + | ||
34 | + PageInfo<TB_ANTIVIRUS_LOG> result = new PageInfo<>(tbAntivirusLogs); | ||
35 | + | ||
36 | + return result; | ||
37 | + } | ||
38 | + | ||
39 | + @Override | ||
40 | + public int deleteByPrimaryKey(String autoid) { | ||
41 | + return tbAntivirusLogMapper.deleteByPrimaryKey(autoid); | ||
42 | + } | ||
43 | + | ||
44 | + @Override | ||
45 | + public int insert(TB_ANTIVIRUS_LOG record) { | ||
46 | + return tbAntivirusLogMapper.insert(record); | ||
47 | + } | ||
48 | + | ||
49 | + @Override | ||
50 | + public int insertSelective(TB_ANTIVIRUS_LOG record) { | ||
51 | + return tbAntivirusLogMapper.insertSelective(record); | ||
52 | + } | ||
53 | + | ||
54 | + @Override | ||
55 | + public TB_ANTIVIRUS_LOG selectByPrimaryKey(String autoid) { | ||
56 | + return tbAntivirusLogMapper.selectByPrimaryKey(autoid); | ||
57 | + } | ||
58 | + | ||
59 | + @Override | ||
60 | + public int updateByPrimaryKeySelective(TB_ANTIVIRUS_LOG record) { | ||
61 | + return tbAntivirusLogMapper.updateByPrimaryKeySelective(record); | ||
62 | + } | ||
63 | + | ||
64 | + @Override | ||
65 | + public int updateByPrimaryKey(TB_ANTIVIRUS_LOG record) { | ||
66 | + return tbAntivirusLogMapper.updateByPrimaryKey(record); | ||
67 | + } | ||
68 | +} |
@@ -36,6 +36,34 @@ | @@ -36,6 +36,34 @@ | ||
36 | from FFM_INFO | 36 | from FFM_INFO |
37 | where AUTOID = #{autoid,jdbcType=VARCHAR} | 37 | where AUTOID = #{autoid,jdbcType=VARCHAR} |
38 | </select> | 38 | </select> |
39 | + <select id="unresolvedFlightnoList" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
40 | + select distinct flightno,flightdate from FFM_INFO where dealstatus = '0' | ||
41 | + </select> | ||
42 | + <select id="unresolvedFFMList" parameterType="com.tianbo.analysis.model.FFMInfo" resultMap="BaseResultMap"> | ||
43 | + SELECT | ||
44 | + <include refid="Base_Column_List" /> | ||
45 | + FROM FFM_INFO WHERE | ||
46 | + FLIGHTNO = #{flightno,jdbcType=VARCHAR} AND FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP} | ||
47 | + AND dealstatus = '0' order by REPORTORDER asc | ||
48 | + </select> | ||
49 | + <select id="delFlightno" parameterType="com.tianbo.analysis.model.FFMInfo"> | ||
50 | + DELETE FROM FFM_INFO where dealstatus = '0' | ||
51 | + <if test="autoid != null"> | ||
52 | + and AUTOID = #{autoid,jdbcType=VARCHAR} | ||
53 | + </if> | ||
54 | + <if test="flightno != null"> | ||
55 | + and FLIGHTNO = #{flightno,jdbcType=VARCHAR} | ||
56 | + </if> | ||
57 | + <if test="flightdate != null"> | ||
58 | + and FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP} | ||
59 | + </if> | ||
60 | + </select> | ||
61 | + <select id="delByAutoidList" parameterType="java.util.List"> | ||
62 | + DELETE FROM FFM_INFO where AUTOID in | ||
63 | + <foreach collection="list" index="index" item="item" open="(" separator="," close=")"> | ||
64 | + #{item} | ||
65 | + </foreach> | ||
66 | + </select> | ||
39 | <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> | 67 | <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
40 | delete from FFM_INFO | 68 | delete from FFM_INFO |
41 | where AUTOID = #{autoid,jdbcType=VARCHAR} | 69 | where AUTOID = #{autoid,jdbcType=VARCHAR} |
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.tianbo.analysis.dao.TB_ANTIVIRUS_LOGMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" > | ||
5 | + <id column="AUTOID" property="autoid" jdbcType="VARCHAR" /> | ||
6 | + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" /> | ||
7 | + <result column="FLIGHT_DATE" property="flightDate" jdbcType="TIMESTAMP" /> | ||
8 | + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" /> | ||
9 | + <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" /> | ||
10 | + <result column="ANTIVIRUS_PC" property="antivirusPc" jdbcType="DECIMAL" /> | ||
11 | + <result column="ANTIVIRUS_WT" property="antivirusWt" jdbcType="DECIMAL" /> | ||
12 | + <result column="ANTIVIRUS_TIME" property="antivirusTime" jdbcType="TIMESTAMP" /> | ||
13 | + <result column="ANTIVIRUS_NAME" property="antivirusName" jdbcType="VARCHAR" /> | ||
14 | + <result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" /> | ||
15 | + <result column="ANTIVIRUS_STATUS" property="antivirusStatus" jdbcType="DECIMAL" /> | ||
16 | + <result column="ANTIVIRUS_DES" property="antivirusDes" jdbcType="VARCHAR" /> | ||
17 | + <result column="TRAY_NUM" property="trayNum" jdbcType="VARCHAR" /> | ||
18 | + <result column="IS_DELETE" property="isDelete" jdbcType="DECIMAL" /> | ||
19 | + <result column="BINDING_AUTOID" property="bindingAutoid" jdbcType="VARCHAR" /> | ||
20 | + </resultMap> | ||
21 | + <sql id="Base_Column_List" > | ||
22 | + AUTOID, FLIGHTNO, FLIGHT_DATE, WAYBILLNOMASTER, WAYBILLNOSECONDARY, ANTIVIRUS_PC, | ||
23 | + ANTIVIRUS_WT, ANTIVIRUS_TIME, ANTIVIRUS_NAME, UPDATE_TIME, ANTIVIRUS_STATUS, ANTIVIRUS_DES, | ||
24 | + TRAY_NUM, IS_DELETE, BINDING_AUTOID | ||
25 | + </sql> | ||
26 | + <select id="selectAll" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" > | ||
27 | + select | ||
28 | + <include refid="Base_Column_List" /> | ||
29 | + from CGONMS.TB_ANTIVIRUS_LOG | ||
30 | + where | ||
31 | + 1=1 | ||
32 | + <if test="tbAntivirusLog.antivirusName != null and tbAntivirusLog.antivirusName != ''" > | ||
33 | + and antivirusName = #{tbAntivirusLog.antivirusName,jdbcType=VARCHAR} | ||
34 | + </if> | ||
35 | + order by antivirusTime desc | ||
36 | + </select> | ||
37 | + | ||
38 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
39 | + select | ||
40 | + <include refid="Base_Column_List" /> | ||
41 | + from CGONMS.TB_ANTIVIRUS_LOG | ||
42 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
43 | + </select> | ||
44 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
45 | + delete from CGONMS.TB_ANTIVIRUS_LOG | ||
46 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
47 | + </delete> | ||
48 | + <insert id="insert" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" > | ||
49 | + insert into CGONMS.TB_ANTIVIRUS_LOG (AUTOID, FLIGHTNO, FLIGHT_DATE, | ||
50 | + WAYBILLNOMASTER, WAYBILLNOSECONDARY, ANTIVIRUS_PC, | ||
51 | + ANTIVIRUS_WT, ANTIVIRUS_TIME, ANTIVIRUS_NAME, | ||
52 | + UPDATE_TIME, ANTIVIRUS_STATUS, ANTIVIRUS_DES, | ||
53 | + TRAY_NUM, IS_DELETE, BINDING_AUTOID | ||
54 | + ) | ||
55 | + values (#{autoid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightDate,jdbcType=TIMESTAMP}, | ||
56 | + #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{antivirusPc,jdbcType=DECIMAL}, | ||
57 | + #{antivirusWt,jdbcType=DECIMAL}, #{antivirusTime,jdbcType=TIMESTAMP}, #{antivirusName,jdbcType=VARCHAR}, | ||
58 | + #{updateTime,jdbcType=TIMESTAMP}, #{antivirusStatus,jdbcType=DECIMAL}, #{antivirusDes,jdbcType=VARCHAR}, | ||
59 | + #{trayNum,jdbcType=VARCHAR}, #{isDelete,jdbcType=DECIMAL}, #{bindingAutoid,jdbcType=VARCHAR} | ||
60 | + ) | ||
61 | + </insert> | ||
62 | + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" > | ||
63 | + insert into CGONMS.TB_ANTIVIRUS_LOG | ||
64 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
65 | + <if test="autoid != null" > | ||
66 | + AUTOID, | ||
67 | + </if> | ||
68 | + <if test="flightno != null" > | ||
69 | + FLIGHTNO, | ||
70 | + </if> | ||
71 | + <if test="flightDate != null" > | ||
72 | + FLIGHT_DATE, | ||
73 | + </if> | ||
74 | + <if test="waybillnomaster != null" > | ||
75 | + WAYBILLNOMASTER, | ||
76 | + </if> | ||
77 | + <if test="waybillnosecondary != null" > | ||
78 | + WAYBILLNOSECONDARY, | ||
79 | + </if> | ||
80 | + <if test="antivirusPc != null" > | ||
81 | + ANTIVIRUS_PC, | ||
82 | + </if> | ||
83 | + <if test="antivirusWt != null" > | ||
84 | + ANTIVIRUS_WT, | ||
85 | + </if> | ||
86 | + <if test="antivirusTime != null" > | ||
87 | + ANTIVIRUS_TIME, | ||
88 | + </if> | ||
89 | + <if test="antivirusName != null" > | ||
90 | + ANTIVIRUS_NAME, | ||
91 | + </if> | ||
92 | + <if test="updateTime != null" > | ||
93 | + UPDATE_TIME, | ||
94 | + </if> | ||
95 | + <if test="antivirusStatus != null" > | ||
96 | + ANTIVIRUS_STATUS, | ||
97 | + </if> | ||
98 | + <if test="antivirusDes != null" > | ||
99 | + ANTIVIRUS_DES, | ||
100 | + </if> | ||
101 | + <if test="trayNum != null" > | ||
102 | + TRAY_NUM, | ||
103 | + </if> | ||
104 | + <if test="isDelete != null" > | ||
105 | + IS_DELETE, | ||
106 | + </if> | ||
107 | + <if test="bindingAutoid != null" > | ||
108 | + BINDING_AUTOID, | ||
109 | + </if> | ||
110 | + </trim> | ||
111 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
112 | + <if test="autoid != null" > | ||
113 | + #{autoid,jdbcType=VARCHAR}, | ||
114 | + </if> | ||
115 | + <if test="flightno != null" > | ||
116 | + #{flightno,jdbcType=VARCHAR}, | ||
117 | + </if> | ||
118 | + <if test="flightDate != null" > | ||
119 | + #{flightDate,jdbcType=TIMESTAMP}, | ||
120 | + </if> | ||
121 | + <if test="waybillnomaster != null" > | ||
122 | + #{waybillnomaster,jdbcType=VARCHAR}, | ||
123 | + </if> | ||
124 | + <if test="waybillnosecondary != null" > | ||
125 | + #{waybillnosecondary,jdbcType=VARCHAR}, | ||
126 | + </if> | ||
127 | + <if test="antivirusPc != null" > | ||
128 | + #{antivirusPc,jdbcType=DECIMAL}, | ||
129 | + </if> | ||
130 | + <if test="antivirusWt != null" > | ||
131 | + #{antivirusWt,jdbcType=DECIMAL}, | ||
132 | + </if> | ||
133 | + <if test="antivirusTime != null" > | ||
134 | + #{antivirusTime,jdbcType=TIMESTAMP}, | ||
135 | + </if> | ||
136 | + <if test="antivirusName != null" > | ||
137 | + #{antivirusName,jdbcType=VARCHAR}, | ||
138 | + </if> | ||
139 | + <if test="updateTime != null" > | ||
140 | + #{updateTime,jdbcType=TIMESTAMP}, | ||
141 | + </if> | ||
142 | + <if test="antivirusStatus != null" > | ||
143 | + #{antivirusStatus,jdbcType=DECIMAL}, | ||
144 | + </if> | ||
145 | + <if test="antivirusDes != null" > | ||
146 | + #{antivirusDes,jdbcType=VARCHAR}, | ||
147 | + </if> | ||
148 | + <if test="trayNum != null" > | ||
149 | + #{trayNum,jdbcType=VARCHAR}, | ||
150 | + </if> | ||
151 | + <if test="isDelete != null" > | ||
152 | + #{isDelete,jdbcType=DECIMAL}, | ||
153 | + </if> | ||
154 | + <if test="bindingAutoid != null" > | ||
155 | + #{bindingAutoid,jdbcType=VARCHAR}, | ||
156 | + </if> | ||
157 | + </trim> | ||
158 | + </insert> | ||
159 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" > | ||
160 | + update CGONMS.TB_ANTIVIRUS_LOG | ||
161 | + <set > | ||
162 | + <if test="flightno != null" > | ||
163 | + FLIGHTNO = #{flightno,jdbcType=VARCHAR}, | ||
164 | + </if> | ||
165 | + <if test="flightDate != null" > | ||
166 | + FLIGHT_DATE = #{flightDate,jdbcType=TIMESTAMP}, | ||
167 | + </if> | ||
168 | + <if test="waybillnomaster != null" > | ||
169 | + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}, | ||
170 | + </if> | ||
171 | + <if test="waybillnosecondary != null" > | ||
172 | + WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}, | ||
173 | + </if> | ||
174 | + <if test="antivirusPc != null" > | ||
175 | + ANTIVIRUS_PC = #{antivirusPc,jdbcType=DECIMAL}, | ||
176 | + </if> | ||
177 | + <if test="antivirusWt != null" > | ||
178 | + ANTIVIRUS_WT = #{antivirusWt,jdbcType=DECIMAL}, | ||
179 | + </if> | ||
180 | + <if test="antivirusTime != null" > | ||
181 | + ANTIVIRUS_TIME = #{antivirusTime,jdbcType=TIMESTAMP}, | ||
182 | + </if> | ||
183 | + <if test="antivirusName != null" > | ||
184 | + ANTIVIRUS_NAME = #{antivirusName,jdbcType=VARCHAR}, | ||
185 | + </if> | ||
186 | + <if test="updateTime != null" > | ||
187 | + UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, | ||
188 | + </if> | ||
189 | + <if test="antivirusStatus != null" > | ||
190 | + ANTIVIRUS_STATUS = #{antivirusStatus,jdbcType=DECIMAL}, | ||
191 | + </if> | ||
192 | + <if test="antivirusDes != null" > | ||
193 | + ANTIVIRUS_DES = #{antivirusDes,jdbcType=VARCHAR}, | ||
194 | + </if> | ||
195 | + <if test="trayNum != null" > | ||
196 | + TRAY_NUM = #{trayNum,jdbcType=VARCHAR}, | ||
197 | + </if> | ||
198 | + <if test="isDelete != null" > | ||
199 | + IS_DELETE = #{isDelete,jdbcType=DECIMAL}, | ||
200 | + </if> | ||
201 | + <if test="bindingAutoid != null" > | ||
202 | + BINDING_AUTOID = #{bindingAutoid,jdbcType=VARCHAR}, | ||
203 | + </if> | ||
204 | + </set> | ||
205 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
206 | + </update> | ||
207 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" > | ||
208 | + update CGONMS.TB_ANTIVIRUS_LOG | ||
209 | + set FLIGHTNO = #{flightno,jdbcType=VARCHAR}, | ||
210 | + FLIGHT_DATE = #{flightDate,jdbcType=TIMESTAMP}, | ||
211 | + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}, | ||
212 | + WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}, | ||
213 | + ANTIVIRUS_PC = #{antivirusPc,jdbcType=DECIMAL}, | ||
214 | + ANTIVIRUS_WT = #{antivirusWt,jdbcType=DECIMAL}, | ||
215 | + ANTIVIRUS_TIME = #{antivirusTime,jdbcType=TIMESTAMP}, | ||
216 | + ANTIVIRUS_NAME = #{antivirusName,jdbcType=VARCHAR}, | ||
217 | + UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, | ||
218 | + ANTIVIRUS_STATUS = #{antivirusStatus,jdbcType=DECIMAL}, | ||
219 | + ANTIVIRUS_DES = #{antivirusDes,jdbcType=VARCHAR}, | ||
220 | + TRAY_NUM = #{trayNum,jdbcType=VARCHAR}, | ||
221 | + IS_DELETE = #{isDelete,jdbcType=DECIMAL}, | ||
222 | + BINDING_AUTOID = #{bindingAutoid,jdbcType=VARCHAR} | ||
223 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
224 | + </update> | ||
225 | +</mapper> |
-
请 注册 或 登录 后发表评论