校验字段

release
yishiqihuasheng 2 years ago
parent f8bad7813d
commit c90cb7974f
  1. 2
      dxhy-extend/src/main/java/com/dxhy/extend/controller/ExtInvoicePoolController.java
  2. 4
      dxhy-extend/src/main/java/com/dxhy/extend/service/pool/ExtInvoicePoolServiceImpl.java
  3. 3
      dxhy-extend/src/main/resources/mapper/ExtInvoicePoolMapper.xml

@ -135,6 +135,7 @@ public class ExtInvoicePoolController extends AbstractController {
public ResponseEntity<R> listOtherInvoice(@RequestBody Map<String, Object> pramsMap) {
pramsMap.put("dbName", getUserInfo().getDbName());
log.info("其他发票采集接收参数 {}",pramsMap);
List<String> gfshList = new ArrayList<>();
List<String> invoiceTypeList = new ArrayList<>();
if (!"99".equals(pramsMap.get("gfsh")) && pramsMap.get("gfsh") != null && !"".equals(pramsMap.get("gfsh"))) {
@ -164,6 +165,7 @@ public class ExtInvoicePoolController extends AbstractController {
int curr = (int)pramsMap.get("curr");
int size = (int)pramsMap.get("size");
try {
log.info("其他发票采集接收参数 {}" ,pramsMap);
return ResponseEntity.ok(R.ok().put("data", extInvoicePoolService.listOther(pramsMap, curr, size)));
} catch (Exception e) {
e.printStackTrace();

@ -4,6 +4,7 @@ import java.util.List;
import java.util.Map;
import com.dxhy.extend.entity.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@ -22,6 +23,7 @@ import com.github.pagehelper.PageInfo;
/**
* @author dxhy
*/
@Slf4j
@SuppressWarnings({"AlibabaUndefineMagicConstant", "AlibabaMethodTooLong"})
@Service
public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolDao, ExtAddTaxInvoice>
@ -229,7 +231,9 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD
json.put("hjse", hjse);
}
PageHelper.startPage(curr, size);
log.info("开始进行分页查询");
List<ExtOtherInvoice> pageList = super.baseMapper.listOtherInvoice(pramsMap);
log.info("查询结果为 {}",pageList);
PageInfo<ExtOtherInvoice> pageInfo = new PageInfo<>(pageList);
// 用于页面返回list对象
if (pageList != null && pageList.size() > 0) {

@ -321,8 +321,7 @@
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
<if
test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '999' ">
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '999' ">
AND invoice_type = #{invoiceType}
</if>
<if test="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'">

Loading…
Cancel
Save