├── doc
├── 数据库.pdf
└── postman.png
├── common
└── src
│ └── main
│ └── java
│ └── com
│ └── alonelaval
│ └── common
│ ├── package-info.java
│ ├── exception
│ ├── UserNotLoginException.java
│ ├── ExceptionUtil.java
│ ├── DaoException.java
│ └── ServiceException.java
│ ├── CommonApplication.java
│ ├── entity
│ └── IEnum.java
│ ├── util
│ ├── AmountPriceUtil.java
│ ├── AssertUtil.java
│ └── IpUtils.java
│ └── message
│ └── SmsCodeGenerator.java
├── .mvn
└── wrapper
│ ├── maven-wrapper.jar
│ └── maven-wrapper.properties
├── entity
└── src
│ ├── main
│ └── java
│ │ └── com
│ │ └── alonelaval
│ │ └── cornerstone
│ │ └── entity
│ │ ├── package-info.java
│ │ ├── model
│ │ ├── Model.java
│ │ ├── OrgGiftModel.java
│ │ ├── SecretKeyModel.java
│ │ ├── OperationLogModel.java
│ │ ├── OrgPermissionModel.java
│ │ ├── OrgRelationModel.java
│ │ ├── SysMessageModel.java
│ │ ├── SysPermissionModel.java
│ │ ├── UserEvaluateModel.java
│ │ ├── UserRelationModel.java
│ │ ├── OrgOrderCourseModel.java
│ │ ├── OrderInvoiceRecordModel.java
│ │ ├── OrgCourseClassTypeModel.java
│ │ ├── OrgCourseResourceModel.java
│ │ ├── OrgEmployeeWorkdayModel.java
│ │ ├── OrgOrderPromotionModel.java
│ │ ├── OrgPlaceFacilityModel.java
│ │ ├── OrgPlaceResourceModel.java
│ │ ├── OrgPromotionRuleModel.java
│ │ ├── OrgUserAppointmentModel.java
│ │ ├── SysMessageRuleTypeModel.java
│ │ ├── OrgClassArrangeRuleModel.java
│ │ ├── OrgEmployeeResourceModel.java
│ │ ├── OrgOrderCourseCoachModel.java
│ │ ├── OrgOrderCoursePeriodModel.java
│ │ ├── OrgDisposeAppointmentModel.java
│ │ ├── OrgPromotionConditionModel.java
│ │ ├── PlatformCourseCategoryModel.java
│ │ ├── UserRoleModel.java
│ │ ├── OrgEmployeeSkillModel.java
│ │ ├── OrgResourceModel.java
│ │ ├── RolePermissionModel.java
│ │ ├── UserAddresseeTagModel.java
│ │ ├── OrgCoursePriceModel.java
│ │ ├── OrgEmployeeRecordModel.java
│ │ ├── OrgClassCoachModel.java
│ │ ├── OrgCoursePeriodModel.java
│ │ ├── OrgClassStudentModel.java
│ │ ├── VmOrgPlaceModel.java
│ │ ├── OrgEmployeeWorktimeModel.java
│ │ ├── VmOrgCourseModel.java
│ │ ├── AreaModel.java
│ │ ├── UserAddresseeModel.java
│ │ ├── OrgEmployeeCheckinModel.java
│ │ ├── FacilityModel.java
│ │ ├── RoleModel.java
│ │ ├── OrgDepartmentModel.java
│ │ └── OrgStudentModel.java
│ │ ├── base
│ │ ├── JsonResult.java
│ │ └── IEntity.java
│ │ ├── converter
│ │ ├── EnumConverter.java
│ │ ├── StateConverter.java
│ │ ├── GenderConverter.java
│ │ ├── DayTypeConverter.java
│ │ ├── IsCoachConverter.java
│ │ ├── JobTypeConverter.java
│ │ ├── PayTypeConverter.java
│ │ ├── DealTypeConverter.java
│ │ ├── OrgStateConverter.java
│ │ ├── TimeTypeConverter.java
│ │ ├── CoachTypeConverter.java
│ │ ├── OrderTypeConverter.java
│ │ ├── RegSourceConverter.java
│ │ ├── VisitTypeConverter.java
│ │ ├── AuditStateConverter.java
│ │ ├── ClassStateConverter.java
│ │ ├── CourseTypeConverter.java
│ │ ├── IsInvoicedConverter.java
│ │ ├── OrderStateConverter.java
│ │ ├── CheckinTypeConverter.java
│ │ ├── InvoiceTypeConverter.java
│ │ ├── MessageTypeConverter.java
│ │ ├── RoleOwnTypeConverter.java
│ │ ├── PlaceOwnTypeConverter.java
│ │ ├── AdminDivisionConverter.java
│ │ ├── EduBackgroundConverter.java
│ │ ├── EmployeeStateConverter.java
│ │ ├── ExceptionTypeConverter.java
│ │ ├── ClassGradeTypeConverter.java
│ │ ├── IsArrangeClassConverter.java
│ │ ├── OrgAccountTypeConverter.java
│ │ ├── PermissionShowConverter.java
│ │ ├── PermissionTypeConverter.java
│ │ ├── ProductVersionConverter.java
│ │ ├── RoleCreateTypeConverter.java
│ │ ├── CourseStartTypeConverter.java
│ │ ├── MessageRuleTypeConverter.java
│ │ ├── MessageSendTypeConverter.java
│ │ ├── OrgResourceTypeConverter.java
│ │ ├── ClassArrangeTypeConverter.java
│ │ ├── InvoiceIssueTypeConverter.java
│ │ ├── PermssionOwnTypeConverter.java
│ │ ├── UserRelationTypeConverter.java
│ │ ├── CourseResourceTypeConverter.java
│ │ ├── MessageSendChannelConverter.java
│ │ └── PlatformMessageTypeConverter.java
│ │ └── EntityAppllation.java
│ └── test
│ └── java
│ └── com
│ └── alonelaval
│ └── cornerstone
│ └── entity
│ └── OptionalTest.java
├── service
├── implement
│ └── src
│ │ └── main
│ │ └── resources
│ │ └── service.properties
└── interface
│ └── src
│ ├── main
│ └── java
│ │ └── com
│ │ └── alonelaval
│ │ └── cornerstone
│ │ └── service
│ │ ├── org
│ │ ├── promotion
│ │ │ ├── OrgGiftService.java
│ │ │ ├── OrgPromotionRuleService.java
│ │ │ └── OrgPromotionConditionService.java
│ │ ├── log
│ │ │ └── OperationLogService.java
│ │ ├── OrgRelationService.java
│ │ ├── order
│ │ │ ├── OrgOrderPromotionService.java
│ │ │ └── OrgOrderService.java
│ │ ├── arrange
│ │ │ ├── OrgClassArrangeRuleService.java
│ │ │ └── OrgClassArrangeRecordService.java
│ │ ├── appointment
│ │ │ ├── OrgUserAppointmentService.java
│ │ │ └── OrgDisposeAppointmentService.java
│ │ ├── department
│ │ │ └── OrgDepartmentService.java
│ │ ├── place
│ │ │ ├── VmOrgPlaceService.java
│ │ │ ├── OrgPlaceResourceService.java
│ │ │ ├── OrgPlaceService.java
│ │ │ └── OrgPlaceFacilityService.java
│ │ ├── employee
│ │ │ ├── VmOrgCoachService.java
│ │ │ ├── OrgEmployeeCheckinService.java
│ │ │ ├── OrgEmployeeResourceService.java
│ │ │ └── OrgEmployeeSkillService.java
│ │ ├── course
│ │ │ ├── VmOrgCourseService.java
│ │ │ ├── OrgCourseClassTypeService.java
│ │ │ ├── OrgCourseService.java
│ │ │ └── OrgCourseResourceService.java
│ │ ├── student
│ │ │ └── OrgReturnVisitService.java
│ │ └── classes
│ │ │ └── OrgClassService.java
│ │ ├── platform
│ │ ├── SecretKeyService.java
│ │ ├── AreaService.java
│ │ ├── SysPermissionService.java
│ │ ├── PlatformCourseCategoryService.java
│ │ ├── FacilityService.java
│ │ └── PlatformOrderService.java
│ │ ├── user
│ │ ├── UserRelationService.java
│ │ ├── UserStudentService.java
│ │ ├── UserEvaluateService.java
│ │ ├── OrderInvoiceRecordService.java
│ │ ├── UserAttendClassRecordService.java
│ │ ├── UserAddresseeTagService.java
│ │ ├── CustomUserDetailsService.java
│ │ ├── UserInvoiceService.java
│ │ └── UserAddresseeService.java
│ │ └── message
│ │ ├── SysMessageService.java
│ │ ├── SysMessageRuleTypeService.java
│ │ └── SysMessageRuleService.java
│ └── test
│ └── resources
│ └── application.properties
├── web
└── src
│ ├── main
│ ├── resources
│ │ ├── static
│ │ │ ├── img
│ │ │ │ ├── u1943.33734c1.png
│ │ │ │ ├── u2615.add93d0.png
│ │ │ │ ├── u5382.c0d1276.png
│ │ │ │ ├── u8256.673abf0.png
│ │ │ │ └── 背景图_u1930.46e21a2.png
│ │ │ └── fonts
│ │ │ │ ├── element-icons.6f0a763.ttf
│ │ │ │ ├── fontawesome-webfont.674f50d.eot
│ │ │ │ ├── fontawesome-webfont.b06871f.ttf
│ │ │ │ ├── fontawesome-webfont.af7ae50.woff2
│ │ │ │ └── fontawesome-webfont.fee66e7.woff
│ │ └── templates
│ │ │ ├── index.html
│ │ │ ├── platform.html
│ │ │ └── org.html
│ └── java
│ │ └── com
│ │ └── alonelaval
│ │ └── cornerstone
│ │ └── web
│ │ ├── common
│ │ ├── valid
│ │ │ ├── FirstValid.java
│ │ │ ├── SecondValid.java
│ │ │ └── Group.java
│ │ ├── IDSecurity.java
│ │ ├── MyServletInvocableHandlerMethod.java
│ │ └── EnumValueFilter.java
│ │ └── controller
│ │ └── IndexController.java
│ └── test
│ └── java
│ └── com
│ └── alonelaval
│ └── cornerstone
│ └── web
│ ├── EnumJsonTest.java
│ ├── WebApplicationTests.java
│ └── EnumSuperClassTest.java
├── README.md
├── dao
├── repository
│ └── src
│ │ └── main
│ │ └── java
│ │ └── com
│ │ └── alonelaval
│ │ └── cornerstone
│ │ └── dao
│ │ └── repository
│ │ └── jpa
│ │ ├── package-info.java
│ │ ├── biz
│ │ ├── AreaRepository.java
│ │ ├── OrgGiftRepository.java
│ │ ├── OrgClassRepository.java
│ │ ├── SecretKeyRepository.java
│ │ ├── SysMessageRepository.java
│ │ ├── VmOrgCoachRepository.java
│ │ ├── OperationLogRepository.java
│ │ ├── OrgRelationRepository.java
│ │ ├── UserEvaluateRepository.java
│ │ ├── UserRelationRepository.java
│ │ ├── UserStudentRepository.java
│ │ ├── VmOrgCourseRepository.java
│ │ ├── VmOrgPlaceRepository.java
│ │ ├── OrgClassCoachRepository.java
│ │ ├── OrgDepartmentRepository.java
│ │ ├── OrgCoursePriceRepository.java
│ │ ├── OrgReturnVisitRepository.java
│ │ ├── SysMessageRuleRepository.java
│ │ ├── OrgClassStudentRepository.java
│ │ ├── OrgRepository.java
│ │ ├── OrgCourseResourceRepository.java
│ │ ├── OrgEmployeeRecordRepository.java
│ │ ├── OrgEmployeeSkillRepository.java
│ │ ├── OrgOrderPromotionRepository.java
│ │ ├── OrgPlaceFacilityRepository.java
│ │ ├── OrgPlaceResourceRepository.java
│ │ ├── OrgPromotionRuleRepository.java
│ │ ├── OrderInvoiceRecordRepository.java
│ │ ├── OrgCourseClassTypeRepository.java
│ │ ├── OrgEmployeeCheckinRepository.java
│ │ ├── OrgUserAppointmentRepository.java
│ │ ├── SysMessageRuleTypeRepository.java
│ │ ├── OrgClassArrangeRuleRepository.java
│ │ ├── OrgEmployeeResourceRepository.java
│ │ ├── OrgEmployeeWorktimeRepository.java
│ │ ├── OrgOrderCourseCoachRepository.java
│ │ ├── OrgClassArrangeRecordRepository.java
│ │ ├── OrgDisposeAppointmentRepository.java
│ │ ├── OrgPromotionConditionRepository.java
│ │ ├── PlatformCourseCategoryRepository.java
│ │ ├── UserAttendClassRecordRepository.java
│ │ ├── FacilityRepository.java
│ │ ├── OrgPlaceRepository.java
│ │ ├── OrgCourseRepository.java
│ │ ├── PlatformShopkeeperRepository.java
│ │ ├── UserAddresseeRepository.java
│ │ ├── OrgCoursePlaceRepository.java
│ │ ├── RolePermissionRepository.java
│ │ ├── OrgStudentRepository.java
│ │ ├── SysPermissionRepository.java
│ │ ├── OrgEmployeeWorkdayRepository.java
│ │ ├── OrgOrderCoursePeriodRepository.java
│ │ ├── OrgOrderCourseRepository.java
│ │ ├── OrgCoursePeriodRepository.java
│ │ └── UserInvoiceRepository.java
│ │ └── JpaApplication.java
├── inter
│ ├── src
│ │ └── main
│ │ │ └── java
│ │ │ └── com
│ │ │ └── alonelaval
│ │ │ └── cornerstone
│ │ │ └── dao
│ │ │ └── inter
│ │ │ ├── platform
│ │ │ ├── AreaDao.java
│ │ │ ├── SecretKeyDao.java
│ │ │ ├── PlatformCourseCategoryDao.java
│ │ │ ├── PlatformShopkeeperDao.java
│ │ │ ├── FacilityDao.java
│ │ │ ├── SysPermissionDao.java
│ │ │ ├── RolePermissionDao.java
│ │ │ └── PlatformOrderDao.java
│ │ │ ├── org
│ │ │ ├── OrgGiftDao.java
│ │ │ ├── OrgClassDao.java
│ │ │ ├── VmOrgCoachDao.java
│ │ │ ├── VmOrgCourseDao.java
│ │ │ ├── VmOrgPlaceDao.java
│ │ │ ├── SysMessageDao.java
│ │ │ ├── OperationLogDao.java
│ │ │ ├── OrgRelationDao.java
│ │ │ ├── OrgClassCoachDao.java
│ │ │ ├── OrgDepartmentDao.java
│ │ │ ├── OrgCoursePriceDao.java
│ │ │ ├── SysMessageRuleDao.java
│ │ │ ├── OrgClassStudentDao.java
│ │ │ ├── OrgCourseResourceDao.java
│ │ │ ├── OrgEmployeeRecordDao.java
│ │ │ ├── OrgEmployeeSkillDao.java
│ │ │ ├── OrgOrderPromotionDao.java
│ │ │ ├── OrgPlaceFacilityDao.java
│ │ │ ├── OrgPlaceResourceDao.java
│ │ │ ├── OrgPromotionRuleDao.java
│ │ │ ├── OrgCourseClassTypeDao.java
│ │ │ ├── OrgEmployeeCheckinDao.java
│ │ │ ├── OrgUserAppointmentDao.java
│ │ │ ├── SysMessageRuleTypeDao.java
│ │ │ ├── OrgClassArrangeRuleDao.java
│ │ │ ├── OrgEmployeeResourceDao.java
│ │ │ ├── OrgEmployeeWorktimeDao.java
│ │ │ ├── OrgClassArrangeRecordDao.java
│ │ │ ├── OrgDisposeAppointmentDao.java
│ │ │ ├── OrgPromotionConditionDao.java
│ │ │ ├── OrgReturnVisitDao.java
│ │ │ ├── OrgDao.java
│ │ │ ├── OrgOrderCourseCoachDao.java
│ │ │ ├── OrgCourseDao.java
│ │ │ ├── OrgPlaceDao.java
│ │ │ ├── OrgResourceDao.java
│ │ │ ├── OrgEmployeeWorkdayDao.java
│ │ │ ├── OrgCoursePlaceDao.java
│ │ │ ├── order
│ │ │ │ └── OrgOrderDao.java
│ │ │ ├── OrgStudentDao.java
│ │ │ ├── OrgOrderCoursePeriodDao.java
│ │ │ ├── OrgCoursePeriodDao.java
│ │ │ ├── OrgOrderCourseDao.java
│ │ │ └── OrgPermissionDao.java
│ │ │ └── user
│ │ │ ├── UserStudentDao.java
│ │ │ ├── UserEvaluateDao.java
│ │ │ ├── UserRelationDao.java
│ │ │ ├── OrderInvoiceRecordDao.java
│ │ │ ├── UserAttendClassRecordDao.java
│ │ │ ├── UserAddresseeTagDao.java
│ │ │ ├── UserInvoiceDao.java
│ │ │ ├── UserAddresseeDao.java
│ │ │ └── UserDao.java
│ └── pom.xml
├── impl
│ ├── src
│ │ └── main
│ │ │ └── resources
│ │ │ └── application.properties
│ └── pom.xml
└── src
│ └── test
│ └── resources
│ └── application.properties
└── cache
└── src
└── main
└── java
└── com
└── alonelaval
└── cornerstone
└── cache
└── config
└── CacheConfig.java
/doc/数据库.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/doc/数据库.pdf
--------------------------------------------------------------------------------
/doc/postman.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/doc/postman.png
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/package-info.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common;
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/package-info.java:
--------------------------------------------------------------------------------
1 | /***
2 | * 实体包
3 | */
4 | package com.alonelaval.cornerstone.entity;
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip
2 |
--------------------------------------------------------------------------------
/service/implement/src/main/resources/service.properties:
--------------------------------------------------------------------------------
1 | #默认C端用户权限,多个逗号分隔
2 | client.user.defaultRoleIds=1
3 | #默认机构端角色,多个逗号分隔
4 | org.user.defaultRoleIds=2
5 |
--------------------------------------------------------------------------------
/web/src/main/resources/static/img/u1943.33734c1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/img/u1943.33734c1.png
--------------------------------------------------------------------------------
/web/src/main/resources/static/img/u2615.add93d0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/img/u2615.add93d0.png
--------------------------------------------------------------------------------
/web/src/main/resources/static/img/u5382.c0d1276.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/img/u5382.c0d1276.png
--------------------------------------------------------------------------------
/web/src/main/resources/static/img/u8256.673abf0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/img/u8256.673abf0.png
--------------------------------------------------------------------------------
/web/src/main/resources/static/img/背景图_u1930.46e21a2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/img/背景图_u1930.46e21a2.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 一个教育培训行业的saas后台,实现了大部分功能。
2 | ### 数据库文件
3 | lib/ycz-cornerstone.sql
4 | ### postman 测试文件
5 | lib/ycz.postman_collection.json
6 | ### 数据库结构说明
7 | doc/数据库.pdf
8 |
--------------------------------------------------------------------------------
/web/src/main/resources/static/fonts/element-icons.6f0a763.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/fonts/element-icons.6f0a763.ttf
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * jpa的实现,为了快速的开发,特意使用jpa
3 | */
4 | package com.alonelaval.cornerstone.dao.repository.jpa;
--------------------------------------------------------------------------------
/web/src/main/resources/static/fonts/fontawesome-webfont.674f50d.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/fonts/fontawesome-webfont.674f50d.eot
--------------------------------------------------------------------------------
/web/src/main/resources/static/fonts/fontawesome-webfont.b06871f.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/fonts/fontawesome-webfont.b06871f.ttf
--------------------------------------------------------------------------------
/web/src/main/resources/static/fonts/fontawesome-webfont.af7ae50.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/fonts/fontawesome-webfont.af7ae50.woff2
--------------------------------------------------------------------------------
/web/src/main/resources/static/fonts/fontawesome-webfont.fee66e7.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alonelaval/cornerstone/HEAD/web/src/main/resources/static/fonts/fontawesome-webfont.fee66e7.woff
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/Model.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | /**
4 | * @author
5 | * @create 2018-07-28
6 | **/
7 | public interface Model {
8 | }
9 |
--------------------------------------------------------------------------------
/web/src/main/java/com/alonelaval/cornerstone/web/common/valid/FirstValid.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web.common.valid;
2 |
3 | /**
4 | * @author huawei
5 | * @create 2018-07-29
6 | **/
7 | public interface FirstValid {
8 | }
9 |
--------------------------------------------------------------------------------
/web/src/main/java/com/alonelaval/cornerstone/web/common/valid/SecondValid.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web.common.valid;
2 |
3 | /**
4 | * @author huawei
5 | * @create 2018-07-29
6 | **/
7 | public interface SecondValid {
8 | }
9 |
--------------------------------------------------------------------------------
/web/src/main/java/com/alonelaval/cornerstone/web/common/valid/Group.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web.common.valid;
2 |
3 | import javax.validation.GroupSequence;
4 |
5 | /**
6 | * @author huawei
7 | * @create 2018-07-29
8 | **/
9 | @GroupSequence({FirstValid.class,SecondValid.class})
10 | public interface Group {
11 |
12 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/platform/AreaDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.platform;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.Area;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface AreaDao extends IBaseDao {
12 |
13 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgGiftDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgGift;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgGiftDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgClassDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClass;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgClassDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/VmOrgCoachDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.VmOrgCoach;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface VmOrgCoachDao extends IBaseDao {
12 |
13 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgGiftModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgGiftModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/VmOrgCourseDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.VmOrgCourse;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface VmOrgCourseDao extends IBaseDao {
12 |
13 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/VmOrgPlaceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.VmOrgPlace;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface VmOrgPlaceDao extends IBaseDao {
12 |
13 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/SecretKeyModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class SecretKeyModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/test/java/com/alonelaval/cornerstone/entity/OptionalTest.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.Gender;
4 |
5 | /**
6 | * @author huawei
7 | * @create 2018-07-14
8 | **/
9 | public class OptionalTest {
10 |
11 | public static void main(String[] args) {
12 | String orgId = "1";
13 |
14 | Gender.FEMALE.name();
15 |
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/SysMessageDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.SysMessage;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface SysMessageDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/UserStudentDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.UserStudent;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface UserStudentDao extends IBaseDao {
12 |
13 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/base/JsonResult.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.base;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-15
9 | **/
10 | @Data
11 | @Builder
12 | public class JsonResult {
13 | private int resultCode;
14 | private String message;
15 | private T data;
16 | private Object extendData;
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OperationLogModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OperationLogModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgPermissionModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgPermissionModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgRelationModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgRelationModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/SysMessageModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class SysMessageModel implements Model {
16 |
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/SysPermissionModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class SysPermissionModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/UserEvaluateModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class UserEvaluateModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/UserRelationModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class UserRelationModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OperationLogDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OperationLog;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OperationLogDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgRelationDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgRelation;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgRelationDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/platform/SecretKeyDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.platform;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.SecretKey;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface SecretKeyDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgOrderCourseModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgOrderCourseModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgClassCoachDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClassCoach;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgClassCoachDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgDepartmentDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgDepartment;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgDepartmentDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/UserEvaluateDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.UserEvaluate;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface UserEvaluateDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/UserRelationDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.UserRelation;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface UserRelationDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrderInvoiceRecordModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrderInvoiceRecordModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgCourseClassTypeModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgCourseClassTypeModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgCourseResourceModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgCourseResourceModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgEmployeeWorkdayModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgEmployeeWorkdayModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgOrderPromotionModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgOrderPromotionModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgPlaceFacilityModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgPlaceFacilityModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgPlaceResourceModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgPlaceResourceModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgPromotionRuleModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgPromotionRuleModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgUserAppointmentModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgUserAppointmentModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/SysMessageRuleTypeModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class SysMessageRuleTypeModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/exception/UserNotLoginException.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.exception;
2 |
3 | /**
4 | * @author huawei
5 | * @create 2018-07-30
6 | **/
7 | public class UserNotLoginException extends ServiceException {
8 | private final static int USER_NOT_FOUND_CODE= 7;
9 | public UserNotLoginException(String errorString) {
10 | super(USER_NOT_FOUND_CODE,errorString);
11 | }
12 |
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgCoursePriceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCoursePrice;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgCoursePriceDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/SysMessageRuleDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.SysMessageRule;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface SysMessageRuleDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgClassArrangeRuleModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgClassArrangeRuleModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgEmployeeResourceModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgEmployeeResourceModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgOrderCourseCoachModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgOrderCourseCoachModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgOrderCoursePeriodModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgOrderCoursePeriodModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgClassStudentDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClassStudent;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgClassStudentDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgDisposeAppointmentModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgDisposeAppointmentModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgPromotionConditionModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class OrgPromotionConditionModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/PlatformCourseCategoryModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-26
10 | **/
11 | @Data
12 | @Builder
13 | //@AllArgsConstructor
14 | @NoArgsConstructor
15 | public class PlatformCourseCategoryModel implements Model {
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgCourseResourceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCourseResource;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgCourseResourceDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgEmployeeRecordDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeRecord;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgEmployeeRecordDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgEmployeeSkillDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeSkill;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgEmployeeSkillDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgOrderPromotionDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgOrderPromotion;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgOrderPromotionDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgPlaceFacilityDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 |
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgPlaceFacility;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-11
10 | * create by python
11 | **/
12 | public interface OrgPlaceFacilityDao extends IBaseDao {
13 |
14 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgPlaceResourceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPlaceResource;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgPlaceResourceDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgPromotionRuleDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPromotionRule;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgPromotionRuleDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/OrderInvoiceRecordDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrderInvoiceRecord;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrderInvoiceRecordDao extends IBaseDao {
12 |
13 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgCourseClassTypeDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCourseClassType;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgCourseClassTypeDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgEmployeeCheckinDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeCheckin;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgEmployeeCheckinDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgUserAppointmentDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgUserAppointment;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgUserAppointmentDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/SysMessageRuleTypeDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.SysMessageRuleType;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface SysMessageRuleTypeDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/web/src/main/resources/templates/index.html:
--------------------------------------------------------------------------------
1 | vueadmin
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgClassArrangeRuleDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClassArrangeRule;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgClassArrangeRuleDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgEmployeeResourceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeResource;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgEmployeeResourceDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgEmployeeWorktimeDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeWorktime;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgEmployeeWorktimeDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgClassArrangeRecordDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClassArrangeRecord;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgClassArrangeRecordDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgDisposeAppointmentDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgDisposeAppointment;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgDisposeAppointmentDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgPromotionConditionDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPromotionCondition;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface OrgPromotionConditionDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/UserAttendClassRecordDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.UserAttendClassRecord;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface UserAttendClassRecordDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/platform/PlatformCourseCategoryDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.platform;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.entity.biz.PlatformCourseCategory;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-11
9 | * create by python
10 | **/
11 | public interface PlatformCourseCategoryDao extends IBaseDao {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/UserRoleModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-26
11 | **/
12 | @Data
13 | @Builder
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | public class UserRoleModel implements Model {
17 | private Integer roleId;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgReturnVisitDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgReturnVisit;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-11
10 | * create by python
11 | **/
12 | public interface OrgReturnVisitDao extends IBaseDao {
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgEmployeeSkillModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-26
11 | **/
12 | @Data
13 | @Builder
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | public class OrgEmployeeSkillModel implements Model {
17 | private Integer secondCategoryId;
18 | }
19 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.Org;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-11
10 | * create by python
11 | **/
12 | public interface OrgDao extends IBaseDao {
13 | Org findOrgByOrgName(String orgName)throws DaoException;
14 | }
15 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgOrderCourseCoachDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgOrderCourseCoach;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-11
10 | * create by python
11 | **/
12 | public interface OrgOrderCourseCoachDao extends IBaseDao {
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/promotion/OrgGiftService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.promotion;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgGift;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgGiftService extends IBaseService {
12 | default void addOrgGift(OrgGift orgGift) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgResourceModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-26
11 | **/
12 | @Data
13 | @Builder
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | public class OrgResourceModel implements Model {
17 | private Integer resourceId;
18 | private String resourcePath;
19 | }
20 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/platform/SecretKeyService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.platform;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.SecretKey;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface SecretKeyService extends IBaseService {
12 | default void addSecretKey(SecretKey secretKey) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/web/src/test/java/com/alonelaval/cornerstone/web/EnumJsonTest.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web;
2 |
3 | import com.alibaba.fastjson.JSONObject;
4 | import com.alonelaval.cornerstone.entity.constants.ExceptionType;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-21
9 | **/
10 | public class EnumJsonTest {
11 |
12 | public static void main(String[] args) {
13 |
14 | ExceptionType ex = ExceptionType.DAO_EXCEPTION;
15 |
16 | System.out.println(JSONObject.toJSONString(ex));
17 |
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/AreaRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.Area;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface AreaRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/RolePermissionModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-26
11 | **/
12 | @Data
13 | @Builder
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | public class RolePermissionModel implements Model {
17 | private Integer permissionId;
18 | private Integer opId;
19 | }
20 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/platform/AreaService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.platform;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.Area;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | * create by python
11 | **/
12 | public interface AreaService extends IBaseService {
13 | default Area addArea(Area area) throws Exception{
14 | return this.add(area);
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/UserAddresseeTagModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-26
11 | **/
12 | @Data
13 | @Builder
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | public class UserAddresseeTagModel implements Model {
17 | private Integer addresseeId;
18 | private String tagName;
19 | }
20 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgGiftRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgGift;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgGiftRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/UserRelationService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.UserRelation;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface UserRelationService extends IBaseService {
12 | default void addUserRelation(UserRelation userRelation) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/web/src/main/java/com/alonelaval/cornerstone/web/common/IDSecurity.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web.common;
2 |
3 | import java.lang.annotation.ElementType;
4 | import java.lang.annotation.Retention;
5 | import java.lang.annotation.RetentionPolicy;
6 | import java.lang.annotation.Target;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-22
11 | * 对ID进行解密
12 | * @deprecated 直接使用converter
13 | **/
14 | @Retention(RetentionPolicy.RUNTIME)
15 | @Target({ElementType.PARAMETER,ElementType.FIELD})
16 | public @interface IDSecurity {
17 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgClassRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClass;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgClassRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/log/OperationLogService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.log;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OperationLog;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OperationLogService extends IBaseService {
12 | default void addOperationLog(OperationLog orgOperationLog) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/SecretKeyRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.SecretKey;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface SecretKeyRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/web/src/main/resources/templates/platform.html:
--------------------------------------------------------------------------------
1 | 优成长
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/SysMessageRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.SysMessage;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface SysMessageRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/VmOrgCoachRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.VmOrgCoach;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface VmOrgCoachRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OperationLogRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OperationLog;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OperationLogRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgRelationRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgRelation;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgRelationRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/UserEvaluateRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.UserEvaluate;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface UserEvaluateRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/UserRelationRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.UserRelation;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface UserRelationRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/UserStudentRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.UserStudent;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface UserStudentRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/VmOrgCourseRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.VmOrgCourse;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface VmOrgCourseRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/VmOrgPlaceRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 |
4 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
5 | import com.alonelaval.cornerstone.entity.biz.VmOrgPlace;
6 | import org.springframework.stereotype.Repository;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-111
11 | * create by python
12 | **/
13 | @Repository
14 | public interface VmOrgPlaceRepository extends BaseRepository {
15 | }
16 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgCourseDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgCourse;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-11
10 | * create by python
11 | **/
12 | public interface OrgCourseDao extends IBaseDao {
13 | OrgCourse findOneByNameAndOrgId(String courseName, Integer orgId)throws DaoException;
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgClassCoachRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClassCoach;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgClassCoachRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgDepartmentRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgDepartment;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgDepartmentRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgCoursePriceRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCoursePrice;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgCoursePriceRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgReturnVisitRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgReturnVisit;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgReturnVisitRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/SysMessageRuleRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.SysMessageRule;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface SysMessageRuleRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgClassStudentRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClassStudent;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgClassStudentRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.Org;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgRepository extends BaseRepository {
14 | Org findOrgByOrgName(String orgName);
15 | }
16 |
--------------------------------------------------------------------------------
/web/src/main/java/com/alonelaval/cornerstone/web/common/MyServletInvocableHandlerMethod.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web.common;
2 |
3 | import org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod;
4 |
5 | import java.lang.reflect.Method;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-24
10 | * test
11 | **/
12 | public class MyServletInvocableHandlerMethod extends ServletInvocableHandlerMethod {
13 | public MyServletInvocableHandlerMethod(Object handler, Method method) {
14 | super(handler, method);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/UserAddresseeTagDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.UserAddresseeTag;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-11
10 | * create by python
11 | **/
12 | public interface UserAddresseeTagDao extends IBaseDao {
13 | void deleteAllByAddresseeId(Integer addresseeId) throws DaoException;
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgCourseResourceRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCourseResource;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgCourseResourceRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgEmployeeRecordRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeRecord;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgEmployeeRecordRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgEmployeeSkillRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeSkill;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgEmployeeSkillRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgOrderPromotionRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgOrderPromotion;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgOrderPromotionRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgPlaceFacilityRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPlaceFacility;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgPlaceFacilityRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgPlaceResourceRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPlaceResource;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgPlaceResourceRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgPromotionRuleRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPromotionRule;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgPromotionRuleRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/message/SysMessageService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.message;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.SysMessage;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface SysMessageService extends IBaseService {
12 | default SysMessage addSysMessage(SysMessage sysMessage) throws Exception{
13 | return this.add(sysMessage);
14 | }
15 |
16 | }
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/OrgRelationService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgRelation;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgRelationService extends IBaseService {
12 | default OrgRelation addOrgRelation(OrgRelation orgRelation) throws Exception{
13 | return this.add(orgRelation);
14 | }
15 |
16 | }
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/exception/ExceptionUtil.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.exception;
2 |
3 | import com.alonelaval.common.entity.IEnum;
4 |
5 | /**
6 | * @author huawei
7 | * @create 2018-08-22
8 | **/
9 | public abstract class ExceptionUtil {
10 | public static void throwServiceException(int code,String desc)throws Exception{
11 | throw new ServiceException(code,desc);
12 | }
13 | public static void throwServiceException(IEnum iEnum)throws Exception{
14 | throw new ServiceException(iEnum.value(),iEnum.desc());
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrderInvoiceRecordRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrderInvoiceRecord;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrderInvoiceRecordRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgCourseClassTypeRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCourseClassType;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgCourseClassTypeRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgEmployeeCheckinRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeCheckin;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgEmployeeCheckinRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgUserAppointmentRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgUserAppointment;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgUserAppointmentRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/SysMessageRuleTypeRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.SysMessageRuleType;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface SysMessageRuleTypeRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/order/OrgOrderPromotionService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.order;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgOrderPromotion;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgOrderPromotionService extends IBaseService {
12 | default void addOrgOrderPromotion(OrgOrderPromotion orgOrderPromotion) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/promotion/OrgPromotionRuleService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.promotion;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgPromotionRule;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgPromotionRuleService extends IBaseService {
12 | default void addOrgPromotionRule(OrgPromotionRule orgPromotionRule) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/UserStudentService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.UserStudent;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface UserStudentService extends IBaseService {
12 | default UserStudent addUserStudent(UserStudent userStudent) throws Exception{
13 | return this.add(userStudent);
14 | }
15 |
16 |
17 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/platform/PlatformShopkeeperDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.platform;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.PlatformShopkeeper;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-11
10 | * create by python
11 | **/
12 | public interface PlatformShopkeeperDao extends IBaseDao {
13 | PlatformShopkeeper findByUserId(Integer userId)throws DaoException;
14 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgClassArrangeRuleRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClassArrangeRule;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgClassArrangeRuleRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgEmployeeResourceRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeResource;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgEmployeeResourceRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgEmployeeWorktimeRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeWorktime;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgEmployeeWorktimeRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgOrderCourseCoachRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgOrderCourseCoach;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgOrderCourseCoachRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/UserEvaluateService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.UserEvaluate;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface UserEvaluateService extends IBaseService {
12 | default UserEvaluate addUserEvaluate(UserEvaluate userEvaluate) throws Exception{
13 | return this.add(userEvaluate);
14 | }
15 |
16 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/UserInvoiceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.UserInvoice;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface UserInvoiceDao extends IBaseDao {
15 | List findAllByUserId(Integer userId) throws DaoException;
16 | }
17 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/arrange/OrgClassArrangeRuleService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.arrange;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgClassArrangeRule;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgClassArrangeRuleService extends IBaseService {
12 | default void addOrgClassArrangeRule(OrgClassArrangeRule orgArrangeRule) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgClassArrangeRecordRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClassArrangeRecord;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgClassArrangeRecordRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgDisposeAppointmentRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgDisposeAppointment;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgDisposeAppointmentRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgPromotionConditionRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPromotionCondition;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgPromotionConditionRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/PlatformCourseCategoryRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.PlatformCourseCategory;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface PlatformCourseCategoryRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/UserAttendClassRecordRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.UserAttendClassRecord;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface UserAttendClassRecordRepository extends BaseRepository {
14 | }
15 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/platform/FacilityDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.platform;
2 |
3 |
4 | import com.alonelaval.common.exception.DaoException;
5 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
6 | import com.alonelaval.cornerstone.entity.biz.Facility;
7 |
8 | import java.util.Optional;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-11
13 | * create by python
14 | **/
15 | public interface FacilityDao extends IBaseDao {
16 | Optional findOneByFacilityName(String facilityName)throws DaoException;
17 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/UserAddresseeDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.UserAddressee;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface UserAddresseeDao extends IBaseDao {
15 | List findAllByUserId(Integer userId) throws DaoException;
16 | }
17 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgCoursePriceModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-26
11 | **/
12 | @Data
13 | @Builder
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | public class OrgCoursePriceModel implements Model {
17 | private Integer classCount;
18 | private Integer classTime;
19 | private Integer price;
20 | private Integer totalClassTime;
21 | }
22 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/appointment/OrgUserAppointmentService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.appointment;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgUserAppointment;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgUserAppointmentService extends IBaseService {
12 | default void addOrgUserAppointment(OrgUserAppointment orgUserAppointment) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/FacilityRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.Facility;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface FacilityRepository extends BaseRepository {
14 | Facility findOneByFacilityName(String facilityName);
15 | }
16 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgPlaceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgPlace;
6 |
7 | import java.util.Optional;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface OrgPlaceDao extends IBaseDao {
15 | Optional findOneByPlaceNameAndOrgId(String placeName, Integer orgId) throws DaoException;
16 | }
17 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgEmployeeRecordModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | import java.time.LocalDate;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-26
13 | **/
14 | @Data
15 | @Builder
16 | @AllArgsConstructor
17 | @NoArgsConstructor
18 | public class OrgEmployeeRecordModel implements Model {
19 | private String recordName;
20 | private LocalDate endDate;
21 | private LocalDate beginDate;
22 | }
23 |
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/CommonApplication.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common;
2 |
3 | import org.springframework.boot.autoconfigure.SpringBootApplication;
4 | import org.springframework.boot.builder.SpringApplicationBuilder;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-10-22
9 | **/
10 | @SpringBootApplication
11 | public class CommonApplication {
12 | public static void main(String[] args) {
13 | new SpringApplicationBuilder()
14 | // .bannerMode(Banner.Mode.CONSOLE)
15 | .sources( CommonApplication.class)
16 | .run(args);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/promotion/OrgPromotionConditionService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.promotion;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgPromotionCondition;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgPromotionConditionService extends IBaseService {
12 | default void addOrgPromotionCondition(OrgPromotionCondition orgPromotionCondition) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/web/src/main/resources/templates/org.html:
--------------------------------------------------------------------------------
1 | 优成长
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/platform/SysPermissionDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.platform;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.SysPermission;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface SysPermissionDao extends IBaseDao {
15 | List findAllByPermissionIdIn(List ids)throws DaoException;
16 | }
17 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgPlaceRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPlace;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgPlaceRepository extends BaseRepository {
14 | OrgPlace findOneByPlaceNameAndOrgId(String placeName, Integer orgId);
15 | }
16 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/appointment/OrgDisposeAppointmentService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.appointment;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgDisposeAppointment;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgDisposeAppointmentService extends IBaseService {
12 | default void addOrgDisposeAppointment(OrgDisposeAppointment orgDisposeAppointment) throws Exception{
13 | }
14 |
15 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgResourceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgResource;
6 | import com.alonelaval.cornerstone.entity.constants.State;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-11
11 | * create by python
12 | **/
13 | public interface OrgResourceDao extends IBaseDao {
14 |
15 | void updateStateByOrgId(Integer orgId, State state)throws DaoException;
16 | }
17 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgCourseRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCourse;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgCourseRepository extends BaseRepository {
14 | OrgCourse findOneByCourseNameAndOrgId(String courseName,Integer orgId);
15 | }
16 |
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/entity/IEnum.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.entity;
2 |
3 | /**
4 | * @author
5 | * @create 2018-07-07
6 | *
7 | **/
8 | public interface IEnum {
9 |
10 | /***
11 | *
12 | * @return
13 | */
14 | int value();
15 |
16 | IEnum value(int value);
17 |
18 | // /**
19 | // * 枚举中的方法
20 | // * @return
21 | // */
22 | // int ordinal();
23 |
24 | /***
25 | * 中文描述
26 | * @return
27 | */
28 | String desc();
29 |
30 | // /***
31 | // * 类型名称
32 | // * @return
33 | // */
34 | // String typeName();
35 |
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgEmployeeWorkdayDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeWorkday;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface OrgEmployeeWorkdayDao extends IBaseDao {
15 | List findAllByEmployeId(Integer employeId)throws DaoException;
16 | }
17 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/department/OrgDepartmentService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.department;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgDepartment;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgDepartmentService extends IBaseService {
12 | default OrgDepartment addOrgDepartment(OrgDepartment orgDepartment) throws Exception{
13 | return this.add(orgDepartment);
14 | }
15 |
16 |
17 |
18 | }
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/OrderInvoiceRecordService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrderInvoiceRecord;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrderInvoiceRecordService extends IBaseService {
12 | default OrderInvoiceRecord addOrderInvoiceRecord(OrderInvoiceRecord orderInvoiceRecord) throws Exception{
13 | return this.add(orderInvoiceRecord);
14 | }
15 |
16 | }
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/place/VmOrgPlaceService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.place;
2 |
3 |
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 | import com.alonelaval.cornerstone.entity.biz.VmOrgPlace;
6 | import com.alonelaval.cornerstone.service.IBaseService;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-08
11 | * create by python
12 | **/
13 | public interface VmOrgPlaceService extends IBaseService {
14 | default VmOrgPlace addVmOrgPlace(VmOrgPlace vmOrgPlace) throws Exception{
15 | return this.add(vmOrgPlace);
16 | }
17 |
18 | }
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/util/AmountPriceUtil.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.util;
2 |
3 | /**
4 | * @author huawei
5 | * @create 2018-08-12
6 | **/
7 | public class AmountPriceUtil {
8 | public final static Integer COEFFICIENT = 100;
9 |
10 | public static final Integer input(Integer price){
11 | if(price == null){
12 | return price;
13 | }
14 | return COEFFICIENT * price;
15 | }
16 | public static final Double output(Integer price){
17 | if(price == null){
18 | return null;
19 | }
20 | return Double.valueOf(price) / COEFFICIENT;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/PlatformShopkeeperRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.PlatformShopkeeper;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface PlatformShopkeeperRepository extends BaseRepository {
14 |
15 | PlatformShopkeeper findAllByUserId(Integer userId);
16 | }
17 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/base/IEntity.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.base;
2 |
3 |
4 | import com.alonelaval.common.entity.IEnum;
5 |
6 | import java.time.LocalDateTime;
7 |
8 | /**
9 | * @author
10 | * @create 2018-07-07
11 | **/
12 | public interface IEntity {
13 |
14 | // void setId(String id);
15 |
16 | String getId();
17 |
18 | IEnum getState();
19 | void setState(IEnum state);
20 | LocalDateTime getCreateTime();
21 | void setCreateTime(LocalDateTime localDate);
22 |
23 | LocalDateTime getLastUpdateTime();
24 |
25 | void setLastUpdateTime(LocalDateTime localDate);
26 | }
27 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/employee/VmOrgCoachService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.employee;
2 |
3 |
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 | import com.alonelaval.cornerstone.entity.biz.VmOrgCoach;
6 | import com.alonelaval.cornerstone.service.IBaseService;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-08
11 | * create by python
12 | **/
13 | public interface VmOrgCoachService extends IBaseService {
14 | default VmOrgCoach addVmOrgCoach(VmOrgCoach vmOrgCoach) throws Exception{
15 | return this.add(vmOrgCoach);
16 | }
17 |
18 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgCoursePlaceDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
6 | import com.alonelaval.cornerstone.entity.biz.OrgCoursePlace;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-11
11 | * create by python
12 | **/
13 | public interface OrgCoursePlaceDao extends IBaseDao {
14 | OrgCoursePlace findPlaceByPlaceIdAndCourseId(Integer placeId, Integer courseId)throws DaoException;
15 | }
16 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/UserAddresseeRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.UserAddressee;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-111
12 | * create by python
13 | **/
14 | @Repository
15 | public interface UserAddresseeRepository extends BaseRepository {
16 | List findAllByUserId(Integer userId);
17 | }
18 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/course/VmOrgCourseService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.course;
2 |
3 |
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 | import com.alonelaval.cornerstone.entity.biz.VmOrgCourse;
6 | import com.alonelaval.cornerstone.service.IBaseService;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-08
11 | * create by python
12 | **/
13 | public interface VmOrgCourseService extends IBaseService {
14 | default VmOrgCourse addVmOrgCourse(VmOrgCourse vmOrgCourse) throws Exception{
15 | return this.add(vmOrgCourse);
16 | }
17 |
18 | }
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/employee/OrgEmployeeCheckinService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.employee;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeCheckin;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgEmployeeCheckinService extends IBaseService {
12 | default OrgEmployeeCheckin addOrgEmployeeCheckin(OrgEmployeeCheckin orgEmployeeCheckin) throws Exception{
13 | return this.add(orgEmployeeCheckin);
14 | }
15 |
16 | }
--------------------------------------------------------------------------------
/cache/src/main/java/com/alonelaval/cornerstone/cache/config/CacheConfig.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.cache.config;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.ApplicationContext;
5 | import org.springframework.context.annotation.Bean;
6 | import org.springframework.context.annotation.Configuration;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-08-12
11 | **/
12 | @Configuration
13 | public class CacheConfig {
14 | @Bean
15 | public ApplicationContext app(@Autowired ApplicationContext applicationContext) {
16 | return applicationContext;
17 | }
18 |
19 |
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgCoursePlaceRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 |
4 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
5 | import com.alonelaval.cornerstone.entity.biz.OrgCoursePlace;
6 | import org.springframework.stereotype.Repository;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-111
11 | * create by python
12 | **/
13 | @Repository
14 | public interface OrgCoursePlaceRepository extends BaseRepository {
15 | OrgCoursePlace findOneByPlaceIdAndCourseId(Integer placeId,Integer courseId);
16 | }
17 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgClassCoachModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-26
13 | **/
14 | @Data
15 | @Builder
16 | @AllArgsConstructor
17 | @NoArgsConstructor
18 | public class OrgClassCoachModel implements Model {
19 | /**
20 | * 班级ID,在调整学员或者教练的时候,使用
21 | */
22 | private Integer classId;
23 | /***
24 | * 上课的教练
25 | */
26 | private List employeIds;
27 | }
28 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgCoursePeriodModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.DayType;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | import java.time.LocalTime;
10 |
11 | /**
12 | * @author huawei
13 | * @create 2018-07-26
14 | **/
15 | @Data
16 | @Builder
17 | @AllArgsConstructor
18 | @NoArgsConstructor
19 | public class OrgCoursePeriodModel implements Model {
20 | private DayType dayType;
21 | private LocalTime endTime;
22 | private LocalTime beginTime;
23 | }
24 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/message/SysMessageRuleTypeService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.message;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.SysMessageRuleType;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | @Deprecated
12 | public interface SysMessageRuleTypeService extends IBaseService {
13 | default SysMessageRuleType addSysMessageRuleType(SysMessageRuleType sysMessageRuleType) throws Exception{
14 | return this.add(sysMessageRuleType);
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/RolePermissionRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.RolePermission;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-111
12 | * create by python
13 | **/
14 | @Repository
15 | public interface RolePermissionRepository extends BaseRepository {
16 | List findAllByRoleIdIn(List ids );
17 | }
18 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/UserAttendClassRecordService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.UserAttendClassRecord;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface UserAttendClassRecordService extends IBaseService {
12 | default UserAttendClassRecord addUserAttendClassRecord(UserAttendClassRecord userAttendClassRecord) throws Exception{
13 | return this.add(userAttendClassRecord);
14 | }
15 |
16 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/order/OrgOrderDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org.order;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgOrder;
6 | import com.alonelaval.cornerstone.entity.constants.IsInvoiced;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-09
13 | **/
14 | public interface OrgOrderDao extends IBaseDao {
15 | void updateOrderInvoiceRecordId(List orderIds, Integer oirId, IsInvoiced isInvoiced) throws DaoException;
16 | }
17 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgStudentRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgStudent;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-111
10 | * create by python
11 | **/
12 | @Repository
13 | public interface OrgStudentRepository extends BaseRepository {
14 | OrgStudent findByUserStudentId(Integer userStudentId);
15 | OrgStudent findByStudentUserId(Integer studentUserId);
16 | }
17 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/SysPermissionRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.SysPermission;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-111
12 | * create by python
13 | **/
14 | @Repository
15 | public interface SysPermissionRepository extends BaseRepository {
16 | List findAllByPermissionIdIn(List ids);
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgClassStudentModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-26
13 | **/
14 | @Data
15 | @Builder
16 | @AllArgsConstructor
17 | @NoArgsConstructor
18 | public class OrgClassStudentModel implements Model {
19 | /**
20 | * 班级ID,在调整学员或者教练的时候,使用
21 | */
22 | private Integer classId;
23 | /***
24 | * 上课的学员
25 | */
26 | private List orgStudentIds;
27 | }
28 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/student/OrgReturnVisitService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.student;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.OrgReturnVisit;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | * create by python
11 | **/
12 | public interface OrgReturnVisitService extends IBaseService {
13 | default OrgReturnVisit addOrgReturnVisit(OrgReturnVisit orgReturnVisit) throws Exception{
14 | return this.add(orgReturnVisit);
15 | }
16 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/VmOrgPlaceModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.State;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-26
12 | **/
13 | @Data
14 | @Builder
15 | @AllArgsConstructor
16 | @NoArgsConstructor
17 | public class VmOrgPlaceModel implements Model {
18 | private Integer facilityId;
19 | private String placeName;
20 | private State state;
21 | private Integer minArea;
22 | private Integer maxArea;
23 | }
24 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/platform/SysPermissionService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.platform;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.SysPermission;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | import java.util.List;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-08
11 | * create by python
12 | **/
13 | public interface SysPermissionService extends IBaseService {
14 | default void addSysPermission(SysPermission sysPermission) throws Exception{
15 | }
16 |
17 | List findAllByPermissionIdIn(List ids)throws Exception;
18 |
19 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgEmployeeWorkdayRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeWorkday;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-111
12 | * create by python
13 | **/
14 | @Repository
15 | public interface OrgEmployeeWorkdayRepository extends BaseRepository {
16 | List findAllByEmployeId(Integer integer);
17 | }
18 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/arrange/OrgClassArrangeRecordService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.arrange;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgClassArrangeRecord;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface OrgClassArrangeRecordService extends IBaseService {
12 | default OrgClassArrangeRecord addOrgClassArrangeRecord(OrgClassArrangeRecord orgCourseArrange) throws Exception{
13 | return this.add(orgCourseArrange);
14 | }
15 |
16 |
17 |
18 | }
--------------------------------------------------------------------------------
/web/src/main/java/com/alonelaval/cornerstone/web/common/EnumValueFilter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web.common;
2 |
3 | import com.alibaba.fastjson.serializer.ValueFilter;
4 | import com.alonelaval.common.entity.IEnum;
5 |
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-27
10 | * @deprecated 参与yczValueFilter
11 | **/
12 | public class EnumValueFilter implements ValueFilter {
13 | @Override
14 | public Object process(Object object, String name, Object value) {
15 | if(value != null && value instanceof IEnum){
16 |
17 | IEnum iEnum = (IEnum) value;
18 | return iEnum.value();
19 | }
20 |
21 | return value;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgStudentDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgStudent;
6 |
7 | import java.util.Optional;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface OrgStudentDao extends IBaseDao {
15 | Optional findByUserStudentId(Integer userStudentId)throws DaoException;
16 | Optional findByStudentUserId(Integer studentUserId)throws DaoException;
17 | }
18 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/place/OrgPlaceResourceService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.place;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPlaceResource;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | * create by python
11 | **/
12 | public interface OrgPlaceResourceService extends IBaseService {
13 | default OrgPlaceResource addOrgPlaceResource(OrgPlaceResource orgPlaceResource) throws Exception{
14 | return this.add(orgPlaceResource);
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/UserAddresseeTagService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.UserAddresseeTag;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-07-08
9 | * create by python
10 | **/
11 | public interface UserAddresseeTagService extends IBaseService {
12 | default UserAddresseeTag addUserAddresseeTag(UserAddresseeTag userAddresseeTag) throws Exception{
13 | return this.add(userAddresseeTag);
14 | }
15 | void deleteAllByAddresseeId(Integer addresseeId)throws Exception;
16 | }
--------------------------------------------------------------------------------
/web/src/test/java/com/alonelaval/cornerstone/web/WebApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web;
2 |
3 | import org.junit.Test;
4 | import org.junit.runner.RunWith;
5 | import org.springframework.boot.test.context.SpringBootTest;
6 | import org.springframework.context.annotation.Configuration;
7 | import org.springframework.test.context.junit4.SpringRunner;
8 |
9 | import java.util.Optional;
10 |
11 | @RunWith(SpringRunner.class)
12 | @Configuration
13 | @SpringBootTest
14 | public class WebApplicationTests {
15 |
16 | @Test
17 | public void contextLoads() {
18 | String orgId = "1";
19 | Optional.of(orgId).ifPresent(Integer::parseInt);
20 |
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgOrderCoursePeriodDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgOrderCoursePeriod;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface OrgOrderCoursePeriodDao extends IBaseDao {
15 |
16 | List findAllByCourseIdAndCpIdAndUserIdIn(Integer courseId, Integer cpId, List userIds)throws DaoException;
17 | }
18 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/course/OrgCourseClassTypeService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.course;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCourseClassType;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | * create by python
11 | **/
12 | public interface OrgCourseClassTypeService extends IBaseService {
13 | default OrgCourseClassType addOrgCourseClassType(OrgCourseClassType orgCourseClassType) throws Exception{
14 | return add(orgCourseClassType);
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgEmployeeWorktimeModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.DayType;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | import java.time.LocalTime;
10 |
11 | /**
12 | * @author huawei
13 | * @create 2018-07-26
14 | **/
15 | @Data
16 | @Builder
17 | @AllArgsConstructor
18 | @NoArgsConstructor
19 | public class OrgEmployeeWorktimeModel implements Model {
20 | private DayType dayType;
21 | private LocalTime beginTime;
22 | private LocalTime endTime;
23 | private Integer secondCategoryId;
24 | }
25 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/employee/OrgEmployeeResourceService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.employee;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.OrgEmployeeResource;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | * create by python
11 | **/
12 | public interface OrgEmployeeResourceService extends IBaseService {
13 | default OrgEmployeeResource addOrgEmployeeResource(OrgEmployeeResource orgEmployeeResource) throws Exception{
14 | return add(orgEmployeeResource);
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/EnumConverter.java:
--------------------------------------------------------------------------------
1 | //package com.alonelaval.cornerstone.entity.converter;
2 | //
3 | //import com.alonelaval.cornerstone.entity.constants.IEnum;
4 | //
5 | //import javax.persistence.AttributeConverter;
6 | //
7 | ///**
8 | // * @author huawei
9 | // * @create 2018-07-16
10 | // **/
11 | //public class EnumConverter implements AttributeConverter {
12 | // @Override
13 | // public Integer convertToDatabaseColumn(E attribute) {
14 | //
15 | // return attribute.getValue();
16 | // }
17 | //
18 | // @Override
19 | // public E convertToEntityAttribute(Integer dbData) {
20 | //
21 | //
22 | // return ;
23 | // }
24 | //}
25 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/course/OrgCourseService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.course;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCourse;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | * create by python
11 | **/
12 | public interface OrgCourseService extends IBaseService {
13 | default OrgCourse addOrgCourse(OrgCourse orgCourse) throws Exception{
14 | return this.add(orgCourse);
15 | }
16 |
17 | OrgCourse findOneByNameAndOrgId(String courseName,Integer orgId)throws Exception;
18 | }
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/exception/DaoException.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.exception;
2 |
3 | /**
4 | * @author huawei
5 | * @create 2018-07-10
6 | **/
7 | public class DaoException extends BaseException {
8 | public DaoException(String errorString) {
9 | super(errorString);
10 | }
11 | public DaoException(int errorCode, String errorString)
12 | {
13 | super(errorCode,errorString);
14 | }
15 | public DaoException( String errorString, Throwable cause)
16 | {
17 | super(errorString, cause);
18 |
19 | }
20 | public DaoException(int errorCode,String errorString, Throwable cause)
21 | {
22 | super(errorCode,errorString, cause);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/util/AssertUtil.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.util;
2 |
3 | import com.alonelaval.common.entity.IEnum;
4 | import com.alonelaval.common.exception.ServiceException;
5 |
6 | /**
7 | * @author huawei
8 | * @create 2018-08-01
9 | **/
10 | public abstract class AssertUtil {
11 |
12 | public static void isTrue(boolean expression, ServiceException ex) throws ServiceException {
13 | if (expression) {
14 | throw ex;
15 | }
16 | }
17 |
18 | public static void isTrue(boolean expression, IEnum iEnum) throws ServiceException {
19 | if (expression) {
20 | throw new ServiceException(iEnum.value(),iEnum.desc());
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgCoursePeriodDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgCoursePeriod;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface OrgCoursePeriodDao extends IBaseDao {
15 |
16 | List findPeriodsByCourseId(Integer courseId) throws DaoException;
17 |
18 | OrgCoursePeriod findPeriodByIdAndCourseId(Integer cpId, Integer courseId)throws DaoException;
19 | }
20 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/platform/RolePermissionDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.platform;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.RolePermission;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-11
12 | * create by python
13 | **/
14 | public interface RolePermissionDao extends IBaseDao {
15 | List findAllByRoleIdIn(List ids)throws DaoException;
16 |
17 | List addRolePermission(List rolePermissions)throws DaoException;
18 | }
19 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/VmOrgCourseModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.State;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | import java.time.LocalDate;
10 |
11 | /**
12 | * @author huawei
13 | * @create 2018-07-26
14 | **/
15 | @Data
16 | @Builder
17 | @AllArgsConstructor
18 | @NoArgsConstructor
19 | public class VmOrgCourseModel implements Model {
20 | private State state;
21 | private String courseName;
22 | private LocalDate beginDate;
23 | private LocalDate endDate;
24 | private Integer secondCategoryId;
25 | }
26 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/CustomUserDetailsService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.RoleOwnType;
4 | import org.springframework.security.core.AuthenticationException;
5 | import org.springframework.security.core.userdetails.UserDetails;
6 | import org.springframework.security.crypto.password.PasswordEncoder;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-13
11 | **/
12 | public interface CustomUserDetailsService {
13 | UserDetails loadUserByUsernameAndOrgId(String username, String password, Integer orgId, RoleOwnType loginType , PasswordEncoder passwordEncoder) throws AuthenticationException;
14 | }
15 |
--------------------------------------------------------------------------------
/web/src/main/java/com/alonelaval/cornerstone/web/controller/IndexController.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web.controller;
2 |
3 | import lombok.extern.slf4j.Slf4j;
4 | import org.springframework.stereotype.Controller;
5 | import org.springframework.ui.Model;
6 | import org.springframework.web.bind.annotation.RequestMapping;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-11-02
11 | **/
12 | @Controller
13 | //@RequestMapping("kaptcha")
14 | @Slf4j
15 | public class IndexController {
16 | @RequestMapping("/")
17 | public String org(Model model) {
18 | return "org";
19 | }
20 | @RequestMapping("/platform")
21 | public String platform(Model model) {
22 | return "platform";
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/platform/PlatformCourseCategoryService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.platform;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.PlatformCourseCategory;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | * create by python
11 | **/
12 | public interface PlatformCourseCategoryService extends IBaseService {
13 | default PlatformCourseCategory addPlatformCourseCategory(PlatformCourseCategory platformCourseCategory) throws Exception{
14 | return platformCourseCategory;
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgOrderCourseDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgOrderCourse;
6 | import com.alonelaval.cornerstone.entity.constants.IsArrangeClass;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-11
13 | * create by python
14 | **/
15 | public interface OrgOrderCourseDao extends IBaseDao {
16 |
17 | List findAllByCourseIdAndIsArrangeClass(Integer courseId, IsArrangeClass isArrangeClass) throws DaoException;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/AreaModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.AdminDivision;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-26
12 | **/
13 | @Data
14 | @Builder
15 | @AllArgsConstructor
16 | @NoArgsConstructor
17 | public class AreaModel implements Model {
18 | private String areaName;
19 | private String zipCode;
20 | private Integer parentAreaId;
21 | private String parentAreaName;
22 | /***
23 | * 行政划分
24 | */
25 | private AdminDivision adminDivision;
26 | }
27 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/platform/FacilityService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.platform;
2 |
3 |
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 | import com.alonelaval.cornerstone.entity.biz.Facility;
6 | import com.alonelaval.cornerstone.service.IBaseService;
7 |
8 | import java.util.Optional;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-08
13 | * create by python
14 | **/
15 | public interface FacilityService extends IBaseService {
16 | default Facility addFacility(Facility facility) throws Exception{
17 | return this.add(facility);
18 | }
19 | Optional findOneByFacilityName(String facilityName)throws Exception;
20 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgOrderCoursePeriodRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgOrderCoursePeriod;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-111
12 | * create by python
13 | **/
14 | @Repository
15 | public interface OrgOrderCoursePeriodRepository extends BaseRepository {
16 | List findAllByCourseIdAndCpIdAndUserIdIn(Integer courseId, Integer cpId, List userIds);
17 | }
18 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/UserAddresseeModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-26
13 | **/
14 | @Data
15 | @Builder
16 | @AllArgsConstructor
17 | @NoArgsConstructor
18 | public class UserAddresseeModel implements Model {
19 | private String province;
20 | private String city;
21 | private String county;
22 | private String address;
23 | private String receiveUserName;
24 | private String receiveUserPhone;
25 |
26 | private List tags;
27 | }
28 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/place/OrgPlaceService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.place;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.OrgPlace;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | import java.util.Optional;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-08
12 | * create by python
13 | **/
14 | public interface OrgPlaceService extends IBaseService {
15 | default OrgPlace addOrgPlace(OrgPlace orgPlace) throws Exception{
16 | return add(orgPlace);
17 | }
18 |
19 | Optional findOneByPlaceNameAndOrgId(String placeName, Integer orgId)throws Exception;
20 |
21 | }
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/user/UserDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.user;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.User;
6 | import com.alonelaval.cornerstone.entity.constants.State;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-07
11 | **/
12 | public interface UserDao extends IBaseDao {
13 |
14 | User findByLoginName(String loginName)throws DaoException;
15 | User findByPhone(String phone) throws DaoException;
16 | User findByEmail(String email)throws DaoException;
17 |
18 | void updateUsersState(State state, Integer... userIds)throws DaoException;
19 | }
20 |
--------------------------------------------------------------------------------
/dao/impl/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | server.port=8080
2 | security.jwt.secret=123456
3 |
4 | spring.datasource.druid.url=jdbc:mysql://localhost:3306/ycz-cornerstone?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
5 | spring.datasource.druid.username=yczapp
6 | spring.datasource.druid.password=Cq&9!#jq^J4K
7 | spring.datasource.driverClassName=com.mysql.jdbc.Driver
8 | spring.datasource.druid.initial-size=1
9 | spring.datasource.druid.max-active=50
10 | spring.datasource.druid.one.max-wait=10000
11 |
12 | # Hibernate
13 | hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
14 | hibernate.show_sql=true
15 | hibernate.hbm2ddl.auto=none
16 | entitymanager.packagesToScan=com.alonelaval.cornerstone.entity
17 |
18 |
19 |
20 | spring.thymeleaf.prefix = classpath:/templates/
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/UserInvoiceService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.UserInvoice;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | import java.util.List;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-08
11 | * create by python
12 | **/
13 | public interface UserInvoiceService extends IBaseService {
14 | default UserInvoice addUserInvoice(UserInvoice userInvoice) throws Exception {
15 | return this.add(userInvoice);
16 | }
17 |
18 | void deleteByInvoiceIds(List invoiceIds) throws Exception;
19 |
20 | List findInvoicesByUserId(Integer userId)throws Exception;
21 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgEmployeeCheckinModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.CheckinType;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-26
12 | **/
13 | @Data
14 | @Builder
15 | @AllArgsConstructor
16 | @NoArgsConstructor
17 | public class OrgEmployeeCheckinModel implements Model {
18 | /**
19 | * 签到的班级
20 | */
21 | private Integer classId;
22 | /***
23 | * 签到的员工
24 | */
25 | private Integer employeId;
26 |
27 | /**
28 | * 签到方式
29 | */
30 | private CheckinType checkinType;
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgOrderCourseRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.OrgOrderCourse;
5 | import com.alonelaval.cornerstone.entity.constants.IsArrangeClass;
6 | import org.springframework.stereotype.Repository;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-111
13 | * create by python
14 | **/
15 | @Repository
16 | public interface OrgOrderCourseRepository extends BaseRepository {
17 |
18 | List findAllByCourseIdAndIsArrangeClass(Integer courseId, IsArrangeClass isArrangeClass);
19 | }
20 |
--------------------------------------------------------------------------------
/service/interface/src/test/resources/application.properties:
--------------------------------------------------------------------------------
1 | server.port=8080
2 | security.jwt.secret=123456
3 |
4 | spring.datasource.druid.url=jdbc:mysql://localhost:3306/ycz-cornerstone?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
5 | spring.datasource.druid.username=yczapp
6 | spring.datasource.druid.password=Cq&9!#jq^J4K
7 | spring.datasource.driverClassName=com.mysql.jdbc.Driver
8 | spring.datasource.druid.initial-size=1
9 | spring.datasource.druid.max-active=50
10 | spring.datasource.druid.one.max-wait=10000
11 |
12 | # Hibernate
13 | hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
14 | hibernate.show_sql=true
15 | hibernate.hbm2ddl.auto=none
16 | entitymanager.packagesToScan=com.alonelaval.cornerstone.entity
17 |
18 |
19 |
20 | spring.thymeleaf.prefix = classpath:/templates/
--------------------------------------------------------------------------------
/dao/src/test/resources/application.properties:
--------------------------------------------------------------------------------
1 | #server.port=8080
2 | #security.jwt.secret=123456
3 | #
4 | #spring.datasource.druid.url=jdbc:mysql://localhost:3306/ycz-cornerstone?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
5 | #spring.datasource.druid.username=yczapp
6 | #spring.datasource.druid.password=Cq&9!#jq^J4K
7 | #spring.datasource.driverClassName=com.mysql.jdbc.Driver
8 | #spring.datasource.druid.initial-size=1
9 | #spring.datasource.druid.max-active=50
10 | #spring.datasource.druid.one.max-wait=10000
11 | #
12 | ## Hibernate
13 | #hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
14 | #hibernate.show_sql=true
15 | #hibernate.hbm2ddl.auto=none
16 | #entitymanager.packagesToScan=com.alonelaval.cornerstone.entity
17 | #
18 | #
19 | #
20 | #spring.thymeleaf.prefix = classpath:/templates/
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/FacilityModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.State;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | import java.util.List;
10 |
11 | /**
12 | * @author huawei
13 | * @create 2018-07-26
14 | **/
15 | @Data
16 | @Builder
17 | @AllArgsConstructor
18 | @NoArgsConstructor
19 | public class FacilityModel implements Model {
20 | /**
21 | * 设施名称
22 | */
23 | private String facilityName;
24 | /**
25 | * 课程科目
26 | */
27 | private Integer secondCategoryId;
28 |
29 | private State state;
30 |
31 | private List secondCategoryIds;
32 | }
33 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/platform/PlatformOrderDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.platform;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.PlatformOrder;
6 | import com.alonelaval.cornerstone.entity.constants.IsInvoiced;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-11
13 | * create by python
14 | **/
15 | public interface PlatformOrderDao extends IBaseDao {
16 | // List findAllByIds(List ids)throws DaoException;
17 |
18 | void updatePlatformOrderInvoiceRecordId(List ids, Integer oirId, IsInvoiced isInvoice)throws DaoException;
19 | }
20 |
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/message/SmsCodeGenerator.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.message;
2 |
3 | import org.apache.commons.lang3.RandomStringUtils;
4 |
5 | /**
6 | * @author huawei
7 | * @create 2018-07-21
8 | **/
9 | public class SmsCodeGenerator {
10 |
11 | public final static String generateCode(){
12 | return RandomStringUtils.random(6,"1234567890");
13 | }
14 |
15 | public SmsCodeGenerator getInstance(){
16 | return SmsCodeGeneratorHolder.instance;
17 | }
18 |
19 | private static class SmsCodeGeneratorHolder {
20 | private static final SmsCodeGenerator instance = new SmsCodeGenerator();
21 | }
22 |
23 | public static void main(String[] args) {
24 | System.out.println(SmsCodeGenerator.generateCode());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/platform/PlatformOrderService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.platform;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.PlatformOrder;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-08
12 | * create by python
13 | **/
14 | public interface PlatformOrderService extends IBaseService {
15 | default PlatformOrder addPlatformOrder(PlatformOrder platformOrder) throws Exception{
16 | return this.add(platformOrder);
17 | }
18 |
19 | void invoicePlatformOrder(List orderIds,Integer invoiceId,Integer addresseeId)throws Exception;
20 | }
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/util/IpUtils.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.util;
2 |
3 | /**
4 | * @author huawei
5 | * @create 2018-08-05
6 | **/
7 | public class IpUtils {
8 | public static String longToIpV4(long longIp) {
9 | int octet3 = (int) ((longIp >> 24) % 256);
10 | int octet2 = (int) ((longIp >> 16) % 256);
11 | int octet1 = (int) ((longIp >> 8) % 256);
12 | int octet0 = (int) ((longIp) % 256);
13 | return octet3 + "." + octet2 + "." + octet1 + "." + octet0;
14 | }
15 |
16 | public static long ipV4ToLong(String ip) {
17 | String[] octets = ip.split("\\.");
18 | return (Long.parseLong(octets[0]) << 24) + (Integer.parseInt(octets[1]) << 16)
19 | + (Integer.parseInt(octets[2]) << 8) + Integer.parseInt(octets[3]);
20 | }
21 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/StateConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.State;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class StateConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(State attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public State convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return State.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/common/src/main/java/com/alonelaval/common/exception/ServiceException.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.common.exception;
2 |
3 | /**
4 | * @author huawei
5 | * @create 2018-07-10
6 | **/
7 | public class ServiceException extends BaseException {
8 |
9 | public ServiceException()
10 | {
11 | super();
12 | }
13 |
14 | public ServiceException(String errorString)
15 | {
16 | super(errorString);
17 | }
18 |
19 | public ServiceException(int errorCode, String errorString)
20 | {
21 | super(errorCode,errorString);
22 |
23 | }
24 | public ServiceException( String errorString, Throwable cause)
25 | {
26 | super(errorString, cause);
27 |
28 | }
29 | public ServiceException( Throwable cause)
30 | {
31 | super(null, cause);
32 |
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/EntityAppllation.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 | import org.springframework.boot.autoconfigure.domain.EntityScan;
6 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
7 | import org.springframework.context.annotation.Configuration;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-08
12 | **/
13 | @Configuration
14 | @EntityScan("com.alonelaval.cornerstone.entity.biz")
15 | @SpringBootApplication
16 | public class EntityAppllation extends SpringBootServletInitializer {
17 | public static void main(String[] args) {
18 | SpringApplication.run(EntityAppllation.class, args);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/GenderConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.Gender;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class GenderConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(Gender attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public Gender convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return Gender.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/JpaApplication.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | **/
11 | @EnableAutoConfiguration
12 | @SpringBootApplication
13 | public class JpaApplication {
14 | public static void main(String[] args) {
15 | SpringApplication.run(JpaApplication.class);
16 | // new SpringApplicationBuilder()
17 | //// .bannerMode(Banner.Mode.CONSOLE)
18 | // .sources(EntityAppllation.class,JpaApplication.class)
19 | // .run(args);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/OrgCoursePeriodRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
5 | import com.alonelaval.cornerstone.entity.biz.OrgCoursePeriod;
6 | import org.springframework.stereotype.Repository;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-111
13 | * create by python
14 | **/
15 | @Repository
16 | public interface OrgCoursePeriodRepository extends BaseRepository {
17 | List findAllByCourseId(Integer courseId);
18 |
19 | OrgCoursePeriod findByCpIdAndCourseId(Integer cpId,Integer courseId)throws DaoException;
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/DayTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.DayType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class DayTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(DayType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public DayType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return DayType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/IsCoachConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.IsCoach;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class IsCoachConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(IsCoach attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public IsCoach convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return IsCoach.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/JobTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.JobType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class JobTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(JobType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public JobType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return JobType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/PayTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.PayType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class PayTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(PayType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public PayType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return PayType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/DealTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.DealType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class DealTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(DealType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public DealType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return DealType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/OrgStateConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.OrgState;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class OrgStateConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(OrgState attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public OrgState convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return OrgState.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/TimeTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.TimeType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class TimeTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(TimeType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public TimeType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return TimeType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/CoachTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.CoachType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class CoachTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(CoachType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public CoachType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return CoachType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/OrderTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.OrderType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class OrderTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(OrderType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public OrderType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return OrderType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/RegSourceConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.RegSource;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class RegSourceConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(RegSource attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public RegSource convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return RegSource.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/VisitTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.VisitType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class VisitTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(VisitType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public VisitType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return VisitType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/RoleModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.State;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | import javax.validation.constraints.NotBlank;
10 |
11 | /**
12 | * @author huawei
13 | * @create 2018-07-26
14 | **/
15 | @Data
16 | @Builder
17 | @AllArgsConstructor
18 | @NoArgsConstructor
19 | public class RoleModel implements Model {
20 |
21 | @NotBlank(message = "角色名称不能为空")
22 | private String roleName;
23 | @NotBlank(message = "角色编码不能为空")
24 | private String roleCode;
25 | private String roleDesc;
26 |
27 | // for query
28 |
29 | private State state;
30 | private Integer orgId;
31 |
32 |
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/AuditStateConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.AuditState;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class AuditStateConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(AuditState attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public AuditState convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return AuditState.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/ClassStateConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.ClassState;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class ClassStateConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(ClassState attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public ClassState convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return ClassState.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/CourseTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.CourseType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class CourseTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(CourseType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public CourseType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return CourseType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/IsInvoicedConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.IsInvoiced;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class IsInvoicedConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(IsInvoiced attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public IsInvoiced convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return IsInvoiced.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/OrderStateConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.OrderState;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class OrderStateConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(OrderState attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public OrderState convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return OrderState.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/CheckinTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.CheckinType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class CheckinTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(CheckinType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public CheckinType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return CheckinType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/InvoiceTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.InvoiceType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class InvoiceTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(InvoiceType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public InvoiceType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return InvoiceType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/MessageTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.MessageType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class MessageTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(MessageType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public MessageType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return MessageType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/RoleOwnTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.RoleOwnType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class RoleOwnTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(RoleOwnType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public RoleOwnType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return RoleOwnType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/order/OrgOrderService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.order;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.OrgOrder;
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 |
6 | import java.util.List;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-08
11 | * create by python
12 | **/
13 | public interface OrgOrderService extends IBaseService {
14 | default OrgOrder addOrgOrder(OrgOrder orgOrder) throws Exception{
15 | return this.add(orgOrder);
16 | }
17 |
18 | /***
19 | * 用户申请开发票
20 | * @param orderIds
21 | * @param invoiceId
22 | * @param addresseeId
23 | * @throws Exception
24 | */
25 | void invoiceOrder(List orderIds, Integer invoiceId, Integer addresseeId)throws Exception;
26 | }
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/PlaceOwnTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.PlaceOwnType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class PlaceOwnTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(PlaceOwnType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public PlaceOwnType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return PlaceOwnType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/AdminDivisionConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.AdminDivision;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class AdminDivisionConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(AdminDivision attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public AdminDivision convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return AdminDivision.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/EduBackgroundConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.EduBackground;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class EduBackgroundConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(EduBackground attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public EduBackground convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return EduBackground.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/EmployeeStateConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.EmployeeState;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class EmployeeStateConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(EmployeeState attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public EmployeeState convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return EmployeeState.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/ExceptionTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.ExceptionType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class ExceptionTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(ExceptionType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public ExceptionType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return ExceptionType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/user/UserAddresseeService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.user;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.UserAddressee;
4 | import com.alonelaval.cornerstone.entity.model.UserAddresseeModel;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-08
12 | * create by python
13 | **/
14 | public interface UserAddresseeService extends IBaseService {
15 | default UserAddressee addUserAddressee(UserAddressee userAddressee) throws Exception{
16 | return this.add(userAddressee);
17 | }
18 | UserAddressee addUserAddress(UserAddresseeModel userAddresseeModel)throws Exception;
19 |
20 | List findAllByUserId(Integer userId)throws Exception;
21 |
22 | }
--------------------------------------------------------------------------------
/web/src/test/java/com/alonelaval/cornerstone/web/EnumSuperClassTest.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.web;
2 |
3 | import com.alonelaval.common.entity.IEnum;
4 | import com.alonelaval.cornerstone.entity.constants.JobType;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | public class EnumSuperClassTest implements Serializable {
13 |
14 | public static void main(String[] args) {
15 |
16 | //测试是否实现了父类
17 | boolean re1= Object.class.isAssignableFrom(EnumSuperClassTest.class);
18 | //测试是否实现了接口
19 | boolean re2=Serializable.class.isAssignableFrom(EnumSuperClassTest.class);
20 |
21 | System.out.println("re1:"+re1+" re2:"+re2);
22 | System.out.println(JobType.class);
23 |
24 | System.out.println(IEnum.class.isAssignableFrom(JobType.class));
25 |
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/dao/inter/src/main/java/com/alonelaval/cornerstone/dao/inter/org/OrgPermissionDao.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.inter.org;
2 |
3 | import com.alonelaval.common.exception.DaoException;
4 | import com.alonelaval.cornerstone.dao.inter.IBaseDao;
5 | import com.alonelaval.cornerstone.entity.biz.OrgPermission;
6 | import com.alonelaval.cornerstone.entity.constants.State;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-11
13 | * create by python
14 | **/
15 | public interface OrgPermissionDao extends IBaseDao {
16 |
17 | List findAllByOpIdIn(List ids) throws DaoException;
18 |
19 | List addOrgPermissions(List orgPermissions) throws DaoException;
20 |
21 | void updateAllByOrgId(List ids, Integer orgId, State state)throws DaoException;
22 | }
23 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/ClassGradeTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.ClassGradeType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class ClassGradeTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(ClassGradeType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public ClassGradeType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return ClassGradeType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/IsArrangeClassConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.IsArrangeClass;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class IsArrangeClassConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(IsArrangeClass attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public IsArrangeClass convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return IsArrangeClass.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/OrgAccountTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.OrgAccountType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class OrgAccountTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(OrgAccountType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public OrgAccountType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return OrgAccountType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/PermissionShowConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.PermissionShow;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class PermissionShowConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(PermissionShow attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public PermissionShow convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return PermissionShow.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/PermissionTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.PermissionType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class PermissionTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(PermissionType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public PermissionType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return PermissionType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/ProductVersionConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.ProductVersion;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class ProductVersionConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(ProductVersion attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public ProductVersion convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return ProductVersion.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/RoleCreateTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.RoleCreateType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class RoleCreateTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(RoleCreateType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public RoleCreateType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return RoleCreateType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/CourseStartTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.CourseStartType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class CourseStartTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(CourseStartType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public CourseStartType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return CourseStartType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/MessageRuleTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.MessageRuleType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class MessageRuleTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(MessageRuleType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public MessageRuleType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return MessageRuleType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/MessageSendTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.MessageSendType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class MessageSendTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(MessageSendType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public MessageSendType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return MessageSendType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/OrgResourceTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.OrgResourceType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class OrgResourceTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(OrgResourceType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public OrgResourceType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return OrgResourceType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/model/OrgDepartmentModel.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.model;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.State;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.NoArgsConstructor;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-26
12 | **/
13 | @Data
14 | @Builder
15 | @AllArgsConstructor
16 | @NoArgsConstructor
17 | public class OrgDepartmentModel implements Model {
18 | private String remark;
19 | private String departmentName;
20 | private Integer parentDepartmentId;
21 | private String parentDepartmentName;
22 | /**
23 | * 部门负责人
24 | */
25 | private Integer employeId;
26 |
27 | //for query
28 |
29 | private State state;
30 | private String departmentCode;
31 | private Integer orgId;
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/classes/OrgClassService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.classes;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.OrgClass;
5 | import com.alonelaval.cornerstone.entity.model.OrgClassModel;
6 | import com.alonelaval.cornerstone.service.IBaseService;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-08
11 | * create by python
12 | **/
13 | public interface OrgClassService extends IBaseService {
14 | default OrgClass addOrgClass(OrgClass orgClass) throws Exception{
15 | return this.add(orgClass);
16 | }
17 |
18 | /***
19 | * 添加或者删除教练
20 | * @param classModel
21 | * @return
22 | * @throws Exception
23 | */
24 | OrgClass changeMainCoach(OrgClassModel classModel)throws Exception;
25 |
26 | }
--------------------------------------------------------------------------------
/dao/repository/src/main/java/com/alonelaval/cornerstone/dao/repository/jpa/biz/UserInvoiceRepository.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.dao.repository.jpa.biz;
2 |
3 | import com.alonelaval.cornerstone.dao.repository.jpa.base.BaseRepository;
4 | import com.alonelaval.cornerstone.entity.biz.UserInvoice;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * @author huawei
11 | * @create 2018-07-111
12 | * create by python
13 | **/
14 | @Repository
15 | public interface UserInvoiceRepository extends BaseRepository {
16 | // @Modifying
17 | // @Query(value="update tb_user_invoice set state = :state where invoice_id in :invoiceIds ",nativeQuery=true)
18 | // void updateState(@Param("state")Integer state, @Param("invoiceIds")Integer ... invoiceIds);
19 |
20 | List findAllByUserId(Integer userId);
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/ClassArrangeTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.ClassArrangeType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class ClassArrangeTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(ClassArrangeType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public ClassArrangeType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return ClassArrangeType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/InvoiceIssueTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.InvoiceIssueType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class InvoiceIssueTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(InvoiceIssueType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public InvoiceIssueType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return InvoiceIssueType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/PermssionOwnTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.PermssionOwnType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class PermssionOwnTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(PermssionOwnType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public PermssionOwnType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return PermssionOwnType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/UserRelationTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.UserRelationType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class UserRelationTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(UserRelationType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public UserRelationType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return UserRelationType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/place/OrgPlaceFacilityService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.place;
2 |
3 |
4 | import com.alonelaval.cornerstone.service.IBaseService;
5 | import com.alonelaval.cornerstone.entity.biz.OrgPlace;
6 | import com.alonelaval.cornerstone.entity.biz.OrgPlaceFacility;
7 | import com.alonelaval.cornerstone.service.IBaseService;
8 |
9 | import java.util.List;
10 |
11 | /**
12 | * @author huawei
13 | * @create 2018-07-08
14 | * create by python
15 | **/
16 | public interface OrgPlaceFacilityService extends IBaseService {
17 | default OrgPlaceFacility addOrgPlaceFacility(OrgPlaceFacility orgPlaceFacility) throws Exception{
18 | return this.add(orgPlaceFacility);
19 | }
20 |
21 | List addOrgPlaceFacility(OrgPlace orgPlace, List facilityIds)throws Exception;
22 | }
--------------------------------------------------------------------------------
/dao/inter/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | dao
7 | com.alonelaval
8 | 0.0.1-SNAPSHOT
9 |
10 | 4.0.0
11 |
12 | com.alonelaval.cornerstone.dao
13 | inter
14 |
15 |
16 | com.alonelaval.cornerstone.dao
17 | repository
18 | 0.0.1-SNAPSHOT
19 | compile
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/CourseResourceTypeConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.CourseResourceType;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class CourseResourceTypeConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(CourseResourceType attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public CourseResourceType convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return CourseResourceType.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/entity/src/main/java/com/alonelaval/cornerstone/entity/converter/MessageSendChannelConverter.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.entity.converter;
2 |
3 | import com.alonelaval.cornerstone.entity.constants.MessageSendChannel;
4 |
5 | import javax.persistence.AttributeConverter;
6 | import javax.persistence.Converter;
7 |
8 | /**
9 | * @author huawei
10 | * @create 2018-07-28
11 | **/
12 | @Converter(autoApply = true)
13 | public class MessageSendChannelConverter implements AttributeConverter {
14 | @Override
15 | public Integer convertToDatabaseColumn(MessageSendChannel attribute) {
16 | return attribute.value();
17 | }
18 |
19 | @Override
20 | public MessageSendChannel convertToEntityAttribute(Integer dbData) {
21 | if(dbData == null) {
22 | return null;
23 | }
24 | return MessageSendChannel.valueOf(dbData);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/message/SysMessageRuleService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.message;
2 |
3 | import com.alonelaval.cornerstone.entity.biz.SysMessageRule;
4 | import com.alonelaval.cornerstone.entity.constants.AuditState;
5 | import com.alonelaval.cornerstone.service.IBaseService;
6 |
7 | /**
8 | * @author huawei
9 | * @create 2018-07-08
10 | * create by python
11 | **/
12 | public interface SysMessageRuleService extends IBaseService {
13 | default SysMessageRule addSysMessageRule(SysMessageRule sysMessageRule) throws Exception{
14 | return this.add(sysMessageRule);
15 | }
16 |
17 | /**
18 | * 对消息模版进行审核
19 | * @param id
20 | * @param auditState
21 | * @return
22 | * @throws Exception
23 | */
24 | SysMessageRule auditRule(Integer id, AuditState auditState)throws Exception;
25 | }
--------------------------------------------------------------------------------
/service/interface/src/main/java/com/alonelaval/cornerstone/service/org/course/OrgCourseResourceService.java:
--------------------------------------------------------------------------------
1 | package com.alonelaval.cornerstone.service.org.course;
2 |
3 | import com.alonelaval.cornerstone.service.IBaseService;
4 | import com.alonelaval.cornerstone.entity.biz.OrgCourse;
5 | import com.alonelaval.cornerstone.entity.biz.OrgCourseResource;
6 | import com.alonelaval.cornerstone.service.IBaseService;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * @author huawei
12 | * @create 2018-07-08
13 | * create by python
14 | **/
15 | public interface OrgCourseResourceService extends IBaseService {
16 | default OrgCourseResource addOrgCourseResource(OrgCourseResource orgCourseResource) throws Exception{
17 | return add(orgCourseResource);
18 | }
19 |
20 | List