添加字段

release
yishiqihuasheng 2 years ago
parent fe801e642e
commit e247c528ab
  1. 4
      dxhy-base/src/main/resources/mapper/BaseFpZhMapper.xml
  2. 4
      dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml
  3. 4
      dxhy-core/src/main/java/com/dxhy/core/service/export/impl/CustomsCollectServiceImpl.java
  4. 1
      dxhy-core/src/main/java/com/dxhy/core/thread/CustomsInsertThread.java
  5. 1
      dxhy-customs/src/main/java/com/dxhy/customs/controller/CustomsRecordRzdkController.java
  6. 2
      dxhy-customs/src/main/java/com/dxhy/customs/model/TdxCustomsRecordModelDTO.java
  7. 4
      dxhy-customs/src/main/resources/mapper/CustomsJkszhcxMapper.xml
  8. 33
      dxhy-customs/src/main/resources/mapper/CustomsRecordMapper.xml
  9. 2
      dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java
  10. 16
      dxhy-extend/src/main/resources/mapper/ExtBbfpzhMapper.xml
  11. 4
      dxhy-extend/src/main/resources/mapper/ExtBbycfpcxMapper.xml

@ -89,7 +89,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' ">
and t.inaccount_status = #{inAccountStatus} and t.inaccount_status = #{inAccountStatus}
</if> </if>
<if test="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'"> <if test="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'">
@ -355,7 +355,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' ">
and t.inaccount_status = #{inAccountStatus} and t.inaccount_status = #{inAccountStatus}
</if> </if>
<if test="qszt != null and qszt != '' and qszt != 'null' "> <if test="qszt != null and qszt != '' and qszt != 'null' ">

@ -97,7 +97,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99'">
and t.inaccount_status = #{inAccountStatus} and t.inaccount_status = #{inAccountStatus}
</if> </if>
<if test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'"> <if test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'">
@ -431,7 +431,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' ">
and t.inaccount_status = #{inAccountStatus} and t.inaccount_status = #{inAccountStatus}
</if> </if>
<if test="businessCode==''"> <if test="businessCode==''">

@ -9,6 +9,7 @@ import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import lombok.Data;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@ -135,6 +136,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD
pramsMap.put("insertFlag", "1"); pramsMap.put("insertFlag", "1");
Map<String, Object> data = super.baseMapper.sumTaxAmount(pramsMap); Map<String, Object> data = super.baseMapper.sumTaxAmount(pramsMap);
log.info("data======>{}", data);
number = ObjectUtil.fixNull(data.get("number")); number = ObjectUtil.fixNull(data.get("number"));
taxAmountSum = AmountFormatUtil.fmtMicrometer(ObjectUtil.fixNull(data.get("taxAmountSum"))); taxAmountSum = AmountFormatUtil.fmtMicrometer(ObjectUtil.fixNull(data.get("taxAmountSum")));
json.put("taxAmountSum", taxAmountSum); json.put("taxAmountSum", taxAmountSum);
@ -145,6 +147,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD
PageHelper.startPage(curr, size); PageHelper.startPage(curr, size);
List<CustomsCollectVO> pageList = super.baseMapper.queryInsertCustoms(pramsMap); List<CustomsCollectVO> pageList = super.baseMapper.queryInsertCustoms(pramsMap);
log.info("pageList=======>{}",pageList);
PageInfo<CustomsCollectVO> pageInfo = new PageInfo<>(pageList); PageInfo<CustomsCollectVO> pageInfo = new PageInfo<>(pageList);
json.put("hasNext", pageInfo.isHasNextPage()); json.put("hasNext", pageInfo.isHasNextPage());
json.put("nextPage", pageInfo.getNextPage()); json.put("nextPage", pageInfo.getNextPage());
@ -174,6 +177,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD
} }
json.put("datalist", resultList); json.put("datalist", resultList);
} }
log.info("json=====>{}",json);
return json; return json;
} }

@ -237,6 +237,7 @@ public class CustomsInsertThread extends BaseThread {
throws Exception { throws Exception {
// 查询指定页数的数据 // 查询指定页数的数据
JSONObject pageData = customsCollectService.queryInsertCustoms(pramsMap, curr, default_size); JSONObject pageData = customsCollectService.queryInsertCustoms(pramsMap, curr, default_size);
log.info("pageData=======> {}",pageData);
boolean hasNext = pageData.getBooleanValue("hasNext"); boolean hasNext = pageData.getBooleanValue("hasNext");
List<CustomsCollectVO> dataList = (List<CustomsCollectVO>)pageData.get("datalist"); List<CustomsCollectVO> dataList = (List<CustomsCollectVO>)pageData.get("datalist");

@ -72,6 +72,7 @@ public class CustomsRecordRzdkController extends AbstractController {
@PostMapping("/querySgByPage") @PostMapping("/querySgByPage")
public ResponseEntity<?> querySgByPage(Page<?> page, @RequestBody TdxCustomsRecordModelDTO dto) { public ResponseEntity<?> querySgByPage(Page<?> page, @RequestBody TdxCustomsRecordModelDTO dto) {
try { try {
log.info("入参===》{}",dto);
return ResponseEntity return ResponseEntity
.ok(R.ok().put("data", tDxCustomsRecordService.querySgByPage(page, dto, this.getUserInfo()))); .ok(R.ok().put("data", tDxCustomsRecordService.querySgByPage(page, dto, this.getUserInfo())));
} catch (Exception e) { } catch (Exception e) {

@ -68,7 +68,7 @@ public class TdxCustomsRecordModelDTO extends CommonDTO {
private String bzdh; private String bzdh;
private String inAccountStatus; private String inAccountStatus;
private String snVoucharNumber; private String snVoucherNumber;
private String imageNumber; private String imageNumber;
private String accountPeriod; private String accountPeriod;
private String postingTime; private String postingTime;

@ -51,7 +51,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inaccountStatus != null and inaccountStatus != '' and inaccountStatus != 'null'"> <if test="inaccountStatus != null and inaccountStatus != '' and inaccountStatus != 'null' and inaccountStatus != '99' ">
and t.inaccount_status = #{inaccountStatus} and t.inaccount_status = #{inaccountStatus}
</if> </if>
<if test="customsCode != null and customsCode != '' and customsCode != 'null'"> <if test="customsCode != null and customsCode != '' and customsCode != 'null'">
@ -217,7 +217,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inaccountStatus != null and inaccountStatus != '' and inaccountStatus != 'null'"> <if test="inaccountStatus != null and inaccountStatus != '' and inaccountStatus != 'null' and inaccountStatus != '99' ">
and t.inaccount_status = #{inaccountStatus} and t.inaccount_status = #{inaccountStatus}
</if> </if>
<if <if

@ -284,13 +284,13 @@
<if test="queryParams.bzdh != null and queryParams.bzdh != '' and queryParams.bzdh != 'null'"> <if test="queryParams.bzdh != null and queryParams.bzdh != '' and queryParams.bzdh != 'null'">
and p.bzdh = #{queryParams.bzdh} and p.bzdh = #{queryParams.bzdh}
</if> </if>
<!-- <if test="queryParams.inAccountStatus != null and queryParams.inAccountStatus != '' and queryParams.inAccountStatus != 'null'">--> <if test="queryParams.inAccountStatus != null and queryParams.inAccountStatus != '' and queryParams.inAccountStatus != 'null' and queryParams.inAccountStatus != '99' ">
<!-- and p.inaccount_status = #{queryParams.inAccountStatus}--> and p.inaccount_status = #{queryParams.inAccountStatus}
<!-- </if>--> </if>
<!-- <if test="queryParams.snVoucherNumber != null and queryParams.snVoucherNumber != '' and queryParams.snVoucherNumber != 'null' and queryParams.snVoucherNumber != '99'">--> <if test="queryParams.snVoucherNumber != null and queryParams.snVoucherNumber != '' and queryParams.snVoucherNumber != 'null' and queryParams.snVoucherNumber != '99'">
<!-- and p.sn_voucher_number = #{queryParams.snVoucherNumber}--> and p.sn_voucher_number = #{queryParams.snVoucherNumber}
<!-- </if>--> </if>
<if test="queryParams.postingTimeStart != null and queryParams.postingTimeStart != '' and queryParams.postingTimeStart != 'null' and queryParams.postingTimeStart != '99' and queryParams.postingTimeEnd != null and queryParams.postingTimeEnd != '' and queryParams.postingTimeEnd != 'null' and queryParams.postingTimeEnd != '99'"> <if test="queryParams.postingTimeStart != null and queryParams.postingTimeStart != '' and queryParams.postingTimeStart != 'null' and queryParams.postingTimeStart != '99' and queryParams.postingTimeEnd != null and queryParams.postingTimeEnd != '' and queryParams.postingTimeEnd != 'null' and queryParams.postingTimeEnd != '99'">
and p.posting_time between #{queryParams.postingTimeStart} and #{queryParams.postingTimeEnd} and p.posting_time between #{queryParams.postingTimeStart} and #{queryParams.postingTimeEnd}
</if> </if>
@ -385,13 +385,13 @@
<if test="queryParams.bzdh != null and queryParams.bzdh != '' and queryParams.bzdh != 'null'"> <if test="queryParams.bzdh != null and queryParams.bzdh != '' and queryParams.bzdh != 'null'">
and p.bzdh = #{queryParams.bzdh} and p.bzdh = #{queryParams.bzdh}
</if> </if>
<!-- <if test="queryParams.inAccountStatus != null and queryParams.inAccountStatus != '' and queryParams.inAccountStatus != 'null'">--> <if test="queryParams.inAccountStatus != null and queryParams.inAccountStatus != '' and queryParams.inAccountStatus != 'null' and queryParams.inAccountStatus != '99' ">
<!-- and p.inaccount_status = #{queryParams.inAccountStatus}--> and p.inaccount_status = #{queryParams.inAccountStatus}
<!-- </if>--> </if>
<!-- <if test="queryParams.snVoucherNumber != null and queryParams.snVoucherNumber != '' and queryParams.snVoucherNumber != 'null' and queryParams.snVoucherNumber != '99'">--> <if test="queryParams.snVoucherNumber != null and queryParams.snVoucherNumber != '' and queryParams.snVoucherNumber != 'null' and queryParams.snVoucherNumber != '99'">
<!-- and p.sn_voucher_number = #{queryParams.snVoucherNumber}--> and p.sn_voucher_number = #{queryParams.snVoucherNumber}
<!-- </if>--> </if>
<if test="queryParams.postingTimeStart != null and queryParams.postingTimeStart != '' and queryParams.postingTimeStart != 'null' and queryParams.postingTimeStart != '99' and queryParams.postingTimeEnd != null and queryParams.postingTimeEnd != '' and queryParams.postingTimeEnd != 'null' and queryParams.postingTimeEnd != '99'"> <if test="queryParams.postingTimeStart != null and queryParams.postingTimeStart != '' and queryParams.postingTimeStart != 'null' and queryParams.postingTimeStart != '99' and queryParams.postingTimeEnd != null and queryParams.postingTimeEnd != '' and queryParams.postingTimeEnd != 'null' and queryParams.postingTimeEnd != '99'">
and p.posting_time between #{queryParams.postingTimeStart} and #{queryParams.postingTimeEnd} and p.posting_time between #{queryParams.postingTimeStart} and #{queryParams.postingTimeEnd}
</if> </if>
@ -406,13 +406,6 @@
and p.gf_tax_no = #{queryParams.gfsh} and p.gf_tax_no = #{queryParams.gfsh}
</if> </if>
<if test="queryParams.bzdh != null and queryParams.bzdh != '' and queryParams.bzdh != 'null'">
and p.bzdh = #{bzdh}
</if>
<!-- <if test="queryParams.inaccountStatus != null and queryParams.inaccountStatus != '' and queryParams.inaccountStatus != 'null'">-->
<!-- and p.inaccount_status = #{inaccountStatus}-->
<!-- </if>-->
<if test="queryParams.customsCode!=null and queryParams.customsCode!=''"> <if test="queryParams.customsCode!=null and queryParams.customsCode!=''">
and p.customs_code = #{queryParams.customsCode} and p.customs_code = #{queryParams.customsCode}
</if> </if>
@ -876,7 +869,7 @@
and p.bzdh = #{queryParams.bzdh} and p.bzdh = #{queryParams.bzdh}
</if> </if>
<if test="queryParams.inAccountStatus != null and queryParams.inAccountStatus != '' and queryParams.inAccountStatus != 'null'"> <if test="queryParams.inAccountStatus != null and queryParams.inAccountStatus != '' and queryParams.inAccountStatus != 'null' and queryParams.inAccountStatus != '99'">
and p.inaccount_status = #{queryParams.inAccountStatus} and p.inaccount_status = #{queryParams.inAccountStatus}
</if> </if>
<!-- <if test="queryParams.snVoucherNumber != null and queryParams.snVoucherNumber != '' and queryParams.snVoucherNumber != 'null' and queryParams.snVoucherNumber != '99'">--> <!-- <if test="queryParams.snVoucherNumber != null and queryParams.snVoucherNumber != '' and queryParams.snVoucherNumber != 'null' and queryParams.snVoucherNumber != '99'">-->

@ -563,8 +563,6 @@ public class SDNYMainProcessController extends AbstractController {
info.setZSE(snInvoice.getTotalTax()); info.setZSE(snInvoice.getTotalTax());
info.setZTXBZ(snInvoice.getTollSign()); info.setZTXBZ(snInvoice.getTollSign());
//机打代码
info.setZJDDM(snInvoice.getMachineCode());
// info.setZSKPH(snInvoice.getMachineCode()); // info.setZSKPH(snInvoice.getMachineCode());
info.setZGFZH(snInvoice.getPurchaserBank()); info.setZGFZH(snInvoice.getPurchaserBank());
info.setZBZ(snInvoice.getRemarks()); info.setZBZ(snInvoice.getRemarks());

@ -76,7 +76,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' ">
and t.inaccount_status = #{inAccountStatus} and t.inaccount_status = #{inAccountStatus}
</if> </if>
<if <if
@ -172,9 +172,9 @@
</foreach> </foreach>
) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) ) or (t.dept_id is null or t.dept_id='' or t.dept_id='99'))
</if> </if>
<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'"> <if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber} and t.sn_voucher_number = #{snVoucherNumber}
</if> </if>
@ -335,7 +335,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' ">
and t.in_account_status = #{inAccountStatus} and t.in_account_status = #{inAccountStatus}
</if> </if>
<if test="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'"> <if test="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'">
@ -426,9 +426,9 @@
</foreach> </foreach>
) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) ) or (t.dept_id is null or t.dept_id='' or t.dept_id='99'))
</if> </if>
<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'"> <if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber} and t.sn_voucher_number = #{snVoucherNumber}
</if> </if>

@ -60,7 +60,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' ">
and t.inaccount_status = #{inAccountStatus} and t.inaccount_status = #{inAccountStatus}
</if> </if>
<if <if
@ -167,7 +167,7 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> <if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh} and t.bzdh = #{bzdh}
</if> </if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' ">
and t.inaccount_status = #{inAccountStatus} and t.inaccount_status = #{inAccountStatus}
</if> </if>
<if <if

Loading…
Cancel
Save