|
@@ -7,13 +7,14 @@ import com.yh.saas.plugin.base.service.ICommonBillOperateHisService;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.constant.NumberConstant;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.constant.StatusEnum;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.IdentityAuthenticationInfo;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.exception.YException;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.exception.YExceptionEnum;
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.entity.WarehouseInOutInfo;
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.exception.*;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.IdentityAuthenticationInfoMapper;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.service.*;
|
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.sqlite.util.StringUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -132,5 +133,29 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
|
|
|
this.deleteById(identityAuthenticationInfo.getId());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查看
|
|
|
+ * @param
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public IdentityAuthenticationInfo getInfo(String commonId)throws ServiceException {
|
|
|
+ //判断粮商是否存在
|
|
|
+ IdentityAuthenticationInfo identityAuthenticationInfo =
|
|
|
+ this.selectOne(new EntityWrapper<IdentityAuthenticationInfo>()
|
|
|
+ .eq(IdentityAuthenticationInfo.QueryFiles.COMMON_ID, commonId)
|
|
|
+ .eq(IdentityAuthenticationInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0));
|
|
|
+ if(identityAuthenticationInfo!=null){
|
|
|
+ //身份审核中
|
|
|
+ if ("1".equals(identityAuthenticationInfo.getAuthenticationStatusKey())){
|
|
|
+ throw new AppServiceException(ExceptionDefinition.IDENTITY_IS_BEING_AUDITED);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //粮商不存在
|
|
|
+ else {
|
|
|
+ throw new AppServiceException(ExceptionDefinition.UNAUTHENTICATED_GRAIN_MERCHANT_IDENTITY);
|
|
|
+ }
|
|
|
+ return identityAuthenticationInfo;
|
|
|
+ }
|
|
|
}
|
|
|
|