GATServiceImpl.java
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.sy.service.impl;
import com.sy.mapper.port_manifest_bodyMapper;
import com.sy.mapper.port_manifest_headMapper;
import com.sy.mapper.port_manifest_head_statMapper;
import com.sy.model.port_manifest_body;
import com.sy.model.port_manifest_head;
import com.sy.model.port_manifest_head_stat;
import com.sy.service.GATService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class GATServiceImpl implements GATService {
@Autowired
private port_manifest_headMapper headMapper;
@Autowired
private port_manifest_bodyMapper bodyMapper;
@Autowired
private port_manifest_head_statMapper statMapper;
@Override
public int savePortHead(port_manifest_head head) {
int row = 0;
try {
row = headMapper.insert(head);
}catch (Exception e){
e.printStackTrace();
}
return row;
}
@Override
public int savePortBody(port_manifest_body body) {
int row = 0;
try {
row = bodyMapper.insert(body);
}catch (Exception e){
e.printStackTrace();
}
return row;
}
@Override
public int savePortStat(port_manifest_head_stat stat) {
int row = 0;
try {
row = statMapper.insert(stat);
}catch (Exception e){
e.printStackTrace();
}
return row;
}
}