判断生产日期失效日期 发票等数据如果没值就写死

hlfyyy
qiuyt 1 month ago
parent f07b743faa
commit 082c99f3e4

@ -783,19 +783,19 @@ public class HlfyyyClient extends CommonHttpClient {
udiwmsOrderDetailHlfyRequest.setPrice(udiwmsOrderDetailRequest.getPrice().toString()); udiwmsOrderDetailHlfyRequest.setPrice(udiwmsOrderDetailRequest.getPrice().toString());
udiwmsOrderDetailHlfyRequest.setCount(udiwmsOrderDetailRequest.getCount()+""); udiwmsOrderDetailHlfyRequest.setCount(udiwmsOrderDetailRequest.getCount()+"");
udiwmsOrderDetailHlfyRequest.setAllowNoBatch(Boolean.toString(udiwmsOrderDetailRequest.isAllowNoBatch())); udiwmsOrderDetailHlfyRequest.setAllowNoBatch(Boolean.toString(udiwmsOrderDetailRequest.isAllowNoBatch()));
// 判断生产日期失效日期 发票等数据如果没值就写死 // // 判断生产日期失效日期 发票等数据如果没值就写死
if(StringUtils.isEmpty(udiwmsOrderDetailHlfyRequest.getInvoiceDate())){ // if(StringUtils.isEmpty(udiwmsOrderDetailHlfyRequest.getInvoiceDate())){
udiwmsOrderDetailHlfyRequest.setInvoiceDate("2000-01-01 00:00:00"); // udiwmsOrderDetailHlfyRequest.setInvoiceDate("2000-01-01 00:00:00");
} // }
if(StringUtils.isEmpty(udiwmsOrderDetailHlfyRequest.getFirstSalesInvNo())){ // if(StringUtils.isEmpty(udiwmsOrderDetailHlfyRequest.getFirstSalesInvNo())){
udiwmsOrderDetailHlfyRequest.setFirstSalesInvNo("test111"); // udiwmsOrderDetailHlfyRequest.setFirstSalesInvNo("test111");
} // }
if(StringUtils.isEmpty(udiwmsOrderDetailHlfyRequest.getProductDate())){ // if(StringUtils.isEmpty(udiwmsOrderDetailHlfyRequest.getProductDate())){
udiwmsOrderDetailHlfyRequest.setProductDate("2000-01-01 00:00:00"); // udiwmsOrderDetailHlfyRequest.setProductDate("2000-01-01 00:00:00");
} // }
if(StringUtils.isEmpty(udiwmsOrderDetailHlfyRequest.getExpireDate())){ // if(StringUtils.isEmpty(udiwmsOrderDetailHlfyRequest.getExpireDate())){
udiwmsOrderDetailHlfyRequest.setExpireDate("2099-01-01 00:00:00"); // udiwmsOrderDetailHlfyRequest.setExpireDate("2099-01-01 00:00:00");
} // }
if(udiwmsOrderDetailRequest.getCodeList()!=null && udiwmsOrderDetailRequest.getCodeList().size() >0){ if(udiwmsOrderDetailRequest.getCodeList()!=null && udiwmsOrderDetailRequest.getCodeList().size() >0){
List<UdiwmsOrderDetailHlfyRequest.CodeDetailEntity> list = new ArrayList<>(); List<UdiwmsOrderDetailHlfyRequest.CodeDetailEntity> list = new ArrayList<>();

@ -1,6 +1,7 @@
package com.glxp.mipsdl.service.basic; package com.glxp.mipsdl.service.basic;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -28,6 +29,7 @@ public class RelCodeDetailService extends ServiceImpl<RelCodeDetailMapper, RelCo
// relCodeDetail = new RelCodeDetail(); // relCodeDetail = new RelCodeDetail();
// relCodeDetail.setCurCode(code); // relCodeDetail.setCurCode(code);
// } // }
List<RelCodeDetail> list = new ArrayList<>(); List<RelCodeDetail> list = new ArrayList<>();
// list.add(relCodeDetail); // list.add(relCodeDetail);
fetchAllChildren(code, list); fetchAllChildren(code, list);

Loading…
Cancel
Save