From 5e926cfbc522f35b111be341062420c95316d069 Mon Sep 17 00:00:00 2001 From: luozukai Date: Wed, 10 Jul 2019 14:20:53 +0800 Subject: [PATCH 1/6] =?UTF-8?q?[][=E4=BF=AE=E6=94=B9][=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=9A=E6=80=81=E5=88=86=E6=9E=90=E5=88=97=E8=A1=A8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/iformall/service/impl/WxFlowServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java index 94d5af5c5..59d1cd53a 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -241,6 +241,7 @@ public class WxFlowServiceImpl implements WxFlowService { if(EnumRentContractAppStatus.FINISH.getCode().intValue() == applyStatus.intValue()) { //作废 wxCoupon.setStatus(EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode()); + wxCouponService.saveOrUpdate(wxCoupon); } } wxCoupon.setApprovalType(operateType); From f9f07e439323ae750d7a69ab827af36cd95f1a4b Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 10 Jul 2019 14:15:42 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E3=80=90=E7=A7=9F=E9=87=91=E8=B4=A6?= =?UTF-8?q?=E5=8D=95][=E4=BF=AE=E6=94=B9][=E6=9F=A5=E8=AF=A2=E5=95=86?= =?UTF-8?q?=E6=88=B7=E5=90=8D]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mallinkService/src/main/resources/mapper/WxBillRentMapper.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml b/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml index d26360059..a5d822835 100644 --- a/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml @@ -113,7 +113,9 @@ and d.`status` = #{depositStatus} and br.`id` = #{id} and br.`merchant_id` = #{merchantId} - and m.`name` like concat('%',#{merchantName},'%') + and r.merchant_name like + concat('%',#{merchantName},'%') + and br.`is_del` = #{isDel} and br.`rent_contract_id` = #{rentContractId} and br.`pay_way` = #{payWay} From 98d38c5d75c8eae4cb0228f963c910b7e017919f Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 10 Jul 2019 14:22:38 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E3=80=90=E5=88=B8=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=AE=9E=E4=BD=93][=E4=BF=AE=E6=94=B9][cUserPhone=E4=B8=8EbUse?= =?UTF-8?q?rName=E6=B7=BB=E5=8A=A0getter=E5=92=8Csetter]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/domain/vo/WxCouponOrderBVo.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java b/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java index 57216490b..31236e152 100644 --- a/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java +++ b/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java @@ -53,6 +53,14 @@ public class WxCouponOrderBVo extends WxCouponOrder{ this.cUserPhone = cUserPhone; } + public String getcuserPhone() { + return cUserPhone; + } + + public void setcuserPhone(String cUserPhone) { + this.cUserPhone = cUserPhone; + } + @Excel(name = "会员手机号", width = 20, orderNum = "13") @io.swagger.annotations.ApiModelProperty(value="c用户绑定的手机号",name="cUserPhone") private String cUserPhone; @@ -108,6 +116,22 @@ public class WxCouponOrderBVo extends WxCouponOrder{ @io.swagger.annotations.ApiModelProperty(value = "补贴类型", name = "subsidyType") private Integer subsidyType; + public String getbUserName() { + return bUserName; + } + + public void setbUserName(String bUserName) { + this.bUserName = bUserName; + } + + public String getbuserName() { + return bUserName; + } + + public void setbuserName(String bUserName) { + this.bUserName = bUserName; + } + @io.swagger.annotations.ApiModelProperty(value="b端用户姓名",name="bUserName") private String bUserName; @io.swagger.annotations.ApiModelProperty(value="b端用户手机号",name="bUserPhone") From 6badd79bb570ae7beb1fb95ff243ca6e2c243f61 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 10 Jul 2019 14:36:32 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E3=80=90BUG][=E4=BF=AE=E6=94=B9][=E5=8D=A1?= =?UTF-8?q?=E6=B6=88=E8=B4=B9=E8=AE=A2=E5=8D=95=E5=AF=BC=E5=87=BA=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=B8=8E=E9=A1=B5=E9=9D=A2=E7=AD=9B=E9=80=89=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mallinkService/src/main/resources/mapper/WxCardSpendMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mallinkService/src/main/resources/mapper/WxCardSpendMapper.xml b/mallinkService/src/main/resources/mapper/WxCardSpendMapper.xml index 6f85476d5..726d958a5 100644 --- a/mallinkService/src/main/resources/mapper/WxCardSpendMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCardSpendMapper.xml @@ -258,7 +258,7 @@ and ms.`status` = #{status} - + and ou.`phone` = #{ouPhone} From ff54fb50cd256818523ef8438ad7d8ac0c9c5bbc Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Wed, 10 Jul 2019 15:58:23 +0800 Subject: [PATCH 5/6] =?UTF-8?q?[=E6=B6=88=E6=81=AF][=E4=BF=AE=E6=94=B9]:?= =?UTF-8?q?=E9=99=90=E5=88=B6=E7=B1=BB=E5=9E=8B=E9=95=BF=E5=BA=A6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V201907101530__CHANGE_WX_MSG_LIMIT.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mallinkAdmin/src/main/resources/db/migration/V201907101530__CHANGE_WX_MSG_LIMIT.sql diff --git a/mallinkAdmin/src/main/resources/db/migration/V201907101530__CHANGE_WX_MSG_LIMIT.sql b/mallinkAdmin/src/main/resources/db/migration/V201907101530__CHANGE_WX_MSG_LIMIT.sql new file mode 100644 index 000000000..99b4ccce8 --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V201907101530__CHANGE_WX_MSG_LIMIT.sql @@ -0,0 +1,2 @@ +alter table `wx_msg_limit` +change column `type` `type` tinyint(3) DEFAULT '0' COMMENT '1: 短信-验证码(24小时10条)2:短信-营销(24小时3条) 10:prepay_id(7天内3次), 12:form_id(7天内1次), 13.open_id for 小程序统一消息限制(2天内1次),14.open_id for 公众号模板消息限制(2天内1次)'; From 4335bdda1757e39900054cb833f42a0569cb8ccc Mon Sep 17 00:00:00 2001 From: luozukai Date: Wed, 10 Jul 2019 16:25:42 +0800 Subject: [PATCH 6/6] =?UTF-8?q?[][=E4=BF=AE=E6=94=B9][=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=9A=E6=80=81=E5=88=86=E6=9E=90=E5=88=97=E8=A1=A8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/WxBusinessMapper.xml | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxBusinessMapper.xml b/mallinkService/src/main/resources/mapper/WxBusinessMapper.xml index a4b80a443..bbc917743 100644 --- a/mallinkService/src/main/resources/mapper/WxBusinessMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBusinessMapper.xml @@ -86,62 +86,62 @@ round( (select if(sum(mtd.trade_amt) is null,0,sum(mtd.trade_amt)) from wx_merchant m - left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1) + left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) /100,2) volume, round( (select if(sum(mtd.trade_amt) is null,0,sum(mtd.trade_amt)) from wx_merchant m - left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1) + left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) / (select if(sum(ws.operation_area) is null,0,sum(ws.operation_area)) from wx_merchant m left join wx_merchant_shop mtd on mtd.merchant_id = m.id left join wx_shop ws on(mtd.shop_id = ws.id) - where m.business_id = b.id and m.tenant_id=#{tenantId} and m.status = 1) + where m.business_id = b.id and m.tenant_id=#{tenantId} and m.status = 1 and m.is_del = 0 ) /100,2) sale, round( (select (select if(sum(br.receive_pay) is null,0,sum(br.receive_pay)) receive_pay from wx_merchant m - left join wx_bill_rent br on(br.merchant_id=m.id) where m.business_id = b.id and m.tenant_id=#{tenantId} and br.receive_date between #{startdate} and #{enddate} and m.status = 1) + left join wx_bill_rent br on(br.merchant_id=m.id) where m.business_id = b.id and m.tenant_id=#{tenantId} and br.receive_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) + (select if(sum(br.receive_pay) is null,0,sum(br.receive_pay)) receive_pay from wx_merchant m - left join wx_bill_property br on(br.merchant_id=m.id) where m.business_id = b.id and m.tenant_id=#{tenantId} and br.receive_date between #{startdate} and #{enddate} and m.status = 1) + left join wx_bill_property br on(br.merchant_id=m.id) where m.business_id = b.id and m.tenant_id=#{tenantId} and br.receive_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) from dual) / (select if(sum(ws.operation_area) is null,0,sum(ws.operation_area)) from wx_merchant m left join wx_merchant_shop mtd on mtd.merchant_id = m.id left join wx_shop ws on(mtd.shop_id = ws.id) - where m.business_id = b.id and m.tenant_id=#{tenantId} and m.status = 1) + where m.business_id = b.id and m.tenant_id=#{tenantId} and m.status = 1 and m.is_del = 0 ) /100,2) rent, round( round( (select if(sum(mtd.trade_amt) is null,0,sum(mtd.trade_amt)) from wx_merchant m - left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1) + left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) / (select if(sum(ws.operation_area) is null,0,sum(ws.operation_area)) from wx_merchant m left join wx_merchant_shop mtd on mtd.merchant_id = m.id left join wx_shop ws on(mtd.shop_id = ws.id) - where m.business_id = b.id and m.tenant_id=#{tenantId} and m.status = 1) + where m.business_id = b.id and m.tenant_id=#{tenantId} and m.status = 1 and m.is_del = 0 ) /100,2) / round( (select (select if(sum(br.receive_pay) is null,0,sum(br.receive_pay)) receive_pay from wx_merchant m - left join wx_bill_rent br on(br.merchant_id=m.id) where m.business_id = b.id and m.tenant_id=#{tenantId} and br.receive_date between #{startdate} and #{enddate} and m.status = 1) + left join wx_bill_rent br on(br.merchant_id=m.id) where m.business_id = b.id and m.tenant_id=#{tenantId} and br.receive_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) + (select if(sum(br.receive_pay) is null,0,sum(br.receive_pay)) receive_pay from wx_merchant m - left join wx_bill_property br on(br.merchant_id=m.id) where m.business_id = b.id and m.tenant_id=#{tenantId} and br.receive_date between #{startdate} and #{enddate} and m.status = 1) + left join wx_bill_property br on(br.merchant_id=m.id) where m.business_id = b.id and m.tenant_id=#{tenantId} and br.receive_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) from dual) / (select if(sum(ws.operation_area) is null,0,sum(ws.operation_area)) from wx_merchant m left join wx_merchant_shop mtd on mtd.merchant_id = m.id left join wx_shop ws on(mtd.shop_id = ws.id) - where m.business_id = b.id and m.status = 1) + where m.business_id = b.id and m.status = 1 and m.is_del = 0 ) /100,2) ,4) rentSaleRate, @@ -149,10 +149,10 @@ round( (select if(sum(mtd.trade_amt) is null,0,sum(mtd.trade_amt)) from wx_merchant m - left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1) / - (select count(mtd.id) + left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) / + (select sum(mtd.trade_count) from wx_merchant m - left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.create_date between #{startdate} and #{enddate} and m.status = 1) + left join wx_merchant_trade_daily mtd on mtd.merchant_id = m.id where m.business_id = b.id and m.tenant_id=#{tenantId} and mtd.report_date between #{startdate} and #{enddate} and m.status = 1 and m.is_del = 0 ) /100,2) comPrice from wx_business b @@ -169,7 +169,7 @@ from wx_merchant m left join wx_merchant_shop mtd on mtd.merchant_id = m.id left join wx_shop ws on(mtd.shop_id = ws.id) - where m.status = 1 and m.business_id = #{id} and m.tenant_id=#{tenantId}) + where m.status = 1 and m.is_del = 0 and m.business_id = #{id} and m.tenant_id=#{tenantId}) /100,2) saleRate, round( @@ -184,7 +184,7 @@ from wx_merchant m left join wx_merchant_shop mtd on mtd.merchant_id = m.id left join wx_shop ws on(mtd.shop_id = ws.id) - where m.status = 1 and m.business_id = #{id} and m.tenant_id=#{tenantId}) + where m.status = 1 and m.is_del = 0 and m.business_id = #{id} and m.tenant_id=#{tenantId}) /100,2) ) ,2) devoteRate @@ -194,7 +194,7 @@ left join wx_merchant_shop wmt on wmt.merchant_id = m.id left join wx_shop ws on(wmt.shop_id = ws.id) where m.business_id=#{id} and m.tenant_id=#{tenantId} - and m.status = 1 + and m.status = 1 and m.is_del = 0 and mtd.create_date between #{startdate} and #{enddate} group by m.id order by devoteRate desc