|
|
|
|
@ -50,20 +50,22 @@ public class KsecDataInfo {
|
|
|
|
|
private Map<String,String> wmsExtendInfo =new HashMap<>();
|
|
|
|
|
|
|
|
|
|
public void setWmsExtendInfoIsEmpty(){
|
|
|
|
|
if (wmsExtendInfo.isEmpty()){
|
|
|
|
|
if (this.itemCode!=null){
|
|
|
|
|
if (isEmpty(wmsExtendInfo.get("itemCode")) && this.itemCode!=null){
|
|
|
|
|
wmsExtendInfo.put("itemCode",this.itemCode);
|
|
|
|
|
}
|
|
|
|
|
if (this.shelfCode!=null) {
|
|
|
|
|
if (isEmpty(wmsExtendInfo.get("shelfCode")) && this.shelfCode!=null) {
|
|
|
|
|
wmsExtendInfo.put("shelfCode",this.shelfCode);
|
|
|
|
|
}
|
|
|
|
|
if (this.pltCode!=null) {
|
|
|
|
|
if (isEmpty(wmsExtendInfo.get("pltCode")) && this.pltCode!=null) {
|
|
|
|
|
wmsExtendInfo.put("pltCode",this.pltCode);
|
|
|
|
|
}
|
|
|
|
|
if (this.countNumber!=null) {
|
|
|
|
|
if (isEmpty(wmsExtendInfo.get("countNumber")) && this.countNumber!=null) {
|
|
|
|
|
wmsExtendInfo.put("countNumber", new java.math.BigDecimal(this.countNumber.trim()).stripTrailingZeros().toPlainString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private boolean isEmpty(String str) {
|
|
|
|
|
return str == null || str.trim().isEmpty();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|