|
|
|
@ -1098,19 +1098,21 @@ public class InvLinkInfoServiceImpl implements InvLinkInfoService {
|
|
|
|
|
public HttpResult getInvoice(InvLinkInfo info) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<InvInvoiceInfo> list = invInvoiceInfoMapper.selectcheck();
|
|
|
|
|
List<InvLinkInfo> linkinfos = invLinkInfoMapper.selectLinkInfoByStatus();
|
|
|
|
|
for(InvLinkInfo invlink : linkinfos){
|
|
|
|
|
List<InvInvoiceInfo> list = invInvoiceInfoMapper.selectcheck(invlink.getGID());
|
|
|
|
|
if(null != list && list.size()>0){
|
|
|
|
|
ResponseData data = null;
|
|
|
|
|
for(InvInvoiceInfo invoice : list){
|
|
|
|
|
|
|
|
|
|
String linkid = invInvoiceSplitMapper.getLinkIdsByinvoiceId(invoice.getGID());
|
|
|
|
|
|
|
|
|
|
InvLinkInfo invlink = new InvLinkInfo();
|
|
|
|
|
invlink.setGID(linkid);
|
|
|
|
|
InvLinkInfo linkinfo = invLinkInfoMapper.selectByGID(invlink);
|
|
|
|
|
if(!"1".equals(linkinfo.getStatus())){
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
// String linkid = invInvoiceSplitMapper.getLinkIdsByinvoiceId(invoice.getGID());
|
|
|
|
|
//
|
|
|
|
|
// InvLinkInfo invlink = new InvLinkInfo();
|
|
|
|
|
// invlink.setGID(linkid);
|
|
|
|
|
// InvLinkInfo linkinfo = invLinkInfoMapper.selectByGID(invlink);
|
|
|
|
|
// if(!"1".equals(linkinfo.getStatus())){
|
|
|
|
|
// continue;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
data = new ResponseData();
|
|
|
|
@ -1155,14 +1157,14 @@ public class InvLinkInfoServiceImpl implements InvLinkInfoService {
|
|
|
|
|
for(InvInvoiceInfo invoice : list){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String linkid = invInvoiceSplitMapper.getLinkIdsByinvoiceId(invoice.getGID());
|
|
|
|
|
|
|
|
|
|
InvLinkInfo invlink = new InvLinkInfo();
|
|
|
|
|
invlink.setGID(linkid);
|
|
|
|
|
InvLinkInfo invlinkinfo = invLinkInfoMapper.selectByGID(invlink);
|
|
|
|
|
if(!"1".equals(invlinkinfo.getStatus())){
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
// String linkid = invInvoiceSplitMapper.getLinkIdsByinvoiceId(invoice.getGID());
|
|
|
|
|
//
|
|
|
|
|
// InvLinkInfo invlink = new InvLinkInfo();
|
|
|
|
|
// invlink.setGID(linkid);
|
|
|
|
|
// InvLinkInfo invlinkinfo = invLinkInfoMapper.selectByGID(invlink);
|
|
|
|
|
// if(!"1".equals(invlinkinfo.getStatus())){
|
|
|
|
|
// continue;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
String likid = invInvoiceSplitMapper.getlinkdId(invoice.getGID());
|
|
|
|
|
//判断是否存在重复的linkid
|
|
|
|
@ -1244,6 +1246,9 @@ public class InvLinkInfoServiceImpl implements InvLinkInfoService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return HttpResult.ok();
|
|
|
|
|
}
|
|
|
|
|