|
@@ -1,6 +1,6 @@
|
|
|
package com.bz.smart_city.service.impl.pay;
|
|
|
|
|
|
-import com.aliyuncs.utils.StringUtils;
|
|
|
+
|
|
|
import com.bz.smart_city.commom.exception.ServiceException;
|
|
|
import com.bz.smart_city.commom.model.ResultStatus;
|
|
|
import com.bz.smart_city.commom.util.UserUtil;
|
|
@@ -13,6 +13,7 @@ import com.bz.smart_city.entity.pay.BaseClosingAccountInfo;
|
|
|
import com.bz.smart_city.entity.pay.PayPayReceived;
|
|
|
import com.bz.smart_city.entity.pay.PayReceivable;
|
|
|
import com.bz.smart_city.service.pay.PayFeeService;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -760,6 +761,9 @@ public class PayFeeServiceImp implements PayFeeService {
|
|
|
}
|
|
|
|
|
|
public List<PayfeeAccountInfoDto> findPayfeeAccountInfo(BigInteger id, String condition ){
|
|
|
+ if(StringUtils.isBlank(condition)&&id == null){
|
|
|
+ throw new ServiceException(ResultStatus.PAY_CONDITION_ISNULL);
|
|
|
+ }
|
|
|
LoginUser loginUser = UserUtil.getCurrentUser();
|
|
|
//数据权限
|
|
|
return payFeeMapper.findPayfeeAccountInfo(id, condition ,loginUser.getSiteId(),loginUser.getCustomerId(),UserUtil.getCurrentSiteProgramItems(loginUser));
|