| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.LocOwner; |
| | | import com.zy.asrs.service.LocOwnerService; |
| | | import com.zy.common.utils.Synchro; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | |
| | | import java.util.Date; |
| | | |
| | |
| | | private String meno; |
| | | private String manu; |
| | | |
| | | public String getOwner$(){ |
| | | public String getOwner$() { |
| | | LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); |
| | | LocOwner locOwner = service.selectById(this.owner); |
| | | if (!Cools.isEmpty(locOwner)){ |
| | | if (!Cools.isEmpty(locOwner)) { |
| | | return String.valueOf(locOwner.getOwner()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getPayment$(){ |
| | | if (null == this.payment){ return null; } |
| | | switch (this.payment){ |
| | | public String getPayment$() { |
| | | if (null == this.payment) { |
| | | return null; |
| | | } |
| | | switch (this.payment) { |
| | | case 1: |
| | | return "仓储"; |
| | | case 0: |
| | |
| | | } |
| | | |
| | | public void sync(Object source) { |
| | | Synchro.Copy(source, this); |
| | | BeanUtils.copyProperties(source, this); |
| | | } |
| | | } |