ariesy 发票综合查询 增加筛选条件和列表展示

release
yefei 2 years ago
parent 2c87e0d454
commit b5691b067a
  1. 4
      dxhy-core/src/main/resources/mapper/CustomsMapper.xml
  2. 11
      dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java
  3. 2
      dxhy-erp/src/main/java/com/dxhy/erp/entity/sdny/SNSAPObject.java
  4. 6
      dxhy-extend/src/main/java/com/dxhy/extend/model/ExtBbfpzhcxRespVO.java
  5. 4
      dxhy-extend/src/main/resources/mapper/CustomsMapper.xml
  6. 44
      dxhy-extend/src/main/resources/mapper/ExtBbfpzhMapper.xml

@ -29,6 +29,10 @@
<result column="in_account_status" property="inAccountStatus"/> <result column="in_account_status" property="inAccountStatus"/>
<result column="voucher_number" property="voucherNumber"/> <result column="voucher_number" property="voucherNumber"/>
<result column="document_number" property="documentNumber"/> <result column="document_number" property="documentNumber"/>
<result column="sn_voucher_number" property="snVoucherNumber"/>
<result column="postingTime" property="postingTime"/>
<result column="image_id" property="imageId"/>
<result column="account_period" property="accountPeriod"/>
</resultMap> </resultMap>
<select databaseId="mysql" id="selectByPramsMap" <select databaseId="mysql" id="selectByPramsMap"

@ -27,6 +27,7 @@ import io.swagger.models.auth.In;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.json.JSONString; import org.json.JSONString;
import org.omg.CORBA.OBJ_ADAPTER;
import org.omg.PortableInterceptor.INACTIVE; import org.omg.PortableInterceptor.INACTIVE;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -176,7 +177,7 @@ public class SDNYMainProcessController extends AbstractController {
@SysLog("同步发票信息") @SysLog("同步发票信息")
public ResponseEntity<?> syncInvoiceInfo(@RequestBody SNRequestObject snRequestObject) { public ResponseEntity<?> syncInvoiceInfo(@RequestBody SNRequestObject snRequestObject) {
log.info("影像系统同步数据:{}",snRequestObject); log.info("影像系统同步数据:{}",JSONObject.toJSONString(snRequestObject));
String userid = "101833"; String userid = "101833";
String dbName = "business"; String dbName = "business";
@ -243,7 +244,7 @@ public class SDNYMainProcessController extends AbstractController {
} }
SNSAPObject object = convertToSapOnject(invoice, imageId,compCode); SNSAPObject object = convertToSapOnject(invoice, imageId,compCode);
log.info("推送山能数据:{}",object); log.info("推送山能数据:{}",JSONObject.toJSONString(object));
JSONObject request = new JSONObject(); JSONObject request = new JSONObject();
request.put("IS_INPUT",object); request.put("IS_INPUT",object);
@ -311,7 +312,7 @@ public class SDNYMainProcessController extends AbstractController {
object.setZFILED4(""); object.setZFILED4("");
object.setZFILED5("200"); object.setZFILED5("200");
List<String> sapInvoiceInfos = new ArrayList<>(); List<SAPInvoiceInfo> sapInvoiceInfos = new ArrayList<>();
SAPInvoiceInfo info = new SAPInvoiceInfo(); SAPInvoiceInfo info = new SAPInvoiceInfo();
info.setZBAZT("0"); info.setZBAZT("0");
info.setZXFSH(snInvoice.getSalesTaxNo()); info.setZXFSH(snInvoice.getSalesTaxNo());
@ -444,9 +445,9 @@ public class SDNYMainProcessController extends AbstractController {
info.setZQM(""); info.setZQM("");
info.setZPJLY(snInvoice.getSource()); info.setZPJLY(snInvoice.getSource());
info.setZZWLX(snInvoice.getSeat()); info.setZZWLX(snInvoice.getSeat());
info.setZTID("500005000002601689027"); info.setZTID(snInvoice.getInvoiceCode()+snInvoice.getInvoiceNumber());
sapInvoiceInfos.add(JSONObject.toJSONString(info)); sapInvoiceInfos.add(info);
object.setZDATA(sapInvoiceInfos); object.setZDATA(sapInvoiceInfos);
return object; return object;

@ -73,6 +73,6 @@ public class SNSAPObject {
* 外围系统标识 * 外围系统标识
*/ */
@JSONField(name = "ZDATA") @JSONField(name = "ZDATA")
private List<String> ZDATA; private List<SAPInvoiceInfo> ZDATA;
} }

@ -180,6 +180,12 @@ public class ExtBbfpzhcxRespVO implements Serializable {
*/ */
private String illegalEnterprise; private String illegalEnterprise;
private String snVoucherNumber;
private String postingTime;
private String imageId;
private String accountPeriod;
private String compCode;
public ExtBbfpzhcxRespVO() {} public ExtBbfpzhcxRespVO() {}
} }

@ -30,6 +30,10 @@
<result column="in_account_status" property="inAccountStatus"/> <result column="in_account_status" property="inAccountStatus"/>
<result column="voucher_number" property="voucherNumber"/> <result column="voucher_number" property="voucherNumber"/>
<result column="document_number" property="documentNumber"/> <result column="document_number" property="documentNumber"/>
<result column="sn_voucher_number" property="snVoucherNumber"/>
<result column="postingTime" property="postingTime"/>
<result column="image_id" property="imageId"/>
<result column="account_period" property="accountPeriod"/>
</resultMap> </resultMap>
<resultMap id="HjResultMap" type="java.util.Map"> <resultMap id="HjResultMap" type="java.util.Map">

@ -39,6 +39,10 @@
<result column="settlement_status" property="settlementStatus"/> <result column="settlement_status" property="settlementStatus"/>
<result column="voucher_number" property="voucherNumber"/> <result column="voucher_number" property="voucherNumber"/>
<result column="total_amount" property="totalAmount"/> <result column="total_amount" property="totalAmount"/>
<result column="sn_voucher_number" property="snVoucherNumber"/>
<result column="postingTime" property="postingTime"/>
<result column="image_id" property="imageId"/>
<result column="account_period" property="accountPeriod"/>
</resultMap> </resultMap>
<resultMap id="BbfpzhcxhjResultMap" <resultMap id="BbfpzhcxhjResultMap"
@ -60,7 +64,7 @@
t.invoice_type , t.dept_name deptName,t.glzt t.invoice_type , t.dept_name deptName,t.glzt
glzt,t.uuid,t.bdk_status,t.scan_id,t.in_account_status,t.settle_source, glzt,t.uuid,t.bdk_status,t.scan_id,t.in_account_status,t.settle_source,
t.settlement_no, t.settlement_no,
t.settlement_status,t.voucher_number,t.total_amount t.settlement_status,t.voucher_number,t.total_amount,t.sn_voucher_number,t.postingTime,t.image_id,t.account_period
from t_dx_record_invoice t from t_dx_record_invoice t
WHERE t.company = #{company} and t.invoice_date between #{kpksrq} and #{kpjsrq} WHERE t.company = #{company} and t.invoice_date between #{kpksrq} and #{kpjsrq}
and t.gf_tax_no in and t.gf_tax_no in
@ -163,6 +167,18 @@
<if test='inAccountStatus!=null and inAccountStatus != "" and inAccountStatus != "99"'> <if test='inAccountStatus!=null and inAccountStatus != "" and inAccountStatus != "99"'>
and t.in_account_status = #{inAccountStatus} and t.in_account_status = #{inAccountStatus}
</if> </if>
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber}
</if>
<if test="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'">
and t.postingTime = #{postingTime}
</if>
<if test="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'">
and t.image_id = #{imageId}
</if>
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod}
</if>
order by t.invoice_date desc order by t.invoice_date desc
</select> </select>
<select id="selectByPramsMap" parameterType="java.util.Map" <select id="selectByPramsMap" parameterType="java.util.Map"
@ -176,7 +192,7 @@
dqskssq,t.auth_status,t.qs_type,t.qs_status,t.confirm_user,t.qs_name,t.rzh_yesorno, dqskssq,t.auth_status,t.qs_type,t.qs_status,t.confirm_user,t.qs_name,t.rzh_yesorno,
t.invoice_type , t.dept_name deptName,t.glzt glzt,t.uuid,t.bdk_status,t.in_account_status,t.settle_source, t.invoice_type , t.dept_name deptName,t.glzt glzt,t.uuid,t.bdk_status,t.in_account_status,t.settle_source,
t.settlement_no, t.settlement_no,
t.settlement_status,t.voucher_number,t.total_amount t.settlement_status,t.voucher_number,t.total_amount,t.sn_voucher_number,t.postingTime,t.image_id,t.account_period
from t_dx_record_invoice t from t_dx_record_invoice t
WHERE t.company = #{company} and t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd WHERE t.company = #{company} and t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd
hh24:mi:ss') and hh24:mi:ss') and
@ -280,6 +296,18 @@
<if test='inAccountStatus!=null and inAccountStatus != "" and inAccountStatus != "99"'> <if test='inAccountStatus!=null and inAccountStatus != "" and inAccountStatus != "99"'>
and t.in_account_status = #{inAccountStatus} and t.in_account_status = #{inAccountStatus}
</if> </if>
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber}
</if>
<if test="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'">
and t.postingTime = #{postingTime}
</if>
<if test="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'">
and t.image_id = #{imageId}
</if>
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod}
</if>
order by t.invoice_date desc order by t.invoice_date desc
</select> </select>
@ -387,6 +415,18 @@
<if test='inAccountStatus!=null and inAccountStatus != "" and inAccountStatus != "99"'> <if test='inAccountStatus!=null and inAccountStatus != "" and inAccountStatus != "99"'>
and t.in_account_status = #{inAccountStatus} and t.in_account_status = #{inAccountStatus}
</if> </if>
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber}
</if>
<if test="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'">
and t.postingTime = #{postingTime}
</if>
<if test="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'">
and t.image_id = #{imageId}
</if>
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod}
</if>
</select> </select>
<select id="selectBbfpzhHj" parameterType="java.util.Map" <select id="selectBbfpzhHj" parameterType="java.util.Map"

Loading…
Cancel
Save