diff --git a/dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java b/dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java index fec07405..65413185 100644 --- a/dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java +++ b/dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java @@ -130,8 +130,11 @@ public class BaseInvoiceController extends AbstractController { String inAccountStatus = (String)map.get("inAccountStatus"); int curr = (int)map.get("curr"); int size = (int)map.get("size"); + String bzdh = (String) map.get("bzdh"); Map pramsMap = new HashMap<>(25); + pramsMap.put("bzdh", bzdh); + pramsMap.put("inAccountStatus", inAccountStatus); pramsMap.put("qszt", map.get("qszt")); pramsMap.put("wrzfpStart", map.get("wrzfpStart")); pramsMap.put("wrzfpEnd", map.get("wrzfpEnd")); @@ -443,8 +446,12 @@ public class BaseInvoiceController extends AbstractController { String qsr = (String)map.get("qsr"); String company = (String)map.get("company"); String menuId = (String)map.get("menuId"); + String bzdh = (String) map.get("bzdh"); + String inAccountStatus = (String) map.get("inaccountStatus"); Map pramsMap = new HashMap<>(18); + pramsMap.put("bzdh", bzdh); + pramsMap.put("inAccountStatus", inAccountStatus); pramsMap.put("company", company); pramsMap.put("menuId", menuId); pramsMap.put("business", getUserInfo().getBusiness()); @@ -468,7 +475,7 @@ public class BaseInvoiceController extends AbstractController { log.info("accountPeriod:{}",accountPeriod); } // pramsMap.put("accountPeriod", map.get("accountPeriod")); - String inAccountStatus = (String)map.get("inAccountStatus"); +// String inAccountStatus = (String)map.get("inAccountStatus"); if (sfkrz != null) { if (!"99".equals(sfkrz)) { @@ -566,9 +573,9 @@ public class BaseInvoiceController extends AbstractController { if (!StringUtils.isBlank(qsr)) { pramsMap.put("qsr", qsr); } - if (StringUtils.isNotBlank(inAccountStatus)) { - pramsMap.put("inAccountStatus", inAccountStatus); - } +// if (StringUtils.isNotBlank(inAccountStatus)) { +// pramsMap.put("inAccountStatus", inAccountStatus); +// } try { return ResponseEntity .ok(R.ok().put("data", baseInvoiceManualCheckService.selectByManualCheck(pramsMap, curr, size))); diff --git a/dxhy-base/src/main/java/com/dxhy/base/entity/BaseTDxRecordInvoice.java b/dxhy-base/src/main/java/com/dxhy/base/entity/BaseTDxRecordInvoice.java index 856c6a67..c6025ba9 100644 --- a/dxhy-base/src/main/java/com/dxhy/base/entity/BaseTDxRecordInvoice.java +++ b/dxhy-base/src/main/java/com/dxhy/base/entity/BaseTDxRecordInvoice.java @@ -509,4 +509,6 @@ public class BaseTDxRecordInvoice implements Serializable { private String postingTime; //影像号 private String imageId; + //报账单号 + private String bzdh; } diff --git a/dxhy-base/src/main/java/com/dxhy/base/model/BaseFpRzRespVO.java b/dxhy-base/src/main/java/com/dxhy/base/model/BaseFpRzRespVO.java index f3b2f9b6..580ed7c0 100644 --- a/dxhy-base/src/main/java/com/dxhy/base/model/BaseFpRzRespVO.java +++ b/dxhy-base/src/main/java/com/dxhy/base/model/BaseFpRzRespVO.java @@ -203,6 +203,8 @@ public class BaseFpRzRespVO implements Serializable { //影像号 SN private String imageNumber; private String imageId; + //报账单号 + private String bzdh; } diff --git a/dxhy-base/src/main/java/com/dxhy/base/model/BaseSggxCxRespVO.java b/dxhy-base/src/main/java/com/dxhy/base/model/BaseSggxCxRespVO.java index b9e2c0cc..a9f770a5 100644 --- a/dxhy-base/src/main/java/com/dxhy/base/model/BaseSggxCxRespVO.java +++ b/dxhy-base/src/main/java/com/dxhy/base/model/BaseSggxCxRespVO.java @@ -149,4 +149,9 @@ public class BaseSggxCxRespVO { */ private String accountPeriod; + /** + * 报账单号 + */ + private String bzdh; + } diff --git a/dxhy-base/src/main/java/com/dxhy/base/service/fpxxrz/BaseRzFpxxServiceImpl.java b/dxhy-base/src/main/java/com/dxhy/base/service/fpxxrz/BaseRzFpxxServiceImpl.java index 833d2cfd..74333893 100644 --- a/dxhy-base/src/main/java/com/dxhy/base/service/fpxxrz/BaseRzFpxxServiceImpl.java +++ b/dxhy-base/src/main/java/com/dxhy/base/service/fpxxrz/BaseRzFpxxServiceImpl.java @@ -137,6 +137,8 @@ public class BaseRzFpxxServiceImpl extends MpBaseServiceImpl - + + @@ -84,6 +85,12 @@ and t.voucher_number like concat('%',concat(#{voucherNumber},'%')) + + and t.bzdh = #{bzdh} + + + and t.inaccount_status = #{inAccountStatus} + and t.qs_status = #{qszt} @@ -182,9 +189,9 @@ ) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) - - and t.in_account_status = #{inAccountStatus} - + + + and t.sn_voucher_number = #{snVoucherNumber} @@ -332,6 +339,12 @@ and t.voucher_number like concat('%',concat(#{voucherNumber},'%')) + + and t.bzdh = #{bzdh} + + + and t.inaccount_status = #{inAccountStatus} + and t.qs_status = #{qszt} @@ -408,9 +421,9 @@ ) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) - - and t.in_account_status = #{inAccountStatus} - + + + and t.ele_invoice_no = #{eleInvoiceNo} diff --git a/dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml b/dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml index cf7ba4ca..e6bf33f9 100644 --- a/dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml +++ b/dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml @@ -22,11 +22,13 @@ - + + + @@ -91,6 +93,12 @@ and t.qs_status = #{qszt} + + and t.bzdh = #{bzdh} + + + and t.inaccount_status = #{inAccountStatus} + and date_format(t.qs_date,'%Y-%m-%d') between #{qsksrq} and #{qsjsrq} @@ -151,9 +159,6 @@ ) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) - - and t.in_account_status = #{inAccountStatus} - and t.ele_invoice_no = #{eleInvoiceNo} @@ -354,8 +359,7 @@ and t.auth_status in('0','5','6') and t.export_mark = '0' and t.company = #{company} - + and t.invoice_status in ('0','7') and t.invoice_amount>0 and t.tax_amount>=0 @@ -363,8 +367,7 @@ and d.tj_status in('0','3') - + and (t.invoice_status in ('1','2','3','4','8','80') or t.invoice_amount <0 or t.tax_amount <0 or date_format(t.invoice_date,'%Y%m%d') <= c.select_start_date or date_format(t.invoice_date,'%Y%m%d') >= @@ -424,6 +427,12 @@ and t.invoice_source =#{invoiceSource} + + and t.bzdh = #{bzdh} + + + and t.inaccount_status = #{inAccountStatus} + and (t.dept_id is null or t.dept_id='' or t.dept_id='99') @@ -435,6 +444,7 @@ ) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) + @@ -443,9 +453,9 @@ and t.settlement_no like concat(#{settlementNo},'%') - - and t.in_account_status = #{inAccountStatus} - + + + and t.ele_invoice_no = #{eleInvoiceNo} diff --git a/dxhy-core/src/main/java/com/dxhy/core/controller/mailGather/EmailMaintainController.java b/dxhy-core/src/main/java/com/dxhy/core/controller/mailGather/EmailMaintainController.java index 1f882266..a4e1480e 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/controller/mailGather/EmailMaintainController.java +++ b/dxhy-core/src/main/java/com/dxhy/core/controller/mailGather/EmailMaintainController.java @@ -130,6 +130,16 @@ public class EmailMaintainController extends AbstractController { if(maintainVo != null && maintainVo.getId().equals(emailMaintain.getId())){ return ResponseEntity.ok(R.error("邮箱地址已存在!")); } + + String userId = emailMaintain.getUserId(); + + String userName = emailMaintainService.getUserName(userId); + if(StringUtils.isBlank(userName)){ + R data = new R(101, "用户编码在系统中查询不到,请核实!"); + data.put("data", ""); + return ResponseEntity.ok(data); + } + boolean b = emailMaintainService.update(emailMaintain); if(b){ return ResponseEntity.ok(R.ok()); @@ -242,7 +252,11 @@ public class EmailMaintainController extends AbstractController { if (ObjectUtil.isNotEmpty(errorMsgList)) { JSONObject json = new JSONObject(); json.put("datalist", errorMsgList); - return ResponseEntity.ok(R.ok().put("data",Base64.encode(json.toJSONString()))); + + R data = new R(101, "校验信息有误"); + data.put("data", json); + return ResponseEntity.ok(data); + } int i = emailMaintainService.insertBatch(mailList); if(i > 0){ diff --git a/dxhy-core/src/main/java/com/dxhy/core/model/mailGather/MailGatherLogVo.java b/dxhy-core/src/main/java/com/dxhy/core/model/mailGather/MailGatherLogVo.java index 5e8a9a96..a35a3b72 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/model/mailGather/MailGatherLogVo.java +++ b/dxhy-core/src/main/java/com/dxhy/core/model/mailGather/MailGatherLogVo.java @@ -2,6 +2,7 @@ package com.dxhy.core.model.mailGather; import com.dxhy.core.model.CommonDTO; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import lombok.EqualsAndHashCode; @@ -12,6 +13,7 @@ import java.util.Date; public class MailGatherLogVo extends CommonDTO { private String id; + public String xh; //主题 private String subject; private String fromAddress; @@ -24,6 +26,7 @@ public class MailGatherLogVo extends CommonDTO { private String ocrType; private String errorMsg; private String fileName; + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; diff --git a/dxhy-core/src/main/java/com/dxhy/core/service/mailGather/impl/MailGatherLogServiceImpl.java b/dxhy-core/src/main/java/com/dxhy/core/service/mailGather/impl/MailGatherLogServiceImpl.java index 12e63f4f..046f7d0c 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/service/mailGather/impl/MailGatherLogServiceImpl.java +++ b/dxhy-core/src/main/java/com/dxhy/core/service/mailGather/impl/MailGatherLogServiceImpl.java @@ -6,7 +6,9 @@ import com.alibaba.fastjson.JSONObject; import com.dxhy.common.constant.DbConstant; import com.dxhy.common.datasource.config.DynamicContextHolder; import com.dxhy.common.util.UUIDUtils; +import com.dxhy.common.utils.Base64Encoding; import com.dxhy.core.dao.mailGather.MailGatherLogDao; +import com.dxhy.core.model.mailGather.EmailMaintainVo; import com.dxhy.core.model.mailGather.MailGatherLogVo; import com.dxhy.core.service.mailGather.MailGatherLogService; import com.github.pagehelper.PageHelper; @@ -53,6 +55,12 @@ public class MailGatherLogServiceImpl implements MailGatherLogService { int size = (int)pramsMap.get("size"); PageHelper.startPage(curr, size); List emailMaintainVos = mailGatherLogDao.queryAllByLimit(pramsMap); + if(emailMaintainVos !=null && emailMaintainVos.size() > 0) { + for (int i = 0; i < emailMaintainVos.size(); i++) { + MailGatherLogVo mailGatherLogVo = emailMaintainVos.get(i); + mailGatherLogVo.setXh(i + 1 + ""); + } + } PageInfo pageInfo = new PageInfo<>(emailMaintainVos); // 设置记录总数 json.put("total", pageInfo.getTotal()); diff --git a/dxhy-core/src/main/resources/bootstrap-std.yaml b/dxhy-core/src/main/resources/bootstrap-std.yaml index 466beb99..76a3f1d5 100644 --- a/dxhy-core/src/main/resources/bootstrap-std.yaml +++ b/dxhy-core/src/main/resources/bootstrap-std.yaml @@ -4,13 +4,13 @@ spring: nacos: config: # Nacos config 地址 - server-addr: 172.31.36.147:33000 + server-addr: 172.31.36.143:33000 # Nacos config 命名空间,对应配置中的名称(dxhy-jxpt-namespace) - namespace: eb6eab27-62a4-4ccf-8640-b8e91df0a1a6 + namespace: b271ba8e-84d9-4393-88b8-9271aff9465c # Nacos config 分组 group: dxhy-core-group # Nacos config 登录用户名 - username: nacos + username: admin # Nacos config 登录密码 password: Invoice.nacos.!1 # Nacos config 配置文件前缀 @@ -21,7 +21,7 @@ spring: discovery: server-addr: 172.31.36.147:33000 # Nacos config 登录用户名 - username: nacos + username: admin # Nacos config 登录密码 password: Invoice.nacos.!1 - namespace: eb6eab27-62a4-4ccf-8640-b8e91df0a1a6 \ No newline at end of file + namespace: b271ba8e-84d9-4393-88b8-9271aff9465c \ No newline at end of file diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/service/SNPushCheckRecordService.java b/dxhy-erp/src/main/java/com/dxhy/erp/service/SNPushCheckRecordService.java index cadc6110..e106a7a5 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/service/SNPushCheckRecordService.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/service/SNPushCheckRecordService.java @@ -469,17 +469,17 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { snDetailMap.put("specificationModel", detail.getString("ggxh")); snDetailMap.put("unit", detail.getString("jldw")); String quantity = detail.getString("spsl"); - if (quantity.length() > 3) { - int index = quantity.indexOf("."); - quantity = quantity.substring(0, index + 2); - } +// if (quantity.length() > 3) { +// int index = quantity.indexOf("."); +// quantity = quantity.substring(0, index + 2); +// } snDetailMap.put("quantity", quantity); String unitPrice = detail.getString("bhsdj"); - if (unitPrice.length() > 3) { - int index = unitPrice.indexOf("."); - unitPrice = unitPrice.substring(0, index + 3); - } +// if (unitPrice.length() > 3) { +// int index = unitPrice.indexOf("."); +// unitPrice = unitPrice.substring(0, index + 3); +// } snDetailMap.put("unitPrice", unitPrice); diff --git a/dxhy-sign/src/main/java/com/dxhy/sign/entity/QsExcelEntity.java b/dxhy-sign/src/main/java/com/dxhy/sign/entity/QsExcelEntity.java index 4073adf6..5afa2ef8 100644 --- a/dxhy-sign/src/main/java/com/dxhy/sign/entity/QsExcelEntity.java +++ b/dxhy-sign/src/main/java/com/dxhy/sign/entity/QsExcelEntity.java @@ -19,7 +19,7 @@ import java.util.List; @Data -@ColumnWidth(11) +@ColumnWidth(30) @ContentFontStyle(fontHeightInPoints = 10) @HeadFontStyle(fontHeightInPoints = 12,fontName = "等线") @HeadStyle(borderTop = BorderStyleEnum.THIN,borderBottom = BorderStyleEnum.THIN,borderLeft = BorderStyleEnum.THIN, @@ -32,6 +32,7 @@ public class QsExcelEntity { /** * 开票日期 */ + @ExcelProperty("开票日期") private Date invoiceDate; /** diff --git a/dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/FpqsServiceImpl.java b/dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/FpqsServiceImpl.java index a24970b6..150ba6d1 100644 --- a/dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/FpqsServiceImpl.java +++ b/dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/FpqsServiceImpl.java @@ -275,7 +275,10 @@ public class FpqsServiceImpl extends MpBaseServiceImpl {}0",note); + if(pramsMap.get("eleInvoiceNo") != null){ + note = null; + } // uuid = 发票代码+发票号码 String uuid = pramsMap.get("invoiceCode") + pramsMap.get("invoiceNo"); // 2、查询扫描表是否有数据,有(重复扫描)且签收结果为成功则return,下一个 @@ -342,7 +345,7 @@ public class FpqsServiceImpl extends MpBaseServiceImpl - - and t.company = #{company} - - and t.qs_status = '0' - and t.source_system='0' + + + + +