Commit 7ba66b76a969a26bdb2ace0b3545737dd354f69d
1 parent
c6d8c5da83
Exists in
master
and in
6 other branches
个案支持update
Showing 1 changed file with 17 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/CommonRequest.java
View file @
7ba66b7
... | ... | @@ -2,6 +2,8 @@ |
2 | 2 | |
3 | 3 | import java.io.Serializable; |
4 | 4 | |
5 | +import com.lyms.platform.common.utils.StringUtils; | |
6 | + | |
5 | 7 | public class CommonRequest implements Serializable, Cloneable { |
6 | 8 | |
7 | 9 | private static final long serialVersionUID = 2248940647114350872L; |
... | ... | @@ -21,8 +23,21 @@ |
21 | 23 | */ |
22 | 24 | private String womenId; |
23 | 25 | |
24 | - public Object clone() throws CloneNotSupportedException { | |
25 | - return super.clone(); | |
26 | + public CommonRequest clone() throws CloneNotSupportedException { | |
27 | + CommonRequest clone = (CommonRequest) super.clone(); | |
28 | + String cardNo = clone.getCardNo(); | |
29 | + if (StringUtils.isEmpty(cardNo)) { | |
30 | + clone.setCardNo(""); | |
31 | + } | |
32 | + String pid = clone.getPid(); | |
33 | + if (StringUtils.isEmpty(pid)) { | |
34 | + clone.setPid(""); | |
35 | + } | |
36 | + String womenId = clone.getWomenId(); | |
37 | + if (StringUtils.isEmpty(womenId)) { | |
38 | + clone.setWomenId(""); | |
39 | + } | |
40 | + return clone; | |
26 | 41 | } |
27 | 42 | |
28 | 43 | public String getCardNo() { |