修改bug

This commit is contained in:
yangjun 2026-02-25 10:08:02 +08:00
parent cfe4cd08d2
commit ab34c9a471
3 changed files with 13 additions and 7 deletions

View File

@ -68,7 +68,7 @@
,s.create_time ,s.create_time
from sys_depart d from sys_depart d
left join nu_biz_suppliers_org s on d.org_code = s.org_code left join nu_biz_suppliers_org s on d.org_code = s.org_code
where d.del_flag = '0' where d.del_flag = '0' and d.`status` ='1' and iz_history = 'N'
and s.open_id = #{openId} and s.open_id = #{openId}
order by s.create_time desc order by s.create_time desc
</select> </select>

View File

@ -144,7 +144,11 @@ public class WxNoticeServiceImpl extends ServiceImpl<WxNoticeMapper, WxNotice> i
data.put("thing2", wxNotice.getThing2()); // 对应模板中的字段 data.put("thing2", wxNotice.getThing2()); // 对应模板中的字段
data.put("phrase1", wxNotice.getPhrase1()); data.put("phrase1", wxNotice.getPhrase1());
data.put("date3", DateUtils.now()); data.put("date3", DateUtils.now());
System.out.println("模板消息发送数据:" + data);
System.out.println("accessToken" + accessToken);
System.out.println("openId" + openId);
System.out.println("templateId" + templateId);
System.out.println("page" + page);
// 3. 发送模板消息 // 3. 发送模板消息
String resInfo = TemplateMessageSender.sendTemplateMessage(accessToken, openId, templateId, page, data); String resInfo = TemplateMessageSender.sendTemplateMessage(accessToken, openId, templateId, page, data);
if (com.alibaba.cloud.commons.lang.StringUtils.equals(resInfo, "error")) { if (com.alibaba.cloud.commons.lang.StringUtils.equals(resInfo, "error")) {

View File

@ -141,6 +141,8 @@ public class SuppliersMQListener {
} }
nuBizSuppliersOrg.setAuditContent(suppliersInfoMQDto.getApplyContent()); nuBizSuppliersOrg.setAuditContent(suppliersInfoMQDto.getApplyContent());
nuBizSuppliersOrgService.update(nuBizSuppliersOrg, orgUW); nuBizSuppliersOrgService.update(nuBizSuppliersOrg, orgUW);
orgUW.last("limit 1");
NuBizSuppliersOrg nuBizSuppliersOrg2 = nuBizSuppliersOrgService.getOne(orgUW);
if (StringUtils.equals("modifyPass", suppliersInfoMQDto.getStatus())) { if (StringUtils.equals("modifyPass", suppliersInfoMQDto.getStatus())) {
NuBizSuppliersApply apply = new NuBizSuppliersApply(); NuBizSuppliersApply apply = new NuBizSuppliersApply();
@ -178,13 +180,13 @@ public class SuppliersMQListener {
//审核通过 //审核通过
if (StringUtils.equals("modifyPass", suppliersInfoMQDto.getStatus())) { if (StringUtils.equals("modifyPass", suppliersInfoMQDto.getStatus())) {
content1 = "您好,您提交的信息变更已通过"; content1 = "您好,您提交的信息变更已通过";
content2 = "信息变更审核通过"; content2 = "审核通过";
} else if (StringUtils.equals("modifyFail", suppliersInfoMQDto.getStatus())) { } else if (StringUtils.equals("modifyFail", suppliersInfoMQDto.getStatus())) {
content1 = "您好,您提交的信息变更未通过,驳回原因:"+suppliersInfoMQDto.getApplyContent(); content1 = "您好,您提交的信息变更未通过,驳回原因:"+suppliersInfoMQDto.getApplyContent();
content2 = "信息变更审核未通过"; content2 = "审核未通过";
} }
NuWxNoticeEntity nuWxNotice = new NuWxNoticeEntity(); NuWxNoticeEntity nuWxNotice = new NuWxNoticeEntity();
nuWxNotice.setOpenId(nuBizSuppliersOrg.getOpenId()); nuWxNotice.setOpenId(nuBizSuppliersOrg2.getOpenId());
nuWxNotice.setIzRead("N"); nuWxNotice.setIzRead("N");
nuWxNotice.setOrgCode(nuBizSuppliersOrg.getOrgCode()); nuWxNotice.setOrgCode(nuBizSuppliersOrg.getOrgCode());
nuWxNotice.setTitle("供应商信息变更审核"); nuWxNotice.setTitle("供应商信息变更审核");
@ -198,9 +200,9 @@ public class SuppliersMQListener {
wxNoticeApi.addNotice(nuWxNotice); wxNoticeApi.addNotice(nuWxNotice);
WxNoticeEntity wxNotice = new WxNoticeEntity(); WxNoticeEntity wxNotice = new WxNoticeEntity();
wxNotice.setPageRoute("pages/supplierindex/index"); wxNotice.setPageRoute("pages/supplierindex/index");
wxNotice.setThing2("供应商信息变更审核"); wxNotice.setThing2("供应商变更审核");
wxNotice.setPhrase1(content2); wxNotice.setPhrase1(content2);
wxNotice.setLogMainInfo("供应商信息变更审核"); wxNotice.setLogMainInfo("供应商变更审核");
wxNoticeApi.sendWechartMessage_SHENHE(wxNotice, nuWxNotice); wxNoticeApi.sendWechartMessage_SHENHE(wxNotice, nuWxNotice);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();