|
|
@@ -23,6 +23,7 @@ import org.dromara.common.core.utils.RecordIdUtils;
|
|
|
import org.dromara.server.common.domain.consume.bo.ConsumptionBo;
|
|
|
import org.dromara.server.consume.cache.TokenManager;
|
|
|
import org.dromara.server.consume.domain.bo.XfCardLimitedBo;
|
|
|
+import org.dromara.server.consume.domain.convert.RemoteVoConvert;
|
|
|
import org.dromara.server.consume.domain.vo.PtBagVo;
|
|
|
import org.dromara.server.consume.domain.vo.XfCardLimitedVo;
|
|
|
import org.dromara.server.consume.domain.vo.XfConsumeDetailOriginalVo;
|
|
|
@@ -178,6 +179,8 @@ public class CheckBusiness {
|
|
|
long factoryId = ObjectUtil.isEmpty(bo.getFactoryId()) ? 0 : bo.getFactoryId();
|
|
|
long userNo = ObjectUtil.isEmpty(bo.getUserNo()) ? 0 : bo.getUserNo();
|
|
|
String userNumb = bo.getUserNumb() == null ? null : bo.getUserNumb();
|
|
|
+
|
|
|
+
|
|
|
// 卡流水号检查
|
|
|
if (cardNo > 0) {
|
|
|
return checkCardNo(bo, userAccountVo, userCardVo);
|
|
|
@@ -375,8 +378,10 @@ public class CheckBusiness {
|
|
|
bo.setCardTypeName(cardVo.getCardTypeName());
|
|
|
bo.setExpireDate(accountVo.getLifespan());
|
|
|
bo.setDeptName(accountVo.getDeptName());
|
|
|
- BeanUtil.copyProperties(accountVo, userAccountVo);
|
|
|
- BeanUtil.copyProperties(cardVo, userCardVo);
|
|
|
+ // BeanUtil.copyProperties(accountVo, userAccountVo);
|
|
|
+ RemoteVoConvert.INSTANCE.copyRemoteUserAccountVo(accountVo, userAccountVo);
|
|
|
+ // BeanUtil.copyProperties(cardVo, userCardVo);
|
|
|
+ RemoteVoConvert.INSTANCE.copyRemoteCardVo(cardVo, userCardVo);
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
@@ -409,8 +414,10 @@ public class CheckBusiness {
|
|
|
bo.setCardTypeName(cardVo.getCardTypeName());
|
|
|
bo.setExpireDate(accountVo.getLifespan());
|
|
|
bo.setDeptName(accountVo.getDeptName());
|
|
|
- BeanUtil.copyProperties(accountVo, userAccountVo);
|
|
|
- BeanUtil.copyProperties(cardVo, userCardVo);
|
|
|
+ // BeanUtil.copyProperties(accountVo, userAccountVo);
|
|
|
+ RemoteVoConvert.INSTANCE.copyRemoteUserAccountVo(accountVo, userAccountVo);
|
|
|
+ // BeanUtil.copyProperties(cardVo, userCardVo);
|
|
|
+ RemoteVoConvert.INSTANCE.copyRemoteCardVo(cardVo, userCardVo);
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
@@ -453,8 +460,10 @@ public class CheckBusiness {
|
|
|
bo.setCardTypeName(cardVo.getCardTypeName());
|
|
|
bo.setExpireDate(accountVo.getLifespan());
|
|
|
bo.setDeptName(accountVo.getDeptName());
|
|
|
- BeanUtil.copyProperties(accountVo, userAccountVo);
|
|
|
- BeanUtil.copyProperties(cardVo, userCardVo);
|
|
|
+ // BeanUtil.copyProperties(accountVo, userAccountVo);
|
|
|
+ RemoteVoConvert.INSTANCE.copyRemoteUserAccountVo(accountVo, userAccountVo);
|
|
|
+ // BeanUtil.copyProperties(cardVo, userCardVo);
|
|
|
+ RemoteVoConvert.INSTANCE.copyRemoteCardVo(cardVo, userCardVo);
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
@@ -498,8 +507,10 @@ public class CheckBusiness {
|
|
|
bo.setFactoryId(cardVo.getFactoryId());
|
|
|
bo.setCardTypeName(cardVo.getCardTypeName());
|
|
|
|
|
|
- BeanUtil.copyProperties(accountVo, userAccountVo);
|
|
|
- BeanUtil.copyProperties(cardVo, userCardVo);
|
|
|
+ // BeanUtil.copyProperties(accountVo, userAccountVo);
|
|
|
+ RemoteVoConvert.INSTANCE.copyRemoteUserAccountVo(accountVo, userAccountVo);
|
|
|
+ // BeanUtil.copyProperties(cardVo, userCardVo);
|
|
|
+ RemoteVoConvert.INSTANCE.copyRemoteCardVo(cardVo, userCardVo);
|
|
|
|
|
|
return R.ok();
|
|
|
}
|