| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.LocOwnerService; |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "客户信息ID") |
| | | private Long owner; |
| | | |
| | | |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getOwner$(){ |
| | | LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); |
| | | LocOwner locOwner = service.selectById(this.owner); |
| | | if (!Cools.isEmpty(locOwner)){ |
| | | return String.valueOf(locOwner.getOwner()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | |
| | | return locMast.getLocType2$(); |
| | | } |
| | | |
| | | public Integer getMatType() { |
| | | if (Cools.isEmpty(this.matnr)) { |
| | | return null; |
| | | } |
| | | MatService matService = SpringUtils.getBean(MatService.class); |
| | | Mat mat = matService.selectByMatnr(this.matnr); |
| | | if (mat == null) { |
| | | return null; |
| | | } |
| | | return mat.getMatType(); |
| | | } |
| | | |
| | | public String getMatType$() { |
| | | if (Cools.isEmpty(this.matnr)) { |
| | | return ""; |
| | | } |
| | | MatService matService = SpringUtils.getBean(MatService.class); |
| | | Mat mat = matService.selectByMatnr(this.matnr); |
| | | if (mat == null) { |
| | | return ""; |
| | | } |
| | | return mat.getMatType$(); |
| | | } |
| | | |
| | | public void sync(Object source) { |
| | | Synchro.Copy(source, this); |
| | | } |