diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java index 796cdffe5..3409281fa 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java @@ -81,6 +81,13 @@ public class HandoverRecordController extends BaseController { return getSuccessResult(this.handoverRecordService.insert(handoverRecord)); } + @PostMapping("addByPos") + public ResponseObject addByPos(@RequestBody HandoverRecord handoverRecord) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + handoverRecord.setStaffId(nowAccountInfo.getStaffId()); + return getSuccessResult(this.handoverRecordService.insert(handoverRecord)); + } + /** * 编辑数据 * diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/HandoverRecord.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/HandoverRecord.java index e7dccae09..6a26e25c5 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/HandoverRecord.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/HandoverRecord.java @@ -28,6 +28,7 @@ public class HandoverRecord extends BaseEntity { * 交班数据记录 */ private String recordData; + @TableField(exist = false) private String totalPayMoney; private String staffName; diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml index a5a1aeb30..a7ccd772a 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml @@ -319,7 +319,16 @@ SUM(CASE WHEN aoi.content = '储值卡订单' THEN pay_money ELSE 0 END) AS userBalance, COUNT(CASE WHEN aoi.content = '储值卡订单' THEN 0 END) AS userBalanceCount, SUM(CASE WHEN aoi.content = '油品充值' THEN pay_money ELSE 0 END) AS oilBalance, - COUNT(CASE WHEN aoi.content = '油品充值' THEN 0 END) AS oilBalanceCount + COUNT(CASE WHEN aoi.content = '油品充值' THEN 0 END) AS oilBalanceCount, + + SUM(CASE WHEN aoi.content = '储值卡订单' and pay_type = 'WECHAT' THEN pay_money ELSE 0 END) AS userBalanceByWechat, + COUNT(CASE WHEN aoi.content = '储值卡订单' and pay_type = 'WECHAT' THEN 0 END) AS userBalanceCountByWechat, + SUM(CASE WHEN aoi.content = '储值卡订单' and pay_type = 'ALIPAY' THEN pay_money ELSE 0 END) AS userBalanceByAli, + COUNT(CASE WHEN aoi.content = '储值卡订单' and pay_type = 'ALIPAY' THEN 0 END) AS userBalanceCountByali + + + + from all_order_info aoi left join mt_user mu ON aoi.user_id = mu.id @@ -376,21 +385,29 @@ all_order_info staff_id = #{staffId} - - AND start_time >= #{startTime} -- 开始时间检索 - - - AND end_time <= #{endTime} -- 结束时间检索 - + + and date_format(pay_time,'%y%m%d') >= date_format(#{startTime},'%y%m%d') + + + and date_format(pay_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') + - - + + - - + + + + + + + + + + \ No newline at end of file diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java index 3ba032ef2..efeced973 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java @@ -100,6 +100,11 @@ public class AllOrderInfoServiceImpl extends ServiceImpl longs = new ArrayList<>(); + longs.add(l); + allOrderInfo.setStoreIds(longs); +// AllOrderInfoVo tradingData = allOrderInfoMapper.getTradingData(allOrderInfo); return allOrderInfoMapper.getTradingData(allOrderInfo); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/HandoverRecordServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/HandoverRecordServiceImpl.java index ae9573b39..055bc4010 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/HandoverRecordServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/HandoverRecordServiceImpl.java @@ -11,6 +11,7 @@ import com.fuint.business.order.mapper.AllOrderInfoMapper; import com.fuint.business.order.mapper.HandoverRecordMapper; import com.fuint.business.order.service.AllOrderInfoService; import com.fuint.business.order.service.HandoverRecordService; +import com.fuint.business.order.vo.AllOrderInfoVo; import com.fuint.business.store.entity.MtStore; import com.fuint.business.store.service.StoreService; import com.fuint.business.userManager.mapper.LJUserMapper; @@ -83,14 +84,14 @@ public class HandoverRecordServiceImpl implements HandoverRecordService { for (HandoverRecord record : handoverRecordIPage.getRecords()) { - DateTime dateTime = DateTime.of(record.getStartTime()); - DateTime dateTime1 = DateTime.of(record.getEndTime()); - record.setEndTime1(dateTime.toString()); - record.setStartTime1(dateTime1.toString()); - allOrderInfoMapper.getHandOverList(record); - record.setTotalPayMoney(record.getTotalPayMoney()); +// DateTime dateTime = DateTime.of(record.getStartTime()); +// DateTime dateTime1 = DateTime.of(record.getEndTime()); +// record.setEndTime1(dateTime.toString()); +// record.setStartTime1(dateTime1.toString()); + AllOrderInfoVo handOverList = allOrderInfoMapper.getHandOverList(record); + record.setTotalPayMoney(handOverList.getTotalPayMoney()); } - return this.handoverRecordMapper.queryAllByLimit(page, handoverRecord); + return handoverRecordIPage; } @Override diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/AllOrderInfoVo.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/AllOrderInfoVo.java index 00dbc84d1..db47b8ef9 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/AllOrderInfoVo.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/AllOrderInfoVo.java @@ -24,6 +24,7 @@ public class AllOrderInfoVo extends AllOrderInfo { private String strokesPerDay; private String storeCount ; private String inertiaStore; + private String avatar; @@ -55,6 +56,11 @@ public class AllOrderInfoVo extends AllOrderInfo { private String totalCount; private String totalRefund; + private String userBalanceByWechat; + private String userBalanceCountByWechat; + private String userBalanceByAli; + private String userBalanceCountByali; + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/controller/printerController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/controller/printerController.java index 3aba10ed1..10c16e20d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/controller/printerController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/controller/printerController.java @@ -303,4 +303,17 @@ public class printerController extends BaseController { printerService.printIntegralReport(integral,TokenUtil.getNowAccountInfo().getStoreId()); } + + @GetMapping("posPrinter") + public void posPrinter() { +// printRegisterReceiver(); +// Intent intent=new Intent(); +// +// new ComponentName(); + } + + + + + } diff --git a/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUser.java b/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUser.java index 6043c309b..7f2ce6144 100644 --- a/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUser.java +++ b/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUser.java @@ -51,6 +51,7 @@ public class MtUser implements Serializable { @ApiModelProperty("证件号码") private String idcard; + @TableField(exist = false) @ApiModelProperty("等级ID") private String gradeId; // @@ -81,7 +82,7 @@ public class MtUser implements Serializable { @ApiModelProperty("来源渠道") private String source; - + @TableField(exist = false) @ApiModelProperty("密码") private String password; diff --git a/fuintBackend/lib/M1AIDL.jar b/fuintBackend/lib/M1AIDL.jar new file mode 100644 index 000000000..cf8b9cc78 Binary files /dev/null and b/fuintBackend/lib/M1AIDL.jar differ diff --git a/fuintBackend/lib/PrintAIDL.jar b/fuintBackend/lib/PrintAIDL.jar new file mode 100644 index 000000000..90f147938 Binary files /dev/null and b/fuintBackend/lib/PrintAIDL.jar differ diff --git a/pos-uni/components/header/headers.vue b/pos-uni/components/header/headers.vue index 929dbfcea..7805f6d72 100644 --- a/pos-uni/components/header/headers.vue +++ b/pos-uni/components/header/headers.vue @@ -5,7 +5,10 @@ {{titles}} - + + {{type?'筛选':''}} + + @@ -18,7 +21,8 @@ } }, props: { - titles: String + titles: String, + type: String }, mounted() { @@ -26,10 +30,13 @@ methods: { gobock() { uni.navigateBack() + }, + clickChild() { + console.log("2222222222222222222222222") + this.$emit('chiledEvent', 123); } } - } @@ -51,7 +58,7 @@ top: 0px; .my-icons { - width: 20px; + width: 50px; } diff --git a/pos-uni/pages.json b/pos-uni/pages.json index e5b1a0332..4effa8aec 100644 --- a/pos-uni/pages.json +++ b/pos-uni/pages.json @@ -92,6 +92,27 @@ "navigationStyle": "custom" } }, + { + "path": "outher/serviceList", + "style": { + "navigationBarTitleText": "服务条款", + "navigationStyle": "custom" + } + }, + { + "path": "outher/my", + "style": { + "navigationBarTitleText": "关于我们", + "navigationStyle": "custom" + } + }, + { + "path": "outher/yinsi", + "style": { + "navigationBarTitleText": "隐私协议", + "navigationStyle": "custom" + } + }, { "path": "PaymentCode/PaymentCode", "style": { diff --git a/pos-uni/pages/my/my.vue b/pos-uni/pages/my/my.vue index 79cdbee96..e0e7f5121 100644 --- a/pos-uni/pages/my/my.vue +++ b/pos-uni/pages/my/my.vue @@ -21,15 +21,15 @@ 消息通知 - + 服务条款 - + 关于我们 - + 隐私协议 @@ -107,6 +107,23 @@ }, goback() { uni.navigateBack() + }, + goServiceList() { + uni.navigateTo({ + url: '/pagesHome/outher/serviceList' + }) + }, + + goMyList() { + uni.navigateTo({ + url: '/pagesHome/outher/my' + }) + }, + + goYinsi() { + uni.navigateTo({ + url: '/pagesHome/outher/yinsi' + }) } } } diff --git a/pos-uni/pagesHome/AddVip/AddCode.vue b/pos-uni/pagesHome/AddVip/AddCode.vue index 88d56dfea..9bd90397e 100644 --- a/pos-uni/pagesHome/AddVip/AddCode.vue +++ b/pos-uni/pagesHome/AddVip/AddCode.vue @@ -25,6 +25,8 @@ @@ -224,4 +363,56 @@ font-size: 16px; color: #0864E9; } + + .time { + font-weight: 500; + font-size: 14px; + color: #333333; + margin: 0px auto; + margin-top: 15px; + } + + .time-bs { + width: 100%; + box-sizing: border-box; + background: #FFFFFF; + padding: 15px; + display: flex; + align-items: center; + justify-content: space-around; + } + + .time-bs2 { + width: 100%; + box-sizing: border-box; + background: #FFFFFF; + padding: 30px; + // display: flex; + align-items: center; + justify-content: space-around; + } + + .time-box { + border: 1px solid #0864E9; + box-sizing: border-box; + padding: 5px 15px; + border-radius: 8px; + font-size: 14px; + color: #333; + display: flex; + align-items: center; + justify-content: center; + } + + .time-box2 { + border: 1px solid #0864E9; + box-sizing: border-box; + padding: 5px 15px; + border-radius: 8px; + font-size: 14px; + color: #333; + display: flex; + align-items: center; + justify-content: center; + } \ No newline at end of file diff --git a/pos-uni/pagesHome/outher/my.vue b/pos-uni/pagesHome/outher/my.vue new file mode 100644 index 000000000..756b12388 --- /dev/null +++ b/pos-uni/pagesHome/outher/my.vue @@ -0,0 +1,247 @@ + + + + + \ No newline at end of file diff --git a/pos-uni/pagesHome/outher/serviceList.vue b/pos-uni/pagesHome/outher/serviceList.vue new file mode 100644 index 000000000..a934d0921 --- /dev/null +++ b/pos-uni/pagesHome/outher/serviceList.vue @@ -0,0 +1,245 @@ + + + + + \ No newline at end of file diff --git a/pos-uni/pagesHome/outher/yinsi.vue b/pos-uni/pagesHome/outher/yinsi.vue new file mode 100644 index 000000000..cf0f906d5 --- /dev/null +++ b/pos-uni/pagesHome/outher/yinsi.vue @@ -0,0 +1,247 @@ + + + + + \ No newline at end of file