修改mapper文件

release
yishiqihuasheng 2 years ago
parent 5f281fb882
commit 5b9bc65cec
  1. 4
      dxhy-core/src/main/java/com/dxhy/core/controller/TicketQueryController.java
  2. 10
      dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/SignFpqsServiceImpl.java
  3. 2
      dxhy-sign/src/main/resources/mapper/SignRecordInvoiceMapper.xml

@ -69,12 +69,14 @@ public class TicketQueryController extends AbstractController {
if (!invoiceCode.isEmpty()) {
invoiceType = GetInvoiceType.getFplx(invoiceCode);
}
log.info("invoiceType {}",invoiceType);
if ("10".equals(invoiceType)) {
Map<String, Object> map = retrunInvoiceDetilsList(invoiceCode, invoiceNo, gfTaxNo, flag, dbName);
return ResponseEntity.ok(R.ok().put("data", map));
} else {
Map<String, Object> map = new HashMap<>(1);
List<InvoiceMainBodyVO> invoiceSubjectList = ticketService.selectPassengerTheme(selectId, dbName);
log.info("invoiceSubjectList {}",invoiceSubjectList);
if (invoiceSubjectList.size() == 0) {
map.put("invoiceSubjectList", "");
return ResponseEntity.ok(R.ok().put("data", map));
@ -84,8 +86,10 @@ public class TicketQueryController extends AbstractController {
|| "88".equals(entity.getInvoiceType()) || "89".equals(entity.getInvoiceType())
|| "87".equals(entity.getInvoiceType())) {
map.put("invoiceSubjectList", ticketService.exchangePlane(entity));
log.info("返回数据===> {}",map);
return ResponseEntity.ok(R.ok().put("data", map));
} else {
log.info("返回数据=====> {}",map);
map.put("invoiceSubjectList", entity);
return ResponseEntity.ok(R.ok().put("data", map));
}

@ -3386,9 +3386,15 @@ public class SignFpqsServiceImpl extends MpBaseServiceImpl<SignRecordInvoiceDao,
public List<QsExcelEntity> selectWqsfp(Map<String, Object> pramsMap) {
DynamicContextHolder.push("business_business_read");
if(pramsMap.get("ids") != null){
String[] ids = String.valueOf(pramsMap.get("ids")).split(",");
List<String> strings = Arrays.asList(ids);
String ids1 = pramsMap.get("ids").toString();
log.info("ids值为{}",ids1);
String replace = ids1.replace("[", "").replace("]", "");
String[] split = replace.split(",");
List<String> strings = Arrays.asList(split);
pramsMap.put("ids",strings);
// String[] ids = String.valueOf(pramsMap.get("ids")).split(",");
// List<String> strings = Arrays.asList(ids);
// pramsMap.put("ids",strings);
}
List<TDxRecordInvoice> pageList = super.baseMapper.selectWqsfpByQsyx(pramsMap);
PageInfo<TDxRecordInvoice> pageInfo = new PageInfo<>(pageList);

@ -83,7 +83,7 @@
where 1=1
<if test="ids != null and ids.size()>0">
and r.id in
<foreach collection="ids" index="index" item="item" open="[" separator="," close="]">
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>

Loading…
Cancel
Save