|
|
|
|
@ -1,5 +1,7 @@ |
|
|
|
|
package org.springblade.desk.order.wrapper; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import org.springblade.core.mp.support.BaseEntityWrapper; |
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
@ -9,6 +11,7 @@ import org.springblade.desk.order.pojo.vo.MoldDemandVo; |
|
|
|
|
import org.springblade.system.cache.UserCache; |
|
|
|
|
import org.springblade.system.pojo.entity.User; |
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -34,6 +37,11 @@ public class MoldDemandWrapper extends BaseEntityWrapper<MoldDemand, MoldDemandV |
|
|
|
|
vo.setStatusName(MoldDemandEnum.getName(entity.getStatus())); |
|
|
|
|
vo.setMafStatusName(MoldDemandEnum.getName(entity.getMafStatus())); |
|
|
|
|
vo.setMafTypeName(MoldDemandEnum.getName(entity.getMafType())); |
|
|
|
|
String linkOrderIds = entity.getLinkOrderIds(); |
|
|
|
|
|
|
|
|
|
List<String> orderIdList = StrUtil.splitTrim(linkOrderIds, ','); |
|
|
|
|
int count = CollUtil.isEmpty(orderIdList) ? 0 : orderIdList.size(); |
|
|
|
|
vo.setLinkOrderNum(count); |
|
|
|
|
return vo; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|