选入码上放心单据加上单据编码查询

dev_unify
qiuyt 3 months ago
parent 62602a7ce4
commit 9c8deca2b1

@ -11,6 +11,7 @@ import com.glxp.api.req.alihealth.AliYljgSearchbillReqeust;
import com.glxp.api.req.alihealth.AlihealthYljgListupoutDetailReqeust;
import com.glxp.api.req.alihealth.AlihealthYljgListupoutReqeust;
import com.glxp.api.service.alihealth.AlihealthBusService;
import com.glxp.api.util.StringUtils;
import com.glxp.api.util.alihealth.AlihealthYljgUtils;
import org.springframework.stereotype.Service;
@ -34,6 +35,9 @@ public class AlihealthBusServiceImpl implements AlihealthBusService {
AlihealthYljgListupoutReqeust alihealthYljgListupoutReqeust1 = new AlihealthYljgListupoutReqeust();
alihealthYljgListupoutReqeust1.setBegin_date(aliYljgSearchbillReqeust.getBeginDate());
alihealthYljgListupoutReqeust1.setEnd_date(aliYljgSearchbillReqeust.getEnsDate());
if(StringUtils.isNotEmpty(aliYljgSearchbillReqeust.getBillCode())){
alihealthYljgListupoutReqeust1.setBill_code(aliYljgSearchbillReqeust.getBillCode());
}
if (aliYljgSearchbillReqeust.getPage() != null) {
alihealthYljgListupoutReqeust1.setPage(aliYljgSearchbillReqeust.getPage());

@ -21,8 +21,8 @@ import com.glxp.api.service.auth.CustomerInfoService;
import com.glxp.api.service.collect.RelCodeBatchService;
import com.glxp.api.service.collect.RelCodeDetailService;
import com.taobao.api.Constants;
import com.taobao.api.internal.util.StringUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@ -317,11 +317,11 @@ public class AlihealthUtils {
for (String key : keys) {
Object value = params.get(key);
if (value instanceof String) {
if (StringUtils.areNotEmpty(key, (String) value)) {
if (StringUtils.isNotEmpty(key) && StringUtils.isNotEmpty((CharSequence) value)) {
query.append(key).append(value);
}
} else {
if (!Objects.isNull(value)) {
if (StringUtils.isNotEmpty(key) && !Objects.isNull(value)) {
query.append(key).append(value);
}
}

@ -27,8 +27,7 @@ public class CopyUtils {
targetField.setAccessible(true);
String targetName = targetField.getName();//目标对象的属性名
System.out.println("1 "+targetName.equals(snakeToCamel((String) key)) +"targetName "+ targetName +"targetName "+ snakeToCamel((String) key ));
System.out.println("2 "+key);
if (targetName.equals(snakeToCamel((String) key)) && !Objects.isNull(value)) {
targetField.set(target, value);

Loading…
Cancel
Save