EnterCancelServerImpl.java
1.1 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
package com.sy.service.impl;
import com.sy.mapper.ENTERCANCCELMapper;
import com.sy.model.ENTERCANCCEL;
import com.sy.service.EnterCancelServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author
* @time 2019-05-20 14:41
*/
@Service
public class EnterCancelServerImpl implements EnterCancelServer {
@Autowired
private ENTERCANCCELMapper mapper;
@Override
public int insertEntry(ENTERCANCCEL entercanccel){
int row = 0;
try {
row = mapper.insertSelective(entercanccel);
}catch (NullPointerException e){
e.printStackTrace();
}
return row;
}
@Override
public int updateByPermaryKey(ENTERCANCCEL entercanccel) {
int row = 0;
try {
row = mapper.updateByPrimaryKey(entercanccel);
}catch (NullPointerException e){
e.printStackTrace();
}
return row;
}
@Override
public ENTERCANCCEL selectByManifest(String manifest) {
ENTERCANCCEL entercanccel = mapper.selectByManifest(manifest);
return entercanccel;
}
}