From f467023ba080b4c83fbbc7d348ca3f619576542d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Fri, 19 Jan 2024 14:28:32 +0800 Subject: [PATCH 1/9] bug --- .../EventMarketing/activeDiscount/index.vue | 3 ++ .../EventMarketing/activeFullminus/index.vue | 3 ++ .../EventMarketing/cardFavorable/index.vue | 37 ++++++++++++++----- .../impl/ActiveExchangeServiceImpl.java | 4 +- .../CardFavorableRecordController.java | 2 +- .../mapper/xml/CardFavorableRecordMapper.xml | 2 +- fuintCashierWeb/src/views/details/index.vue | 11 ++++-- .../details/userInfoOrder/couponList.vue | 28 ++++++++------ .../details/userInfoOrder/pointsRecord.vue | 2 +- 9 files changed, 63 insertions(+), 29 deletions(-) diff --git a/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue b/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue index a6dce5e34..5a1eb701f 100644 --- a/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue @@ -278,6 +278,9 @@ export default { isonline:[ { required: true, message: '不能为空', trigger: 'change' } ], + activeDiscountChildList:[ + { required: true, message: '不能为空', trigger: 'change' } + ], } }; }, diff --git a/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue b/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue index d39de6699..70239e74e 100644 --- a/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue @@ -281,6 +281,9 @@ export default { isonline:[ { required: true, message: '不能为空', trigger: 'change' } ], + activeDiscountChildList:[ + { required: true, message: '不能为空', trigger: 'change' } + ], } }; }, diff --git a/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue b/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue index 9ef4a8c21..84b628326 100644 --- a/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue +++ b/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue @@ -144,8 +144,10 @@ + + @@ -165,15 +167,28 @@ {{item.oilType}}{{item.oilName}} - - - - - - - - - +
+ + + + + +
+
+ + + + + +
+
+ + + + + +
+ @@ -711,5 +726,9 @@ export default { align-items: center; } + ._k{ + box-sizing: border-box; + width: 300px; + } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java index 779383f55..c1a42a4a0 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java @@ -485,7 +485,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { } //折扣+优惠券 for (ActiveDiscountPayVO activeDiscountPayVO : activeDiscountVOList) { - if (activeDiscountPayVO.getParticipationCondition().equals("1")){ + if (!activeDiscountPayVO.getParticipationCondition().equals("1")){ for (CardFavorableRecordVO cardFavorableRecordVO : canUserCardFavorableList) { if(cardFavorableRecordVO.getExclusiveFunction().equals("2") && !cardFavorableRecordVO.getExclusiveFunction().equals("0")){ ActiveDiscountPayVO activeDiscountPayVO1 = new ActiveDiscountPayVO(); @@ -525,7 +525,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { } //满减+优惠券 for (ActiveDiscountPayVO activeDiscountPayVO : activeFuletVOList) { - if (activeDiscountPayVO.getParticipationCondition().equals("1")){ + if (!activeDiscountPayVO.getParticipationCondition().equals("1")){ for (CardFavorableRecordVO cardFavorableRecordVO : canUserCardFavorableList) { if(cardFavorableRecordVO.getType().equals("2") && !cardFavorableRecordVO.getExclusiveFunction().equals("0")){ ActiveDiscountPayVO activeDiscountPayVO1 = new ActiveDiscountPayVO(); diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java index 88c4011b0..a8a3f11df 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java @@ -57,7 +57,7 @@ public class CardFavorableRecordController extends BaseController { @GetMapping("getCardFavorableList") public ResponseObject getCardFavorableList(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo, @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize, - @Param("cardFuelDiesel") CardFavorableRecord cardFavorableRecord) { + @Param("cardFavorableRecord") CardFavorableRecord cardFavorableRecord) { Page page = new Page(pageNo, pageSize); return getSuccessResult(this.cardFavorableRecordService.getCardFavorableList(page,cardFavorableRecord)); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml index 407ec9bec..8764d558e 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml @@ -43,7 +43,7 @@ left join mt_store ms on ms.id = cfr.store_id - and cfr.store_id = #{cardFavorableRecord.storeId} + and cf.store_id = #{cardFavorableRecord.storeId} and cfr.mt_user_id = #{cardFavorableRecord.mtUserId} diff --git a/fuintCashierWeb/src/views/details/index.vue b/fuintCashierWeb/src/views/details/index.vue index 8f835bba4..bdd54c268 100644 --- a/fuintCashierWeb/src/views/details/index.vue +++ b/fuintCashierWeb/src/views/details/index.vue @@ -119,8 +119,8 @@ - - + @@ -1690,7 +1690,10 @@ export default { height: 100%; background: #f6f8f9; } +._l{ + +} .left { width: 20%; display: table-cell; diff --git a/fuintCashierWeb/src/views/details/userInfoOrder/couponList.vue b/fuintCashierWeb/src/views/details/userInfoOrder/couponList.vue index 35ee17d52..1961508ee 100644 --- a/fuintCashierWeb/src/views/details/userInfoOrder/couponList.vue +++ b/fuintCashierWeb/src/views/details/userInfoOrder/couponList.vue @@ -76,9 +76,9 @@ export default { } }, created() { - // this.userId = this.pUserId; - this.userId = this.$route.query.id; - + this.userId = this.pUserId; + // this.userId = this.$route.query.id; + console.log( "111111",this.userId) this.getList() this.getOilName() }, @@ -86,14 +86,18 @@ export default { getOilNames(list,oilIds){ let name = ""; let oilNames = [] - let oilId = oilIds.split(",") - list.forEach(item => { - oilId.forEach(i => { - if (item.oilName == i){ - oilNames.push(item.oilNames) - } + if(oilIds){ + let oilId = oilIds.split(",") + list.forEach(item => { + oilId.forEach(i => { + if (item.oilName == i){ + oilNames.push(item.oilNames) + } + }) }) - }) + } + + let arr = [] for (let i = 0;i{ if (res.code == 200) { + this.list = res.data.records this.total = res.data.total this.loading = false + } }) }, diff --git a/fuintCashierWeb/src/views/details/userInfoOrder/pointsRecord.vue b/fuintCashierWeb/src/views/details/userInfoOrder/pointsRecord.vue index dc046061d..1797b6490 100644 --- a/fuintCashierWeb/src/views/details/userInfoOrder/pointsRecord.vue +++ b/fuintCashierWeb/src/views/details/userInfoOrder/pointsRecord.vue @@ -45,7 +45,7 @@ export default { created() { // this.userId = this.pUserId; this.userId = this.$route.query.id; - + console.log('1212',this.userId) this.getList() }, methods:{ From 5c4922d6566b3c163fe9d0a42daef85a39ee99b0 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Fri, 19 Jan 2024 14:54:59 +0800 Subject: [PATCH 2/9] bug --- .../src/views/member/userInfoOrder/growthValueRecord.vue | 3 ++- .../src/views/member/userInfoOrder/refuelMoneyRecord.vue | 3 ++- .../service/impl/ActiveExchangeServiceImpl.java | 2 +- .../userManager/service/impl/LJUserGradeServiceImpl.java | 6 +++--- .../module/AlipayApi/service/impl/AlipayServiceImpl1.java | 6 ++---- gasStation-uni/pages/refuel/refuel.vue | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/fuintAdmin/src/views/member/userInfoOrder/growthValueRecord.vue b/fuintAdmin/src/views/member/userInfoOrder/growthValueRecord.vue index 9a282f24d..b65e0c6d8 100644 --- a/fuintAdmin/src/views/member/userInfoOrder/growthValueRecord.vue +++ b/fuintAdmin/src/views/member/userInfoOrder/growthValueRecord.vue @@ -34,7 +34,8 @@ export default { } }, created() { - this.userId = this.pUserId; + // this.userId = this.pUserId; + this.userId = this.$route.query.id; }, methods:{ getList(){ diff --git a/fuintAdmin/src/views/member/userInfoOrder/refuelMoneyRecord.vue b/fuintAdmin/src/views/member/userInfoOrder/refuelMoneyRecord.vue index 1b87e17cf..d976112ec 100644 --- a/fuintAdmin/src/views/member/userInfoOrder/refuelMoneyRecord.vue +++ b/fuintAdmin/src/views/member/userInfoOrder/refuelMoneyRecord.vue @@ -35,7 +35,8 @@ export default { } }, created() { - this.userId = this.pUserId; + // this.userId = this.pUserId; + this.userId = this.$route.query.id; }, methods:{ getList(){ diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java index c1a42a4a0..388d94b4b 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java @@ -637,7 +637,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { BigDecimal bigDecimal1 = BigDecimal.valueOf(oilPriceById); String oilTypebyId = oilNameMapper.getOilTypebyId(oilId); - String gradeId = ljUserGradeMapper.selectByUserId(paymentActiveDTO.getStoreId(), userId); + String gradeId = paymentActiveDTO.getMtUserLevel().toString(); if (StringUtils.isNotEmpty(gradeId)){ LJUserGrade ljUserGrade = ljUserGradeMapper.selectAllByGradeId(gradeId); if (ObjectUtils.isNotEmpty(ljUserGrade)){ diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java index 3631e9017..72b2f1dfc 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java @@ -218,15 +218,15 @@ public class LJUserGradeServiceImpl extends ServiceImpl ljUserGrades = this.selectUserGradeByChainStoreId(store.getChainStoreId()); for (LJUserGrade ljUserGrade : ljUserGrades) { - if (ljUserGrade.getGrade().equals(userGrade.getGrade()) && ljUserGrade.getId()!=userGrade.getId()){ + if (ljUserGrade.getGrade().equals(userGrade.getGrade()) && !ljUserGrade.getId().equals(userGrade.getId())){ row = 2; flag = true; } - if (ljUserGrade.getName().equals(userGrade.getName()) && ljUserGrade.getId()!=userGrade.getId()){ + if (ljUserGrade.getName().equals(userGrade.getName()) && !ljUserGrade.getId().equals(userGrade.getId())){ row = 3; flag = true; } - if (ljUserGrade.getGrowthValue().equals(userGrade.getGrowthValue()) && ljUserGrade.getId()!=userGrade.getId()){ + if (ljUserGrade.getGrowthValue().equals(userGrade.getGrowthValue()) && !ljUserGrade.getId().equals(userGrade.getId())){ row = 4; flag = true; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/module/AlipayApi/service/impl/AlipayServiceImpl1.java b/fuintBackend/fuint-application/src/main/java/com/fuint/module/AlipayApi/service/impl/AlipayServiceImpl1.java index 6dfa53e59..31e10c78d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/module/AlipayApi/service/impl/AlipayServiceImpl1.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/module/AlipayApi/service/impl/AlipayServiceImpl1.java @@ -73,8 +73,7 @@ public class AlipayServiceImpl1 implements AlipayService1 { //1. 获取验签和解密所需要的参数 Map openapiResult = JSON.parseObject(encryptedData, - new TypeReference>() { - }, Feature.OrderedField); + new TypeReference>() {}, Feature.OrderedField); String signType = "RSA2"; String charset = "UTF-8"; String encryptType = "AES"; @@ -90,8 +89,7 @@ public class AlipayServiceImpl1 implements AlipayService1 { // String signVeriKey = "你的小程序对应的支付宝公钥(为扩展考虑建议用appId+signType做密钥存储隔离)"; String signVeriKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnwDxxSNpBKL8xjtU3leNBy9mIOMYOr0WgxGbCxTMfhUPka9nr8Hbt0GN+7ylNBmxCYvW8kmge4dCOLUPqseM9+HyF9R1NrWBB3zQPVqnD0mKCYr9cEgtx6/eU7oIK1FqAl0G+jNIT3IKWMSXEX09yPKJWS6zk7+FRzOzn11vShTFjmrqWdrisJgRsQ54PHhPkQz7xFojDRqIunlpICWUVA8GwUg02hm5ZEhxpMHEWoJZ6Dj1wPH2Vh4CpIT/mjtD+SvssCpT0/XOEDPajcMRfgoV8fyyN0JNQDVZdMZgSO4aRHQqhC3X5CBXSuv40hHnwjcDjsPcbVav5BtaPp3wPQIDAQAB"; // String decryptKey = "你的小程序对应的加解密密钥(为扩展考虑建议用appId+encryptType做密钥存储隔离)" - String decryptKey = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCJJM2nlUCidns6anNtGUiCL+J83kNL1nrr6hNktHkrX9bhR8LiBU3qBX+MkGDY4snlbdz+anGWu8YkcMlfBlAr82AsdIS9UTHh3lgsIAZTBZHgzZrxn7vwHfHI6Kw7uGZJbZ320JEG3s0KyvGiW0eqGuWI4BW+sD7b6JoLtNfBq+yF9ObOcs76rNCWz+04BmhCH7i6d8arK8NKgEiI9EjBThGjLRDFK1ryacKpz4UVvIXgxEW5w0MTjo/Q7gp2VLpwE/4jc8QfDFwmGU75L+nhK0rr1l0wwSo7svWFAXvberzMCGyuuLomuh2ldDfERJbIjg/qU66gx0EML1tgpVtFAgMBAAECggEARTArDJuwswXBH3Rq7SRvPza3NbXQD6eR9gjuZcTiyG4ecyMH/40bhK/nbFu+cEzh/HxTnIrI6Xmr+eBoxybhNXsgDu1ttjELUF8i7oftiN7rfJVd0P58CySgQXKYybw65lqF8enA8M1gdkxyYS1Z10igelBKyBwUak9LwBIpM0wrPIFrLhoxIEJC6QJ8EDnm6lKbytvcCa2mMZmtWs8oFxNA/SLRWtdEgHk4hslQVqq4R8B/xUy9Cu4kjdnVMHG2MqFXOiTas3gyKZLGN1ACBfpxxtyw0RAfX294ChV4SIvp10s1VqBFudcQeXeV5ph0NXP1eNt/8o3HIu0vjc0jAQKBgQD5ZtOR19M5vAcxJykh5u01CPdfz2LztqdinCpkBIpFviceW/k1euQFaWbOKdYFUrPnuLgX7Ds6dhSrkoL1+1RiVKUR6AtqIMa4fZJIMJWEPNNYWl8s6u6j11Dkd0B10g5+KV/kKLSlwFuBQnDyHw1ND+WKHqj9vkkzimzfcwedBQKBgQCMxao2IKX8CNjXDuryGkmXac0wxql0nN8AFHjCQGm16GPwlp805nAwsHKfJK45ACeixnWH9Cn6sje3yOUpCw6KG4OougRkrQEkQpoPVrZuXEcZ4j4Wg64VgW9tUAVH/WOV0VDnOBpsM8mbKsLLglb1H9Bx7813IX1pmhm93a0ZQQKBgD6U48/75T/eg7t8xSCBrtIZDuHWy1C2a6gd4bE5Rm0buvsuPwmBbchB248uBktNpmEmA+PU3kPcL3GiEQSibVlDPiyRGpQl51eSAuvkbRBCpxHLk4hU507rj5vUpLMr44Ea5rn80N+qtgtoXakTy6WjsIiJCwSpA/tP5+PmHGn1AoGASY/VhZmEA3OAFMnX3pH8GOKR9kYqMST0p28LN78/Pm7lIskjAxrUT601CJK7dE/vZnE848Gk2judQC38CnmbrHH6WAZ020NI0HD5XsCabotMIGuItG01YEmWN9JUIC16h8Ss+Vbo/9gEJ1CuIHjJBikM3S1J+lIG3lNH1l7r4MECgYEA2eAV0x55cmjC6VIMk3EAVUFbJ1LY1U9irmI6B5e7k/OVcdRksJfMRJwcquYVSfAk4hDrl7x0Qy36XELGvMe/hx07HxeAOXON8gL1b3UHP1zxvXb90YLHseHn9lssABsXS6Enyv3nrzqUi/uzBvpdDE2SRVS6nUr7Yyui6Yl+UPA=" - ; + String decryptKey = "5k9tQMrXq1JEpVucLwvO7A=="; //如果是加密的报文则需要在密文的前后添加双引号 if (isDataEncrypted) { signContent = "\"" + signContent + "\""; diff --git a/gasStation-uni/pages/refuel/refuel.vue b/gasStation-uni/pages/refuel/refuel.vue index c5288b8ec..134a55d47 100644 --- a/gasStation-uni/pages/refuel/refuel.vue +++ b/gasStation-uni/pages/refuel/refuel.vue @@ -121,7 +121,7 @@ return { appltType:uni.getStorageSync("appltType"), value: '', - liters:"", + liters:0, show: false, pic: 0, hindex: 0, From 6a7af98bec24c49fdd9bf0e1e647b67a28eb4482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Fri, 19 Jan 2024 15:36:45 +0800 Subject: [PATCH 3/9] bug --- .../impl/ActiveExchangeServiceImpl.java | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java index 388d94b4b..ff79d20e2 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java @@ -647,7 +647,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { }else if (ljUserGrade.getGasolineDiscount().equals("每升优惠")){ String gasolineRule = ljUserGrade.getGasolineRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); - for (JSONObject jsonObject : jsonObjects) { + JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule3"))).get(); Integer gasolineRule1 = jsonObject.getInteger("gasolineRule1"); BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ @@ -658,11 +658,10 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { BigDecimal multiply = divide.multiply(bigDecimal2); paymentActiveVO.setMemberFavorableAmount(multiply); } - } }else { String gasolineRule = ljUserGrade.getGasolineRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); - for (JSONObject jsonObject : jsonObjects) { + JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule2"))).get(); Integer gasolineRule1 = jsonObject.getInteger("gasolineRule1"); BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ @@ -671,7 +670,6 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { BigDecimal bigDecimal2 = BigDecimal.valueOf(gasolineRule3); paymentActiveVO.setMemberFavorableAmount(bigDecimal2); } - } } } if (oilTypebyId.equals("柴油")){ @@ -680,7 +678,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { }else if (ljUserGrade.getGasolineDiscount().equals("每升优惠")){ String gasolineRule = ljUserGrade.getDieselRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); - for (JSONObject jsonObject : jsonObjects) { + JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule3"))).get(); Integer gasolineRule1 = jsonObject.getInteger("dieselRule1"); BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ @@ -691,11 +689,10 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { BigDecimal multiply = divide.multiply(bigDecimal2); paymentActiveVO.setMemberFavorableAmount(multiply); } - } }else { String gasolineRule = ljUserGrade.getDieselRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); - for (JSONObject jsonObject : jsonObjects) { + JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule2"))).get(); Integer gasolineRule1 = jsonObject.getInteger("dieselRule1"); BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ @@ -704,7 +701,6 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { BigDecimal bigDecimal2 = BigDecimal.valueOf(gasolineRule3); paymentActiveVO.setMemberFavorableAmount(bigDecimal2); } - } } } @@ -714,7 +710,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { }else if (ljUserGrade.getGasolineDiscount().equals("每升优惠")){ String gasolineRule = ljUserGrade.getNaturalGasRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); - for (JSONObject jsonObject : jsonObjects) { + JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule3"))).get(); Integer gasolineRule1 = jsonObject.getInteger("naturalGas1"); BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ @@ -725,11 +721,10 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { BigDecimal multiply = divide.multiply(bigDecimal2); paymentActiveVO.setMemberFavorableAmount(multiply); } - } }else { String gasolineRule = ljUserGrade.getGasolineRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); - for (JSONObject jsonObject : jsonObjects) { + JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule2"))).get(); Integer gasolineRule1 = jsonObject.getInteger("naturalGas1"); BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ @@ -738,11 +733,8 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { BigDecimal bigDecimal2 = BigDecimal.valueOf(gasolineRule3); paymentActiveVO.setMemberFavorableAmount(bigDecimal2); } - } } - } - } } return paymentActiveVO; From 974264984f4382252465686dd1ee0735435a51ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Fri, 19 Jan 2024 16:02:17 +0800 Subject: [PATCH 4/9] bug --- .../impl/ActiveExchangeServiceImpl.java | 31 +++++++------------ 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java index ff79d20e2..14f15b3ae 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java @@ -648,23 +648,20 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { String gasolineRule = ljUserGrade.getGasolineRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule3"))).get(); - Integer gasolineRule1 = jsonObject.getInteger("gasolineRule1"); - BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); + BigDecimal bigDecimal = jsonObject.getBigDecimal("gasolineRule1"); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ //升数 BigDecimal divide = paymentActiveDTO.getAmount().divide(bigDecimal1,2,RoundingMode.HALF_UP); - Integer gasolineRule3 = jsonObject.getInteger("gasolineRule3"); - BigDecimal bigDecimal2 = BigDecimal.valueOf(gasolineRule3); - BigDecimal multiply = divide.multiply(bigDecimal2); + BigDecimal gasolineRule3 = jsonObject.getBigDecimal("gasolineRule3"); + BigDecimal multiply = divide.multiply(gasolineRule3); paymentActiveVO.setMemberFavorableAmount(multiply); } }else { String gasolineRule = ljUserGrade.getGasolineRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule2"))).get(); - Integer gasolineRule1 = jsonObject.getInteger("gasolineRule1"); - BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); - if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ + BigDecimal gasolineRule1 = jsonObject.getBigDecimal("gasolineRule1"); + if (paymentActiveDTO.getAmount().compareTo(gasolineRule1)>=0){ //升数 Integer gasolineRule3 = jsonObject.getInteger("gasolineRule2"); BigDecimal bigDecimal2 = BigDecimal.valueOf(gasolineRule3); @@ -679,13 +676,11 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { String gasolineRule = ljUserGrade.getDieselRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule3"))).get(); - Integer gasolineRule1 = jsonObject.getInteger("dieselRule1"); - BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); + BigDecimal bigDecimal =jsonObject.getBigDecimal("dieselRule1"); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ //升数 BigDecimal divide = paymentActiveDTO.getAmount().divide(bigDecimal1,2,RoundingMode.HALF_UP); - Integer gasolineRule3 = jsonObject.getInteger("dieselRule3"); - BigDecimal bigDecimal2 = BigDecimal.valueOf(gasolineRule3); + BigDecimal bigDecimal2 = jsonObject.getBigDecimal("dieselRule3"); BigDecimal multiply = divide.multiply(bigDecimal2); paymentActiveVO.setMemberFavorableAmount(multiply); } @@ -693,8 +688,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { String gasolineRule = ljUserGrade.getDieselRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule2"))).get(); - Integer gasolineRule1 = jsonObject.getInteger("dieselRule1"); - BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); + BigDecimal bigDecimal = jsonObject.getBigDecimal("dieselRule1"); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ //升数 Integer gasolineRule3 = jsonObject.getInteger("dieselRule2"); @@ -711,13 +705,11 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { String gasolineRule = ljUserGrade.getNaturalGasRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule3"))).get(); - Integer gasolineRule1 = jsonObject.getInteger("naturalGas1"); - BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); + BigDecimal bigDecimal = jsonObject.getBigDecimal("naturalGas1"); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ //升数 BigDecimal divide = paymentActiveDTO.getAmount().divide(bigDecimal1,2,RoundingMode.HALF_UP); - Integer gasolineRule3 = jsonObject.getInteger("naturalGas3"); - BigDecimal bigDecimal2 = BigDecimal.valueOf(gasolineRule3); + BigDecimal bigDecimal2 = jsonObject.getBigDecimal("naturalGas3"); BigDecimal multiply = divide.multiply(bigDecimal2); paymentActiveVO.setMemberFavorableAmount(multiply); } @@ -725,8 +717,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { String gasolineRule = ljUserGrade.getGasolineRule(); List jsonObjects = JSONArray.parseArray(gasolineRule, JSONObject.class); JSONObject jsonObject = jsonObjects.stream().max(Comparator.comparingDouble(o -> o.getDouble("gasolineRule2"))).get(); - Integer gasolineRule1 = jsonObject.getInteger("naturalGas1"); - BigDecimal bigDecimal = BigDecimal.valueOf(gasolineRule1); + BigDecimal bigDecimal = jsonObject.getBigDecimal("naturalGas1"); if (paymentActiveDTO.getAmount().compareTo(bigDecimal)>=0){ //升数 Integer gasolineRule3 = jsonObject.getInteger("naturalGas2"); From d406fb97a0f04f091da5b7cadfbc31ec4fa0467c Mon Sep 17 00:00:00 2001 From: "@QQNZX" Date: Fri, 19 Jan 2024 16:07:11 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gasStation-uni/components/tabbar/tabbar.vue | 21 ++++++++++--------- gasStation-uni/config.js | 9 +------- gasStation-uni/mini.project.json | 3 +++ gasStation-uni/pages/index/index.vue | 20 +++++++++--------- gasStation-uni/pages/my/my.vue | 16 +++++++------- gasStation-uni/pages/refuel/refuel.vue | 4 ++-- gasStation-uni/pagesHome/MyCard/MyCard.vue | 6 +++--- .../PointsGoodsDetails/PointsGoodsDetails.vue | 2 +- .../pagesHome/PointsMall/PointsMall.vue | 6 +++--- .../pagesHome/myPointsOrder/myPointsOrder.vue | 2 +- gasStation-uni/pagesHome/order/order.vue | 4 ++-- gasStation-uni/pagesLogin/login/webview.vue | 8 +++++++ gasStation-uni/pagesMy/Coupons/Coupons.vue | 2 +- gasStation-uni/pagesMy/VIP/vip.vue | 4 ++-- gasStation-uni/pagesMy/comment/comment.vue | 2 +- gasStation-uni/pagesMy/invite/invite.vue | 4 ++-- gasStation-uni/pagesMy/setup/index.vue | 4 ++-- .../pagesRefuel/pagesRefuel/index.vue | 6 +++--- 18 files changed, 64 insertions(+), 59 deletions(-) create mode 100644 gasStation-uni/mini.project.json create mode 100644 gasStation-uni/pagesLogin/login/webview.vue diff --git a/gasStation-uni/components/tabbar/tabbar.vue b/gasStation-uni/components/tabbar/tabbar.vue index e14e8549e..6545edf9c 100644 --- a/gasStation-uni/components/tabbar/tabbar.vue +++ b/gasStation-uni/components/tabbar/tabbar.vue @@ -2,26 +2,27 @@ - - + + 首页 - + 一键加油 - - + + 我的 + @@ -114,13 +115,13 @@ } .bar-img { - width: 25px; - height: 25px; + width: 50rpx; + height: 50rpx; margin: 0px auto; image { - width: 100%; - height: 100%; + width: 50rpx; + height: 50rpx; } } - + \ No newline at end of file diff --git a/gasStation-uni/config.js b/gasStation-uni/config.js index 9ed5b9493..f9c37c3d1 100644 --- a/gasStation-uni/config.js +++ b/gasStation-uni/config.js @@ -1,14 +1,7 @@ // 应用全局配置 module.exports = { // baseUrl: 'https://vue.ruoyi.vip/prod-api', - // baseUrl: 'http://192.168.0.196:8081/', - // baseUrl: 'http://192.168.1.4:8080/', -<<<<<<< HEAD - baseUrl: 'http://192.168.0.178:8008/', - -======= baseUrl: 'http://192.168.0.138:8008/', ->>>>>>> 0ec2ff3c9193e4196b86613616f090a7bfc9f75a // baseUrl: 'http://192.168.1.5:8002/cdJdc', imagesUrl: 'http://www.nuoyunr.com/lananRsc', // 应用信息 @@ -32,4 +25,4 @@ module.exports = { } ] } -} \ No newline at end of file +} diff --git a/gasStation-uni/mini.project.json b/gasStation-uni/mini.project.json new file mode 100644 index 000000000..ecd9fe6cd --- /dev/null +++ b/gasStation-uni/mini.project.json @@ -0,0 +1,3 @@ +{ + "format": 2 +} diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue index 77b4a6a7d..80a1ea0bc 100644 --- a/gasStation-uni/pages/index/index.vue +++ b/gasStation-uni/pages/index/index.vue @@ -28,25 +28,25 @@ - + 二维码 - + 本站活动 - + 油卡充值 - + 积分商城 @@ -385,8 +385,8 @@ // 谷歌使用wgs84 其他使用gcj02 type: 'gcj02', // 使用国测局坐标系 success: function(res) { - if (_this.longitude=="" && _this.latitude =="") { - + if (_this.longitude == "" && _this.latitude == "") { + _this.longitude = res.longitude; _this.latitude = res.latitude } @@ -398,7 +398,7 @@ data: { "lon": _this.longitude, "lat": _this.latitude, - "storeId":storeId + "storeId": storeId }, }).then((response) => { _this.distance = (Math.ceil(response.data.distance)) @@ -517,7 +517,7 @@ longitude }) => { // 选择位置完成后的处理 // this.addressName = address; - console.log(name,address,latitude,longitude); + console.log(name, address, latitude, longitude); this.longitude = longitude; this.latitude = latitude; this.getAddress() @@ -639,8 +639,8 @@ height: 38px; image { - width: 100%; - height: 100%; + width: 38px; + height: 38px; } margin: 5px auto; diff --git a/gasStation-uni/pages/my/my.vue b/gasStation-uni/pages/my/my.vue index cff283d99..d14899f7d 100644 --- a/gasStation-uni/pages/my/my.vue +++ b/gasStation-uni/pages/my/my.vue @@ -10,8 +10,8 @@ - + :src="baseUrl + user.avatar" mode="aspectFit"> + {{user.mobile}} @@ -48,7 +48,7 @@ - + 我的订单 @@ -58,7 +58,7 @@ - + 待使用 @@ -67,7 +67,7 @@ - + 已完成 @@ -75,7 +75,7 @@ - + 待评价 @@ -95,7 +95,7 @@ - + 今日油价 @@ -105,7 +105,7 @@ - + 核销记录 diff --git a/gasStation-uni/pages/refuel/refuel.vue b/gasStation-uni/pages/refuel/refuel.vue index c5288b8ec..916607285 100644 --- a/gasStation-uni/pages/refuel/refuel.vue +++ b/gasStation-uni/pages/refuel/refuel.vue @@ -8,8 +8,8 @@ - - + + {{store.name}}{{store.description ? "("+store.description+")" : ""}} diff --git a/gasStation-uni/pagesHome/MyCard/MyCard.vue b/gasStation-uni/pagesHome/MyCard/MyCard.vue index 770da90ca..042e5a490 100644 --- a/gasStation-uni/pagesHome/MyCard/MyCard.vue +++ b/gasStation-uni/pagesHome/MyCard/MyCard.vue @@ -15,7 +15,7 @@ - + @@ -48,7 +48,7 @@ - + @@ -84,7 +84,7 @@ - + diff --git a/gasStation-uni/pagesHome/PointsGoodsDetails/PointsGoodsDetails.vue b/gasStation-uni/pagesHome/PointsGoodsDetails/PointsGoodsDetails.vue index 85c0e6984..43e4f27ce 100644 --- a/gasStation-uni/pagesHome/PointsGoodsDetails/PointsGoodsDetails.vue +++ b/gasStation-uni/pagesHome/PointsGoodsDetails/PointsGoodsDetails.vue @@ -20,7 +20,7 @@ - + {{form.giftName}} diff --git a/gasStation-uni/pagesHome/PointsMall/PointsMall.vue b/gasStation-uni/pagesHome/PointsMall/PointsMall.vue index 041f53efa..db0f34105 100644 --- a/gasStation-uni/pagesHome/PointsMall/PointsMall.vue +++ b/gasStation-uni/pagesHome/PointsMall/PointsMall.vue @@ -19,7 +19,7 @@ - + @@ -70,7 +70,7 @@ - + {{item.giftName}} @@ -78,7 +78,7 @@ - + - + {{item.giftName}} diff --git a/gasStation-uni/pagesHome/order/order.vue b/gasStation-uni/pagesHome/order/order.vue index 32efc8284..a3df1cc06 100644 --- a/gasStation-uni/pagesHome/order/order.vue +++ b/gasStation-uni/pagesHome/order/order.vue @@ -17,7 +17,7 @@ - + {{storeName}} @@ -52,7 +52,7 @@ - + {{goodsInfo.giftName}} diff --git a/gasStation-uni/pagesLogin/login/webview.vue b/gasStation-uni/pagesLogin/login/webview.vue new file mode 100644 index 000000000..48d48ea8a --- /dev/null +++ b/gasStation-uni/pagesLogin/login/webview.vue @@ -0,0 +1,8 @@ + + + + + diff --git a/gasStation-uni/pagesMy/Coupons/Coupons.vue b/gasStation-uni/pagesMy/Coupons/Coupons.vue index ec1f0ae93..8f8f772d6 100644 --- a/gasStation-uni/pagesMy/Coupons/Coupons.vue +++ b/gasStation-uni/pagesMy/Coupons/Coupons.vue @@ -20,7 +20,7 @@ ¥{{item.couponAmount}} - + {{item.couponType}} diff --git a/gasStation-uni/pagesMy/VIP/vip.vue b/gasStation-uni/pagesMy/VIP/vip.vue index 367ba6429..3dbd230d6 100644 --- a/gasStation-uni/pagesMy/VIP/vip.vue +++ b/gasStation-uni/pagesMy/VIP/vip.vue @@ -32,7 +32,7 @@ - + @@ -44,7 +44,7 @@ - + {{item.name}} diff --git a/gasStation-uni/pagesMy/comment/comment.vue b/gasStation-uni/pagesMy/comment/comment.vue index 1d912b356..2f850f8ec 100644 --- a/gasStation-uni/pagesMy/comment/comment.vue +++ b/gasStation-uni/pagesMy/comment/comment.vue @@ -13,7 +13,7 @@ 您对工作人员满意吗 - + username(13583017106) diff --git a/gasStation-uni/pagesMy/invite/invite.vue b/gasStation-uni/pagesMy/invite/invite.vue index e6db534db..01129112a 100644 --- a/gasStation-uni/pagesMy/invite/invite.vue +++ b/gasStation-uni/pagesMy/invite/invite.vue @@ -9,7 +9,7 @@ - + @@ -45,7 +45,7 @@ - + {{item.inviteeUserName}} diff --git a/gasStation-uni/pagesMy/setup/index.vue b/gasStation-uni/pagesMy/setup/index.vue index 96a8e5580..812a98274 100644 --- a/gasStation-uni/pagesMy/setup/index.vue +++ b/gasStation-uni/pagesMy/setup/index.vue @@ -10,8 +10,8 @@ diff --git a/gasStation-uni/pagesRefuel/pagesRefuel/index.vue b/gasStation-uni/pagesRefuel/pagesRefuel/index.vue index 5803c06f2..ecfe59bd4 100644 --- a/gasStation-uni/pagesRefuel/pagesRefuel/index.vue +++ b/gasStation-uni/pagesRefuel/pagesRefuel/index.vue @@ -19,7 +19,7 @@ - + @@ -52,7 +52,7 @@ - + 到这去 @@ -61,7 +61,7 @@ - + 去加油 From 060236f6ce86d0fbd5e03cea6f1e85c4410c80a9 Mon Sep 17 00:00:00 2001 From: "@QQNZX" Date: Fri, 19 Jan 2024 16:18:40 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gasStation-uni/pages.json | 18 +++-- gasStation-uni/pagesLogin/login/webview.vue | 74 ++++++++++++++++++++- 2 files changed, 85 insertions(+), 7 deletions(-) diff --git a/gasStation-uni/pages.json b/gasStation-uni/pages.json index 51effa40e..7237cf8b7 100644 --- a/gasStation-uni/pages.json +++ b/gasStation-uni/pages.json @@ -19,12 +19,20 @@ { "root": "pagesLogin", "pages": [{ - "path": "login/login", - "style": { - "navigationBarTitleText": "登录", - "navigationStyle": "custom" + "path": "login/login", + "style": { + "navigationBarTitleText": "登录", + "navigationStyle": "custom" + } + }, + { + "path": "login/webview", + "style": { + "navigationBarTitleText": "声明", + "navigationStyle": "custom" + } } - }] + ] }, { "root": "pagesHome", diff --git a/gasStation-uni/pagesLogin/login/webview.vue b/gasStation-uni/pagesLogin/login/webview.vue index 48d48ea8a..3faf16b3b 100644 --- a/gasStation-uni/pagesLogin/login/webview.vue +++ b/gasStation-uni/pagesLogin/login/webview.vue @@ -1,8 +1,78 @@ - + \ No newline at end of file From 87b369c62b7d45f5c30a03104427edde2886fd0d Mon Sep 17 00:00:00 2001 From: "@QQNZX" Date: Fri, 19 Jan 2024 17:08:34 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pagesHome/oilRecharge/oilRecharge.vue | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/gasStation-uni/pagesHome/oilRecharge/oilRecharge.vue b/gasStation-uni/pagesHome/oilRecharge/oilRecharge.vue index 7ce729caf..409e28d51 100644 --- a/gasStation-uni/pagesHome/oilRecharge/oilRecharge.vue +++ b/gasStation-uni/pagesHome/oilRecharge/oilRecharge.vue @@ -44,6 +44,7 @@ + 立即充值 @@ -84,6 +85,8 @@ {{index+1}}.{{item || "" }} + + 推荐员工 @@ -92,6 +95,7 @@ + @@ -136,7 +140,17 @@ - + + + + + + + + + @@ -224,6 +238,12 @@ this.getStaffList() }, methods: { + open() { + console.log(); + }, + close() { + this.show = false + }, //囤油卡充值 addFuleCarRecords() { if (this.staffId == '') { @@ -369,8 +389,8 @@ }, confirm(e) { console.log(e); - this.staffId = e.value[0].id - this.yname = e.value[0].realName + this.staffId = e.id + this.yname = e.realName this.show = false }, cancel() { @@ -506,7 +526,8 @@ storeId: uni.getStorageSync("storeId") } }).then(res => { - this.columns.push(res.data.records) + this.columns = res.data.records + // this.columns.push(res.data.records) console.log("columns", this.columns); }) @@ -696,4 +717,13 @@ width: 20%; } + + .bottom-bb { + width: 100%; + height: 200px; + box-sizing: border-box; + padding: 10px; + background: white; + overflow: scroll; + } \ No newline at end of file From 4dc2c4d5ca509f84717196c2f9f7e5024fb2ed32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Fri, 19 Jan 2024 17:36:51 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E6=BB=A1=E5=87=8F=E6=8A=98=E6=89=A3?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActiveDiscountRecordsController.java | 90 +++++++++++++++ .../entity/ActiveDiscountRecords.java | 107 ++++++++++++++++++ .../mapper/ActiveDiscountRecordsMapper.java | 15 +++ .../service/ActiveDiscountRecordsService.java | 15 +++ .../ActiveDiscountRecordsServiceImpl.java | 19 ++++ .../ActiveFullminusRecordsController.java | 90 +++++++++++++++ .../entity/ActiveFullminusRecords.java | 107 ++++++++++++++++++ .../mapper/ActiveFullminusRecordsMapper.java | 15 +++ .../ActiveFullminusRecordsService.java | 15 +++ .../ActiveFullminusRecordsServiceImpl.java | 19 ++++ .../CardFavorableRecordController.java | 12 ++ .../mapper/CardFavorableRecordMapper.java | 2 + .../mapper/xml/CardFavorableRecordMapper.xml | 8 ++ .../service/CardFavorableRecordService.java | 8 ++ .../impl/CardFavorableRecordServiceImpl.java | 46 ++++++++ 15 files changed, 568 insertions(+) create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/controller/ActiveDiscountRecordsController.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/entity/ActiveDiscountRecords.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/mapper/ActiveDiscountRecordsMapper.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/service/ActiveDiscountRecordsService.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/service/impl/ActiveDiscountRecordsServiceImpl.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/controller/ActiveFullminusRecordsController.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/entity/ActiveFullminusRecords.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/mapper/ActiveFullminusRecordsMapper.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/service/ActiveFullminusRecordsService.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/service/impl/ActiveFullminusRecordsServiceImpl.java diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/controller/ActiveDiscountRecordsController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/controller/ActiveDiscountRecordsController.java new file mode 100644 index 000000000..78e0a66f0 --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/controller/ActiveDiscountRecordsController.java @@ -0,0 +1,90 @@ +package com.fuint.business.marketingActivity.activeDiscountRecords.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.fuint.business.marketingActivity.activeDiscountRecords.entity.ActiveDiscountRecords; +import com.fuint.business.marketingActivity.activeDiscountRecords.service.ActiveDiscountRecordsService; +import com.fuint.framework.web.BaseController; +import com.fuint.framework.web.ResponseObject; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 折扣活动记录表(ActiveDiscountRecords)表控制层 + * + * @author makejava + * @since 2024-01-19 17:13:25 + */ +@RestController +@RequestMapping("business/marketingActivity/activeDiscountRecords") +public class ActiveDiscountRecordsController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ActiveDiscountRecordsService activeDiscountRecordsService; + + /** + * 分页查询所有数据 + * + * @param page 分页对象 + * @param activeDiscountRecords 查询实体 + * @return 所有数据 + */ + @GetMapping + public ResponseObject selectAll(Page page, ActiveDiscountRecords activeDiscountRecords) { + return getSuccessResult(this.activeDiscountRecordsService.page(page, new QueryWrapper<>(activeDiscountRecords))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + public ResponseObject selectOne(@PathVariable Serializable id) { + return getSuccessResult(this.activeDiscountRecordsService.getById(id)); + } + + /** + * 新增数据 + * + * @param activeDiscountRecords 实体对象 + * @return 新增结果 + */ + @PostMapping + public ResponseObject insert(@RequestBody ActiveDiscountRecords activeDiscountRecords) { + return getSuccessResult(this.activeDiscountRecordsService.save(activeDiscountRecords)); + } + + /** + * 修改数据 + * + * @param activeDiscountRecords 实体对象 + * @return 修改结果 + */ + @PutMapping + public ResponseObject update(@RequestBody ActiveDiscountRecords activeDiscountRecords) { + return getSuccessResult(this.activeDiscountRecordsService.updateById(activeDiscountRecords)); + } + + /** + * 删除数据 + * + * @param idList 主键结合 + * @return 删除结果 + */ + @DeleteMapping + public ResponseObject delete(@RequestParam("idList") List idList) { + return getSuccessResult(this.activeDiscountRecordsService.removeByIds(idList)); + } +} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/entity/ActiveDiscountRecords.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/entity/ActiveDiscountRecords.java new file mode 100644 index 000000000..935c9c588 --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/entity/ActiveDiscountRecords.java @@ -0,0 +1,107 @@ +package com.fuint.business.marketingActivity.activeDiscountRecords.entity; + +import java.util.Date; +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 折扣活动记录表(ActiveDiscountRecords)表实体类 + * + * @author makejava + * @since 2024-01-19 17:13:25 + */ +@SuppressWarnings("serial") +public class ActiveDiscountRecords extends Model { + //主键id + private Integer id; + //活动id + private Integer activeDiscountId; + //用户id + private Integer userId; + //店铺id + private Integer storeId; + //创建者 + private String createBy; + //创建时间 + private Date createTime; + //更新者 + private String updateBy; + //更新时间 + private Date updateTime; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getActiveDiscountId() { + return activeDiscountId; + } + + public void setActiveDiscountId(Integer activeDiscountId) { + this.activeDiscountId = activeDiscountId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public Integer getStoreId() { + return storeId; + } + + public void setStoreId(Integer storeId) { + this.storeId = storeId; + } + + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/mapper/ActiveDiscountRecordsMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/mapper/ActiveDiscountRecordsMapper.java new file mode 100644 index 000000000..a32eb5cdd --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/mapper/ActiveDiscountRecordsMapper.java @@ -0,0 +1,15 @@ +package com.fuint.business.marketingActivity.activeDiscountRecords.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.fuint.business.marketingActivity.activeDiscountRecords.entity.ActiveDiscountRecords; + +/** + * 折扣活动记录表(ActiveDiscountRecords)表数据库访问层 + * + * @author makejava + * @since 2024-01-19 17:13:25 + */ +public interface ActiveDiscountRecordsMapper extends BaseMapper { + +} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/service/ActiveDiscountRecordsService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/service/ActiveDiscountRecordsService.java new file mode 100644 index 000000000..1a8eb8238 --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/service/ActiveDiscountRecordsService.java @@ -0,0 +1,15 @@ +package com.fuint.business.marketingActivity.activeDiscountRecords.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.fuint.business.marketingActivity.activeDiscountRecords.entity.ActiveDiscountRecords; + +/** + * 折扣活动记录表(ActiveDiscountRecords)表服务接口 + * + * @author makejava + * @since 2024-01-19 17:13:26 + */ +public interface ActiveDiscountRecordsService extends IService { + +} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/service/impl/ActiveDiscountRecordsServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/service/impl/ActiveDiscountRecordsServiceImpl.java new file mode 100644 index 000000000..c73ee536a --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscountRecords/service/impl/ActiveDiscountRecordsServiceImpl.java @@ -0,0 +1,19 @@ +package com.fuint.business.marketingActivity.activeDiscountRecords.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.fuint.business.marketingActivity.activeDiscountRecords.mapper.ActiveDiscountRecordsMapper; +import com.fuint.business.marketingActivity.activeDiscountRecords.entity.ActiveDiscountRecords; +import com.fuint.business.marketingActivity.activeDiscountRecords.service.ActiveDiscountRecordsService; +import org.springframework.stereotype.Service; + +/** + * 折扣活动记录表(ActiveDiscountRecords)表服务实现类 + * + * @author makejava + * @since 2024-01-19 17:13:26 + */ +@Service("activeDiscountRecordsService") +public class ActiveDiscountRecordsServiceImpl extends ServiceImpl implements ActiveDiscountRecordsService { + +} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/controller/ActiveFullminusRecordsController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/controller/ActiveFullminusRecordsController.java new file mode 100644 index 000000000..fbd107a0e --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/controller/ActiveFullminusRecordsController.java @@ -0,0 +1,90 @@ +package com.fuint.business.marketingActivity.activeFullminusRecords.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.fuint.business.marketingActivity.activeFullminusRecords.entity.ActiveFullminusRecords; +import com.fuint.business.marketingActivity.activeFullminusRecords.service.ActiveFullminusRecordsService; +import com.fuint.framework.web.BaseController; +import com.fuint.framework.web.ResponseObject; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 满减活动记录表(ActiveFullminusRecords)表控制层 + * + * @author makejava + * @since 2024-01-19 17:12:45 + */ +@RestController +@RequestMapping("business/marketingActivity/activeFullminusRecords") +public class ActiveFullminusRecordsController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ActiveFullminusRecordsService activeFullminusRecordsService; + + /** + * 分页查询所有数据 + * + * @param page 分页对象 + * @param activeFullminusRecords 查询实体 + * @return 所有数据 + */ + @GetMapping + public ResponseObject selectAll(Page page, ActiveFullminusRecords activeFullminusRecords) { + return getSuccessResult(this.activeFullminusRecordsService.page(page, new QueryWrapper<>(activeFullminusRecords))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + public ResponseObject selectOne(@PathVariable Serializable id) { + return getSuccessResult(this.activeFullminusRecordsService.getById(id)); + } + + /** + * 新增数据 + * + * @param activeFullminusRecords 实体对象 + * @return 新增结果 + */ + @PostMapping + public ResponseObject insert(@RequestBody ActiveFullminusRecords activeFullminusRecords) { + return getSuccessResult(this.activeFullminusRecordsService.save(activeFullminusRecords)); + } + + /** + * 修改数据 + * + * @param activeFullminusRecords 实体对象 + * @return 修改结果 + */ + @PutMapping + public ResponseObject update(@RequestBody ActiveFullminusRecords activeFullminusRecords) { + return getSuccessResult(this.activeFullminusRecordsService.updateById(activeFullminusRecords)); + } + + /** + * 删除数据 + * + * @param idList 主键结合 + * @return 删除结果 + */ + @DeleteMapping + public ResponseObject delete(@RequestParam("idList") List idList) { + return getSuccessResult(this.activeFullminusRecordsService.removeByIds(idList)); + } +} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/entity/ActiveFullminusRecords.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/entity/ActiveFullminusRecords.java new file mode 100644 index 000000000..9cbdccf16 --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/entity/ActiveFullminusRecords.java @@ -0,0 +1,107 @@ +package com.fuint.business.marketingActivity.activeFullminusRecords.entity; + +import java.util.Date; +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 满减活动记录表(ActiveFullminusRecords)表实体类 + * + * @author makejava + * @since 2024-01-19 17:12:45 + */ +@SuppressWarnings("serial") +public class ActiveFullminusRecords extends Model { + //主键id + private Integer id; + //活动id + private Integer activeFullminusId; + //用户id + private Integer userId; + //店铺id + private Integer storeId; + //创建者 + private String createBy; + //创建时间 + private Date createTime; + //更新者 + private String updateBy; + //更新时间 + private Date updateTime; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getActiveFullminusId() { + return activeFullminusId; + } + + public void setActiveFullminusId(Integer activeFullminusId) { + this.activeFullminusId = activeFullminusId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public Integer getStoreId() { + return storeId; + } + + public void setStoreId(Integer storeId) { + this.storeId = storeId; + } + + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/mapper/ActiveFullminusRecordsMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/mapper/ActiveFullminusRecordsMapper.java new file mode 100644 index 000000000..56987169d --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/mapper/ActiveFullminusRecordsMapper.java @@ -0,0 +1,15 @@ +package com.fuint.business.marketingActivity.activeFullminusRecords.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.fuint.business.marketingActivity.activeFullminusRecords.entity.ActiveFullminusRecords; + +/** + * 满减活动记录表(ActiveFullminusRecords)表数据库访问层 + * + * @author makejava + * @since 2024-01-19 17:12:45 + */ +public interface ActiveFullminusRecordsMapper extends BaseMapper { + +} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/service/ActiveFullminusRecordsService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/service/ActiveFullminusRecordsService.java new file mode 100644 index 000000000..c921bd298 --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/service/ActiveFullminusRecordsService.java @@ -0,0 +1,15 @@ +package com.fuint.business.marketingActivity.activeFullminusRecords.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.fuint.business.marketingActivity.activeFullminusRecords.entity.ActiveFullminusRecords; + +/** + * 满减活动记录表(ActiveFullminusRecords)表服务接口 + * + * @author makejava + * @since 2024-01-19 17:12:45 + */ +public interface ActiveFullminusRecordsService extends IService { + +} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/service/impl/ActiveFullminusRecordsServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/service/impl/ActiveFullminusRecordsServiceImpl.java new file mode 100644 index 000000000..932df42fc --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminusRecords/service/impl/ActiveFullminusRecordsServiceImpl.java @@ -0,0 +1,19 @@ +package com.fuint.business.marketingActivity.activeFullminusRecords.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.fuint.business.marketingActivity.activeFullminusRecords.mapper.ActiveFullminusRecordsMapper; +import com.fuint.business.marketingActivity.activeFullminusRecords.entity.ActiveFullminusRecords; +import com.fuint.business.marketingActivity.activeFullminusRecords.service.ActiveFullminusRecordsService; +import org.springframework.stereotype.Service; + +/** + * 满减活动记录表(ActiveFullminusRecords)表服务实现类 + * + * @author makejava + * @since 2024-01-19 17:12:45 + */ +@Service("activeFullminusRecordsService") +public class ActiveFullminusRecordsServiceImpl extends ServiceImpl implements ActiveFullminusRecordsService { + +} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java index a8a3f11df..e05be9cbb 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java @@ -2,6 +2,7 @@ package com.fuint.business.marketingActivity.cardFavorable.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.fuint.business.marketingActivity.activeExchange.vo.PaymentActiveVO; import com.fuint.business.marketingActivity.cardFavorable.dto.IdListDTO; import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorable; import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorableRecord; @@ -115,6 +116,17 @@ public class CardFavorableRecordController extends BaseController { return getSuccessResult(this.cardFavorableRecordService.updateById(cardFavorableRecord)); } + /** + * 核销 + * + * @param paymentActiveVO 实体对象 + * @return 修改结果 + */ + @PutMapping("updateCardAndActiveById") + public ResponseObject updateCardAndActiveById(@RequestBody PaymentActiveVO paymentActiveVO) { + return getSuccessResult(this.cardFavorableRecordService.updateCardAndActiveById(paymentActiveVO)); + } + /** * 删除数据 * diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/CardFavorableRecordMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/CardFavorableRecordMapper.java index ae8809e49..c0be2bdf0 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/CardFavorableRecordMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/CardFavorableRecordMapper.java @@ -38,5 +38,7 @@ public interface CardFavorableRecordMapper extends BaseMapper selectAllByCondition(@Param("page") Page page, @Param("cardFavorableDTOS") CardFavorableDTOS cardFavorableDTOS); List getCanUserCardFavorableList(@Param("paymentActiveDTO") PaymentActiveDTO paymentActiveDTO); + + boolean updateCardAndActiveById(@Param("cardFavorableId") Integer cardFavorableId, @Param("userId") Integer userId, @Param("storeId") Integer storeId); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml index 8764d558e..991da8eeb 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml @@ -141,5 +141,13 @@ AND cfr.end_time AND cfr.status = 0 + + + update card_favorable_record + set status = 1 + where card_favorable_id = #{cardFavorableId} + and mt_user_id = #{userId} + and store_id = #{storeId} + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/CardFavorableRecordService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/CardFavorableRecordService.java index b68771cd5..1caea10f4 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/CardFavorableRecordService.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/CardFavorableRecordService.java @@ -3,6 +3,7 @@ package com.fuint.business.marketingActivity.cardFavorable.service; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; +import com.fuint.business.marketingActivity.activeExchange.vo.PaymentActiveVO; import com.fuint.business.marketingActivity.cardFavorable.dto.IdListDTO; import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorableRecord; import com.fuint.business.marketingActivity.cardFavorable.vo.CardFavorableRecordVO; @@ -55,5 +56,12 @@ public interface CardFavorableRecordService extends IService queryWrapper = new LambdaQueryWrapper<>(); if (ObjectUtils.isNotEmpty(cardFavorableRecord.getMobile())){ @@ -214,5 +227,38 @@ public class CardFavorableRecordServiceImpl extends ServiceImpl Date: Fri, 19 Jan 2024 18:18:27 +0800 Subject: [PATCH 9/9] 111 --- fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue | 4 ++-- .../com/fuint/business/order/mapper/xml/OilOrderMapper.xml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue b/fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue index 833151cb5..7b1e4cd5a 100644 --- a/fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue +++ b/fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue @@ -167,9 +167,9 @@ + :value="dict.id.toString()"> diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml index ee623ae3e..9390a2698 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml @@ -362,6 +362,7 @@ FROM active_discount ad LEFT JOIN active_discount_child adc ON ad.id = adc.active_discount_id + left join active_discount_records adr on adr.active_discount_id = ad.id WHERE ad.store_id = #{storeId} AND adc.amount #{amount} @@ -370,6 +371,7 @@ AND ad.STATUS = 0 AND concat(',',ad.adapt_oil,',') like concat('%',#{oilId},'%') AND concat(',',ad.diesel_user_level,',') like concat('%',#{levelId},'%') + HAVING sum(adr.id) limitAcount GROUP BY ad.id @@ -385,6 +387,7 @@ FROM active_fullminus af LEFT JOIN active_discount_child adc ON af.id = adc.active_fullminus_id + left join active_fullminus_records afr on afr.active_fullminus_id = ad.id WHERE af.store_id = #{storeId} AND adc.amount #{amount} @@ -393,6 +396,7 @@ AND af.STATUS = 0 AND concat(',',af.adapt_oil,',') like concat('%',#{oilId},'%') AND concat(',',af.diesel_user_level,',') like concat('%',#{levelId},'%') + HAVING sum(afr.id) limitAcount GROUP BY af.id