Commit 7a20ec1a authored by huangqiang's avatar huangqiang

完成极运营优惠设置流程

parent 2c9079bd
...@@ -2,128 +2,29 @@ ...@@ -2,128 +2,29 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="ceb24b37-65a1-4b3f-be3f-7040ebc4079d" name="默认变更列表" comment="Merge remote-tracking branch 'origin/liuqin_jyy'&#10;&#10;# Conflicts:&#10;#&#9;.idea/workspace.xml&#10;#&#9;common/__pycache__/__init__.cpython-37.pyc&#10;#&#9;common/__pycache__/common_config.cpython-37.pyc&#10;#&#9;common/__pycache__/common_util.cpython-37.pyc&#10;#&#9;common/__pycache__/connect_db.cpython-37.pyc&#10;#&#9;common/__pycache__/run_method.cpython-37.pyc&#10;#&#9;run.py&#10;#&#9;script/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/__pycache__/conftest.cpython-37-pytest-6.2.1.pyc&#10;#&#9;script/__pycache__/db_config.cpython-37.pyc&#10;#&#9;script/__pycache__/defalut_account.cpython-37.pyc&#10;#&#9;script/__pycache__/default_header.cpython-37.pyc&#10;#&#9;script/__pycache__/public_asserts.cpython-37.pyc&#10;#&#9;script/base_api/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/department.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/employee.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/permission.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/role.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/banner.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/coursePreview.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/homework.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/orderFlow.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/playVideo.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/banner.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/buryData.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/goods.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/idea.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/orderFlow.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/productExamination.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/share.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/user.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/zan.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/back_clue.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/classes.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/classroom.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/clue.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/employee.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/finance.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/lost_communicate_record.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/memberships.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/public.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/staging.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/statistics.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/students.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/banner.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/big_screen.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/charge.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/discount.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/expense.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/export.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/introduce.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/orderFlow.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/renewal.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/report.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/ruleSetting.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/share.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/periodical.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/periodicalManage.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/regime.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/regimeManage.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_research_web/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_research_web/__pycache__/coursePreview.cpython-37.pyc&#10;#&#9;script/base_api/api_research_web/__pycache__/homework.cpython-37.pyc&#10;#&#9;script/base_api/api_research_web/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_teach_web/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_teach_web/__pycache__/homework.cpython-37.pyc&#10;#&#9;script/base_api/api_teach_web/__pycache__/message.cpython-37.pyc&#10;#&#9;script/base_api/api_teach_web/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/agency.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/back_clue.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/clue.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/communicate.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/crm.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/customMessage.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/customMessageItem.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/dict.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/direct.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/document.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/documentDirectory.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/documentRecord.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/documentTag.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/enum.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/lostStudent.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/lostWarning.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/lost_communicate_record.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/school.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/staging.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/systemMessage.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/systemMessageItem.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/clue.py&#10;#&#9;script/base_api/service_descartes/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_descartes/__pycache__/examine.cpython-37.pyc&#10;#&#9;script/base_api/service_descartes/__pycache__/lessons.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/batch.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/batchClass.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/classCapacity.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/classDirector.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/classes.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/education.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/jst_home.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/system.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/applet.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/finance.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/handCash.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/v2.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/web.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/api.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/applet.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/banner.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/carousel.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/diagnosis.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/goods.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/gos.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/gos_api.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/group.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/package.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/shareEvent.cpython-37.pyc&#10;#&#9;script/base_api/service_idea/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_idea/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/service_identity/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_identity/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/applet.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/discount.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/orderRuleSetting.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/order_api.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/orders.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/payments.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/schedule.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/bill.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/callback.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/refund.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/weChat.cpython-37.pyc&#10;#&#9;script/base_api/service_pigeon/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_pigeon/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/api.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/applet.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/attendances.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/classChange.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/classHourChange.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/class_.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/classes.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/classfeedback.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/courseNote.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/course_notes.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/external.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/feedback.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/feedbackType.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/finance.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/geekPreviewReport.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/homework.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/login.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/manualSchedule.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/memberships.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/parent.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/performances.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/plaso.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/public.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/purchaseOrder.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/pushRelationship.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/schedules.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/student.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/students.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/studtent.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/teachers.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/transfer_records.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/transferred.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/user.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/userCheckpoint.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/videoPlayAddress.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/api.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/backup.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/baseParam.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/check_recommit.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/cos.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/customHeader.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/entranceExam.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/export.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/finance.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/notice.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/notices.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/preview.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/qrcode.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/resource.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/schools.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/src.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/systemSetting.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/targets.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/upload.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/version.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/vod.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/admission.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/basic_training.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/chapter_tree.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/exam.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/examination.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/jst.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/materialContribution.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/monthExamination.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/online.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/questionMaterial.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/question_bank.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/question_jst.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/question_source.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/question_video.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/export.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReport.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReportByArea.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReportDayly.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReportOfAll.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReportTeacherByArea.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getExpensesByArea.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/login.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/loginInternal.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/report.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/src.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/api.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/attendClass.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/cloudDiskController.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/courseWareEvaluateController.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/courseWareScoreController.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/dowLogController.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/examination.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/periodical.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/prepar.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/prepareLessons.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/preview.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/question_bank.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/research.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/teaching_exercise.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/teaching_exercises.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/teaching_plan.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/teaching_plans.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/video.cpython-37.pyc&#10;#&#9;script/base_api/service_science/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_science/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_src/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_src/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_src/__pycache__/upload.cpython-37.pyc&#10;#&#9;script/base_api/service_src/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics/__pycache__/geekData.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics/__pycache__/sa.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics/__pycache__/statistics.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics_metrics/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics_metrics/__pycache__/classFeeRating.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics_metrics/__pycache__/teacherValueController.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics_metrics/__pycache__/teacherValueRank.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/auth.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/batchEmp.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/company.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/departments.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/ding.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/dingAuth.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/employees.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/masterKey.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/menuTree.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/metrics.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permission.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permissionGroup.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permissionGroups.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permission_groups.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permissions.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/plaso.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/roles.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/teachers.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/token.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/user.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/user_api.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/users.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/verificationCode.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/workbench.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/wxMini.cpython-37.pyc&#10;#&#9;script/ji_yun_ying_pc/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/ji_yun_ying_pc/__pycache__/conftest.cpython-37-pytest-6.2.1.pyc&#10;#&#9;script/public_asserts.py"> <list default="true" id="ceb24b37-65a1-4b3f-be3f-7040ebc4079d" name="默认变更列表" comment="Merge remote-tracking branch 'origin/liuqin_jyy'&#10;&#10;# Conflicts:&#10;#&#9;.idea/workspace.xml&#10;#&#9;common/__pycache__/__init__.cpython-37.pyc&#10;#&#9;common/__pycache__/common_config.cpython-37.pyc&#10;#&#9;common/__pycache__/common_util.cpython-37.pyc&#10;#&#9;common/__pycache__/connect_db.cpython-37.pyc&#10;#&#9;common/__pycache__/run_method.cpython-37.pyc&#10;#&#9;run.py&#10;#&#9;script/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/__pycache__/conftest.cpython-37-pytest-6.2.1.pyc&#10;#&#9;script/__pycache__/db_config.cpython-37.pyc&#10;#&#9;script/__pycache__/defalut_account.cpython-37.pyc&#10;#&#9;script/__pycache__/default_header.cpython-37.pyc&#10;#&#9;script/__pycache__/public_asserts.cpython-37.pyc&#10;#&#9;script/base_api/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/department.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/employee.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/permission.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/role.cpython-37.pyc&#10;#&#9;script/base_api/api_admin/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/banner.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/coursePreview.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/homework.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/orderFlow.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_app/__pycache__/playVideo.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/banner.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/buryData.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/goods.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/idea.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/orderFlow.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/productExamination.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/share.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/user.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_jksxb_mini/__pycache__/zan.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/back_clue.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/classes.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/classroom.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/clue.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/employee.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/finance.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/lost_communicate_record.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/memberships.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/public.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/staging.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/statistics.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/students.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_app/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/banner.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/big_screen.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/charge.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/discount.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/expense.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/export.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/introduce.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/orderFlow.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/renewal.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/report.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/ruleSetting.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/share.cpython-37.pyc&#10;#&#9;script/base_api/api_operation_web/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/periodical.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/periodicalManage.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/regime.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/regimeManage.cpython-37.pyc&#10;#&#9;script/base_api/api_periodical/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_research_web/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_research_web/__pycache__/coursePreview.cpython-37.pyc&#10;#&#9;script/base_api/api_research_web/__pycache__/homework.cpython-37.pyc&#10;#&#9;script/base_api/api_research_web/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/api_teach_web/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/api_teach_web/__pycache__/homework.cpython-37.pyc&#10;#&#9;script/base_api/api_teach_web/__pycache__/message.cpython-37.pyc&#10;#&#9;script/base_api/api_teach_web/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/agency.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/back_clue.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/clue.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/communicate.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/crm.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/customMessage.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/customMessageItem.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/dict.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/direct.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/document.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/documentDirectory.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/documentRecord.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/documentTag.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/enum.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/lostStudent.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/lostWarning.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/lost_communicate_record.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/school.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/staging.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/systemMessage.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/__pycache__/systemMessageItem.cpython-37.pyc&#10;#&#9;script/base_api/service_crm/clue.py&#10;#&#9;script/base_api/service_descartes/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_descartes/__pycache__/examine.cpython-37.pyc&#10;#&#9;script/base_api/service_descartes/__pycache__/lessons.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/batch.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/batchClass.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/classCapacity.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/classDirector.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/classes.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/education.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/jst_home.cpython-37.pyc&#10;#&#9;script/base_api/service_education/__pycache__/system.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/applet.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/finance.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/handCash.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/v2.cpython-37.pyc&#10;#&#9;script/base_api/service_finance/__pycache__/web.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/api.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/applet.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/banner.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/carousel.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/diagnosis.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/goods.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/gos.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/gos_api.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/group.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/package.cpython-37.pyc&#10;#&#9;script/base_api/service_gos/__pycache__/shareEvent.cpython-37.pyc&#10;#&#9;script/base_api/service_idea/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_idea/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/service_identity/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_identity/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/applet.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/discount.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/order.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/orderRuleSetting.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/order_api.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/orders.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/payments.cpython-37.pyc&#10;#&#9;script/base_api/service_order/__pycache__/schedule.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/bill.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/callback.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/pay.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/refund.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_pay/__pycache__/weChat.cpython-37.pyc&#10;#&#9;script/base_api/service_pigeon/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_pigeon/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/api.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/applet.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/attendances.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/classChange.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/classHourChange.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/class_.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/classes.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/classfeedback.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/coupon.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/courseNote.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/course_notes.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/external.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/feedback.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/feedbackType.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/finance.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/geekPreviewReport.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/homework.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/login.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/manualSchedule.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/memberships.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/parent.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/performances.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/plaso.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/public.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/purchaseOrder.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/pushRelationship.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/schedules.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/student.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/students.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/studtent.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/teachers.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/transfer_records.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/transferred.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/user.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/userCheckpoint.cpython-37.pyc&#10;#&#9;script/base_api/service_profile/__pycache__/videoPlayAddress.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/api.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/backup.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/baseParam.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/check_recommit.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/cos.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/customHeader.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/entranceExam.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/export.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/finance.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/notice.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/notices.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/preview.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/qrcode.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/resource.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/schools.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/src.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/systemSetting.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/targets.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/upload.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/version.cpython-37.pyc&#10;#&#9;script/base_api/service_public/__pycache__/vod.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/admission.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/basic_training.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/chapter_tree.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/exam.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/examination.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/jst.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/materialContribution.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/monthExamination.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/online.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/questionMaterial.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/question_bank.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/question_jst.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/question_source.cpython-37.pyc&#10;#&#9;script/base_api/service_question/__pycache__/question_video.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/export.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReport.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReportByArea.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReportDayly.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReportOfAll.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getContinueReportTeacherByArea.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/getExpensesByArea.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/login.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/loginInternal.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/report.cpython-37.pyc&#10;#&#9;script/base_api/service_report/__pycache__/src.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/api.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/attendClass.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/cloudDiskController.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/courseWareEvaluateController.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/courseWareScoreController.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/dowLogController.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/examination.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/periodical.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/prepar.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/prepareLessons.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/preview.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/question_bank.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/research.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/teaching_exercise.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/teaching_exercises.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/teaching_plan.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/teaching_plans.cpython-37.pyc&#10;#&#9;script/base_api/service_research/__pycache__/video.cpython-37.pyc&#10;#&#9;script/base_api/service_science/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_science/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_src/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_src/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_src/__pycache__/upload.cpython-37.pyc&#10;#&#9;script/base_api/service_src/__pycache__/versionInfo.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics/__pycache__/geekData.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics/__pycache__/sa.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics/__pycache__/statistics.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics_metrics/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics_metrics/__pycache__/classFeeRating.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics_metrics/__pycache__/teacherValueController.cpython-37.pyc&#10;#&#9;script/base_api/service_statistics_metrics/__pycache__/teacherValueRank.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/app.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/auth.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/batchEmp.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/company.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/departments.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/ding.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/dingAuth.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/employees.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/jst_app.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/masterKey.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/menuTree.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/metrics.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permission.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permissionGroup.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permissionGroups.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permission_groups.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/permissions.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/plaso.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/roles.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/teachers.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/token.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/user.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/user_api.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/users.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/verificationCode.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/workbench.cpython-37.pyc&#10;#&#9;script/base_api/service_user/__pycache__/wxMini.cpython-37.pyc&#10;#&#9;script/ji_yun_ying_pc/__pycache__/__init__.cpython-37.pyc&#10;#&#9;script/ji_yun_ying_pc/__pycache__/conftest.cpython-37-pytest-6.2.1.pyc&#10;#&#9;script/public_asserts.py">
<change afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/order_operation.py" afterDir="false" /> <change afterPath="$PROJECT_DIR$/script/base_api_data/service_user/department_operation.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/promotion_operation.py" afterDir="false" /> <change afterPath="$PROJECT_DIR$/script/global_data_config/add_studnent.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/purchase_single_operation.py" afterDir="false" /> <change afterPath="$PROJECT_DIR$/script/global_data_config/buy_goods.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/base_api_data/service_education/classes_operation.py" afterDir="false" /> <change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/assert_config/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/base_api_data/service_education/classroom_operation.py" afterDir="false" /> <change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/assert_config/apply_assert.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/base_api_data/service_profile/__init__.py" afterDir="false" /> <change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/conftest.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/base_api_data/service_profile/carryover_operation.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/base_api_data/service_user/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/base_api_data/service_user/employee_opration.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/cache_data.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/global_data_config/add_courses_class.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/global_data_config/add_promotion.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/global_data_config/mall_global_data.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/data_config/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/data_config/apply_data.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/test_apply.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/mall_data.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/promotion_data.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_promotion.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/personnel_manage/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/personnel_manage/data_config/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/personnel_manage/data_config/employee_data.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/personnel_manage/test_employee_info.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/common/common_util.py" beforeDir="false" afterPath="$PROJECT_DIR$/common/common_util.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/common/connect_db.py" beforeDir="false" afterPath="$PROJECT_DIR$/common/connect_db.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/common/operation_time.py" beforeDir="false" afterPath="$PROJECT_DIR$/common/operation_time.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/run_cmd.py" beforeDir="false" afterPath="$PROJECT_DIR$/run_cmd.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/run_cmd.py" beforeDir="false" afterPath="$PROJECT_DIR$/run_cmd.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_admin/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_admin/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_app/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_app/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_app/coupon.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_app/coupon.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_app/goods.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_app/goods.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_app/order.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_app/order.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_app/orderFlow.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_app/orderFlow.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_app/query.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_app/seats.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_app/seats.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_app/withdraw.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_app/withdraw.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/coupon.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/coupon.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/goods.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/goods.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/group.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/group.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/order.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/order.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/orderFlow.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/orderFlow.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/package.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/package.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/purchaseList.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/purchaseList.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/query.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/seats.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_jksxb_mini/seats.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_app/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_app/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_app/coupon.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_app/coupon.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_app/goods.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_app/goods.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_app/query.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/big_screen.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/big_screen.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/coupon.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/coupon.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/goods.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/goods.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/order.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/order.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/orderFlow.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/orderFlow.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/package.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/package.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/purchaseList.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/purchaseList.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/query.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/seats.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/seats.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_operation_web/v1.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_operation_web/v1.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_periodical/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_periodical/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/api_research_web/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/api_research_web/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/gos_api/package.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/gos_api/package.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/group/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/group/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/group/center.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/group/micoApp.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/group/order.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/group/order.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_activity/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_activity/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_activity/punch_card.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_activity/punch_card.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_crm/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_crm/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_crm/agency.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_crm/agency.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_crm/school.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_crm/school.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_descartes/examine.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_descartes/examine.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_education/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_education/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_education/education.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_education/education.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_finance/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_finance/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_finance/finance.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_finance/finance.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_gos/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_gos/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_gos/gos.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_gos/gos.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_gos/group.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_gos/group.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_order/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_order/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_pay/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_pay/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_profile/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_profile/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_profile/students.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_profile/students.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_public/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_public/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_question/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_question/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_report/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_report/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_research/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_research/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_research/video.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_research/video.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_statistics/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_statistics/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_statistics_metrics/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_statistics_metrics/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_train/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_train/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_train/teacher_train.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_train/teacher_train.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_user/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_user/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_user/auth.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_user/auth.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api/service_user/employees.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api/service_user/employees.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api_data/api_operation_web/coupon_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/coupon_operation.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/base_api_data/api_operation_web/coupon_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/coupon_operation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api_data/api_operation_web/goods_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/goods_operation.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/base_api_data/api_operation_web/goods_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/goods_operation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api_data/api_operation_web/order_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/order_operation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api_data/api_operation_web/purchase_single_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/purchase_operation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api_data/api_operation_web/student_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/student_operation.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/base_api_data/api_operation_web/student_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/api_operation_web/student_operation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/base_api_data/service_education/courses_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/service_education/courses_operation.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/base_api_data/service_education/classes_operation.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/base_api_data/service_education/classes_operation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/conftest.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/conftest.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/download_flle/jyy_download_file/test_education_download.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/download_flle/jyy_download_file/test_education_download.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/global_data_config/add_coupon_method.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/global_data_config/add_coupon_method.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/global_data_config/add_coupon_method.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/global_data_config/add_coupon_method.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/global_data_config/class_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/global_data_config/class_data.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/global_data_config/add_courses_class.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/global_data_config/add_courses_class.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/global_data_config/download_file.py" beforeDir="false" afterPath="$PROJECT_DIR$/common/download_file.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/global_data_config/mall_global_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/global_data_config/mall_global_data.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/global_data_config/province_code_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/global_data_config/province_code_data.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/data_config/apply_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/data_config/apply_data.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/common/special_chars.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/test_apply.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/crm/test_apply.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig/category_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/category_data.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/coupon_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/coupon_data.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig/coupon_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/coupon_data.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/goods_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/goods_data.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig/goods_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/goods_data.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig/mall_data.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig/package_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_config/package_data.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_category.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_category.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_coupons.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_coupons.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_coupons.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_coupons.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_goods.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_goods.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_promotion.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_promotion.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_package.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/test_package.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tools/init_base_api.py" beforeDir="false" afterPath="$PROJECT_DIR$/tools/init_base_api.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tools/url_to_method.py" beforeDir="false" afterPath="$PROJECT_DIR$/tools/url_to_method.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/tools/url_to_method.py" beforeDir="false" afterPath="$PROJECT_DIR$/tools/url_to_method.py" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -178,7 +79,7 @@ ...@@ -178,7 +79,7 @@
</key> </key>
</component> </component>
<component name="RunManager" selected="Python.run_cmd"> <component name="RunManager" selected="Python.run_cmd">
<configuration name="debug" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="add_coupon_method" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="jk_interface_test" /> <module name="jk_interface_test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
...@@ -186,11 +87,11 @@ ...@@ -186,11 +87,11 @@
<env name="PYTHONUNBUFFERED" value="1" /> <env name="PYTHONUNBUFFERED" value="1" />
</envs> </envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/test" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/global_data_config" />
<option name="IS_MODULE_SDK" value="true" /> <option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" /> <option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/test/debug.py" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/script/global_data_config/add_coupon_method.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
...@@ -199,7 +100,7 @@ ...@@ -199,7 +100,7 @@
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="mall_data" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="debug" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="jk_interface_test" /> <module name="jk_interface_test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
...@@ -207,11 +108,11 @@ ...@@ -207,11 +108,11 @@
<env name="PYTHONUNBUFFERED" value="1" /> <env name="PYTHONUNBUFFERED" value="1" />
</envs> </envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/test" />
<option name="IS_MODULE_SDK" value="true" /> <option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" /> <option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig/mall_data.py" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/test/debug.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
...@@ -220,7 +121,7 @@ ...@@ -220,7 +121,7 @@
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="promotion_data" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="department_operation" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="jk_interface_test" /> <module name="jk_interface_test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
...@@ -228,11 +129,11 @@ ...@@ -228,11 +129,11 @@
<env name="PYTHONUNBUFFERED" value="1" /> <env name="PYTHONUNBUFFERED" value="1" />
</envs> </envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/base_api_data/service_user" />
<option name="IS_MODULE_SDK" value="true" /> <option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" /> <option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/script/ji_yun_ying_pc/mall/store_shopping_mall/data_cofig/promotion_data.py" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/script/base_api_data/service_user/department_operation.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
...@@ -285,18 +186,18 @@ ...@@ -285,18 +186,18 @@
</configuration> </configuration>
<list> <list>
<item itemvalue="Python.run_cmd" /> <item itemvalue="Python.run_cmd" />
<item itemvalue="Python.promotion_data" />
<item itemvalue="Python.mall_data" />
<item itemvalue="Python.debug" /> <item itemvalue="Python.debug" />
<item itemvalue="Python.url_to_method" /> <item itemvalue="Python.url_to_method" />
<item itemvalue="Python.add_coupon_method" />
<item itemvalue="Python.department_operation" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Python.run_cmd" /> <item itemvalue="Python.run_cmd" />
<item itemvalue="Python.department_operation" />
<item itemvalue="Python.url_to_method" /> <item itemvalue="Python.url_to_method" />
<item itemvalue="Python.add_coupon_method" />
<item itemvalue="Python.debug" /> <item itemvalue="Python.debug" />
<item itemvalue="Python.promotion_data" />
<item itemvalue="Python.mall_data" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -349,6 +250,11 @@ ...@@ -349,6 +250,11 @@
<url>file://$PROJECT_DIR$/script/base_api_data/service_user/employee_opration.py</url> <url>file://$PROJECT_DIR$/script/base_api_data/service_user/employee_opration.py</url>
<option name="timeStamp" value="27" /> <option name="timeStamp" value="27" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/script/base_api_data/api_operation_web/student_operation.py</url>
<line>19</line>
<option name="timeStamp" value="30" />
</line-breakpoint>
</breakpoints> </breakpoints>
</breakpoint-manager> </breakpoint-manager>
</component> </component>
......
...@@ -47,7 +47,8 @@ def run_cmd(record_id, case_path_list, cmd_config: dict): ...@@ -47,7 +47,8 @@ def run_cmd(record_id, case_path_list, cmd_config: dict):
if __name__ == '__main__': if __name__ == '__main__':
case_path_list = [ case_path_list = [
"./script/ji_yun_ying_pc/crm/test_apply.py::TestApplyUsePromotion::test_apply_use_common", "./script/ji_yun_ying_pc/crm/test_apply.py::TestApplyUsePromotion::test_apply_use_continue",
# "./script/ji_yun_ying_pc/crm/test_apply.py::test_update_section"
# "./script/ji_yun_ying_pc/personnel_manage/test_employee_info.py::TestEmployeeInfo::test_init_add_employee" # "./script/ji_yun_ying_pc/personnel_manage/test_employee_info.py::TestEmployeeInfo::test_init_add_employee"
] ]
config = { config = {
......
import random import random
from typing import List
from script.base_api.api_operation_web.coupon import coupon_config_list_get from script.base_api.api_operation_web.coupon import coupon_config_list_get
from script.base_api.api_operation_web.coupon import coupon_config_post from script.base_api.api_operation_web.coupon import coupon_config_post
from script.base_api.api_operation_web.coupon import coupon_config_put from script.base_api.api_operation_web.coupon import coupon_config_put
...@@ -13,68 +14,195 @@ from script.base_api.api_operation_web.coupon import coupon_sendByFile_post ...@@ -13,68 +14,195 @@ from script.base_api.api_operation_web.coupon import coupon_sendByFile_post
from script.base_api.api_operation_web.coupon import coupon_sendCouponByKey_post from script.base_api.api_operation_web.coupon import coupon_sendCouponByKey_post
from script.base_api.api_operation_web.coupon import coupon_autoIssue_post from script.base_api.api_operation_web.coupon import coupon_autoIssue_post
from script.base_api.api_operation_web.coupon import coupon_autoIssue_get from script.base_api.api_operation_web.coupon import coupon_autoIssue_get
from script.base_api.api_operation_web.coupon import coupon_receive_recall_list_get
from script.base_api.api_operation_web.coupon import coupon_del_post from script.base_api.api_operation_web.coupon import coupon_del_post
# 记录
from script.base_api.api_operation_web.coupon import coupon_receive_list_get
from script.base_api.api_operation_web.coupon import coupon_receive_recall_list_get
from script.base_api.api_operation_web.coupon import coupon_unDel_post from script.base_api.api_operation_web.coupon import coupon_unDel_post
# 匹配 # 匹配
from script.base_api.api_operation_web.coupon import coupon_matchGoods_get from script.base_api.api_operation_web.coupon import coupon_matchGoods_get
# 学生操作
from script.base_api_data.api_operation_web.student_operation import StudentOperation
from common import common_util
from script.default_header import jyy_header from script.default_header import jyy_header
class CouponSetOperation: class CouponExtra:
def __init__(self, sendType="MANUAL"):
"""
@param sendType:发放类型MANUAL-手动发行 AUTO-自动发行
"""
self.sendType = sendType
# 领取方式
self.paymentWay = "AUTO"
def get_extra(self):
return {
"sendType": self.sendType
}
class CouponDiscountPolicy:
def __init__(self, leastAmount=0, discountType="REDUCE", discountValue=10):
"""
@param leastAmount:
@param discountType :优惠类型: REDUCE:直减 DISCOUNT:折扣
@param discountValue: 优惠面值: REDUCE: 直减金额单位分 DISCOUNT:折扣,例如88 8.8折
"""
self.leastAmount = leastAmount
self.discountType = discountType
self.discountValue = discountValue
def get_discount_policy(self):
return {
"leastAmount": self.leastAmount,
"discountType": self.discountType,
"discountValue": self.discountValue
}
def __init__(self, extra=None, discountPolicy=None, class CouponValidTimePolicy:
validTimePolicy=None, bizType="CASH", goodsRules=None):
def __init__(self, startTime=None, endTime=None, receivedDelayDay: int = None):
"""
@param startTime: 优惠券生效开始时间 "时间戳"
@param endTime: 优惠券生效结束 "时间戳"
@param receivedDelayDay: 领取当日起XX天有效
""" """
@param extra: { self.startTime = startTime
# 发放类型MANUAL-手动发行 AUTO-自动发行 self.endTime = endTime
"sendType": "MANUAL" self.receivedDelayDay = receivedDelayDay
def get_valid_time_policy(self):
valid_time = {}
if self.startTime or self.endTime:
valid_time["fixedTime"] = {
"startTime": self.startTime,
"endTime": self.endTime
}
if self.receivedDelayDay:
valid_time["nowToDelayTime"] = {
"receivedDelayDay": self.receivedDelayDay
}
return valid_time
class CourseGoodsRule:
def __init__(self, courseYears=None, courseTerms=None, courseGrades=None, courseSubjects=None, courseClassTypes=None, courseStages=None):
"""
@param courseYears: "年份; 无限传空数组",
@param courseTerms: "学期;无限传空数组",
@param courseGrades: "年级;无限传空数组",
@param courseSubjects: "科目;无限传空数组",
@param courseClassTypes: "班级;无限传空数组",
@param courseStages: "期数;无限传空数组"
"""
self.courseYears = courseYears
self.courseTerms = courseTerms
self.courseGrades = courseGrades
self.courseSubjects = courseSubjects
self.courseClassTypes = courseClassTypes
self.courseStages = courseStages
def get_course_goods_rule(self):
return {
"courseGoodsRules": {
"courseYears": self.courseYears,
"courseTerms": self.courseTerms,
"courseGrades": self.courseGrades,
"courseSubjects": self.courseSubjects,
"courseClassTypes": self.courseClassTypes,
"courseStages": self.courseStages
}
} }
@param discountPolicy: {
# 优惠券门槛(单位分)默认0
"leastAmount": 0, class CouponGoodsRules:
# 优惠类型: REDUCE:直减 DISCOUNT:折扣
"discountType": "REDUCE", def __init__(self, goodsType="CLASS", channels=None, schoolAreaIds=None, rangeGoodsType="All",
# 优惠面值: REDUCE: 直减金额单位分 DISCOUNT:折扣,例如88 8.8折 goodsIds=None, courseGoodsRule: CourseGoodsRule = None):
"discountValue": 100 """
@param goodsType: "商品课程类型:CLASS班课 CONTENT内容 BOUTIQUE精品"
@param channels:"PC_B:极运营 APP_C:用户手机端 APPLET_C:用户微信小程序"
@param schoolAreaIds:"生效校区ids"
@param rangeGoodsType:"商品范围类型 :ALL:全部商品可用;PART_PROPERTY:部分指定商品属性可用;PART_IDS 指定部分商品可用"
@param goodsIds: "生效商品id,只有当rangeType为PART_IDS 有效"
@param courseGoodsRule: PART_PROPERTY时有效,课程属性匹配规则
"""
self.goodsType = goodsType
self.channels = channels
self.schoolAreaIds = schoolAreaIds
self.rangeGoodsType = rangeGoodsType
self.goodsIds = goodsIds
self.courseGoodsRule = courseGoodsRule
def get_goods_rules(self):
goods_rules = {
"goodsType": self.goodsType,
"channels": self.channels,
"schoolAreaIds": self.schoolAreaIds,
"rangeGoodsType": self.rangeGoodsType
}
goodsRangeRules = {
"goodsIds": self.goodsIds
} }
@param validTimePolicy: if self.courseGoodsRule:
@param bizType: # 优惠券业务类型 CASH: 金 FULL_REDUCE:满减 goodsRangeRules["goodsRulePartPropertyRules"] = self.courseGoodsRule.get_course_goods_rule()
@param goodsRules: else:
goodsRangeRules["goodsRulePartPropertyRules"] = None
goods_rules["goodsRangeRules"] = goodsRangeRules
return goods_rules
class CouponSetOperation:
def __init__(self, bizType="CASH", extra: CouponExtra = None, discountPolicy: CouponDiscountPolicy = None,
validTimePolicy: CouponValidTimePolicy = None, goodsRules: CouponGoodsRules = None):
"""
@param extra: CouponExtra对象
@param discountPolicy: CouponDiscountPolicy对象
@param validTimePolicy:CouponValidTimePolicy 对象
@param bizType: 优惠券业务类型 CASH: 金 FULL_REDUCE:满减, 默认现金
@param goodsRules:CouponGoodsRules 对象
""" """
self.name = f"自动化接口优惠券_{random.randint(100000000, 999999999)}" self.name = f"自动化接口优惠券_{random.randint(100000000, 999999999)}"
self.desc = f"自动化接口优惠券描述_{random.randint(100000000, 999999999)}" self.desc = f"自动化接口优惠券描述_{random.randint(100000000, 999999999)}"
self.remark = f"自动化接口优惠券备注_{random.randint(100000000, 999999999)}"
self.bizType = bizType
self.extra = extra self.extra = extra
self.discountPolicy = discountPolicy self.discountPolicy = discountPolicy
self.validTimePolicy = validTimePolicy self.validTimePolicy = validTimePolicy
self.remark = f"自动化接口优惠券备注_{random.randint(100000000, 999999999)}"
self.bizType = bizType
self.goodsRules = goodsRules self.goodsRules = goodsRules
self.status = None
self.coupon_id = None self.coupon_id = None
self.coupon_items: List[CouponItemOperation] = []
# 新增实例优惠券设置 # 新增实例优惠券设置
def add_coupon_set(self): def add_coupon_set(self):
body = { body = {
"name": self.name, "name": self.name,
"desc": self.desc, "desc": self.desc,
"extra": self.extra, "extra": self.extra.get_extra(),
"discountPolicy": self.discountPolicy, "discountPolicy": self.discountPolicy.get_discount_policy(),
"validTimePolicy": self.validTimePolicy, "validTimePolicy": self.validTimePolicy.get_valid_time_policy(),
"remark": self.remark, "remark": self.remark,
"bizType": self.bizType, "bizType": self.bizType,
"goodsRules": self.goodsRules "goodsRules": self.goodsRules.get_goods_rules()
} }
res = coupon_config_post(body=body, header=jyy_header) res = coupon_config_post(body=body, header=jyy_header)
data = res.get("data") data = res.get("data")
if data: if data:
self.coupon_id = data self.coupon_id = data
self.status = "ENABLED"
return res return res
# 编辑实例优惠券设置 # 编辑实例优惠券设置
def edit_current_coupon_set(self, status="ENABLED"): def edit_current_coupon_set(self):
""" """
@param status: 启用:ENABLED 禁用:DISABLED
@return: @return:
""" """
self.name = self.name + str(random.randint(100, 1000)) self.name = self.name + str(random.randint(100, 1000))
...@@ -84,16 +212,22 @@ class CouponSetOperation: ...@@ -84,16 +212,22 @@ class CouponSetOperation:
"id": self.coupon_id, "id": self.coupon_id,
"name": self.name, "name": self.name,
"desc": self.desc, "desc": self.desc,
"status": status, "status": self.status,
"extra": self.extra, "extra": self.extra.get_extra(),
"discountPolicy": self.discountPolicy, "discountPolicy": self.discountPolicy.get_discount_policy(),
"validTimePolicy": self.validTimePolicy, "validTimePolicy": self.validTimePolicy.get_valid_time_policy(),
"remark": self.remark, "remark": self.remark,
"bizType": self.bizType, "bizType": self.bizType,
"goodsRules": self.goodsRules "goodsRules": self.goodsRules.get_goods_rules()
} }
return coupon_config_put(body=body, header=jyy_header) return coupon_config_put(body=body, header=jyy_header)
# 当前优惠设置在列表是否存在
def is_have_current_coupon_set(self):
return self.is_have_coupon_set(self.coupon_id, coupon_name=self.name, statuses=self.status,
bizType=self.bizType, channels=self.goodsRules.channels,
schoolAreaIds=self.goodsRules.schoolAreaIds)
# 删除当前实例优惠券设置 # 删除当前实例优惠券设置
def delete_current_coupon_set(self): def delete_current_coupon_set(self):
return self.delete_coupon_set([self.coupon_id]) return self.delete_coupon_set([self.coupon_id])
...@@ -104,6 +238,7 @@ class CouponSetOperation: ...@@ -104,6 +238,7 @@ class CouponSetOperation:
@param status: "启用:ENABLED 禁用:DISABLED @param status: "启用:ENABLED 禁用:DISABLED
@return: @return:
""" """
self.status = status
return self.stop_or_start_coupon_set(self.coupon_id, status=status) return self.stop_or_start_coupon_set(self.coupon_id, status=status)
# 获取当前优惠券设置详情 # 获取当前优惠券设置详情
...@@ -114,6 +249,27 @@ class CouponSetOperation: ...@@ -114,6 +249,27 @@ class CouponSetOperation:
def current_coupon_good_list(self): def current_coupon_good_list(self):
return self.coupon_good_list(self.coupon_id) return self.coupon_good_list(self.coupon_id)
# 获取学生当前优惠券领取记录列表
def get_student_receive_current_coupon_list(self, studentNo, status=""):
"""
@param status: 多个以隔号隔开;UNUSE:未使用 USED:使用 INVALID:失效
@param studentNo: 学号
@return:
"""
return self.get_student_receive_coupon_list(self.coupon_id, studentNo=studentNo, status=status)
# 当前优惠券在线发放优惠券
def online_send_coupon_item(self, student: StudentOperation):
coupon_item = CouponItemOperation(student, self)
student_is_have = self.get_student_receive_current_coupon_list(student.studentNo)
student_is_have_ids = [x.get("id") for x in student_is_have]
# 发放优惠券
self.send_coupon_by_student_no(self.coupon_id, studentNos=[student.studentNo])
is_have = coupon_item.is_have_current_coupon_item(is_have_id=student_is_have_ids)
if is_have:
self.coupon_items.append(coupon_item)
return coupon_item
# 获取优惠券设置列表 # 获取优惠券设置列表
@staticmethod @staticmethod
def get_coupon_set_list(pageNum=1, pageSize=10, statuses="ENABLED", keyword="", def get_coupon_set_list(pageNum=1, pageSize=10, statuses="ENABLED", keyword="",
...@@ -147,26 +303,25 @@ class CouponSetOperation: ...@@ -147,26 +303,25 @@ class CouponSetOperation:
# 获取优惠券设置列表 # 获取优惠券设置列表
@classmethod @classmethod
def is_have_coupon_set(cls, coupon_id, coupon_name="", statuses="ENABLED", bizType="CASH"): def is_have_coupon_set(cls, coupon_id, coupon_name="", statuses="ENABLED", bizType="CASH", validStatuses="", channels="", schoolAreaIds=""):
""" """
@param schoolAreaIds:
@param channels:
@param validStatuses:
@param coupon_id: @param coupon_id:
@param coupon_name: @param coupon_name:
@param statuses: 启用:ENABLED 禁用:DISABLED @param statuses: 启用:ENABLED 禁用:DISABLED
@param bizType: 优惠券业务类型 CASH: 现金 FULL_REDUCE:满减 @param bizType: 优惠券业务类型 CASH: 现金 FULL_REDUCE:满减
@return: @return:
""" """
res = cls.get_coupon_set_list(pageSize=500, bizType=bizType, statuses=statuses) res = cls.get_coupon_set_list(pageSize=500, bizType=bizType, statuses=statuses, keyword=coupon_name,
channels=channels, validStatuses=validStatuses, schoolAreaIds=schoolAreaIds)
data = res.get("data") data = res.get("data")
if data: if data:
data_list = data.get("list") data_list = data.get("list")
data_list = [x for x in data_list if x.get("id") == coupon_id data_list = [x for x in data_list if x.get("id") == coupon_id]
and x.get("name") == coupon_name]
if data_list: if data_list:
return data_list[0] return data_list[0]
else:
return False
else:
return False
# 删除优惠券设置 # 删除优惠券设置
@staticmethod @staticmethod
...@@ -226,24 +381,6 @@ class CouponSetOperation: ...@@ -226,24 +381,6 @@ class CouponSetOperation:
} }
return coupon_autoIssue_get(params=params, header=jyy_header) return coupon_autoIssue_get(params=params, header=jyy_header)
# 查询已撤回优惠券列表
@staticmethod
def get_receive_coupon_list_search(couponId, keyword="", pageNum=1, pageSize=10):
"""
@param pageSize:
@param pageNum:
@param couponId:
@param keyword: 学生姓名、学生id、学号
@return:
"""
params = {
"pageNum": pageNum,
"pageSize": pageSize,
"couponId": couponId,
"keyword": keyword,
}
return coupon_receive_recall_list_get(params=params, header=jyy_header)
# 按学生信息发放优惠券 # 按学生信息发放优惠券
@staticmethod @staticmethod
def send_coupon_by_student_info(couponIds, schoolAreaIds, year, term, def send_coupon_by_student_info(couponIds, schoolAreaIds, year, term,
...@@ -313,22 +450,104 @@ class CouponSetOperation: ...@@ -313,22 +450,104 @@ class CouponSetOperation:
} }
return coupon_sendByFile_post(body=body, header=jyy_header) return coupon_sendByFile_post(body=body, header=jyy_header)
# 查询已撤回优惠券列表
@staticmethod
def get_receive_recall_coupon_list(couponId, keyword="", pageNum=1, pageSize=10):
"""
@param pageSize:
@param pageNum:
@param couponId:
@param keyword: 学生姓名、学生id、学号
@return:
"""
params = {
"pageNum": pageNum,
"pageSize": pageSize,
"couponId": couponId,
"keyword": keyword,
}
return coupon_receive_recall_list_get(params=params, header=jyy_header)
# 优惠券领取记录列表
@staticmethod
def get_receive_coupon_list(couponId, keyword="", status="", pageNum=1, pageSize=10):
"""
@param status: 多个以隔号隔开;UNUSE:未使用 USED:使用 INVALID:失效
@param pageSize:
@param pageNum:
@param couponId:
@param keyword: 学生姓名、学生id、学号
@return:
"""
params = {
"pageNum": pageNum,
"pageSize": pageSize,
"couponId": couponId,
"keyword": keyword,
"status": status
}
return coupon_receive_list_get(params=params, header=jyy_header)
# 获取学生优惠券领取记录列表
@staticmethod
def get_student_receive_coupon_list(couponId, studentNo="", status=""):
"""
@param status: 多个以隔号隔开;UNUSE:未使用 USED:使用 INVALID:失效
@param couponId:
@param studentNo: 学号
@return:
"""
res = CouponSetOperation.get_receive_coupon_list(couponId, keyword=studentNo, status=status, pageSize=100)
coupon_item_list = common_util.get_list_by_res(res, is_all=True)
coupon_item_list = [x for x in coupon_item_list if x.get("student").get("studentNo") == studentNo]
return coupon_item_list
class CouponItemOperation: class CouponItemOperation:
def __init__(self, student: StudentOperation, coupon: CouponSetOperation):
self.student = student
self.coupon = coupon
self.coupon_id = coupon.coupon_id
self.bizType = coupon.bizType
self.extra = coupon.extra
self.discountPolicy = coupon.discountPolicy
self.validTimePolicy = coupon.validTimePolicy
self.goodsRules = coupon.goodsRules
# UNUSE:未使用 # USED:使用 # INVALID:失效
self.status = "UNUSE"
self.is_del = False
self.coupon_item_id = None
# 撤回当前优惠券
def receive_current_coupon_item(self):
return self.receive_coupon_item(self.coupon_item_id)
# 取消撤回当前优惠券
def cancel_receive_current_coupon_item(self):
return self.cancel_receive_coupon_item(self.coupon_item_id)
# 当前优惠券在领取记录中是否存在
def is_have_current_coupon_item(self, status="", is_have_id=[]):
coupon_item = self.is_have_coupon_item(self.coupon_id, studentNo=self.student.studentNo, status=status, is_have_id=is_have_id)
if coupon_item:
self.coupon_item_id = coupon_item.get("id")
return coupon_item
# 撤回优惠券 # 撤回优惠券
@ staticmethod @ staticmethod
def receive_coupon(couponId): def receive_coupon_item(couponItemId):
body = { body = {
"couponId": couponId "couponId": couponItemId
} }
return coupon_del_post(body=body, header=jyy_header) return coupon_del_post(body=body, header=jyy_header)
# 取消撤回优惠券 # 取消撤回优惠券
@staticmethod @staticmethod
def cancel_receive_coupon(couponId): def cancel_receive_coupon_item(couponItemId):
body = { body = {
"couponId": couponId "couponId": couponItemId
} }
return coupon_unDel_post(body=body, header=jyy_header) return coupon_unDel_post(body=body, header=jyy_header)
...@@ -347,6 +566,17 @@ class CouponItemOperation: ...@@ -347,6 +566,17 @@ class CouponItemOperation:
} }
return coupon_matchGoods_get(params=params, header=jyy_header) return coupon_matchGoods_get(params=params, header=jyy_header)
# 优惠券在领取记录中是否存在
@staticmethod
def is_have_coupon_item(couponId, studentNo="", status="", is_have_id=[]):
res = CouponSetOperation.get_receive_coupon_list(couponId, keyword=studentNo, status=status, pageSize=100)
coupon_item_list = common_util.get_list_by_res(res, is_all=True)
coupon_item_list = [x for x in coupon_item_list if x.get("id") not in is_have_id
and x.get("student").get("studentNo") == studentNo]
if coupon_item_list:
return coupon_item_list[0]
......
from typing import Union
import random import random
# 商品类目 # 商品类目
from script.base_api.api_operation_web.goods import goods_category_get from script.base_api.api_operation_web.goods import goods_category_get
...@@ -18,10 +19,11 @@ from script.base_api.api_operation_web.goods import goods_generalPageList_post ...@@ -18,10 +19,11 @@ from script.base_api.api_operation_web.goods import goods_generalPageList_post
from script.default_header import jyy_header from script.default_header import jyy_header
from script.global_data_config.add_courses_class import AddCoursesAndClass from script.global_data_config.add_courses_class import AddCoursesAndClass
from script.global_data_config.province_code_data import ProvinceCode from script.global_data_config.province_code_data import ProvinceCode
from script.base_api_data.service_education.classes_operation import RoutineClassOperation
from script.base_api_data.service_education.classes_operation import BoutiqueClassOperation
class CategoryOperation: class CategoryOperation:
subject_list = ["CHINESE", "MATH", "ENGLISH", "PHYSICS", "CHEMISTRY"] subject_list = ["CHINESE", "MATH", "ENGLISH", "PHYSICS", "CHEMISTRY"]
subject_list_map = { subject_list_map = {
"CHINESE": "语文", "CHINESE": "语文",
...@@ -176,7 +178,7 @@ class CategoryOperation: ...@@ -176,7 +178,7 @@ class CategoryOperation:
def edit_area_category(area_category_id, subjects): def edit_area_category(area_category_id, subjects):
body = { body = {
"id": area_category_id, "id": area_category_id,
"subjects": subjects "subjects": subjects
} }
return goods_politicsArea_category_put(body=body, header=jyy_header) return goods_politicsArea_category_put(body=body, header=jyy_header)
...@@ -189,18 +191,11 @@ class CategoryOperation: ...@@ -189,18 +191,11 @@ class CategoryOperation:
class GoodsOperation: class GoodsOperation:
courseType_list = ["CLASS", " CONTENT", " BOUTIQUE"]
subject_list = ["CHINESE", "MATH", "ENGLISH", "PHYSICS", "CHEMISTRY"]
courseSubType_list = ["NORMAL", "V1_1"]
courseTerm_list = ["SPRING", "SUMMER", "AUTUMN", "WINTER"]
courseTeachWay_list = ["FACE", "LIVE"]
channels_list = ["PC_B", "APP_C", "APPLET_C"]
def __init__(self): def __init__(self):
self.name = None self.name = None
self.goodsInfo = None self.goodsInfo = None
self.goods_id = None self.goods_id = None
self.goodsClass = None self.goodsClass: Union[RoutineClassOperation, BoutiqueClassOperation, None] = None
self.storeId = None self.storeId = None
# 新增当前商品 # 新增当前商品
...@@ -210,14 +205,32 @@ class GoodsOperation: ...@@ -210,14 +205,32 @@ class GoodsOperation:
courseStatus="1", priceType=1, isNormal=1, courseStatus="1", priceType=1, isNormal=1,
classBeginDate=None, classStudentNum=10, phase=1, schoolArea=None, is_have_teacher=False, classBeginDate=None, classStudentNum=10, phase=1, schoolArea=None, is_have_teacher=False,
is_have_classroom=False, is_have_schedule=False, weeks=["星期一", "星期二"], is_have_classroom=False, is_have_schedule=False, weeks=["星期一", "星期二"],
beginTime="08:00:00"): beginTime="08:00:00", uphalfCoursePeriod=None):
class_obj_list = AddCoursesAndClass.add_routine_courses_and_class(year=year, term=term, subject=subject, grade=grade, classType=classType, class_obj_list = AddCoursesAndClass.add_routine_courses_and_class(year=year, term=term, subject=subject, grade=grade, classType=classType,
teachForm=teachForm, schools=schools, registerGrade=registerGrade, coursePeriod=coursePeriod, teachForm=teachForm, schools=schools, registerGrade=registerGrade, coursePeriod=coursePeriod,
courseNumber=courseNumber, totalPrice=totalPrice, perPeriodDuration=perPeriodDuration, courseNumber=courseNumber, totalPrice=totalPrice, perPeriodDuration=perPeriodDuration,
coursePrice=coursePrice, courseStatus=courseStatus, priceType=priceType, isNormal=isNormal, coursePrice=coursePrice, courseStatus=courseStatus, priceType=priceType, isNormal=isNormal,
classBeginDate=classBeginDate, classStudentNum=classStudentNum, phase=phase, schoolArea=schoolArea, classBeginDate=classBeginDate, classStudentNum=classStudentNum, phase=phase, schoolArea=schoolArea,
is_have_teacher=is_have_teacher, is_have_classroom=is_have_classroom, is_have_teacher=is_have_teacher, is_have_classroom=is_have_classroom,
is_have_schedule=is_have_schedule, weeks=weeks, beginTime=beginTime) is_have_schedule=is_have_schedule, weeks=weeks, beginTime=beginTime, uphalfCoursePeriod=uphalfCoursePeriod)
if class_obj_list:
class_obj = class_obj_list[0]
self.goodsClass = class_obj
self.name = class_obj.className
self.storeId = class_obj.schoolArea
return class_obj
# 新增当前精品商品
def add_current_boutique_goods(self, year=None, term=None, subject="数学", grade="三年级", classType="一对六定制班", teachForm="offline", schools=None,
courseNumber="10", coursePrice="100", courseStatus="1", duration="2", classBeginDate=None, classStudentNum=10,
schoolArea=None, is_have_teacher=False, is_have_classroom=False, is_have_schedule=False, weeks=["星期一", "星期二"],
beginTime="08:00:00"):
class_obj_list = AddCoursesAndClass.add_boutique_courses_and_class(year=year, term=term, subject=subject, grade=grade,
classType=classType, teachForm=teachForm, schools=schools,
coursePrice=coursePrice, courseStatus=courseStatus, classBeginDate=classBeginDate,
classStudentNum=classStudentNum, schoolArea=schoolArea, courseNumber=courseNumber, duration=duration,
is_have_teacher=is_have_teacher, is_have_classroom=is_have_classroom, is_have_schedule=is_have_schedule,
weeks=weeks, beginTime=beginTime)
if class_obj_list: if class_obj_list:
class_obj = class_obj_list[0] class_obj = class_obj_list[0]
self.goodsClass = class_obj self.goodsClass = class_obj
...@@ -246,12 +259,12 @@ class GoodsOperation: ...@@ -246,12 +259,12 @@ class GoodsOperation:
"payBeginTime": payBeginTime, "payBeginTime": payBeginTime,
"payEndTime": payEndTime, "payEndTime": payEndTime,
"channels": channels, "channels": channels,
"images": ["image_url", "image_url"], "images": ["image_url", "image_url"],
"detailImage": "image_url", "detailImage": "image_url",
"videos": ["videos_url", "videos_url"], "videos": ["videos_url", "videos_url"],
"poster": "image_url", "poster": "image_url",
"desc": f"商品描述{random.randint(100000, 999999)}", "desc": f"商品描述{random.randint(100000, 999999)}",
"shareDesc": f"商品分享描述{random.randint(100000, 999999)}" "shareDesc": f"商品分享描述{random.randint(100000, 999999)}"
} }
return goods_manage_update_put(body=body, header=jyy_header) return goods_manage_update_put(body=body, header=jyy_header)
...@@ -260,7 +273,7 @@ class GoodsOperation: ...@@ -260,7 +273,7 @@ class GoodsOperation:
return self.delete_goods([self.goods_id]) return self.delete_goods([self.goods_id])
# 上下架当前商品 # 上下架当前商品
def up_and_down_current_goods(self, saleBeginTime, saleEndTime, payBeginTime, payEndTime, sale=True): def up_and_down_current_goods(self, saleBeginTime, saleEndTime, payBeginTime, payEndTime, sale=True):
""" """
@param payBeginTime: @param payBeginTime:
@param payEndTime: @param payEndTime:
...@@ -334,18 +347,11 @@ class GoodsOperation: ...@@ -334,18 +347,11 @@ class GoodsOperation:
# 商品在列表是否存在 # 商品在列表是否存在
@classmethod @classmethod
def is_have_goods(cls, goods_name, storeIds=None): def is_have_goods(cls, goods_name, storeIds=None):
# res = cls.get_goods_manage_list(pageSize=1000, keyword=goods_name) res = cls.get_goods_manage_list(pageSize=1000, keyword=goods_name, storeIds=storeIds)
# data = res.get("data")
# if data:
# data_list = data.get("list")
# if data_list:
# return data_list[0]
res = cls.get_goods_manage_list(pageSize=1000, storeIds=storeIds)
data = res.get("data") data = res.get("data")
if data: if data:
data_list = data.get("list") data_list = data.get("list")
data_list = [x for x in data_list if x.get("name") == goods_name] if data_list and len(data_list) == 1:
if data_list:
return data_list[0] return data_list[0]
# 商品管理列表查询 # 商品管理列表查询
...@@ -442,309 +448,3 @@ class GoodsOperation: ...@@ -442,309 +448,3 @@ class GoodsOperation:
} }
return goods_generalPageList_post(body=body, header=jyy_header) return goods_generalPageList_post(body=body, header=jyy_header)
# class GoodsOperation:
#
# courseType_list = ["CLASS", " CONTENT", " BOUTIQUE"]
# subject_list = ["CHINESE", "MATH", "ENGLISH", "PHYSICS", "CHEMISTRY"]
# courseSubType_list = ["NORMAL", "V1_1"]
# courseTerm_list = ["SPRING", "SUMMER", "AUTUMN", "WINTER"]
# courseTeachWay_list = ["FACE", "LIVE"]
# channels_list = ["PC_B", "APP_C", "APPLET_C"]
#
# def __init__(self, price=1000, courseType="CLASS", courseSubType="NORMAL", courseGrades=["三年级"], courseSubjects=["MATH"],
# courseTeachWay="FACE", saleBeginTime=None, saleEndTime=None, payBeginTime=None, payEndTime=None, channels=None,
# coursePeriod=None, courseTerm="AUTUMN", courseYear=2021, courseClsType="JI_SI", storeId=None, sourceId=None):
# """
# @param price: 商品售价
# @param storeId: 商家id(校区id)
# @param sourceId: 商品来源id(班级id)"
# @param courseType: 商品课程类型:CLASS班课 CONTENT内容 BOUTIQUE精品
# @param courseSubType: 商品课程班型:NORMAL常规 V1_1一对一
# @param courseClsType: 商品课程班型:JI_SI极思 V1_1一对一
# @param courseGrades: 商品课程年级
# @param courseSubjects: 商品课程学科:MATH数学 ENGLISH英语 CHINESE语文
# @param courseTerm: 商品课程学期:SPRING春 SUMMER暑 AUTUMN秋 WINTER寒"
# @param courseYear: 商品课程年份
# @param courseTeachWay: 商品课程授课方式:FACE面授 LIVE直播
# @param coursePeriod: 商品课程总课时
# @param saleBeginTime: 上架开始时间
# @param saleEndTime: 上架结束时间
# @param payBeginTime: 购买开始时间
# @param payEndTime: 购买结束时间
# @param channels: 上架渠道列表
# """
# self.name = f"自动化商品名称{random.randint(100000, 999999)}"
# self.price = price
# self.originalPrice = 10000
# self.storeId = storeId
# self.sourceId = sourceId
# self.courseType = courseType
# self.courseSubType = courseSubType
# self.courseClsType = courseClsType
# self.courseGrades = courseGrades
# self.courseSubjects = courseSubjects
# self.courseTerm = courseTerm
# self.courseYear = courseYear
# self.courseTeachWay = courseTeachWay
# self.coursePeriod = coursePeriod
# self.saleBeginTime = saleBeginTime
# self.saleEndTime = saleEndTime
# self.payBeginTime = payBeginTime
# self.payEndTime = payEndTime
# self.channels = channels
# self.images = ["image_url", "image_url"]
# self.videos = ["videos_url", "videos_url"]
# self.detailImage = "image_url"
# self.poster = "image_url"
# self.desc = f"商品描述{random.randint(100000, 999999)}"
# self.shareDesc = f"商品分享描述{random.randint(100000, 999999)}"
# self.goods_id = None
#
# # 新增当前商品
# def add_current_goods(self):
# body = {
# "name": self.name,
# "price": self.price,
# "originalPrice": self.originalPrice,
# "storeId": self.storeId,
# "sourceId": self.sourceId,
# "courseType": self.courseType,
# "courseSubType": self.courseSubType,
# "courseClsType": self.courseClsType,
# "courseGrades": self.courseGrades,
# "courseSubjects": self.courseSubjects,
# "courseTerm": self.courseTerm,
# "courseYear": self.courseYear,
# "courseTeachWay": self.courseTeachWay,
# "coursePeriod": self.coursePeriod,
# "images": self.images,
# "videos": self.videos,
# "detailImage": self.detailImage,
# "poster": self.poster,
# "desc": self.desc,
# "shareDesc": self.shareDesc,
# "saleBeginTime": self.saleBeginTime,
# "saleEndTime": self.saleEndTime,
# "payBeginTime": self.payBeginTime,
# "payEndTime": self.payEndTime,
# "channels": self.channels
# }
# res = goods_manage_create_post(body=body, header=jyy_header)
# data = res.get("data")
# code = res.get("code")
# if data and code == 0:
# self.goods_id = data
# return res
#
# # 编辑当前商品
# def edit_current_goods(self, price=100):
# """
# @param price: 价格的变化数, 默认加100
# @return:
# """
# self.name = self.name + str(random.randint(1000, 9999))
# self.desc = self.desc + str(random.randint(1000, 9999))
# self.shareDesc = self.shareDesc + str(random.randint(1000, 9999))
# self.price = self.price + price
# body = {
# "id": self.goods_id,
# "name": self.name,
# "price": self.price,
# "originalPrice": self.originalPrice,
# "saleBeginTime": self.saleBeginTime,
# "saleEndTime": self.saleEndTime,
# "payBeginTime": self.payBeginTime,
# "payEndTime": self.payEndTime,
# "channels": self.channels,
# "images": self.images,
# "detailImage": self.detailImage,
# "videos": self.videos,
# "poster": self.poster,
# "desc": self.desc,
# "shareDesc": self.shareDesc
# }
# return goods_manage_update_put(body=body, header=jyy_header)
#
# # 删除当前商品
# def delete_current_goods(self):
# return self.delete_goods([self.goods_id])
#
# # 上下架当前商品
# def up_and_down_current_goods(self, sale=True):
# """
# @param sale: false下架 true上架
# @return:
# """
# return self.up_and_down_goods([self.goods_id], saleBeginTime=self.saleBeginTime, saleEndTime=self.saleEndTime, sale=sale)
#
# # 获取当前商品详情
# def get_current_goods_detail(self):
# return self.get_goods_detail(self.goods_id)
#
# # 当前商品在列表是否存在
# def is_have_current_goods(self):
# return self.is_have_goods(self.goods_id, self.name)
#
# # 编辑商品
# @staticmethod
# def edit_goods(goods_id, name="编辑商品名称", price=1000, originalPrice=None, saleBeginTime=None, saleEndTime=None, payBeginTime=None,
# payEndTime=None, channels=None, images=None, detailImage=None, videos=None, poster=None, desc=None, shareDesc=None):
# body = {
# "id": goods_id,
# "name": name,
# "price": price,
# "originalPrice": originalPrice,
# "saleBeginTime": saleBeginTime,
# "saleEndTime": saleEndTime,
# "payBeginTime": payBeginTime,
# "payEndTime": payEndTime,
# "channels": channels,
# "images": images,
# "detailImage": detailImage,
# "videos": videos,
# "poster": poster,
# "desc": desc,
# "shareDesc": shareDesc
# }
# return goods_manage_update_put(body=body, header=jyy_header)
#
# # 删除商品
# @staticmethod
# def delete_goods(goods_ids):
# goods_ids = ",".join(goods_ids)
# return goods_manage_delete_delete(params={"ids": goods_ids}, header=jyy_header)
#
# # 上下架商品
# @staticmethod
# def up_and_down_goods(good_ids, saleBeginTime, saleEndTime, sale=True):
# """
# @param good_ids:
# @param saleBeginTime: 2021-01-01
# @param saleEndTime: 2022-01-01
# @param sale: false下架 true上架
# @return:
# """
# body = {
# "ids": good_ids,
# "sale": sale,
# "saleBeginTime": saleBeginTime,
# "saleEndTime": saleEndTime
# }
# return goods_manage_sale_post(body=body, header=jyy_header)
#
# # 查询商品详情
# @staticmethod
# def get_goods_detail(goods_id):
# return goods_manage_detail_get(params={"id": goods_id}, header=jyy_header)
#
# # 商品在列表是否存在
# @classmethod
# def is_have_goods(cls, goods_id, goods_name):
# res = cls.get_goods_manage_list(pageSize=1000)
# data = res.get("data")
# if data:
# data_list = data.get("list")
# data_list = [x for x in data_list if x.get("id") == goods_id
# and x.get("name") == goods_name]
# if data_list:
# return data_list[0]
# else:
# return False
# else:
# return False
#
# # 商品管理列表查询
# @staticmethod
# def get_goods_manage_list(pageNum=1, pageSize=10, keyword="", status=1, is_del=0, storeIds=None, categories=None, courseYear=None,
# courseTerm=None, courseType=None, courseSubType=None, courseClsType=None, courseTeachWay=None):
# """
# @param pageNum:
# @param pageSize:
# @param keyword:
# @param status:
# @param is_del: 是否删除
# @param storeIds: 校区id列表
# @param categories: 类目code列表
# @param courseYear:
# @param courseTerm:
# @param courseType:
# @param courseSubType:
# @param courseClsType: 课程班型:JI_SI极思 V1_1一对一
# @param courseTeachWay: 课程授课形式
# @return:
# """
# body = {
# "pageNum": pageNum,
# "pageSize": pageSize,
# "status": status,
# "del": is_del,
# "storeIds": storeIds,
# "categories": categories,
# "courseYear": courseYear,
# "courseTerm": courseTerm,
# "courseType": courseType,
# "courseSubType": courseSubType,
# "courseClsType": courseClsType,
# "courseTeachWay": courseTeachWay,
# "keyword": keyword
# }
# return goods_manage_pageList_post(body=body, header=jyy_header)
#
# # 商品选购列表查询
# @staticmethod
# def get_goods_page_list(pageNum=1, pageSize=10, keyword="", storeIds=None, courseYear=None, courseTerm=None, courseType=None,
# courseSubType=None, courseClsType=None, courseGrade=None, courseSubject=None, courseTeachWay=None):
# """
# @param courseSubject: 商品课程学科:MATH数学 ENGLISH英语 CHINESE语文
# @param courseGrade:
# @param pageNum:
# @param pageSize:
# @param keyword:
# @param storeIds: 商家id(校区id)
# @param courseYear:
# @param courseTerm:商品课程学期:SPRING春 SUMMER暑 AUTUMN秋 WINTER寒
# @param courseType:商品课程类型:CLASS班课 CONTENT内容 BOUTIQUE精品
# @param courseSubType:商品课程课型:NORMAL常规
# @param courseClsType: 课程班型:JI_SI极思 V1_1一对一
# @param courseTeachWay: 商品课程授课方式:FACE面授 LIVE直播
# @return: 商品选购接口响应
# """
# body = {
# "pageNum": pageNum,
# "pageSize": pageSize,
# "storeId": storeIds,
# "courseType": courseType,
# "courseSubType": courseSubType,
# "courseClsType": courseClsType,
# "courseGrade": courseGrade,
# "courseSubject": courseSubject,
# "courseTerm": courseTerm,
# "courseYear": courseYear,
# "courseTeachWay": courseTeachWay,
# "keyword": keyword
# }
# return goods_pageList_post(body=body, header=jyy_header)
#
# # 测试商品通用分页查询
# @staticmethod
# def get_goods_general_page_list(pageNum=1, pageSize=10, keyword="", status=1, is_del=0, storeIds=None, categories=None, courseYear=None,
# courseTerm=None, courseType=None, courseSubType=None, courseClsType=None, courseTeachWay=None, goodsIds=None):
# body = {
# "pageNum": pageNum,
# "pageSize": pageSize,
# "status": status,
# "del": is_del,
# "storeIds": storeIds,
# "categories": categories,
# "courseYear": courseYear,
# "courseTerm": courseTerm,
# "courseType": courseType,
# "courseSubType": courseSubType,
# "courseClsType": courseClsType,
# "courseTeachWay": courseTeachWay,
# "keyword": keyword,
# "goodsIds": goodsIds
# }
# return goods_generalPageList_post(body=body, header=jyy_header)
...@@ -19,7 +19,8 @@ from script.base_api.api_operation_web.orderFlow import orderFlow_preValidOrderC ...@@ -19,7 +19,8 @@ from script.base_api.api_operation_web.orderFlow import orderFlow_preValidOrderC
from script.base_api.api_operation_web.orderFlow import orderFlow_queryMatchDiscountAndCoupon_post from script.base_api.api_operation_web.orderFlow import orderFlow_queryMatchDiscountAndCoupon_post
from script.base_api.api_operation_web.orderFlow import orderFlow_queryOperator_get from script.base_api.api_operation_web.orderFlow import orderFlow_queryOperator_get
from script.base_api.api_operation_web.orderFlow import orderFlow_calculateOrderPrice_post from script.base_api.api_operation_web.orderFlow import orderFlow_calculateOrderPrice_post
# 购课单
from script.base_api_data.api_operation_web.purchase_operation import PurchaseOperation
from script.base_api_data.api_operation_web.student_operation import StudentOperation from script.base_api_data.api_operation_web.student_operation import StudentOperation
from script.base_api_data.api_operation_web.goods_operation import GoodsOperation from script.base_api_data.api_operation_web.goods_operation import GoodsOperation
from script.cache_data import cache_data from script.cache_data import cache_data
...@@ -44,7 +45,7 @@ class OrderOperation: ...@@ -44,7 +45,7 @@ class OrderOperation:
self.calculationSign = "" self.calculationSign = ""
# 使用发放给学生的优惠券集合 # 使用发放给学生的优惠券集合
self.couponItems = [] self.couponItems = []
# 自定义优惠信息 {"discountNum": "自定义优惠价钱","calculationType": "自定义优惠计算类型 直减:DIRECT_REDUCTION 折扣:DISCOUNT"} # 自定义优惠信息 {"discountNum": "自定义优惠价钱","calculationType": "自定义优惠计算类型 直减:DIRECT_REDUCTION 折扣:DISCOUNT", "discountDesc": "自定义优惠说明"}
self.manualDiscount = None self.manualDiscount = None
# 电子钱包信息{ "epayDeduction": "电子钱包","bonus": "奖励金"} # 电子钱包信息{ "epayDeduction": "电子钱包","bonus": "奖励金"}
self.electronicAccount = None self.electronicAccount = None
...@@ -53,8 +54,10 @@ class OrderOperation: ...@@ -53,8 +54,10 @@ class OrderOperation:
# 创建人信息 {"creatorName": "创建者名字","creatorId": "创建者id", "creatorType": "创建者类型 用户:USER 员工:STAFF"} # 创建人信息 {"creatorName": "创建者名字","creatorId": "创建者id", "creatorType": "创建者类型 用户:USER 员工:STAFF"}
self.creator = {} self.creator = {}
self.orderId = None self.orderId = None
self.orderNo = None
self.orderStatus = None self.orderStatus = None
self.subOrderInfo = None self.subOrderInfo = None
self.purchase = []
self.set_creator() self.set_creator()
# 保存当前订单 # 保存当前订单
...@@ -67,7 +70,7 @@ class OrderOperation: ...@@ -67,7 +70,7 @@ class OrderOperation:
"operatorId": self.operatorId, "operatorId": self.operatorId,
"downFlag": self.downFlag, "downFlag": self.downFlag,
"calculationSign": self.calculationSign, "calculationSign": self.calculationSign,
"couponItemIds": [x.get("couponItemId") for x in self.couponItems], "couponItemIds": [x.get("id") for x in self.couponItems],
"manualDiscount": self.manualDiscount, "manualDiscount": self.manualDiscount,
"electronicAccount": self.electronicAccount, "electronicAccount": self.electronicAccount,
"goodsDetailList": [{"goodsId": x.get("id"), "buyNum": x.get("buyNum"), "discountIdList": x.get("discountIdList") "goodsDetailList": [{"goodsId": x.get("id"), "buyNum": x.get("buyNum"), "discountIdList": x.get("discountIdList")
...@@ -78,14 +81,20 @@ class OrderOperation: ...@@ -78,14 +81,20 @@ class OrderOperation:
code = res.get("code") code = res.get("code")
data = res.get("data") data = res.get("data")
if code == 0 and data: if code == 0 and data:
self.orderId = data self.orderId = data.get("orderId")
self.orderNo = data.get("orderNo")
self.payAmount = data.get("payAmount")
return res return res
# 设置当前订单的学生 # 设置当前订单的学生和学生购课单
def set_student_id(self, studentName, schoolAreaId=None): def set_student_id(self, studentName, schoolAreaId=None):
schoolAreaId = schoolAreaId or self.creatorStoreId schoolAreaId = schoolAreaId or self.creatorStoreId
res = StudentOperation.get_student_list(studentName=studentName, schoolAreaId=schoolAreaId, usePosition="signUp") res = StudentOperation.get_student_list(studentName=studentName, schoolAreaId=schoolAreaId, usePosition="signUp")
self.studentInfo = get_list_by_res(res) self.studentInfo = get_list_by_res(res)
purchase_res = PurchaseOperation.get_purchase_list(self.studentInfo.get("studentId"))
purchase_res_data = purchase_res.get("data")
if purchase_res_data:
self.purchase = purchase_res_data
return self.studentInfo return self.studentInfo
# 设置当前订单的创建人 # 设置当前订单的创建人
...@@ -123,11 +132,115 @@ class OrderOperation: ...@@ -123,11 +132,115 @@ class OrderOperation:
courseClsType=courseClsType, courseGrade=courseGrade, courseSubject=courseSubject, courseClsType=courseClsType, courseGrade=courseGrade, courseSubject=courseSubject,
courseTeachWay=courseTeachWay) courseTeachWay=courseTeachWay)
goods = get_list_by_res(res) goods = get_list_by_res(res)
if goods and buy_num is None: if goods:
goods["buyNum"] = goods.get("coursePeriod") if buy_num:
goods["buyNum"] = buy_num
else:
goods["buyNum"] = goods.get("coursePeriod")
self.goodsDetailList.append(goods) self.goodsDetailList.append(goods)
return goods return goods
# 设置当前订单的分段上商品信息
def set_up_to_goods_detail_list(self, buy_num=None, keyword=None, storeIds=None, courseYear=None, courseTerm=None, courseType=None,
courseSubType=None, courseClsType=None, courseGrade=None, courseSubject=None, courseTeachWay=None):
"""
@param buy_num: 购买的课时数,默认全部课时
@param courseSubject: 商品课程学科:MATH数学 ENGLISH英语 CHINESE语文
@param courseGrade:
@param keyword:
@param storeIds: 商家id(校区id)
@param courseYear:
@param courseTerm:商品课程学期:SPRING春 SUMMER暑 AUTUMN秋 WINTER寒
@param courseType:商品课程类型:CLASS班课 CONTENT内容 BOUTIQUE精品
@param courseSubType:商品课程课型:NORMAL常规
@param courseClsType: 课程班型:JI_SI极思 V1_1一对一
@param courseTeachWay: 商品课程授课方式:FACE面授 LIVE直播
@return:
"""
storeIds = storeIds or self.creatorStoreId
res = GoodsOperation.get_goods_page_list(pageNum=1, pageSize=50, keyword=keyword, storeIds=storeIds, courseYear=courseYear,
courseTerm=courseTerm, courseType=courseType, courseSubType=courseSubType,
courseClsType=courseClsType, courseGrade=courseGrade, courseSubject=courseSubject,
courseTeachWay=courseTeachWay)
goods = get_list_by_res(res)
if goods:
segments = goods.get("segments")
if segments and len(segments) == 2:
segment_up = segments[0]
if buy_num:
goods["buyNum"] = buy_num
else:
goods["buyNum"] = segment_up.get("courseHour")
self.goodsDetailList.append(goods)
return segment_up
# 设置当前订单的分段下商品信息
def set_down_to_goods_detail_list(self, goods_id, buy_num=None):
"""
@param goods_id: 商品ID
@param buy_num: 购买的课时数,默认全部课时
@return:
"""
try:
down_goods = [x for x in self.purchase if x.get("source") == "DOWN" and x.get("goodsInfo").get("id") == goods_id]
if down_goods and len(down_goods) == 1:
goods = down_goods[0]
goods_info = goods.get("goodsInfo")
segments = goods_info.get("segments")
if segments and len(segments) == 2:
segment = segments[1]
if buy_num:
goods["buyNum"] = buy_num
else:
goods["buyNum"] = segment.get("courseHour")
self.goodsDetailList.append(goods_info)
return segment
except Exception as e:
print(e)
# 从购课单选择要购买的商品
def set_purchase_to_goods_detail_list(self, goodsIds):
have_goodsIds = [x.get("id") for x in self.goodsDetailList]
for x in self.purchase:
if x.get("id") in goodsIds and x.get("id") not in have_goodsIds:
self.goodsDetailList.append(x)
# 加入购课单
def add_goods_to_purchase(self, buy_num=None, keyword=None, courseYear=None, courseTerm=None, courseType=None,
courseSubType=None, courseClsType=None, courseGrade=None, courseSubject=None, courseTeachWay=None):
"""
@param buy_num: 购买的课时数,默认全部课时
@param courseSubject: 商品课程学科:MATH数学 ENGLISH英语 CHINESE语文
@param courseGrade:
@param keyword:
@param courseYear:
@param courseTerm:商品课程学期:SPRING春 SUMMER暑 AUTUMN秋 WINTER寒
@param courseType:商品课程类型:CLASS班课 CONTENT内容 BOUTIQUE精品
@param courseSubType:商品课程课型:NORMAL常规
@param courseClsType: 课程班型:JI_SI极思 V1_1一对一
@param courseTeachWay: 商品课程授课方式:FACE面授 LIVE直播
@return:
"""
storeIds = self.creatorStoreId
res = GoodsOperation.get_goods_page_list(pageNum=1, pageSize=50, keyword=keyword, storeIds=storeIds, courseYear=courseYear,
courseTerm=courseTerm, courseType=courseType, courseSubType=courseSubType,
courseClsType=courseClsType, courseGrade=courseGrade, courseSubject=courseSubject,
courseTeachWay=courseTeachWay)
goods = get_list_by_res(res)
if goods:
have_goods_ids = [x.get("id") for x in self.purchase]
if goods.get("id") not in have_goods_ids:
if buy_num:
goods["buyNum"] = buy_num
else:
goods["buyNum"] = goods.get("coursePeriod")
self.purchase.append(goods)
return goods
# 商品移除购课单
def remove_goods_from_purchase(self, goodsIds):
self.purchase = [x for x in self.purchase if x.get("id") not in goodsIds]
# 设置当前订单的电子钱包信息 # 设置当前订单的电子钱包信息
def set_electronic_account(self, epayDeduction=0, bonus=0): def set_electronic_account(self, epayDeduction=0, bonus=0):
""" """
...@@ -157,15 +270,17 @@ class OrderOperation: ...@@ -157,15 +270,17 @@ class OrderOperation:
} }
# 设置当前订单的自定义优惠信息 # 设置当前订单的自定义优惠信息
def set_custom_discount(self, discountNum=0, calculationType="DIRECT_REDUCTION"): def set_custom_discount(self, discountNum=0, calculationType="DIRECT_REDUCTION", discountDesc="本人子女"):
""" """
@param discountDesc: 自定义优惠类型说明
@param discountNum: 自定义优惠价钱 @param discountNum: 自定义优惠价钱
@param calculationType: "自定义优惠计算类型 直减:DIRECT_REDUCTION 折扣:DISCOUNT" @param calculationType: "自定义优惠计算类型 直减:DIRECT_REDUCTION 折扣:DISCOUNT"
@return: @return:
""" """
self.manualDiscount = { self.manualDiscount = {
"discountNum": discountNum, "discountNum": discountNum,
"calculationType": calculationType "calculationType": calculationType,
"discountDesc": discountDesc
} }
# 设置当前订单的价格 # 设置当前订单的价格
...@@ -196,17 +311,22 @@ class OrderOperation: ...@@ -196,17 +311,22 @@ class OrderOperation:
if promotionGoods: if promotionGoods:
promotionGoods = promotionGoods[0] promotionGoods = promotionGoods[0]
discountList = promotionGoods.get("discountList") discountList = promotionGoods.get("discountList")
discountIdList = [x.get("discountId") for x in discountList] if discountList:
discountIdList = [x.get("discountId") for x in discountList]
else:
discountIdList = []
else: else:
discountIdList = [] discountIdList = []
goods["discountIdList"] = discountIdList goods["discountIdList"] = discountIdList
return self.calculationSign return self.calculationSign
def set_coupon(self, match_res_data=None): def set_coupon(self, match_res_data=None, couponItems=None):
if match_res_data is None: if couponItems is None:
res = self.get_current_order_match_discount() res = self.get_current_order_match_discount()
match_res_data = res.get("data") match_res_data = res.get("data")
if match_res_data: self.couponItems = match_res_data.get("canUseCoupons")
if couponItems:
self.couponItems = couponItems
self.calculationSign = match_res_data.get("calculationSign") self.calculationSign = match_res_data.get("calculationSign")
return self.calculationSign return self.calculationSign
...@@ -214,7 +334,7 @@ class OrderOperation: ...@@ -214,7 +334,7 @@ class OrderOperation:
enjoyerId = self.studentInfo.get("studentId") enjoyerId = self.studentInfo.get("studentId")
goodsDetailList = [{"goodsId": x.get("id"), "buyNum": x.get("buyNum"), "discountIdList": x.get("discountIdList", []), goodsDetailList = [{"goodsId": x.get("id"), "buyNum": x.get("buyNum"), "discountIdList": x.get("discountIdList", []),
"totalPrice": x.get("price"), "coursePeriod": x.get("coursePeriod")} for x in self.goodsDetailList] "totalPrice": x.get("price"), "coursePeriod": x.get("coursePeriod")} for x in self.goodsDetailList]
couponItemIds = [x.get("couponItemId") for x in self.couponItems] couponItemIds = [x.get("id") for x in self.couponItems]
return self.calculate_order_price_post(enjoyerId, self.calculationSign, goodsDetailList, couponItemIds=couponItemIds, return self.calculate_order_price_post(enjoyerId, self.calculationSign, goodsDetailList, couponItemIds=couponItemIds,
manualDiscount=self.manualDiscount, downFlag=self.downFlag) manualDiscount=self.manualDiscount, downFlag=self.downFlag)
...@@ -477,4 +597,5 @@ class OrderOperation: ...@@ -477,4 +597,5 @@ class OrderOperation:
# 获取pos机信息 # 获取pos机信息
@staticmethod @staticmethod
def get_pay_pos_info(schoolArea): def get_pay_pos_info(schoolArea):
return pay_boc_pos_posInfo_get(params=f"schoolArea={schoolArea}", header=jyy_header) return pay_boc_pos_posInfo_get(params=f"schoolArea={schoolArea}", header=jyy_header)
\ No newline at end of file
...@@ -3,7 +3,7 @@ from script.base_api.api_operation_web.purchaseList import purchaseList_query_ge ...@@ -3,7 +3,7 @@ from script.base_api.api_operation_web.purchaseList import purchaseList_query_ge
from script.default_header import jyy_header from script.default_header import jyy_header
class PurchaseSingleOperation: class PurchaseOperation:
# 查询学生极运营购课单 # 查询学生极运营购课单
@staticmethod @staticmethod
......
import time
import jsonpath
import random import random
from script.base_api.api_operation_web.student import student_add_post from script.base_api.api_operation_web.student import student_add_post
from script.base_api.service_profile.students import students_studentInfo_get from script.base_api.service_profile.students import students_studentInfo_get
from script.base_api.service_profile.students import students_check_message_get from script.base_api.service_profile.students import students_check_message_get
from script.base_api.api_operation_web.v1 import v1_query_student_electronicAccount_get from script.base_api.api_operation_web.v1 import v1_query_student_electronicAccount_get
# 发优惠查询学生
from script.base_api.service_profile.students import students_querySimpleInfoByNo_get
# 数据库
from common.connect_db import OperationMysqlDb from common.connect_db import OperationMysqlDb
# header
from script.default_header import jyy_header from script.default_header import jyy_header
from common import common_util
class StudentOperation: class StudentOperation:
...@@ -58,7 +57,7 @@ class StudentOperation: ...@@ -58,7 +57,7 @@ class StudentOperation:
self.studentPassword = None self.studentPassword = None
# 新增当前学生 # 新增当前学生
def add_current_student(self): def add_current_student(self, is_set_password=False):
body = { body = {
"studentName": self.studentName, "studentName": self.studentName,
"studentSex": self.studentSex, "studentSex": self.studentSex,
...@@ -100,9 +99,16 @@ class StudentOperation: ...@@ -100,9 +99,16 @@ class StudentOperation:
if code == 0 and data: if code == 0 and data:
self.studentId = data.get("studentId") self.studentId = data.get("studentId")
self.studentNo = data.get("studentNo") self.studentNo = data.get("studentNo")
self.studentPassword = self.set_password(self.firstUserPhone) if is_set_password:
self.studentPassword = self.set_password(self.firstUserPhone)
return res return res
def is_have_current_student(self):
res = self.get_student_list(studentName=self.studentNo, schoolAreaId=str(self.schoolArea), usePosition="signUp")
student_info = common_util.get_list_by_res(res)
if student_info:
return student_info
# 设置当前学生密码88888888 # 设置当前学生密码88888888
@staticmethod @staticmethod
def set_password(userPhone, password="099b83907f50f1ef1e4217692b0a24e027ea2482507470b42fdaca353313ac6ccc8a1597fd4f9187a2063ab3a356095d55aa8b013f583b3811fffa89d79e1696"): def set_password(userPhone, password="099b83907f50f1ef1e4217692b0a24e027ea2482507470b42fdaca353313ac6ccc8a1597fd4f9187a2063ab3a356095d55aa8b013f583b3811fffa89d79e1696"):
...@@ -150,4 +156,9 @@ class StudentOperation: ...@@ -150,4 +156,9 @@ class StudentOperation:
params = f"studentId={studentId}" params = f"studentId={studentId}"
return v1_query_student_electronicAccount_get(params=params, header=jyy_header) return v1_query_student_electronicAccount_get(params=params, header=jyy_header)
# 发优惠查询学生
@staticmethod
def get_student_by_no(studentNo):
params = f"studentNo={studentNo}"
return students_querySimpleInfoByNo_get(params=params, header=jyy_header)
...@@ -129,7 +129,7 @@ class ClassOperation: ...@@ -129,7 +129,7 @@ class ClassOperation:
return self.classId return self.classId
# 设置排课信息 # 设置排课信息
def set_current_class_class_class_schedule(self, weeks=["星期一", "星期二"], beginTime="08:00:00"): def set_current_class_class_schedule(self, weeks=["星期一", "星期二"], beginTime="08:00:00"):
""" """
@param weeks: 周列表["星期一", "星期二"] @param weeks: 周列表["星期一", "星期二"]
@param beginTime: 开始时间 @param beginTime: 开始时间
...@@ -281,6 +281,8 @@ class BoutiqueClassOperation(ClassOperation): ...@@ -281,6 +281,8 @@ class BoutiqueClassOperation(ClassOperation):
# 新增当前班级 # 新增当前班级
def add_current_class(self): def add_current_class(self):
params = "recommit-ticket=temp-ticket" params = "recommit-ticket=temp-ticket"
self.className = f"{self.courseInfo.get('year')}{self.courseInfo.get('term')}{self.courseInfo.get('grade')}" + \
f"{self.courseInfo.get('subject')}{self.courseInfo.get('classType')}{self.className}"
body = { body = {
"classNo": self.classNo, "classNo": self.classNo,
"classAbbreviation": self.classAbbreviation, "classAbbreviation": self.classAbbreviation,
...@@ -294,13 +296,12 @@ class BoutiqueClassOperation(ClassOperation): ...@@ -294,13 +296,12 @@ class BoutiqueClassOperation(ClassOperation):
"classStudentNum": self.classStudentNum, "classStudentNum": self.classStudentNum,
"courseNumber": self.courseNumber, "courseNumber": self.courseNumber,
"duration": self.duration, "duration": self.duration,
"className": f"{self.courseInfo.get('year')}{self.courseInfo.get('term')}{self.courseInfo.get('grade')}" + "className": self.className
f"{self.courseInfo.get('subject')}{self.courseInfo.get('classType')}{self.className}"
} }
return education_classes_add_post(params=params, body=body, header=jyy_header) return education_classes_add_post(params=params, body=body, header=jyy_header)
# 设置排课信息 # 设置排课信息
def set_current_class_class_class_schedule(self, weeks, beginTime): def set_current_class_class_schedule(self, weeks=["星期一", "星期二"], beginTime="08:00:00"):
""" """
@param weeks: 周列表["星期一", "星期二"] @param weeks: 周列表["星期一", "星期二"]
@param beginTime: 开始时间 @param beginTime: 开始时间
......
from typing import Union, List
from script.base_api.service_user.departments import departments_school_post
from script.base_api.service_crm.clue import clue_protect_school_protect_frequency_update_put
from script.base_api.service_crm.clue import clue_protect_school_follow_frequency_update_put
from script.base_api.service_user.departments import departments_editConvertNum_post
from script.base_api.service_user.departments import departments_school_list_get
from script.default_header import jyy_header
from common.common_util import get_list_by_res
class SchoolSectionValue:
def __init__(self, term, upRegisterDeadline, registerDeadline):
"""
@param term: 期段
@param upRegisterDeadline: 上报名结束时间 "2020/12/31 23:59:59"
@param registerDeadline: 报名结束时间 "2020/12/31 23:59:59"
"""
self.upRegisterDeadline = upRegisterDeadline
self.registerDeadline = registerDeadline
self.term = term
def get_section_value_dict(self):
return {
"term": self.term,
"upRegisterDeadline": self.upRegisterDeadline,
"registerDeadline": self.registerDeadline
}
class SchoolClueProtection:
def __init__(self, schoolAreaId, schoolAreaName, followFrequency=7, protection=True, protectionFrequency=31):
"""
@type protectionFrequency: 线索保护时长
@param followFrequency: 下次跟进时间间隔
@param protection: 是否执行线索保护
@param schoolAreaId:
@param schoolAreaName:
"""
self.followFrequency = followFrequency
self.protection = protection
self.protectionFrequency = protectionFrequency
self.schoolAreaId = schoolAreaId
self.schoolAreaName = schoolAreaName
class SchoolCommuniqueRule:
def __init__(self, grade, subject, platform, term, beginDate, endDate):
"""
@param grade: ["3"]
@param subject: ["PHYSICS", "ENGLISH"]
@param platform: ["PC_B"]
@param term: "AUTUMN": 暑秋, SPRING:寒春
@param beginDate: "2021-06-24 00:00:00"
@param endDate: "2021-06-24 00:00:00"
"""
self.grade = grade
self.subject = subject
self.beginDate = beginDate
self.endDate = endDate
self.platform = platform
self.term = term
def get_communique_rule_dict(self):
return {
"grade": self.grade,
"subject": self.subject,
"signInTime": [self.beginDate, self.endDate],
"beginDate": self.beginDate,
"endDate": self.endDate,
"platform": self.platform,
"term": self.term
}
class SchoolAreaOperation:
def __init__(self, school_area_id):
self.address = None
self.city = None
self.cityName = None
self.communiqueRule = None
self.convertNum = None
self.county = None
self.countyName = None
self.enable = None
self.fullName = None
self.schoolAreaId = school_area_id
self.images = []
self.kingdeeNo = None
self.latitude = None
self.longitude = None
self.name = None
self.openFinancialTerm = None
self.openFinancialYear = None
self.phone = None
self.province = None
self.provinceName = None
self.regionName = None
self.schoolClueProtection: Union[SchoolClueProtection, None] = None
self.seatRule = None
self.sectionSetting = None
self.sectionValue: Union[List[SchoolSectionValue], None] = None
self.sectionValueStr = None
self.shortName = None
self.workingEndTime = None
self.workingStartTime = None
self.communiqueRule: Union[List[SchoolCommuniqueRule], None] = None
self.get_current_school()
def get_current_school(self):
res = self.get_school_list(schoolIds=str(self.schoolAreaId))
school = get_list_by_res(res)
if school and isinstance(school, dict):
self.address = school.get("address")
self.city = school.get("city")
self.cityName = school.get("cityName")
self.convertNum = school.get("convertNum")
self.county = school.get("county")
self.countyName = school.get("countyName")
self.enable = school.get("enable")
self.fullName = school.get("fullName")
self.images = school.get("images")
self.kingdeeNo = school.get("kingdeeNo")
self.latitude = school.get("latitude")
self.longitude = school.get("longitude")
self.name = school.get("name")
self.openFinancialTerm = school.get("openFinancialTerm")
self.openFinancialYear = school.get("openFinancialYear")
self.phone = school.get("phone")
self.province = school.get("province")
self.provinceName = school.get("provinceName")
self.regionName = school.get("regionName")
self.sectionSetting = school.get("sectionSetting")
self.sectionValueStr = school.get("sectionValueStr")
self.shortName = school.get("shortName")
self.workingEndTime = school.get("workingEndTime")
self.workingStartTime = school.get("workingStartTime")
seatRule = school.get("seatRule")
if seatRule:
self.seatRule = seatRule.get("enable")
sectionValue = school.get("sectionValue")
if sectionValue and isinstance(sectionValue, list):
self.sectionValue = [SchoolSectionValue(x.get("term"), x.get("upRegisterDeadline"), x.get("registerDeadline"))
for x in sectionValue]
schoolClueProtection = school.get("schoolClueProtection")
if schoolClueProtection:
self.schoolClueProtection = SchoolClueProtection(schoolAreaId=schoolClueProtection.get("schoolAreaId"),
schoolAreaName=schoolClueProtection.get("schoolAreaName"),
followFrequency=schoolClueProtection.get("followFrequency"),
protection=schoolClueProtection.get("protection"),
protectionFrequency=schoolClueProtection.get("protectionFrequency"))
communiqueRule = school.get("communiqueRule")
if communiqueRule and isinstance(communiqueRule, list):
self.communiqueRule = [SchoolCommuniqueRule(x.get("grade"), x.get("subject"), x.get("platform"), x.get("term"), x.get("beginDate"), x.get("endDate"))
for x in communiqueRule]
# 编辑当前校区
def edit_current_school_area(self):
body = {
"id": self.schoolAreaId,
"name": self.name,
"enable": self.enable,
"workingStartTime": self.workingStartTime,
"workingEndTime": self.workingEndTime,
"phone": self.phone,
"province": self.province,
"provinceName": self.provinceName,
"city": self.city,
"cityName": self.cityName,
"county": self.county,
"countyName": self.countyName,
"address": self.address,
"images": self.images,
"longitude": self.longitude,
"latitude": self.latitude,
"seatRule": {"enable": self.seatRule},
"sectionSetting": self.sectionSetting,
"openFinancialYear": self.openFinancialYear,
"openFinancialTerm": self.openFinancialTerm,
"sectionValue": [x.get_section_value_dict() for x in self.sectionValue] if self.sectionValue else None,
"communiqueRule": [x.get_communique_rule_dict() for x in self.communiqueRule] if self.communiqueRule else None
}
return departments_school_post(body=body, header=jyy_header)
# 编辑当前是否在小程序显示
def edit_is_show_small_program(self, is_show=True):
self.enable = is_show
return self.edit_current_school_area()
# 分段设置
def set_school_section(self, sectionValues: List[SchoolSectionValue], is_section=True):
if is_section:
self.sectionSetting = 1
self.sectionValue = sectionValues
return self.edit_current_school_area()
else:
self.sectionSetting = 0
self.sectionValue = None
return self.edit_current_school_area()
# 设置某个期段的分段
def update_school_one_term_section(self, term, upRegisterDeadline, registerDeadline):
if self.sectionValue:
update_section_list = [x for x in self.sectionValue if x.term == term]
if update_section_list:
update_section = update_section_list[0]
update_section.upRegisterDeadline = upRegisterDeadline
update_section.registerDeadline = registerDeadline
return self.edit_current_school_area()
else:
update_section = SchoolSectionValue(term, upRegisterDeadline, registerDeadline)
self.sectionValue.append(update_section)
return self.edit_current_school_area()
else:
self.sectionSetting = 1
update_section = SchoolSectionValue(term, upRegisterDeadline, registerDeadline)
self.sectionValue = [update_section]
return self.edit_current_school_area()
# 编辑线索保护
def edit_current_school_clue_protect_frequency(self):
return self.edit_school_clue_protect_frequency(self.schoolClueProtection.protection,
protection=self.schoolClueProtection.protection,
protectionFrequency=self.schoolClueProtection.protectionFrequency)
# 编辑线索跟进频率
def edit_current_school_clue_follow_frequency(self):
return self.edit_school_clue_follow_frequency(self.schoolClueProtection.followFrequency,
followFrequency=self.schoolClueProtection.followFrequency)
# 编辑当前校区人次折算金额
def edit_current_school_person_time_convert_num(self):
return self.edit_school_person_time_convert_num(self.schoolAreaId, num=self.convertNum)
# 编辑校区人次折算金额
@staticmethod
def edit_school_person_time_convert_num(school_id, num=1600):
body = {"id": school_id, "convertNum": num}
return departments_editConvertNum_post(body=body, header=jyy_header)
# 编辑线索跟进频率
@staticmethod
def edit_school_clue_follow_frequency(schoolAreaId, followFrequency=7):
body = {
"followFrequency": followFrequency,
"schoolAreaId": schoolAreaId
}
return clue_protect_school_follow_frequency_update_put(body=body, header=jyy_header)
# 编辑线索保护
@staticmethod
def edit_school_clue_protect_frequency(schoolAreaId, protection=True, protectionFrequency=10):
body = {
"protection": schoolAreaId,
"schoolAreaId": protection,
"protectionFrequency": protectionFrequency
}
return clue_protect_school_protect_frequency_update_put(body=body, header=jyy_header)
@staticmethod
def get_school_list(queryKey="", schoolIds="", pageNum=1, pageSize=10):
params = {
"queryKey":queryKey,
"schoolIds": schoolIds,
"pageNum": pageNum,
"pageSize": pageSize
}
return departments_school_list_get(params=params, header=jyy_header)
from script.base_api_data.api_operation_web.coupon_operation import CouponSetOperation
import random import random
from script.base_api_data.api_operation_web.coupon_operation import CouponExtra, CouponDiscountPolicy, CouponValidTimePolicy, CouponGoodsRules
from script.base_api_data.api_operation_web.coupon_operation import CourseGoodsRule
from script.base_api_data.api_operation_web.coupon_operation import CouponSetOperation
from script.global_data_config.school_data import SchoolDataConfig from script.global_data_config.school_data import SchoolDataConfig
from common.operation_time import GetTime from common.operation_time import GetTime
from script.global_data_config.mall_global_data import MallGlobalData
class AddCouponMethod: class AddCouponMethod:
allSchoolAreaIds = SchoolDataConfig.get_department_id() default_school_area_ids = [3015]
bizType_list = ["CASH", "FULL_REDUCE"]
sendType_list = ["MANUAL", "AUTO"]
channels_list = ["PC_B", "APP_C", "APPLET_C"]
rangeGoodsType_list = ["ALL", "PART_PROPERTY", "PART_IDS"]
discountType_list = ["REDUCE", "DISCOUNT"]
goodsType_list = ["CLASS", "CONTENT", "BOUTIQUE"]
goodsId_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
@classmethod @classmethod
def add_cash_coupon(cls, sendType="MANUAL", discountValue=10, startTime=None, endTime=None, receivedDelayDay=0, goodsType="CLASS", def add_cash_coupon(cls, sendType="MANUAL", discountValue=1000, startTime=None, endTime=None, receivedDelayDay=0, goodsType="CLASS",
channels=None, schoolAreaIds=None, rangeGoodsType="ALL", goodsIds=None, **kwargs): channels=None, schoolAreaIds=None, rangeGoodsType="ALL", goodsIds=None, courseGrades=None,
courseSubjects=None, courseYears=None, courseTerms=None, courseClassTypes=None,
courseStages=None) -> CouponSetOperation:
""" """
@param courseStages:
@param courseClassTypes:
@param courseTerms:
@param courseYears:
@param courseSubjects:
@param courseGrades:
@param sendType: 发放类型 @param sendType: 发放类型
@param endTime: receivedDelayDay为0时, 有效,默认7天后 @param endTime: receivedDelayDay为0时, 有效,默认7天后
@param startTime: receivedDelayDay为0时, 有效,默认当天 @param startTime: receivedDelayDay为0时, 有效,默认当天
...@@ -31,35 +34,37 @@ class AddCouponMethod: ...@@ -31,35 +34,37 @@ class AddCouponMethod:
@param schoolAreaIds: 校区id @param schoolAreaIds: 校区id
@param rangeGoodsType: 生效商品 @param rangeGoodsType: 生效商品
@param goodsIds: 商品ID @param goodsIds: 商品ID
@param kwargs: 包含(courseGrades=[], courseSubjects=[], courseYears=[],courseTerms=[], courseClassTypes=[], courseStages=[])
@return: 如果不传入参数,创建手动、优惠10元、当天开始到7天后、常规班、全部校区、全部渠道、全部商品生效的优惠券,名称随机,如果创建失败返回False @return: 如果不传入参数,创建手动、优惠10元、当天开始到7天后、常规班、全部校区、全部渠道、全部商品生效的优惠券,名称随机,如果创建失败返回False
""" """
extra = { extra = CouponExtra(sendType=sendType)
"sendType": sendType discountPolicy = CouponDiscountPolicy(discountType="REDUCE", discountValue=discountValue)
}
discountPolicy = {
"leastAmount": 0,
"discountType": "REDUCE",
"discountValue": discountValue
}
if receivedDelayDay: if receivedDelayDay:
validTimePolicy = cls.get_valid_time_policy(receivedDelayDay=receivedDelayDay, return_type="nowToDelayTime") validTimePolicy = cls.get_valid_time_policy(receivedDelayDay=receivedDelayDay, return_type="nowToDelayTime")
else: else:
validTimePolicy = cls.get_valid_time_policy(startTime=startTime, endTime=endTime, return_type="fixedTime") validTimePolicy = cls.get_valid_time_policy(startTime=startTime, endTime=endTime)
channels = channels or cls.channels_list channels = channels or MallGlobalData.channels_list
schoolAreaIds = schoolAreaIds or cls.allSchoolAreaIds schoolAreaIds = schoolAreaIds or cls.default_school_area_ids
goodsRules = cls.get_goods_rules_by_params(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds, goodsRules = cls.get_goods_rules_by_params(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds, rangeGoodsType=rangeGoodsType,
rangeGoodsType=rangeGoodsType, goodsIds=goodsIds, **kwargs) goodsIds=goodsIds, courseGrades=courseGrades, courseSubjects=courseSubjects, courseYears=courseYears,
co = CouponSetOperation(extra=extra, discountPolicy=discountPolicy, validTimePolicy=validTimePolicy, goodsRules=goodsRules) courseTerms=courseTerms, courseClassTypes=courseClassTypes, courseStages=courseStages)
co = CouponSetOperation(bizType="CASH", extra=extra, discountPolicy=discountPolicy, validTimePolicy=validTimePolicy, goodsRules=goodsRules)
co.add_coupon_set() co.add_coupon_set()
if co.coupon_id: is_have = co.is_have_current_coupon_set()
if is_have:
return co return co
@classmethod @classmethod
def add_full_reduce_coupon(cls, leastAmount=100, sendType="MANUAL", discountValue=10, startTime=None, endTime=None, receivedDelayDay=0, def add_full_reduce_coupon(cls, sendType="MANUAL", leastAmount=10000, discountValue=1000, startTime=None, endTime=None,
goodsType="CLASS", channels=None, schoolAreaIds=None, receivedDelayDay=0, goodsType="CLASS", channels=None, schoolAreaIds=None, rangeGoodsType="ALL",
rangeGoodsType="ALL", goodsIds=None, **kwargs) -> CouponSetOperation: goodsIds=None, courseGrades=None, courseSubjects=None, courseYears=None, courseTerms=None,
courseClassTypes=None, courseStages=None) -> CouponSetOperation:
""" """
@param courseStages:
@param courseClassTypes:
@param courseTerms:
@param courseYears:
@param courseSubjects:
@param courseGrades:
@param leastAmount: 满减条件金额 @param leastAmount: 满减条件金额
@param sendType: 发放类型 @param sendType: 发放类型
@param endTime: receivedDelayDay为0时, 有效,默认7天后 @param endTime: receivedDelayDay为0时, 有效,默认7天后
...@@ -71,147 +76,89 @@ class AddCouponMethod: ...@@ -71,147 +76,89 @@ class AddCouponMethod:
@param schoolAreaIds: 校区id @param schoolAreaIds: 校区id
@param rangeGoodsType: 生效商品 @param rangeGoodsType: 生效商品
@param goodsIds: 商品ID @param goodsIds: 商品ID
@param kwargs: 包含(courseGrades=[], courseSubjects=[], courseYears=[],courseTerms=[], courseClassTypes=[], courseStages=[])
@return: 如果不传入参数,创建手动、满100优惠10元、当天开始到7天后、常规班、全部校区、全部渠道、全部商品生效的优惠券,名称随机,如果创建失败返回False @return: 如果不传入参数,创建手动、满100优惠10元、当天开始到7天后、常规班、全部校区、全部渠道、全部商品生效的优惠券,名称随机,如果创建失败返回False
""" """
extra = { extra = CouponExtra(sendType=sendType)
"sendType": sendType discountPolicy = CouponDiscountPolicy(leastAmount=leastAmount, discountType="REDUCE", discountValue=discountValue)
}
discountPolicy = {
"leastAmount": leastAmount,
"discountType": "REDUCE",
"discountValue": discountValue
}
if receivedDelayDay: if receivedDelayDay:
validTimePolicy = cls.get_valid_time_policy(receivedDelayDay=receivedDelayDay, return_type="nowToDelayTime") validTimePolicy = cls.get_valid_time_policy(receivedDelayDay=receivedDelayDay, return_type="nowToDelayTime")
else: else:
validTimePolicy = cls.get_valid_time_policy(startTime=startTime, endTime=endTime, return_type="fixedTime") validTimePolicy = cls.get_valid_time_policy(startTime=startTime, endTime=endTime)
channels = channels or cls.channels_list channels = channels or MallGlobalData.channels_list
schoolAreaIds = schoolAreaIds or cls.allSchoolAreaIds schoolAreaIds = schoolAreaIds or cls.default_school_area_ids
goodsRules = cls.get_goods_rules_by_params(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds, goodsRules = cls.get_goods_rules_by_params(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds, rangeGoodsType=rangeGoodsType,
rangeGoodsType=rangeGoodsType, goodsIds=goodsIds, **kwargs) goodsIds=goodsIds, courseGrades=courseGrades, courseSubjects=courseSubjects, courseYears=courseYears,
courseTerms=courseTerms, courseClassTypes=courseClassTypes, courseStages=courseStages)
co = CouponSetOperation(bizType="FULL_REDUCE", extra=extra, discountPolicy=discountPolicy, validTimePolicy=validTimePolicy, goodsRules=goodsRules) co = CouponSetOperation(bizType="FULL_REDUCE", extra=extra, discountPolicy=discountPolicy, validTimePolicy=validTimePolicy, goodsRules=goodsRules)
co.add_coupon_set() co.add_coupon_set()
if co.coupon_id: is_have = co.is_have_current_coupon_set()
if is_have:
return co return co
# 获取优惠时间设置 # 获取优惠时间设置
@staticmethod @staticmethod
def get_valid_time_policy(startTime=None, endTime=None, receivedDelayDay=7, return_type="All"): def get_valid_time_policy(startTime=None, endTime=None, receivedDelayDay=7, return_type="fixedTime"):
""" """
@param startTime: @param startTime:
@param endTime: @param endTime:
@param receivedDelayDay: @param receivedDelayDay:
@param return_type: 返回的字典字段,默认全部 fixedTime, nowToDelayTime @param return_type: 返回的字典字段,默认fixedTime, nowToDelayTime
@return: @return:
""" """
today_time = GetTime.get_today() today_time = GetTime.get_today()
today_start = today_time.get("today_start") today_start = today_time.get("today_start")
after_time = GetTime.get_today_after(receivedDelayDay) after_time = GetTime.get_today_after(receivedDelayDay)
after_end = after_time.get(f"after_time_{receivedDelayDay}") after_end = after_time.get(f"after_time_{receivedDelayDay}")
validTimePolicy = { startTime = GetTime.convert_to_time_stamp(startTime or today_start)
"fixedTime": { endTime = GetTime.convert_to_time_stamp(endTime or after_end)
# 优惠券生效开始时间
"startTime": GetTime.convert_to_time_stamp(startTime or today_start),
# 优惠券结束时间
"endTime": GetTime.convert_to_time_stamp(endTime or after_end)
},
"nowToDelayTime": {
# 领取当日起XX天有效
"receivedDelayDay": receivedDelayDay
}
}
if return_type == "fixedTime": if return_type == "fixedTime":
validTimePolicy.pop("nowToDelayTime") return CouponValidTimePolicy(startTime=startTime, endTime=endTime)
return validTimePolicy
elif return_type == "nowToDelayTime": elif return_type == "nowToDelayTime":
validTimePolicy.pop("fixedTime") return CouponValidTimePolicy(receivedDelayDay=receivedDelayDay)
return validTimePolicy
else: else:
return validTimePolicy return CouponValidTimePolicy(startTime=startTime, endTime=endTime, receivedDelayDay=receivedDelayDay)
# 获取优惠政策设置
@staticmethod
def get_discount_policy(bizType="CASH", discountType="REDUCE"):
"""
@param bizType: 优惠券类型
@param discountType: 优惠类型
@return:
"""
if bizType == "FULL_REDUCE":
leastAmount = random.randint(100, 500)
else:
leastAmount = 0
if discountType == "REDUCE":
discountValue = random.randint(10, 50)
else:
discountValue = round(random.uniform(1, 10), 1)
discountPolicy = {
"leastAmount": leastAmount,
"discountType": discountType,
"discountValue": discountValue
}
return discountPolicy
# 获取优惠规则设置按参数 # 获取优惠规则设置按参数
@classmethod @classmethod
def get_goods_rules_by_params(cls, goodsType="CLASS", channels=None, schoolAreaIds=None, rangeGoodsType="ALL", goodsIds=None, **kwargs): def get_goods_rules_by_params(cls, goodsType="CLASS", channels=None, schoolAreaIds=None, rangeGoodsType="ALL", goodsIds=None, **kwargs):
goodsRules = { channels = channels
"goodsType": goodsType, schoolAreaIds = schoolAreaIds
"channels": channels,
"schoolAreaIds": schoolAreaIds,
"rangeGoodsType": rangeGoodsType,
}
if rangeGoodsType == "PART_PROPERTY": if rangeGoodsType == "PART_PROPERTY":
goodsRules["goodsRangeRules"] = { courseGoodsRule = cls.get_course_goods_rules_by_params(goodsType, **kwargs)
"goodsIds": [], return CouponGoodsRules(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds,
"goodsRulePartPropertyRules": { rangeGoodsType=rangeGoodsType, courseGoodsRule=courseGoodsRule)
"courseGoodsRule": cls.get_course_goods_rules_by_params(goodsType, **kwargs)
}
}
elif rangeGoodsType == "PART_IDS": elif rangeGoodsType == "PART_IDS":
goodsRules["goodsRangeRules"] = { goodsIds = goodsIds
"goodsIds": goodsIds or random.sample(cls.goodsId_list, 10), return CouponGoodsRules(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds,
"goodsRulePartPropertyRules": { rangeGoodsType=rangeGoodsType, goodsIds=goodsIds)
"courseGoodsRule": cls.get_course_goods_rules_by_params(goodsType)
}
}
else: else:
goodsRules["goodsRangeRules"] = { return CouponGoodsRules(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds,
"goodsIds": [], rangeGoodsType=rangeGoodsType)
"goodsRulePartPropertyRules": {
"courseGoodsRule": cls.get_course_goods_rules_by_params(goodsType)
}
}
return goodsRules
# 获取商品属性规则设置按传入参数 # 获取商品属性规则设置按传入参数
@staticmethod @staticmethod
def get_course_goods_rules_by_params(goodsType, courseGrades=[], courseSubjects=[], courseYears=[], def get_course_goods_rules_by_params(goodsType, courseGrades=None, courseSubjects=None, courseYears=None,
courseTerms=[], courseClassTypes=[], courseStages=[]): courseTerms=None, courseClassTypes=None, courseStages=None):
courseGoodsRules = { courseGrades = courseGrades
"courseGrades": courseGrades, courseSubjects = courseSubjects
"courseSubjects": courseSubjects courseYears = courseYears
} courseTerms = courseTerms
courseClassTypes = courseClassTypes
if goodsType == "CLASS": if goodsType == "CLASS":
temp = { courseStages = courseStages
"courseYears": courseYears, return CourseGoodsRule(courseYears=courseYears, courseTerms=courseTerms, courseGrades=courseGrades,
"courseTerms": courseTerms, courseSubjects=courseSubjects, courseClassTypes=courseClassTypes, courseStages=courseStages)
"courseClassTypes": courseClassTypes,
"courseStages": courseStages
}
elif goodsType == "BOUTIQUE": elif goodsType == "BOUTIQUE":
temp = { return CourseGoodsRule(courseGrades=courseGrades, courseSubjects=courseSubjects, courseClassTypes=courseClassTypes)
"courseClassTypes": courseClassTypes, elif goodsType == "CONTENT":
} return CourseGoodsRule(courseYears=courseYears, courseTerms=courseTerms, courseGrades=courseGrades,
courseSubjects=courseSubjects)
else: else:
temp = { return CourseGoodsRule(courseYears=[], courseTerms=[], courseGrades=[],
"courseYears": courseYears, courseSubjects=[], courseClassTypes=[], courseStages=[])
"courseTerms": courseTerms
}
return {**courseGoodsRules, **temp}
if __name__ == '__main__': if __name__ == '__main__':
AddCouponMethod.add_cash_coupon() AddCouponMethod.add_cash_coupon()
...@@ -21,11 +21,11 @@ class AddCoursesAndClass: ...@@ -21,11 +21,11 @@ class AddCoursesAndClass:
"recorded": "录播" "recorded": "录播"
} }
# 新增常规课不分段 # 新增常规课
@classmethod @classmethod
def add_routine_courses(cls, year=None, term=None, subject="数学", grade="三年级", classType="极趣班", teachForm="offline", schools=None, def add_routine_courses(cls, year=None, term=None, subject="数学", grade="三年级", classType="极趣班", teachForm="offline", schools=None,
registerGrade="三年级", coursePeriod="15", courseNumber="10", totalPrice=1500, perPeriodDuration=2, coursePrice="100", registerGrade="三年级", coursePeriod="15", courseNumber="10", totalPrice=1500, perPeriodDuration=2, coursePrice="100",
courseStatus="1", priceType=1, isNormal=1): courseStatus="1", priceType=1, isNormal=1, uphalfCoursePeriod=None) -> RoutineCoursesOperation:
year = year or cls.current_year year = year or cls.current_year
term = term or cls.current_term term = term or cls.current_term
schools = schools or cls.default_school schools = schools or cls.default_school
...@@ -33,7 +33,10 @@ class AddCoursesAndClass: ...@@ -33,7 +33,10 @@ class AddCoursesAndClass:
registerGrade=registerGrade, coursePeriod=coursePeriod, courseNumber=courseNumber, totalPrice=totalPrice, registerGrade=registerGrade, coursePeriod=coursePeriod, courseNumber=courseNumber, totalPrice=totalPrice,
perPeriodDuration=perPeriodDuration, coursePrice=coursePrice, courseStatus=courseStatus, perPeriodDuration=perPeriodDuration, coursePrice=coursePrice, courseStatus=courseStatus,
priceType=priceType, isNormal=isNormal) priceType=priceType, isNormal=isNormal)
rco.add_current_courses() if uphalfCoursePeriod:
rco.add_current_courses_section(uphalfCoursePeriod=uphalfCoursePeriod)
else:
rco.add_current_courses()
course_id = rco.is_have_current_courses_and_set_id() course_id = rco.is_have_current_courses_and_set_id()
if course_id: if course_id:
return rco return rco
...@@ -42,7 +45,7 @@ class AddCoursesAndClass: ...@@ -42,7 +45,7 @@ class AddCoursesAndClass:
@classmethod @classmethod
def add_routine_class(cls, classBeginDate=None, classStudentNum=10, phase=1, schoolArea=None, courses_name=None, year=None, term=None, def add_routine_class(cls, classBeginDate=None, classStudentNum=10, phase=1, schoolArea=None, courses_name=None, year=None, term=None,
subject=None, grade=None, classType=None, is_have_teacher=False, is_have_classroom=False, subject=None, grade=None, classType=None, is_have_teacher=False, is_have_classroom=False,
is_have_schedule=False, weeks=["星期一", "星期二"], beginTime="08:00:00"): is_have_schedule=False, weeks=["星期一", "星期二"], beginTime="08:00:00") -> RoutineClassOperation:
""" """
@param courses_name: 课程名称 @param courses_name: 课程名称
@param beginTime: is_have_schedule为True是有效,排课开始时间,默认08:00:00 @param beginTime: is_have_schedule为True是有效,排课开始时间,默认08:00:00
...@@ -76,7 +79,7 @@ class AddCoursesAndClass: ...@@ -76,7 +79,7 @@ class AddCoursesAndClass:
if is_have_classroom: if is_have_classroom:
rco.set_current_class_classroom() rco.set_current_class_classroom()
if is_have_schedule: if is_have_schedule:
rco.set_current_class_class_class_schedule(weeks=weeks, beginTime=beginTime) rco.set_current_class_class_schedule(weeks=weeks, beginTime=beginTime)
rco.add_current_class() rco.add_current_class()
class_id = rco.set_current_class_class_id() class_id = rco.set_current_class_class_id()
if class_id: if class_id:
...@@ -85,7 +88,7 @@ class AddCoursesAndClass: ...@@ -85,7 +88,7 @@ class AddCoursesAndClass:
# 新增精品课 # 新增精品课
@classmethod @classmethod
def add_boutique_courses(cls, year=None, term=None, subject="数学", grade="三年级", classType="一对六定制班", teachForm="offline", def add_boutique_courses(cls, year=None, term=None, subject="数学", grade="三年级", classType="一对六定制班", teachForm="offline",
schools=None, coursePrice="100", courseStatus="1"): schools=None, coursePrice="100", courseStatus="1") -> BoutiqueCoursesOperation:
year = year or cls.current_year year = year or cls.current_year
term = term or cls.current_term term = term or cls.current_term
schools = schools or cls.default_school schools = schools or cls.default_school
...@@ -100,7 +103,8 @@ class AddCoursesAndClass: ...@@ -100,7 +103,8 @@ class AddCoursesAndClass:
@classmethod @classmethod
def add_boutique_class(cls, classBeginDate=None, classStudentNum=10, schoolArea=None, courseNumber="10", duration="2", def add_boutique_class(cls, classBeginDate=None, classStudentNum=10, schoolArea=None, courseNumber="10", duration="2",
courses_name=None, year=None, term=None, subject=None, grade=None, classType=None, is_have_teacher=False, courses_name=None, year=None, term=None, subject=None, grade=None, classType=None, is_have_teacher=False,
is_have_classroom=False, is_have_schedule=False, weeks=["星期一", "星期二"], beginTime="08:00:00"): is_have_classroom=False, is_have_schedule=False,
weeks=["星期一", "星期二"], beginTime="08:00:00") -> BoutiqueClassOperation:
""" """
@param courses_name: @param courses_name:
@param classBeginDate: @param classBeginDate:
...@@ -136,7 +140,7 @@ class AddCoursesAndClass: ...@@ -136,7 +140,7 @@ class AddCoursesAndClass:
if is_have_classroom: if is_have_classroom:
bco.set_current_class_classroom() bco.set_current_class_classroom()
if is_have_schedule: if is_have_schedule:
bco.set_current_class_class_class_schedule(weeks=weeks, beginTime=beginTime) bco.set_current_class_class_schedule(weeks=weeks, beginTime=beginTime)
bco.add_current_class() bco.add_current_class()
class_id = bco.set_current_class_class_id() class_id = bco.set_current_class_class_id()
if class_id: if class_id:
...@@ -147,11 +151,12 @@ class AddCoursesAndClass: ...@@ -147,11 +151,12 @@ class AddCoursesAndClass:
def add_routine_courses_and_class(cls, class_num=1, year=None, term=None, subject="数学", grade="三年级", classType="极趣班", def add_routine_courses_and_class(cls, class_num=1, year=None, term=None, subject="数学", grade="三年级", classType="极趣班",
teachForm="offline", schools=None, registerGrade="三年级", coursePeriod="15", teachForm="offline", schools=None, registerGrade="三年级", coursePeriod="15",
courseNumber="10", totalPrice=1500, perPeriodDuration=2, coursePrice="100", courseNumber="10", totalPrice=1500, perPeriodDuration=2, coursePrice="100",
courseStatus="1", priceType=1, isNormal=1, courseStatus="1", priceType=1, isNormal=1, uphalfCoursePeriod=None,
classBeginDate=None, classStudentNum=10, phase=1, schoolArea=None, is_have_teacher=False, classBeginDate=None, classStudentNum=10, phase=1, schoolArea=None, is_have_teacher=False,
is_have_classroom=False, is_have_schedule=False, weeks=["星期一", "星期二"], is_have_classroom=False, is_have_schedule=False, weeks=["星期一", "星期二"],
beginTime="08:00:00") -> List[RoutineClassOperation]: beginTime="08:00:00") -> List[RoutineClassOperation]:
""" """
@param uphalfCoursePeriod: 上的分段课次,如果有值会新增分段课程
@param class_num: 新建班级的个数 @param class_num: 新建班级的个数
@param year: 课程的年份 @param year: 课程的年份
@param term: 课程的期段 @param term: 课程的期段
...@@ -183,7 +188,7 @@ class AddCoursesAndClass: ...@@ -183,7 +188,7 @@ class AddCoursesAndClass:
courses = cls.add_routine_courses(year=year, term=term, subject=subject, grade=grade, classType=classType, teachForm=teachForm, courses = cls.add_routine_courses(year=year, term=term, subject=subject, grade=grade, classType=classType, teachForm=teachForm,
schools=schools, registerGrade=registerGrade, coursePeriod=coursePeriod, courseNumber=courseNumber, schools=schools, registerGrade=registerGrade, coursePeriod=coursePeriod, courseNumber=courseNumber,
totalPrice=totalPrice, perPeriodDuration=perPeriodDuration, coursePrice=coursePrice, totalPrice=totalPrice, perPeriodDuration=perPeriodDuration, coursePrice=coursePrice,
courseStatus=courseStatus, priceType=priceType, isNormal=isNormal) courseStatus=courseStatus, priceType=priceType, isNormal=isNormal, uphalfCoursePeriod=uphalfCoursePeriod)
if courses: if courses:
class_obj_list = [] class_obj_list = []
for x in range(class_num): for x in range(class_num):
......
from typing import List
from script.base_api_data.api_operation_web.student_operation import StudentOperation
class AddStudent:
@staticmethod
def add_student(is_set_password=False, attendGrade="三年级", schoolArea=3015, studentSex="男", **kwargs) -> StudentOperation:
student = StudentOperation(attendGrade=attendGrade, studentSex=studentSex, schoolArea=schoolArea, **kwargs)
student.add_current_student(is_set_password=is_set_password)
is_have = student.is_have_current_student()
if is_have:
return student
@classmethod
def add_student_list(cls, student_num=2, is_set_password=False, attendGrade="三年级", schoolArea=3015, studentSex="男", **kwargs) -> List[StudentOperation]:
student_list = []
for x in range(student_num):
student = cls.add_student(is_set_password=is_set_password, attendGrade=attendGrade, schoolArea=schoolArea, studentSex=studentSex, **kwargs)
if student:
student_list.append(student)
return student_list
from typing import List, Tuple
from script.base_api_data.api_operation_web.student_operation import StudentOperation
from script.base_api_data.api_operation_web.goods_operation import GoodsOperation
from script.base_api_data.api_operation_web.order_operation import OrderOperation
class BuyGoods:
# 快速购买单个商品
@staticmethod
def quick_buy_goods(student: StudentOperation, goods: GoodsOperation, buy_num=None, is_up=False) -> OrderOperation:
# 新增订单操作流程数据
order_operation = OrderOperation()
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo)
if set_result:
# 学生信息是否完整
StudentOperation.check_message_student(student.studentId)
# 查询学生电子钱包
StudentOperation.get_student_electronic_account(student.studentId)
# 选择分段
if is_up:
set_result = order_operation.set_up_to_goods_detail_list(buy_num=buy_num, keyword=goods.name)
else:
set_result = order_operation.set_goods_detail_list(buy_num=buy_num, keyword=goods.name)
if set_result:
# 获取座位信息
order_operation.get_current_classes_seat_info()
# 下单预校验
order_operation.pre_valid_current_order_condition()
# 设置订单的优惠
order_operation.set_discount()
# 设置订单价格
order_operation.set_pay_amount()
# 查询经办人信息
order_operation.get_operator_list()
# 保存订单
order_operation.save_current_order()
if order_operation.orderId:
# 查询pos信息
order_operation.get_pay_pos_info(order_operation.creatorStoreId)
# 支付订单
order_operation.pay_current_order(cash_pay=order_operation.payAmount)
# 查询订单是否存在
is_have_order = order_operation.is_have_current_order_and_set_suborder_info()
if is_have_order:
return order_operation
# 快速购买多个商品
@staticmethod
def quick_buy_goods_list(student: StudentOperation, goods_list: List[Tuple[GoodsOperation, int]]) -> OrderOperation:
# 新增订单操作流程数据
order_operation = OrderOperation()
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo)
if set_result:
# 学生信息是否完整
StudentOperation.check_message_student(student.studentId)
# 查询学生电子钱包
StudentOperation.get_student_electronic_account(student.studentId)
# 选择分段商品,并购买上
set_goods_results = []
for goods, buy_num in goods_list:
set_result = order_operation.set_goods_detail_list(buy_num=buy_num, keyword=goods.name)
set_goods_results.append(set_result)
if all(set_result):
# 获取座位信息
order_operation.get_current_classes_seat_info()
# 下单预校验
order_operation.pre_valid_current_order_condition()
# 设置订单的优惠
order_operation.set_discount()
# 设置订单价格
order_operation.set_pay_amount()
# 查询经办人信息
order_operation.get_operator_list()
# 保存订单
order_operation.save_current_order()
if order_operation.orderId:
# 查询pos信息
order_operation.get_pay_pos_info(order_operation.creatorStoreId)
# 支付订单
order_operation.pay_current_order(cash_pay=order_operation.payAmount)
# 查询订单是否存在
is_have_order = order_operation.is_have_current_order_and_set_suborder_info()
if is_have_order:
return order_operation
...@@ -32,16 +32,20 @@ class MallGlobalData: ...@@ -32,16 +32,20 @@ class MallGlobalData:
goodsType_list = ["CLASS", "CONTENT", "BOUTIQUE"] goodsType_list = ["CLASS", "CONTENT", "BOUTIQUE"]
# 授课方式 # 授课方式
courseTeachWay_list = ["FACE", "LIVE"] courseTeachWay_list = ["FACE", "LIVE"]
# 班型
courseSubType_list = ["NORMAL", "CUSTOM", "TOPIC", "SERVE"]
# 常规和其他班型 # 常规和其他班型
classType_list = ["JQ", "JS", "JZ", "JK", "JK_A", "JK_B", "JQ54", "JS54", "JZ54", "JK54", "NEW", "21", "23", "24", "16", "13", "14", "15"] classType_list = ["JQ", "JS", "JZ", "JK", "JK_A", "JK_B", "JQ54", "JS54", "JZ54", "JK54", "NEW", "21", "23", "24", "16", "13", "14", "15"]
# 常规班型 # 常规班型
routineClassType_list = ["JQ", "JS", "JZ", "JK", "JK_A", "JK_B", "JQ54", "JS54", "JZ54", "JK54", "NEW"] routineClassType_list = ["JQ", "JS", "JZ", "JK", "JK_A", "JK_B", "JQ54", "JS54", "JZ54", "JK54", "NEW"]
# 精品班型 # 精品班型
boutiqueClassType_list = ["V1_1", " V1_3", "V1_6", "V1_8"] boutiqueClassType_list = ["V1_1", "V1_3", "V1_6", "V1_8"]
# 其他班型 # 其他班型
otherClassType_list = ["21", "23", "24", "16", "13", "14", "15"] otherClassType_list = ["21", "23", "24", "16", "13", "14", "15"]
# 促销适用用户类型 # 促销适用用户类型
userType_list = ["All", "NO_SUCCESS_ORDER", "LOST_BACK"] userType_list = ["All", "NO_SUCCESS_ORDER", "LOST_BACK"]
# 自定义优惠类型
discountDesc_list = ["本人子女", "团报", "其他", "直系亲属", "特困生、公益项目合作客户"]
# 教务授课方式 # 教务授课方式
teachForm = ["offline", "online", "recorded"] teachForm = ["offline", "online", "recorded"]
teachFormMap = { teachFormMap = {
...@@ -55,6 +59,12 @@ class MallGlobalData: ...@@ -55,6 +59,12 @@ class MallGlobalData:
"秋": "AUTUMN", "秋": "AUTUMN",
"寒": "WINTER" "寒": "WINTER"
} }
term_list_Map = {
"SPRING": "春",
"SUMMER": "暑",
"AUTUMN": "秋",
"WINTER": "寒"
}
subject_list_map = { subject_list_map = {
"CHINESE": "语文", "CHINESE": "语文",
"MATH": "数学", "MATH": "数学",
...@@ -62,6 +72,25 @@ class MallGlobalData: ...@@ -62,6 +72,25 @@ class MallGlobalData:
"PHYSICS": "化学", "PHYSICS": "化学",
"CHEMISTRY": "物理" "CHEMISTRY": "物理"
} }
subjectMap = {
"语文": "CHINESE",
"数学": "MATH",
"英语": "ENGLISH",
"化学": "PHYSICS",
"物理": "CHEMISTRY"
}
courseSubTypeMap ={
"NORMAL": "常规班课",
"CUSTOM": "精品定制课",
"TOPIC": "专题班课",
"SERVE": "服务班课"
}
courseSubType_list_Map ={
"常规班课": "NORMAL",
"精品定制课": "CUSTOM",
"专题班课": "TOPIC",
"服务班课": "SERVE"
}
classType_list_map = { classType_list_map = {
"JS": "极思班", "JS": "极思班",
"JQ": "极趣班", "JQ": "极趣班",
...@@ -93,6 +122,21 @@ class MallGlobalData: ...@@ -93,6 +122,21 @@ class MallGlobalData:
"11": "高二", "11": "高二",
"12": "高三" "12": "高三"
} }
gradeMap = {
"零年级": "0",
"一年级": "1",
"二年级": "2",
"三年级": "3",
"四年级": "4",
"五年级": "5",
"六年级": "6",
"七年级": "7",
"八年级": "8",
"九年级": "9",
"高一": "10",
"高二": "11",
"高三": "12"
}
# 获取随机属性组合 # 获取随机属性组合
@classmethod @classmethod
......
from typing import List
import allure
from script.base_api_data.api_operation_web.promotion_operation import PromotionOperation
from script.base_api_data.api_operation_web.goods_operation import GoodsOperation
from script.base_api_data.api_operation_web.coupon_operation import CouponItemOperation
from pytest_assume.plugin import assume
@allure.step("断言促销商品汇总的价格数据正确")
def assert_match_data_correct(match_res, should_total_discount, should_goods_num) -> List[dict]:
"""
@param match_res: 匹配响应
@param should_total_discount: 应该优惠的总金额
@param should_goods_num: 应该有的商品数量
@return:
"""
# 匹配促销
match_res_data = match_res.get("data")
assert match_res_data, "匹配促销的data不为空"
match_totalPrice = match_res_data.get("totalPrice")
match_originalTotalPrice = match_res_data.get("originalTotalPrice")
match_totalDiscountPrice = match_res_data.get("totalDiscountPrice")
promotionGoods_list = match_res_data.get("promotionGoods")
with assume:
assert float(match_totalDiscountPrice) == float(should_total_discount), "促销优惠总额错误"
assert float(match_totalPrice) == float(match_originalTotalPrice) - float(match_totalDiscountPrice)
assert promotionGoods_list and len(promotionGoods_list) == should_goods_num, f"促销商品的数量错误{len(promotionGoods_list)}"
return promotionGoods_list
@allure.step("断言促销商品的价格数据正确")
def assert_promotion_good_price_correct(promotionGoods_list, goods: GoodsOperation, discount_num, all_discount_value, buy_num: int = None) -> List[dict]:
"""
@param buy_num: 商品购买课时数,用于计算商品原价
@param promotionGoods_list: 响应的商品列表
@param goods: 选择的商品
@param discount_num: 应该匹配的优惠数量
@param all_discount_value: 商品应该优惠的促销总金额
@return: 商品的促销列表
"""
# 判断有促销商品
promotion_goods_list = [x for x in promotionGoods_list if x.get("goodsId") == goods.goods_id]
assert promotion_goods_list and len(promotion_goods_list) == 1, f"应该有促销商品{goods.goods_id},且只有一个"
promotion_goods = promotion_goods_list[0]
discountList = promotion_goods.get("discountList")
with assume:
assert discountList and len(discountList) == discount_num, f"应该有促销{discountList}, 且个数为{discount_num}"
# 促销商品的价格正确
if buy_num:
goods_buy_price = float(goods.goodsInfo.get("periodPrice") * buy_num)
else:
goods_buy_price = float(goods.goodsInfo.get("price"))
assert float(promotion_goods.get("originalAmount")) == goods_buy_price
res_all_discount_value = sum([float(x.get("discountValue")) for x in discountList])
assert float(res_all_discount_value) == all_discount_value, "优惠的总额应该优惠的总金额不一致"
assert float(promotion_goods.get("amount")) == float(promotion_goods.get("originalAmount")) - all_discount_value
return discountList
# 断言促销列表的第一个数据正确
@allure.step("断言促销数据正确")
def assert_discount_data_correct(res_discount_list, promotion: PromotionOperation, promotion_name, discount_value, discountType=None):
"""
@param res_discount_list: 优惠列表
@param promotion: 配置的促销
@param promotion_name: 促销名称
@param discount_value: 促销应该优惠金额
@param discountType: 促销类型,默认配置的促销的促销类型
@return:
"""
res_discount = res_discount_list[0]
with assume:
assert res_discount.get("discountId") == promotion.promotionId, "促销优惠的ID与设置一致"
assert res_discount.get("discountName") == promotion_name
discountType = discountType or promotion.basic.promotionType
assert res_discount.get("discountType") == discountType
assert float(res_discount.get("discountValue")) == float(discount_value)
# 断言促销列表的第一个数据正确
@allure.step("断言优惠券数据正确")
def assert_coupon_data_correct(res_coupon_list, coupon_item: CouponItemOperation, shouldGoodsList):
"""
@param shouldGoodsList: 可以优惠的商品ID列表
@param res_coupon_list: 优惠券列表
@param coupon_item: 优惠券操作对象
@return:
"""
assert res_coupon_list and len(res_coupon_list) == 1, f"优惠券应该存在且只有一张{res_coupon_list}"
res_coupon = res_coupon_list[0]
with assume:
assert res_coupon.get("couponId") == coupon_item.coupon_id, "优惠券设置ID不相等"
assert res_coupon.get("status") == "UNUSE"
assert res_coupon.get("startTime") == coupon_item.validTimePolicy.startTime
assert res_coupon.get("endTime") == coupon_item.validTimePolicy.endTime
student = res_coupon.get("student")
assert student
assert student.get("studentId") == coupon_item.student.studentId
assert student.get("studentNo") == coupon_item.student.studentNo
assert student.get("studentName") == coupon_item.student.studentName
assert student.get("studentPhone") == coupon_item.student.studentPrimPhoneNo
goodsList = res_coupon.get("goodsList")
assert sorted(goodsList) == sorted(shouldGoodsList)
coupon_info = res_coupon.get("couponInfo")
assert coupon_info
assert coupon_info.get("name") == coupon_item.coupon.name
assert coupon_info.get("desc") == coupon_item.coupon.desc
assert coupon_info.get("bizType") == coupon_item.coupon.bizType
assert coupon_info.get("remark") == coupon_item.coupon.remark
assert coupon_info.get("status") == coupon_item.coupon.status
goodsRules = coupon_info.get("goodsRules")
assert goodsRules
assert goodsRules.get("goodsType") == coupon_item.goodsRules.goodsType
assert goodsRules.get("rangeGoodsType") == coupon_item.goodsRules.rangeGoodsType
assert sorted(goodsRules.get("channels")) == sorted(coupon_item.goodsRules.channels)
assert sorted(goodsRules.get("schoolAreaIds")) == sorted(coupon_item.goodsRules.schoolAreaIds)
discountPolicy = coupon_info.get("discountPolicy")
assert discountPolicy.get("leastAmount") == coupon_item.discountPolicy.leastAmount
assert discountPolicy.get("discountType") == coupon_item.discountPolicy.discountType
assert discountPolicy.get("discountValue") == coupon_item.discountPolicy.discountValue
apply_school_area = 3015 apply_school_area = 3015
\ No newline at end of file base_year = 2021
base_term = "寒"
base_next_year = 2022
base_next_term = "春"
base_subject = "数学"
base_grade = "九年级"
import allure import pytest
import time import time
from script.base_api_data.api_operation_web.order_operation import OrderOperation from script.base_api_data.api_operation_web.order_operation import OrderOperation
from script.base_api_data.api_operation_web.student_operation import StudentOperation from script.base_api_data.api_operation_web.student_operation import StudentOperation
from script.base_api_data.api_operation_web.goods_operation import GoodsOperation
from script import public_asserts from script import public_asserts
from common.operation_time import GetTime from common.operation_time import GetTime
# 促销操作 # 促销操作
...@@ -14,7 +13,72 @@ from script.base_api_data.api_operation_web.promotion_operation import Excellent ...@@ -14,7 +13,72 @@ from script.base_api_data.api_operation_web.promotion_operation import Excellent
from script.base_api_data.api_operation_web.promotion_operation import DrainagePromotionOperation from script.base_api_data.api_operation_web.promotion_operation import DrainagePromotionOperation
# 新增促销 # 新增促销
from script.global_data_config.add_promotion import AddPromotion from script.global_data_config.add_promotion import AddPromotion
# 新增优惠券
from script.global_data_config.add_coupon_method import AddCouponMethod
# 新增学生
from script.global_data_config.add_studnent import AddStudent
# 快速买商品
from script.global_data_config.buy_goods import BuyGoods
# 数据
from script.ji_yun_ying_pc.crm.data_config import apply_data from script.ji_yun_ying_pc.crm.data_config import apply_data
from script.global_data_config.mall_global_data import MallGlobalData
# 校区操作
from script.base_api_data.service_user.department_operation import SchoolAreaOperation
# 断言
from script.ji_yun_ying_pc.crm.assert_config.apply_assert import *
@allure.story("促销保存订单、支付、查询是否存在公共步骤")
def save_order_public_step(order_operation: OrderOperation, match_res_data: dict):
# 设置订单的优惠
set_result = order_operation.set_discount(match_res_data)
assert set_result, "优惠设置失败"
# 计算订单价格
calculate_res = order_operation.get_current_calculate_price()
public_asserts.public_assert(calculate_res)
calculate_res_data = calculate_res.get("data")
totalPrice = calculate_res_data.get("totalPrice")
assert float(totalPrice) == float(match_res_data.get("totalPrice")), "计算价格的总金额错误"
order_operation.set_pay_amount(totalPrice)
# 查询经办人信息
order_operation.get_operator_list()
# 保存订单
save_res = order_operation.save_current_order()
public_asserts.public_assert(save_res)
assert order_operation.orderId, "保存订单的订单ID为空"
assert order_operation.orderNo, "保存订单的订单No为空"
assert float(order_operation.payAmount) == float(totalPrice), "保存订单返回的总金额有误"
# 查询pos信息
pos_res = order_operation.get_pay_pos_info(order_operation.creatorStoreId)
public_asserts.public_assert(pos_res)
# 支付订单
pay_res = order_operation.pay_current_order(cash_pay=order_operation.payAmount)
public_asserts.public_assert(pay_res)
# 查询订单是否存在
is_have_order = order_operation.is_have_current_order_and_set_suborder_info()
assert is_have_order, "订单列表未查询到订单"
@allure.story("优惠券保存订单、支付、查询是否存在公共步骤")
def coupon_save_order_public_step(order_operation: OrderOperation, totalPrice):
# 查询经办人信息
order_operation.set_pay_amount(totalPrice)
order_operation.get_operator_list()
# 保存订单
save_res = order_operation.save_current_order()
public_asserts.public_assert(save_res)
assert order_operation.orderId, "保存订单的订单ID为空"
assert order_operation.orderNo, "保存订单的订单No为空"
assert float(order_operation.payAmount) == float(totalPrice), "保存订单返回的总金额有误"
# 查询pos信息
pos_res = order_operation.get_pay_pos_info(order_operation.creatorStoreId)
public_asserts.public_assert(pos_res)
# 支付订单
pay_res = order_operation.pay_current_order(cash_pay=order_operation.payAmount)
public_asserts.public_assert(pay_res)
# 查询订单是否存在
is_have_order = order_operation.is_have_current_order_and_set_suborder_info()
assert is_have_order, "订单列表未查询到订单"
@allure.epic("测试极运营报名") @allure.epic("测试极运营报名")
...@@ -52,7 +116,7 @@ class TestApply: ...@@ -52,7 +116,7 @@ class TestApply:
pre_res = order_operation.pre_valid_current_order_condition() pre_res = order_operation.pre_valid_current_order_condition()
public_asserts.public_assert(pre_res) public_asserts.public_assert(pre_res)
# 匹配优惠券 # 匹配优惠券
set_result = order_operation.set_coupon_items_and_discount() set_result = order_operation.set_discount()
assert set_result, "优惠券匹配失败" assert set_result, "优惠券匹配失败"
# 计算订单价格 # 计算订单价格
order_operation.set_pay_amount() order_operation.set_pay_amount()
...@@ -69,27 +133,68 @@ class TestApply: ...@@ -69,27 +133,68 @@ class TestApply:
@allure.epic("测试极运营报名") @allure.epic("测试极运营报名")
@allure.feature("测试极运营报名-使用促销") @allure.feature("测试极运营报名-单个使用促销、优惠券和其他优惠")
class TestApplyUsePromotion: class TestApplyUseSingle:
def setup_class(self): def setup_class(self):
# 新建学生 self.school_area_operation = SchoolAreaOperation(apply_data.apply_school_area)
student = StudentOperation() today_time = GetTime.get_today()
add_student_res = student.add_current_student() today_start = today_time.get("today_start")
public_asserts.public_assert(add_student_res) today_end = today_time.get("today_end")
self.student = student # 新建当期商品
# 新建商品
goods = GoodsOperation() goods = GoodsOperation()
add_goods_result = goods.add_current_goods(year=2021, term="秋", schoolArea=3015) add_goods_result = goods.add_current_goods(year=apply_data.base_year, term=apply_data.base_term, grade=apply_data.base_grade,
schoolArea=apply_data.apply_school_area, classStudentNum=30)
assert add_goods_result, "新建班级失败后不继续执行" assert add_goods_result, "新建班级失败后不继续执行"
# 新建下期商品
next_term_goods = GoodsOperation()
add_next_goods_result = next_term_goods.add_current_goods(year=apply_data.base_next_year, term=apply_data.base_next_term, grade=apply_data.base_grade,
schoolArea=apply_data.apply_school_area, classStudentNum=30)
assert add_next_goods_result, "新建班级失败后不继续执行"
# 新建本期英语商品
# english_goods = GoodsOperation()
# add_english_goods_result = english_goods.add_current_goods(year=apply_data.base_year, term=apply_data.base_term, grade=apply_data.base_grade,
# subject="英语", schoolArea=apply_data.apply_school_area, classStudentNum=30)
# assert add_english_goods_result, "新建班级失败后不继续执行"
# 新建本期分段数学商品
# segment_goods = GoodsOperation()
# add_segment_goods_result = segment_goods.add_current_goods(year=apply_data.base_year, term=apply_data.base_term, grade=apply_data.base_grade,
# schoolArea=apply_data.apply_school_area,
# classStudentNum=30, uphalfCoursePeriod="3")
# assert add_segment_goods_result, "新建班级失败后不继续执行"
# 新建本期数学精品商品
# boutique_goods = GoodsOperation()
# add_boutique_goods_result = boutique_goods.add_current_boutique_goods(year=apply_data.base_year, term=apply_data.base_term,
# grade=apply_data.base_grade,
# schoolArea=apply_data.apply_school_area,
# classStudentNum=30)
# assert add_boutique_goods_result, "新建班级失败后不继续执行"
time.sleep(2) time.sleep(2)
# 当期商品是否存在并上架
is_have_goods = goods.is_have_current_goods_and_set_goods_info() is_have_goods = goods.is_have_current_goods_and_set_goods_info()
assert is_have_goods, "新建班级失败后,未生成商品,不继续执行" assert is_have_goods, "新建班级后,未生成商品,不继续执行"
today_time = GetTime.get_today()
today_start = today_time.get("today_start")
today_end = today_time.get("today_end")
goods.up_and_down_current_goods(today_start, today_end, today_start, today_end) goods.up_and_down_current_goods(today_start, today_end, today_start, today_end)
self.goods = goods self.goods = goods
# 下期商品是否存在并上架
is_have_next_goods = next_term_goods.is_have_current_goods_and_set_goods_info()
assert is_have_next_goods, "新建下期数学班级后,未生成商品,不继续执行"
next_term_goods.up_and_down_current_goods(today_start, today_end, today_start, today_end)
self.next_term_goods = next_term_goods
# 当期英语商品是否存在并上架
# is_have_english_goods = english_goods.is_have_current_goods_and_set_goods_info()
# assert is_have_english_goods, "新建英语班级后,未生成商品,不继续执行"
# english_goods.up_and_down_current_goods(today_start, today_end, today_start, today_end)
# self.english_goods = english_goods
# 当期分段商品是否存在并上架
# is_have_segment_goods = segment_goods.is_have_current_goods_and_set_goods_info()
# assert is_have_segment_goods, "新建分段班级后,未生成商品,不继续执行"
# segment_goods.up_and_down_current_goods(today_start, today_end, today_start, today_end)
# self.segment_goods = segment_goods
# 当期精品商品是否存在
# is_have_boutique_goods = boutique_goods.is_have_current_goods_and_set_goods_info()
# assert is_have_boutique_goods, "新建精品班级后,未生成商品,不继续执行"
# self.boutique_goods = boutique_goods
def setup(self): def setup(self):
CommonPromotionOperation.stop_school_all_promotion([apply_data.apply_school_area]) CommonPromotionOperation.stop_school_all_promotion([apply_data.apply_school_area])
...@@ -101,14 +206,24 @@ class TestApplyUsePromotion: ...@@ -101,14 +206,24 @@ class TestApplyUsePromotion:
@allure.story("测试下单-使用常规促销") @allure.story("测试下单-使用常规促销")
def test_apply_use_common(self): def test_apply_use_common(self):
# 新建学生
student = StudentOperation()
add_student_res = student.add_current_student()
public_asserts.public_assert(add_student_res)
# 新增常规促销 # 新增常规促销
common_promotion = AddPromotion.add_common_promotion(schoolAreaIds=[apply_data.apply_school_area]) common_promotion = AddPromotion.add_common_promotion(schoolAreaIds=[apply_data.apply_school_area])
assert common_promotion, "促销添加失败,不继续执行" assert common_promotion, "促销添加失败,不继续执行"
# 新增订单操作流程数据 # 新增订单操作流程数据
order_operation = OrderOperation() order_operation = OrderOperation()
# 选择学生 # 选择学生
set_result = order_operation.set_student_id(studentName=self.student.studentNo) set_result = order_operation.set_student_id(studentName=student.studentNo)
# 学生信息是否完整
assert set_result, "学生查询失败" assert set_result, "学生查询失败"
check_res = StudentOperation.check_message_student(student.studentId)
public_asserts.public_assert(check_res)
# 查询学生电子钱包
electronic_res = StudentOperation.get_student_electronic_account(student.studentId)
public_asserts.public_assert(electronic_res)
# 选择商品 # 选择商品
set_result = order_operation.set_goods_detail_list(keyword=self.goods.name) set_result = order_operation.set_goods_detail_list(keyword=self.goods.name)
assert set_result, "商品查询失败" assert set_result, "商品查询失败"
...@@ -120,127 +235,332 @@ class TestApplyUsePromotion: ...@@ -120,127 +235,332 @@ class TestApplyUsePromotion:
public_asserts.public_assert(pre_res) public_asserts.public_assert(pre_res)
# 匹配优惠券 # 匹配优惠券
match_res = order_operation.get_current_order_match_discount() match_res = order_operation.get_current_order_match_discount()
public_asserts.public_assert(match_res)
match_res_data = match_res.get("data") match_res_data = match_res.get("data")
promotionGoods_list = match_res_data.get("promotionGoods") public_asserts.public_assert(match_res)
assert promotionGoods_list and len(promotionGoods_list) == 1, f"应该有一个促销商品{promotionGoods_list}" promotionGoods_list = assert_match_data_correct(match_res, common_promotion.discountRule.discountValue, 1)
promotionGoods = promotionGoods_list[0] discountList = assert_promotion_good_price_correct(promotionGoods_list, self.goods, 1, common_promotion.discountRule.discountValue)
assert promotionGoods.get("goodsId") == self.goods.goods_id assert_discount_data_correct(discountList, common_promotion, "常规促销", common_promotion.discountRule.discountValue)
discountList = promotionGoods.get("discountList")
assert discountList and len(discountList) == 1, f"应该有一个常规促销{discountList}"
discount = discountList[0]
assert discount.get("discountId") == common_promotion.promotionId, "促销优惠的ID与设置一致"
assert discount.get("discountName") == "常规促销"
assert discount.get("discountType") == "COMMON"
assert float(discount.get("discountValue")) == float(common_promotion.discountRule.discountValue)
assert float(promotionGoods.get("originalAmount")) == float(self.goods.goodsInfo.get("price"))
after_discount_price = float(promotionGoods.get("originalAmount")) - float(discount.get("discountValue"))
assert float(promotionGoods.get("amount")) == float(promotionGoods.get("originalAmount")) - float(discount.get("discountValue"))
set_result = order_operation.set_discount(match_res_data)
assert set_result, "优惠设置失败"
# 计算订单价格
calculate_res = order_operation.get_current_calculate_price()
public_asserts.public_assert(calculate_res)
calculate_res_data = calculate_res.get("data")
totalPrice = calculate_res_data.get("totalPrice")
assert float(totalPrice) == after_discount_price
order_operation.set_pay_amount(totalPrice)
# 查询经办人信息
order_operation.get_operator_list()
# 保存订单 # 保存订单
save_res = order_operation.save_current_order() save_order_public_step(order_operation, match_res_data)
public_asserts.public_assert(save_res)
assert order_operation.orderId, "保存订单失败"
# 查询pos信息
pos_res = order_operation.get_pay_pos_info(apply_data.apply_school_area)
public_asserts.public_assert(pos_res)
# 支付订单
pay_res = order_operation.pay_current_order(cash_pay=order_operation.payAmount)
public_asserts.public_assert(pay_res)
# 查询订单是否存在
is_have_order = order_operation.is_have_current_order_and_set_suborder_info()
assert is_have_order, "订单列表未查询到订单"
@allure.epic("测试极运营报名") @allure.story("测试下单-使用连报促销")
@allure.feature("测试极运营报名-使用优惠券") def test_apply_use_continue(self):
class TestApplyUseCoupon: # 新建学生
student = StudentOperation()
add_student_res = student.add_current_student()
public_asserts.public_assert(add_student_res)
# 新增连报促销
current_term_value = 200
next_term_value = 100
year_term_values = [(apply_data.base_year, MallGlobalData.termMap.get(apply_data.base_term), current_term_value),
(apply_data.base_next_year, MallGlobalData.termMap.get(apply_data.base_next_term), next_term_value)]
promotion = AddPromotion.add_continue_promotion(schoolAreaIds=[apply_data.apply_school_area], year_term_values=year_term_values)
assert promotion, "促销添加失败,不继续执行"
# 新增订单操作流程数据
order_operation = OrderOperation()
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo)
# 学生信息是否完整
assert set_result, "学生查询失败"
check_res = StudentOperation.check_message_student(student.studentId)
public_asserts.public_assert(check_res)
# 查询学生电子钱包
electronic_res = StudentOperation.get_student_electronic_account(student.studentId)
public_asserts.public_assert(electronic_res)
# 选择当期商品
set_result = order_operation.set_goods_detail_list(keyword=self.goods.name)
assert set_result, "当期商品查询失败"
# 选择下期商品
set_next_result = order_operation.set_goods_detail_list(keyword=self.next_term_goods.name)
assert set_next_result, "下期商品查询失败"
# 获取座位信息
seat_res = order_operation.get_current_classes_seat_info()
public_asserts.public_assert(seat_res)
# 下单预校验
pre_res = order_operation.pre_valid_current_order_condition()
public_asserts.public_assert(pre_res)
# 匹配促销
match_res = order_operation.get_current_order_match_discount()
public_asserts.public_assert(match_res)
match_res_data = match_res.get("data")
should_all_discount = next_term_value + current_term_value
promotionGoods_list = assert_match_data_correct(match_res, should_all_discount, 2)
# 当期商品的促销数据正确
current_discountList = assert_promotion_good_price_correct(promotionGoods_list, self.goods, 1, current_term_value)
assert_discount_data_correct(current_discountList, promotion, "连报促销", current_term_value)
# 下期商品的促销数据正确
next_discountList = assert_promotion_good_price_correct(promotionGoods_list, self.next_term_goods, 1, next_term_value)
assert_discount_data_correct(next_discountList, promotion, "连报促销", next_term_value)
# 保存订单
save_order_public_step(order_operation, match_res_data)
@allure.story("测试下单流程") @allure.story("测试下单-使用拓科促销")
def test_apply_flow(self): def test_apply_use_expand(self):
# 新建学生 # 新建学生
student = StudentOperation() student = StudentOperation()
add_student_res = student.add_current_student() add_student_res = student.add_current_student()
public_asserts.public_assert(add_student_res) public_asserts.public_assert(add_student_res)
# 新建商品 # 新增拓科促销
goods = GoodsOperation() expand_one_value = 150
add_goods_result = goods.add_current_goods(year=2021, term="秋") all_goods_price = self.goods.goodsInfo.get("price") + self.english_goods.goodsInfo.get("price")
assert add_goods_result, "新建商品后不继续执行" math_value = round(self.goods.goodsInfo.get("price")/all_goods_price * 150, 2)
time.sleep(2) english_value = round(self.english_goods.goodsInfo.get("price")/all_goods_price * 150, 2)
is_have_goods = goods.is_have_current_goods_and_set_goods_info()
assert is_have_goods, "新建班级后,未生成商品"
today_time = GetTime.get_today()
today_start = today_time.get("today_start")
today_end = today_time.get("today_end")
goods.up_and_down_current_goods(today_start, today_end, today_start, today_end)
grade_discount_values = [{"courseGrades": [MallGlobalData.gradeMap.get(apply_data.base_grade)], "discountValues": (expand_one_value,)}]
promotion = AddPromotion.add_expand_promotion(schoolAreaIds=[apply_data.apply_school_area], grade_discount_values=grade_discount_values,
courseYears=[apply_data.base_year],
courseTerms=[MallGlobalData.termMap.get(apply_data.base_term)],
courseSubjects=["MATH", "ENGLISH"])
assert promotion, "促销添加失败,不继续执行"
# 新增订单操作流程数据
order_operation = OrderOperation() order_operation = OrderOperation()
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo) set_result = order_operation.set_student_id(studentName=student.studentNo)
# 学生信息是否完整
assert set_result, "学生查询失败" assert set_result, "学生查询失败"
check_res = StudentOperation.check_message_student(student.studentId)
public_asserts.public_assert(check_res)
# 查询学生电子钱包
electronic_res = StudentOperation.get_student_electronic_account(student.studentId)
public_asserts.public_assert(electronic_res)
# 选择数学商品
set_result = order_operation.set_goods_detail_list(keyword=self.goods.name)
assert set_result, "当期商品查询失败"
# 选择英语商品
set_english_result = order_operation.set_goods_detail_list(keyword=self.english_goods.name)
assert set_english_result, "英语商品查询失败"
# 获取座位信息
seat_res = order_operation.get_current_classes_seat_info()
public_asserts.public_assert(seat_res)
# 下单预校验
pre_res = order_operation.pre_valid_current_order_condition()
public_asserts.public_assert(pre_res)
# 匹配促销
match_res = order_operation.get_current_order_match_discount()
public_asserts.public_assert(match_res)
match_res_data = match_res.get("data")
set_result = order_operation.set_goods_detail_list(keyword=goods.name) should_all_discount = expand_one_value
assert set_result, "商品查询失败" promotionGoods_list = assert_match_data_correct(match_res, should_all_discount, 2)
# 数学商品的促销数据正确
math_discountList = assert_promotion_good_price_correct(promotionGoods_list, self.goods, 1, math_value)
assert_discount_data_correct(math_discountList, promotion, "拓科促销", math_value, discountType="EXPAND")
# 英语商品的促销数据正确
english_discountList = assert_promotion_good_price_correct(promotionGoods_list, self.english_goods, 1, english_value)
assert_discount_data_correct(english_discountList, promotion, "拓科促销", english_value, discountType="EXPAND")
# 保存订单
save_order_public_step(order_operation, match_res_data)
@allure.story("测试下单-使用引流促销")
def test_apply_use_drainage(self):
# 新建学生
student = StudentOperation()
add_student_res = student.add_current_student()
public_asserts.public_assert(add_student_res)
# 新增引流促销
promotion = AddPromotion.add_drainage_promotion(schoolAreaIds=[apply_data.apply_school_area])
real_discountValue = float(self.goods.goodsInfo.get("price") - promotion.discountRule.discountValue)
assert promotion, "促销添加失败,不继续执行"
# 新增订单操作流程数据
order_operation = OrderOperation()
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo)
# 学生信息是否完整
assert set_result, "学生查询失败"
check_res = StudentOperation.check_message_student(student.studentId)
public_asserts.public_assert(check_res)
# 查询学生电子钱包
electronic_res = StudentOperation.get_student_electronic_account(student.studentId)
public_asserts.public_assert(electronic_res)
# 选择商品
set_result = order_operation.set_goods_detail_list(keyword=self.goods.name)
assert set_result, "当期商品查询失败"
# 获取座位信息 # 获取座位信息
seat_res = order_operation.get_current_classes_seat_info() seat_res = order_operation.get_current_classes_seat_info()
public_asserts.public_assert(seat_res) public_asserts.public_assert(seat_res)
# 下单预校验 # 下单预校验
pre_res = order_operation.pre_valid_current_order_condition() pre_res = order_operation.pre_valid_current_order_condition()
public_asserts.public_assert(pre_res) public_asserts.public_assert(pre_res)
# 匹配优惠券 # 匹配促销
set_result = order_operation.set_coupon_items_and_discount() match_res = order_operation.get_current_order_match_discount()
assert set_result, "优惠券匹配失败" public_asserts.public_assert(match_res)
# 计算订单价格 match_res_data = match_res.get("data")
order_operation.set_pay_amount() should_all_discount = real_discountValue
promotionGoods_list = assert_match_data_correct(match_res, should_all_discount, 1)
discountList = assert_promotion_good_price_correct(promotionGoods_list, self.goods, 1, should_all_discount)
assert_discount_data_correct(discountList, promotion, "引流促销", should_all_discount)
# 保存订单 # 保存订单
save_res = order_operation.save_current_order() save_order_public_step(order_operation, match_res_data)
public_asserts.public_assert(save_res)
assert order_operation.orderId, "保存订单失败"
# 支付订单
pay_res = order_operation.pay_current_order(cash_pay=order_operation.payAmount)
public_asserts.public_assert(pay_res)
# 查询订单是否存在
is_have_order = order_operation.is_have_current_order_and_set_suborder_info()
assert is_have_order, "订单列表未查询到订单"
@allure.story("测试下单-使用补费促销")
def test_apply_use_renewal(self):
# 新建学生
student = AddStudent.add_student(schoolArea=apply_data.apply_school_area)
assert student, "新建学生失败不继续执行"
# 新增补费促销
subject_num = 1
discount_value = 50
promotion = AddPromotion.add_renewal_promotion(schoolAreaIds=[apply_data.apply_school_area],
courseYears=[apply_data.base_year],
courseTerms=[MallGlobalData.termMap.get(apply_data.base_term)],
courseSubjects=["MATH"], subject_num_values=[(subject_num, discount_value)])
assert promotion, "促销添加失败,不继续执行"
# 购买分段商品上
up_order_operation = BuyGoods.quick_buy_goods(student, self.segment_goods, is_up=True)
assert up_order_operation, "上购买失败,不继续执行"
# 新增下订单操作流程数据
order_operation = OrderOperation(downFlag=True)
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo)
# 学生信息是否完整
assert set_result, "学生查询失败"
check_res = StudentOperation.check_message_student(student.studentId)
public_asserts.public_assert(check_res)
# 查询学生电子钱包
electronic_res = StudentOperation.get_student_electronic_account(student.studentId)
public_asserts.public_assert(electronic_res)
# 选择商品
set_goods_result = order_operation.set_down_to_goods_detail_list(goods_id=self.segment_goods.goods_id)
assert set_goods_result, "分段下商品查询失败"
# 获取座位信息
seat_res = order_operation.get_current_classes_seat_info()
public_asserts.public_assert(seat_res)
# 下单预校验
pre_res = order_operation.pre_valid_current_order_condition()
public_asserts.public_assert(pre_res)
# 匹配促销
match_res = order_operation.get_current_order_match_discount()
public_asserts.public_assert(match_res)
match_res_data = match_res.get("data")
should_all_discount = discount_value
buy_num = set_goods_result.get("courseHour")
promotionGoods_list = assert_match_data_correct(match_res, should_all_discount, 1)
discountList = assert_promotion_good_price_correct(promotionGoods_list, self.goods, 1, should_all_discount, buy_num=buy_num)
assert_discount_data_correct(discountList, promotion, "补费促销", should_all_discount)
# 保存订单
save_order_public_step(order_operation, match_res_data)
@allure.epic("测试极运营报名") @allure.story("测试下单-使用精品促销")
@allure.feature("测试极运营报名-使用所有优惠类型") def test_apply_use_excellent(self):
class TestApplyUseAll: # 新增精品促销
discountValues = [(5, 93), (10, 87), (15, 67)]
promotion = AddPromotion.add_excellent_promotion(schoolAreaIds=[apply_data.apply_school_area], discountValues=discountValues)
assert promotion, "促销添加失败,不继续执行"
# 新建学生
student_num = len(discountValues)
student_list = AddStudent.add_student_list(student_num=student_num)
assert student_list and len(student_list) == student_num, "新建学生失败,不继续执行"
for x in range(student_num):
buy_num = discountValues[x][0]
discount_value = discountValues[x][1]/100
student = student_list[x]
# 新增订单操作流程数据
order_operation = OrderOperation()
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo)
# 学生信息是否完整
assert set_result, "学生查询失败"
check_res = StudentOperation.check_message_student(student.studentId)
public_asserts.public_assert(check_res)
# 查询学生电子钱包
electronic_res = StudentOperation.get_student_electronic_account(student.studentId)
public_asserts.public_assert(electronic_res)
# 选择商品
set_result = order_operation.set_goods_detail_list(buy_num=buy_num, keyword=self.boutique_goods.name)
assert set_result, "商品查询失败"
# 获取座位信息
seat_res = order_operation.get_current_classes_seat_info()
public_asserts.public_assert(seat_res)
# 下单预校验
pre_res = order_operation.pre_valid_current_order_condition()
public_asserts.public_assert(pre_res)
# 匹配优惠券
match_res = order_operation.get_current_order_match_discount()
match_res_data = match_res.get("data")
public_asserts.public_assert(match_res)
periodPrice = self.boutique_goods.goodsInfo.get("periodPrice")
should_all_discount = round(periodPrice * buy_num - periodPrice * buy_num * discount_value, 2)
promotionGoods_list = assert_match_data_correct(match_res, should_all_discount, 1)
discountList = assert_promotion_good_price_correct(promotionGoods_list, self.boutique_goods, 1, should_all_discount, buy_num=buy_num)
assert_discount_data_correct(discountList, promotion, "精品促销", should_all_discount)
# 保存订单
save_order_public_step(order_operation, match_res_data)
@allure.story("测试下单流程") @allure.story("测试下单-使用现金券")
def test_apply_flow(self): def test_apply_use_cash_coupon(self):
# 新建学生 # 新建学生
student = StudentOperation() student = StudentOperation()
add_student_res = student.add_current_student() add_student_res = student.add_current_student()
public_asserts.public_assert(add_student_res) public_asserts.public_assert(add_student_res)
# 新建商品 # 新增现金券设置
goods = GoodsOperation() discountValue = 10000
add_goods_result = goods.add_current_goods(year=2021, term="秋") coupon = AddCouponMethod.add_cash_coupon(schoolAreaIds=[apply_data.apply_school_area], discountValue=discountValue)
assert add_goods_result, "新建商品后不继续执行" assert coupon, "优惠券添加失败,不继续执行"
time.sleep(2) coupon_item = coupon.online_send_coupon_item(student)
is_have_goods = goods.is_have_current_goods_and_set_goods_info() assert coupon_item, "优惠券发放失败,不继续执行"
assert is_have_goods, "新建班级后,未生成商品" # 新增订单操作流程数据
today_time = GetTime.get_today()
today_start = today_time.get("today_start")
today_end = today_time.get("today_end")
goods.up_and_down_current_goods(today_start, today_end, today_start, today_end)
order_operation = OrderOperation() order_operation = OrderOperation()
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo) set_result = order_operation.set_student_id(studentName=student.studentNo)
# 学生信息是否完整
assert set_result, "学生查询失败" assert set_result, "学生查询失败"
check_res = StudentOperation.check_message_student(student.studentId)
public_asserts.public_assert(check_res)
# 查询学生电子钱包
electronic_res = StudentOperation.get_student_electronic_account(student.studentId)
public_asserts.public_assert(electronic_res)
# 选择商品
set_result = order_operation.set_goods_detail_list(keyword=self.goods.name)
assert set_result, "当期商品查询失败"
# 获取座位信息
seat_res = order_operation.get_current_classes_seat_info()
public_asserts.public_assert(seat_res)
# 下单预校验
pre_res = order_operation.pre_valid_current_order_condition()
public_asserts.public_assert(pre_res)
# 匹配促销
match_res = order_operation.get_current_order_match_discount()
public_asserts.public_assert(match_res)
match_res_data = match_res.get("data")
canUseCoupons = match_res_data.get("canUseCoupons")
assert_coupon_data_correct(canUseCoupons, coupon_item, shouldGoodsList=[self.goods.goods_id])
order_operation.set_coupon(match_res_data=match_res_data, couponItems=canUseCoupons)
# 计算订单价格
calculate_res = order_operation.get_current_calculate_price()
public_asserts.public_assert(calculate_res)
calculate_res_data = calculate_res.get("data")
totalPrice = calculate_res_data.get("totalPrice")
assert float(totalPrice) == float(self.goods.goodsInfo.get("price")) - float(discountValue/100), "计算价格的总金额错误"
# 保存订单
coupon_save_order_public_step(order_operation, totalPrice)
set_result = order_operation.set_goods_detail_list(keyword=goods.name) @allure.story("测试下单-使用满减券")
assert set_result, "商品查询失败" def test_apply_use_cash_full_reduce(self):
# 新建学生
student = StudentOperation()
add_student_res = student.add_current_student()
public_asserts.public_assert(add_student_res)
# 新增现金券设置
leastAmount = 100000
discountValue = 10000
coupon = AddCouponMethod.add_full_reduce_coupon(schoolAreaIds=[apply_data.apply_school_area], leastAmount=leastAmount, discountValue=discountValue)
assert coupon, "优惠券添加失败,不继续执行"
coupon_item = coupon.online_send_coupon_item(student)
assert coupon_item, "优惠券发放失败,不继续执行"
# 新增订单操作流程数据
order_operation = OrderOperation()
# 选择学生
set_result = order_operation.set_student_id(studentName=student.studentNo)
# 学生信息是否完整
assert set_result, "学生查询失败"
check_res = StudentOperation.check_message_student(student.studentId)
public_asserts.public_assert(check_res)
# 查询学生电子钱包
electronic_res = StudentOperation.get_student_electronic_account(student.studentId)
public_asserts.public_assert(electronic_res)
# 选择商品
set_result = order_operation.set_goods_detail_list(keyword=self.goods.name)
assert set_result, "当期商品查询失败"
# 获取座位信息 # 获取座位信息
seat_res = order_operation.get_current_classes_seat_info() seat_res = order_operation.get_current_classes_seat_info()
public_asserts.public_assert(seat_res) public_asserts.public_assert(seat_res)
...@@ -248,17 +568,28 @@ class TestApplyUseAll: ...@@ -248,17 +568,28 @@ class TestApplyUseAll:
pre_res = order_operation.pre_valid_current_order_condition() pre_res = order_operation.pre_valid_current_order_condition()
public_asserts.public_assert(pre_res) public_asserts.public_assert(pre_res)
# 匹配优惠券 # 匹配优惠券
set_result = order_operation.set_coupon_items_and_discount() match_res = order_operation.get_current_order_match_discount()
assert set_result, "优惠券匹配失败" public_asserts.public_assert(match_res)
match_res_data = match_res.get("data")
canUseCoupons = match_res_data.get("canUseCoupons")
assert_coupon_data_correct(canUseCoupons, coupon_item, shouldGoodsList=[self.goods.goods_id])
order_operation.set_coupon(match_res_data=match_res_data, couponItems=canUseCoupons)
# 计算订单价格 # 计算订单价格
order_operation.set_pay_amount() calculate_res = order_operation.get_current_calculate_price()
public_asserts.public_assert(calculate_res)
calculate_res_data = calculate_res.get("data")
totalPrice = calculate_res_data.get("totalPrice")
assert float(totalPrice) == float(self.goods.goodsInfo.get("price")) - float(discountValue/100), "计算价格的总金额错误"
# 保存订单 # 保存订单
save_res = order_operation.save_current_order() coupon_save_order_public_step(order_operation, totalPrice)
public_asserts.public_assert(save_res)
assert order_operation.orderId, "保存订单失败"
# 支付订单 @allure.epic("测试极运营报名")
pay_res = order_operation.pay_current_order(cash_pay=order_operation.payAmount) @allure.feature("测试极运营报名-多种优惠混合使用")
public_asserts.public_assert(pay_res) class TestApplyUseMultiple:
# 查询订单是否存在
is_have_order = order_operation.is_have_current_order_and_set_suborder_info() @allure.story("测试下单流程")
assert is_have_order, "订单列表未查询到订单" def test_apply_normal_class(self):
\ No newline at end of file pass
import random import random
from script.base_api_data.api_operation_web.coupon_operation import CouponExtra, CouponDiscountPolicy, CouponValidTimePolicy, CouponGoodsRules
from script.base_api_data.api_operation_web.coupon_operation import CourseGoodsRule
from script.base_api_data.api_operation_web.coupon_operation import CouponSetOperation
from script.base_api_data.api_operation_web.coupon_operation import CouponItemOperation
from script.global_data_config.school_data import SchoolDataConfig from script.global_data_config.school_data import SchoolDataConfig
from script.global_data_config.date_data import DateDataConfig from script.global_data_config.date_data import DateDataConfig
from script.global_data_config.class_data import ClassDataConfig from script.global_data_config.class_data import ClassDataConfig
...@@ -10,16 +14,9 @@ from script.global_data_config.mall_global_data import MallGlobalData ...@@ -10,16 +14,9 @@ from script.global_data_config.mall_global_data import MallGlobalData
allSchoolAreaIds = SchoolDataConfig.get_department_id() allSchoolAreaIds = SchoolDataConfig.get_department_id()
bizType_list = ["CASH", "FULL_REDUCE"]
sendType_list = ["MANUAL", "AUTO"]
channels_list = ["PC_B", "APP_C", "APPLET_C"]
rangeGoodsType_list = ["ALL", "PART_PROPERTY", "PART_IDS"]
discountType_list = ["REDUCE", "DISCOUNT"]
# goodsType_list = ["CLASS", "CONTENT", "BOUTIQUE"]
goodsType_list = ["CLASS", "BOUTIQUE"] goodsType_list = ["CLASS", "BOUTIQUE"]
# goodsType_list = ["CONTENT"]
valid_time_policy_list = ["fixedTime", "nowToDelayTime", "all"] valid_time_policy_list = ["fixedTime", "nowToDelayTime", "all"]
goodsId_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] goodsId_list = list(range(100))
# 获取优惠时间设置 # 获取优惠时间设置
...@@ -35,26 +32,14 @@ def get_valid_time_policy(startTime=None, endTime=None, receivedDelayDay=7, retu ...@@ -35,26 +32,14 @@ def get_valid_time_policy(startTime=None, endTime=None, receivedDelayDay=7, retu
today_start = today_time.get("today_start") today_start = today_time.get("today_start")
after_time = GetTime.get_today_after(receivedDelayDay) after_time = GetTime.get_today_after(receivedDelayDay)
after_end = after_time.get(f"after_time_{receivedDelayDay}") after_end = after_time.get(f"after_time_{receivedDelayDay}")
validTimePolicy = { startTime = GetTime.convert_to_time_stamp(startTime or today_start)
"fixedTime": { endTime = GetTime.convert_to_time_stamp(endTime or after_end)
# 优惠券生效开始时间
"startTime": GetTime.convert_to_time_stamp(startTime or today_start),
# 优惠券结束时间
"endTime": GetTime.convert_to_time_stamp(endTime or after_end)
},
"nowToDelayTime": {
# 领取当日起XX天有效
"receivedDelayDay": receivedDelayDay
}
}
if return_type == "fixedTime": if return_type == "fixedTime":
validTimePolicy.pop("nowToDelayTime") return CouponValidTimePolicy(startTime=startTime, endTime=endTime)
return validTimePolicy
elif return_type == "nowToDelayTime": elif return_type == "nowToDelayTime":
validTimePolicy.pop("fixedTime") return CouponValidTimePolicy(receivedDelayDay=receivedDelayDay)
return validTimePolicy
else: else:
return validTimePolicy return CouponValidTimePolicy(startTime=startTime, endTime=endTime, receivedDelayDay=receivedDelayDay)
# 获取优惠政策设置 # 获取优惠政策设置
...@@ -67,98 +52,62 @@ def get_discount_policy(bizType="CASH", discountType="REDUCE"): ...@@ -67,98 +52,62 @@ def get_discount_policy(bizType="CASH", discountType="REDUCE"):
discountValue = random.randint(10, 50) discountValue = random.randint(10, 50)
else: else:
discountValue = round(random.uniform(1, 10), 1) discountValue = round(random.uniform(1, 10), 1)
discountPolicy = { return CouponDiscountPolicy(leastAmount=leastAmount, discountType=discountType, discountValue=discountValue)
"leastAmount": leastAmount,
"discountType": discountType,
"discountValue": discountValue
}
return discountPolicy
# 获取优惠规则设置
def get_goods_rules(goodsType="CLASS", channels=None, schoolAreaIds=None, rangeGoodsType="ALL", goodsIds=None):
goodsRules = {
"goodsType": goodsType,
"channels": channels or channels_list,
"schoolAreaIds": schoolAreaIds or random.sample(allSchoolAreaIds, 20),
"rangeGoodsType": rangeGoodsType,
}
if rangeGoodsType == "PART_PROPERTY":
goodsRules["goodsRangeRules"] = {
"goodsIds": [],
"goodsRulePartPropertyRules": {
"courseGoodsRule": get_course_goods_rules(goodsType)
}
}
elif rangeGoodsType == "PART_IDS":
goodsRules["goodsRangeRules"] = {
"goodsIds": goodsIds or random.sample(goodsId_list, 10),
"goodsRulePartPropertyRules": {
"courseGoodsRule": get_course_goods_rules(goodsType)
}
}
else:
goodsRules["goodsRangeRules"] = {
"goodsIds": [],
"goodsRulePartPropertyRules": {
"courseGoodsRule": get_course_goods_rules(goodsType)
}
}
return goodsRules
# 获取商品属性规则设置 # 获取商品属性规则设置
def get_course_goods_rules(goodsType): def get_course_goods_rules(goodsType):
courseGoodsRules = { courseGrades = get_random_list_by_list(MallGlobalData.grade_list)
"courseGrades": get_random_list_by_list(MallGlobalData.grade_list), courseSubjects = get_random_list_by_list(MallGlobalData.subject_list)
"courseSubjects": get_random_list_by_list(MallGlobalData.subject_list) courseYears = get_random_list_by_list(DateDataConfig.get_current_year_before_and_after())
} courseTerms = get_random_list_by_list(MallGlobalData.term_list)
if goodsType == "CLASS": if goodsType == "CLASS":
temp = { courseClassTypes = get_random_list_by_list(MallGlobalData.classType_list)
"courseYears": get_random_list_by_list(DateDataConfig.get_current_year_before_and_after()), courseStages = get_random_list_by_list(ClassDataConfig.phase)
"courseTerms": get_random_list_by_list(MallGlobalData.term_list), return CourseGoodsRule(courseYears=courseYears, courseTerms=courseTerms, courseGrades=courseGrades,
"courseClassTypes": get_random_list_by_list(MallGlobalData.classType_list), courseSubjects=courseSubjects, courseClassTypes=courseClassTypes, courseStages=courseStages)
"courseStages": get_random_list_by_list(ClassDataConfig.phase)
}
elif goodsType == "BOUTIQUE": elif goodsType == "BOUTIQUE":
temp = { courseClassTypes = get_random_list_by_list(ClassDataConfig.get_boutique_class_type())
"courseClassTypes": get_random_list_by_list(ClassDataConfig.get_boutique_class_type()), return CourseGoodsRule(courseGrades=courseGrades, courseSubjects=courseSubjects, courseClassTypes=courseClassTypes)
}
elif goodsType == "CONTENT": elif goodsType == "CONTENT":
temp = { return CourseGoodsRule(courseYears=courseYears, courseTerms=courseTerms, courseGrades=courseGrades,
"courseYears": get_random_list_by_list(DateDataConfig.get_current_year_before_and_after()), courseSubjects=courseSubjects)
"courseTerms": get_random_list_by_list(MallGlobalData.term_list), else:
} return CourseGoodsRule(courseYears=[], courseTerms=[], courseGrades=[],
courseSubjects=[], courseClassTypes=[], courseStages=[])
# 获取优惠规则设置
def get_goods_rules(goodsType="CLASS", channels=None, schoolAreaIds=None, rangeGoodsType="ALL", goodsIds=None):
channels = channels or get_random_list_by_list(MallGlobalData.channels_list)
schoolAreaIds = schoolAreaIds or random.sample(allSchoolAreaIds, 20)
if rangeGoodsType == "PART_PROPERTY":
courseGoodsRule = get_course_goods_rules(goodsType)
return CouponGoodsRules(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds,
rangeGoodsType=rangeGoodsType, courseGoodsRule=courseGoodsRule)
elif rangeGoodsType == "PART_IDS":
goodsIds = goodsIds or random.sample(goodsId_list, 10)
return CouponGoodsRules(goodsType=goodsType, channels=channels, schoolAreaIds=schoolAreaIds,
rangeGoodsType=rangeGoodsType, goodsIds=goodsIds)
else: else:
temp = { return CouponGoodsRules()
"courseYears": [],
"courseTerms": [],
"courseGrades": [],
"courseSubjects": [],
"courseClassTypes": [],
"courseStages": []
}
return {**courseGoodsRules, **temp}
# 获取新增优惠设置组合数据 # 获取新增优惠设置组合数据
def get_add_coupon_set_data(): def get_add_coupon_set_data():
coupon_set_data_list = [] coupon_set_data_list = []
for bizType in bizType_list: for bizType in MallGlobalData.bizType_list:
for sendType in sendType_list: for sendType in MallGlobalData.sendType_list:
for discountType in discountType_list: for discountType in MallGlobalData.discountType_list:
for goodsType in goodsType_list: for goodsType in goodsType_list:
for rangeGoodsType in rangeGoodsType_list: for rangeGoodsType in MallGlobalData.rangeGoodsType_list:
coupon_data = { extra = CouponExtra(sendType=sendType)
"extra": { discountPolicy = get_discount_policy(bizType=bizType, discountType=discountType)
"sendType": sendType validTimePolicy = get_valid_time_policy(return_type=random.choice(valid_time_policy_list))
}, goodsRules = get_goods_rules(goodsType=goodsType, rangeGoodsType=rangeGoodsType)
"discountPolicy": get_discount_policy(bizType=bizType, discountType=discountType), co = CouponSetOperation(bizType=bizType, extra=extra, discountPolicy=discountPolicy,
"validTimePolicy": get_valid_time_policy(return_type=random.choice(valid_time_policy_list)), validTimePolicy=validTimePolicy, goodsRules=goodsRules)
"bizType": bizType, coupon_set_data_list.append(co)
"goodsRules": get_goods_rules(goodsType=goodsType, rangeGoodsType=rangeGoodsType)
}
coupon_set_data_list.append(coupon_data)
return coupon_set_data_list return coupon_set_data_list
......
import random import random
from script.base_api_data.api_operation_web.goods_operation import GoodsOperation from script.base_api_data.api_operation_web.goods_operation import GoodsOperation
from script.ji_yun_ying_pc.mall.store_shopping_mall.data_config import mall_data from script.ji_yun_ying_pc.mall.store_shopping_mall.data_config import mall_data
from script.global_data_config.mall_global_data import MallGlobalData
from script.global_data_config.class_data import ClassDataConfig from script.global_data_config.class_data import ClassDataConfig
from common.common_util import get_random_list_by_list from common.common_util import get_random_list_by_list
...@@ -8,8 +9,8 @@ from common.common_util import get_random_list_by_list ...@@ -8,8 +9,8 @@ from common.common_util import get_random_list_by_list
def get_add_goods_data_list(): def get_add_goods_data_list():
add_goods_data_list = [] add_goods_data_list = []
for courseType in GoodsOperation.courseType_list: for courseType in MallGlobalData.classType_list:
for courseTeachWay in GoodsOperation.courseTeachWay_list: for courseTeachWay in MallGlobalData.courseTeachWay_list:
goods_data = { goods_data = {
"price": random.randint(1000, 2000), "price": random.randint(1000, 2000),
"storeId": None, "storeId": None,
...@@ -17,13 +18,13 @@ def get_add_goods_data_list(): ...@@ -17,13 +18,13 @@ def get_add_goods_data_list():
"courseType": courseType, "courseType": courseType,
"courseSubType": "NORMAL", "courseSubType": "NORMAL",
"courseClsType": None, "courseClsType": None,
"courseGrades": get_random_list_by_list(ClassDataConfig.grade), "courseGrades": get_random_list_by_list(MallGlobalData.grade_list),
"courseSubjects": get_random_list_by_list(GoodsOperation.courseSubType_list), "courseSubjects": get_random_list_by_list(MallGlobalData.subject_list),
"courseTerm": None, "courseTerm": None,
"courseYear": None, "courseYear": None,
"courseTeachWay": courseTeachWay, "courseTeachWay": courseTeachWay,
"coursePeriod": None, "coursePeriod": None,
"channels": get_random_list_by_list(GoodsOperation.channels_list) "channels": get_random_list_by_list(MallGlobalData.channels_list)
} }
goods_data = {**goods_data, **mall_data.get_sale_pay_begin_end_time()} goods_data = {**goods_data, **mall_data.get_sale_pay_begin_end_time()}
add_goods_data_list.append(goods_data) add_goods_data_list.append(goods_data)
......
...@@ -12,6 +12,7 @@ from script import public_asserts ...@@ -12,6 +12,7 @@ from script import public_asserts
from script.ji_yun_ying_pc.mall.store_shopping_mall.data_config import coupon_data from script.ji_yun_ying_pc.mall.store_shopping_mall.data_config import coupon_data
from script.global_data_config.student_data import StudentData from script.global_data_config.student_data import StudentData
from script.global_data_config.class_data import ClassDataConfig from script.global_data_config.class_data import ClassDataConfig
from script.global_data_config.mall_global_data import MallGlobalData
@allure.epic("测试优惠券") @allure.epic("测试优惠券")
...@@ -19,7 +20,7 @@ from script.global_data_config.class_data import ClassDataConfig ...@@ -19,7 +20,7 @@ from script.global_data_config.class_data import ClassDataConfig
class TestCouponsSet: class TestCouponsSet:
@allure.story("测试优惠券列表查询") @allure.story("测试优惠券列表查询")
@pytest.mark.parametrize("biz_type", coupon_data.bizType_list) @pytest.mark.parametrize("biz_type", MallGlobalData.bizType_list)
def test_coupon_set_list_search_biz_type(self, biz_type): def test_coupon_set_list_search_biz_type(self, biz_type):
res = CouponSetOperation.get_coupon_set_list(bizType=biz_type) res = CouponSetOperation.get_coupon_set_list(bizType=biz_type)
public_asserts.public_assert(res) public_asserts.public_assert(res)
...@@ -27,9 +28,8 @@ class TestCouponsSet: ...@@ -27,9 +28,8 @@ class TestCouponsSet:
assert data, f"响应的data不为空{data}" assert data, f"响应的data不为空{data}"
@allure.story("测试新增、编辑、删除、停用、启用、设置自动发放优惠券设置") @allure.story("测试新增、编辑、删除、停用、启用、设置自动发放优惠券设置")
@pytest.mark.parametrize("add_coupon_data", coupon_data.get_add_coupon_set_data()) @pytest.mark.parametrize("co", coupon_data.get_add_coupon_set_data())
def test_operation_coupon_set(self, add_coupon_data): def test_operation_coupon_set(self, co: CouponSetOperation):
co = CouponSetOperation(**add_coupon_data)
add_res = co.add_coupon_set() add_res = co.add_coupon_set()
public_asserts.public_assert(add_res) public_asserts.public_assert(add_res)
data = add_res.get("data") data = add_res.get("data")
...@@ -66,7 +66,7 @@ class TestCouponsSet: ...@@ -66,7 +66,7 @@ class TestCouponsSet:
assert not is_have, f"停用中没有数据,{is_have}" assert not is_have, f"停用中没有数据,{is_have}"
is_have = CouponSetOperation.is_have_coupon_set(co.coupon_id, statuses="ENABLED", coupon_name=co.name, bizType=co.bizType) is_have = CouponSetOperation.is_have_coupon_set(co.coupon_id, statuses="ENABLED", coupon_name=co.name, bizType=co.bizType)
assert is_have, f"启用中有数据,{is_have}" assert is_have, f"启用中有数据,{is_have}"
if co.extra.get("sendType") == "AUTO": if co.extra.sendType == "AUTO":
# 设置前, 查看设置的发放条件 # 设置前, 查看设置的发放条件
res_set_before = CouponSetOperation.get_coupon_auto_send_set(co.coupon_id) res_set_before = CouponSetOperation.get_coupon_auto_send_set(co.coupon_id)
public_asserts.public_assert(res_set_before) public_asserts.public_assert(res_set_before)
...@@ -156,13 +156,13 @@ class TestCouponsSend: ...@@ -156,13 +156,13 @@ class TestCouponsSend:
keyword = "" keyword = ""
# 现金券查询 # 现金券查询
couponId = TestCouponsSend.cash_coupon_set.coupon_id couponId = TestCouponsSend.cash_coupon_set.coupon_id
res = CouponSetOperation.get_receive_coupon_list_search(couponId, keyword=keyword, pageNum=pageNum, pageSize=pageSize) res = CouponSetOperation.get_receive_recall_coupon_list(couponId, keyword=keyword, pageNum=pageNum, pageSize=pageSize)
public_asserts.public_assert(res) public_asserts.public_assert(res)
data = res.get("data") data = res.get("data")
assert data, f"data不为空,{data}" assert data, f"data不为空,{data}"
# 满减券查询 # 满减券查询
couponId = TestCouponsSend.full_reduce_coupon_set.coupon_id couponId = TestCouponsSend.full_reduce_coupon_set.coupon_id
res = CouponSetOperation.get_receive_coupon_list_search(couponId, keyword=keyword, pageNum=pageNum, pageSize=pageSize) res = CouponSetOperation.get_receive_recall_coupon_list(couponId, keyword=keyword, pageNum=pageNum, pageSize=pageSize)
public_asserts.public_assert(res) public_asserts.public_assert(res)
data = res.get("data") data = res.get("data")
assert data, f"data不为空,{data}" assert data, f"data不为空,{data}"
...@@ -170,13 +170,13 @@ class TestCouponsSend: ...@@ -170,13 +170,13 @@ class TestCouponsSend:
@allure.story("测试撤回优惠券") @allure.story("测试撤回优惠券")
def test_receive_coupon(self): def test_receive_coupon(self):
couponId = 1 couponId = 1
res = CouponItemOperation.receive_coupon(couponId) res = CouponItemOperation.receive_coupon_item(couponId)
public_asserts.public_assert(res) public_asserts.public_assert(res)
@allure.story("测试取消撤回优惠券") @allure.story("测试取消撤回优惠券")
def test_cancel_receive_coupon(self): def test_cancel_receive_coupon(self):
couponId = 1 couponId = 1
res = CouponItemOperation.cancel_receive_coupon(couponId) res = CouponItemOperation.cancel_receive_coupon_item(couponId)
public_asserts.public_assert(res) public_asserts.public_assert(res)
......
...@@ -295,4 +295,3 @@ class TestExcellentPromotion: ...@@ -295,4 +295,3 @@ class TestExcellentPromotion:
# 启用后查询详情 # 启用后查询详情
detail_res = cpo.get_current_promotion_detail() detail_res = cpo.get_current_promotion_detail()
public_asserts.public_assert(detail_res) public_asserts.public_assert(detail_res)
...@@ -30,4 +30,4 @@ def get_method(url, method): ...@@ -30,4 +30,4 @@ def get_method(url, method):
if __name__ == '__main__': if __name__ == '__main__':
get_method("/service-pay/pay/boc/pos/posInfo", "get") get_method("/service-user/departments/school/list", "get")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment