aironeExStockServiceImpl.java
1.2 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
package com.sy.service.impl;
import com.sy.mapper.airone_ex_stockMapper;
import com.sy.model.airone_ex_stock;
import com.sy.service.aironeExStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class aironeExStockServiceImpl implements aironeExStockService {
@Autowired
private airone_ex_stockMapper exStockMapper;
@Override
public int save(airone_ex_stock ex) {
int row = 0;
try{
row = exStockMapper.insert(ex);
}catch (Exception e){
e.printStackTrace();
}
return row;
}
@Override
public airone_ex_stock selectByMawbNo(String mawbNo) {
airone_ex_stock stock = null;
try{
stock = exStockMapper.selectByMawbNo(mawbNo);
}catch (Exception e){
e.printStackTrace();
}
return stock;
}
@Override
public int delectByWorkNo(String workNo) {
int result = 0;
try{
result = exStockMapper.deleteByPrimaryKey(workNo);
}catch (Exception e){
e.printStackTrace();
}
return result;
}
}