| | |
| | | } |
| | | |
| | | //当前订单的,总疗程数,所有的项目疗程数总和 |
| | | System.out.println("chekCureVo:"); |
| | | ChekCureVo chekCureVo = orderHandle(ordersTotal,skuNoSet,commonService); |
| | | System.out.println("chekCureVo:"+JSON.toJSONString(chekCureVo)); |
| | | if(!chekCureVo.isCureProject()){ |
| | | return RESULT_NOT_JOIN; |
| | | } |
| | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <sql id="Update_Column_All"> |
| | | <trim prefixOverrides=","> |
| | | ,type = #{type},status = #{status},durationType = #{durationType},startTime = #{startTime},endTime = #{endTime},sourceType = #{sourceType},sourceId = #{sourceId},sourceOtherId = #{sourceOtherId},discardSource = #{discardSource},discardSourceId = #{discardSourceId},discardReason = #{discardReason},userId = #{userId},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | ,type = #{type},status = #{status},durationType = #{durationType},startTime = #{startTime},endTime = #{endTime},sourceType = #{sourceType},sourceId = #{sourceId},sourceOtherId = #{sourceOtherId},discardSource = #{discardSource},discardId = #{discardId},discardOtherId = #{discardOtherId},discardReason = #{discardReason},discardTime = #{discardTime},userId = #{userId},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | </trim> |
| | | </sql> |
| | | |
| | |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into user_club_member (id,type,status,durationType,startTime,endTime,sourceType,sourceId,sourceOtherId,discardSource,discardSourceId,discardReason,userId,isDel,createTime,editTime) values (#{id},#{type},#{status},#{durationType},#{startTime},#{endTime},#{sourceType},#{sourceId},#{sourceOtherId},#{discardSource},#{discardSourceId},#{discardReason},#{userId},#{isDel},#{createTime},#{editTime}) |
| | | insert into user_club_member (id,type,status,durationType,startTime,endTime,sourceType,sourceId,sourceOtherId,discardSource,discardId,discardOtherId,discardReason,discardTime,userId,isDel,createTime,editTime) values (#{id},#{type},#{status},#{durationType},#{startTime},#{endTime},#{sourceType},#{sourceId},#{sourceOtherId},#{discardSource},#{discardId},#{discardOtherId},#{discardReason},#{discardTime},#{userId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.user.club.UserClubMember"> |
| | | insert into user_club_member (id,type,status,durationType,startTime,endTime,sourceType,sourceId,sourceOtherId,discardSource,discardSourceId,discardReason,userId,isDel,createTime,editTime) values (#{id},#{type},#{status},#{durationType},#{startTime},#{endTime},#{sourceType},#{sourceId},#{sourceOtherId},#{discardSource},#{discardSourceId},#{discardReason},#{userId},#{isDel},#{createTime},#{editTime}) |
| | | insert into user_club_member (id,type,status,durationType,startTime,endTime,sourceType,sourceId,sourceOtherId,discardSource,discardId,discardOtherId,discardReason,discardTime,userId,isDel,createTime,editTime) values (#{id},#{type},#{status},#{durationType},#{startTime},#{endTime},#{sourceType},#{sourceId},#{sourceOtherId},#{discardSource},#{discardId},#{discardOtherId},#{discardReason},#{discardTime},#{userId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.user.club.UserClubMember" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.user.club.UserClubMember" parameterType="java.lang.Object" > |
| | | select |
| | | id,type,status,durationType,startTime,endTime,sourceType,sourceId,sourceOtherId,discardSource,discardSourceId,discardReason,userId,isDel,createTime,editTime |
| | | id,type,status,durationType,startTime,endTime,sourceType,sourceId,sourceOtherId,discardSource,discardId,discardOtherId,discardReason,discardTime,userId,isDel,createTime,editTime |
| | | from user_club_member |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.user.club.UserClubMember" parameterType="java.lang.Object" > |
| | | select |
| | | id,type,status,durationType,startTime,endTime,sourceType,sourceId,sourceOtherId,discardSource,discardSourceId,discardReason,userId,isDel,createTime,editTime |
| | | id,type,status,durationType,startTime,endTime,sourceType,sourceId,sourceOtherId,discardSource,discardId,discardOtherId,discardReason,discardTime,userId,isDel,createTime,editTime |
| | | from user_club_member |
| | | WHERE id = #{value} |
| | | </select> |
| | |
| | | private UserCluebMemberServiceTool userCluebMemberServiceTool; |
| | | |
| | | /** |
| | | *俱乐部会员测试 |
| | | *俱乐部会员测试-校验生成 |
| | | */ |
| | | @RequestMapping(value = "/club/member",method = RequestMethod.POST) |
| | | public PlatformResult typeList(@RequestBody OrderPayVo orderPayVo) { |
| | | public PlatformResult clubMemberCreate(@RequestBody OrderPayVo orderPayVo) { |
| | | userCluebMemberServiceTool.orderChekMember(orderPayVo.getOrderId(), null,null,MarketSystem.TYPE_REGENERATION); |
| | | return PlatformResult.success(); |
| | | } |
| | | |
| | | /** |
| | | *俱乐部会员测试-退款 |
| | | */ |
| | | @RequestMapping(value = "/club/member/refund",method = RequestMethod.POST) |
| | | public PlatformResult clubMemberRefund(@RequestBody OrderPayVo orderPayVo) { |
| | | userCluebMemberServiceTool.refundChekMember(orderPayVo.getOrderId(), null,null,MarketSystem.TYPE_REGENERATION); |
| | | return PlatformResult.success(); |
| | | } |
| | | |
| | | /** |
| | | *俱乐部会员测试-作废 |
| | | */ |
| | | @RequestMapping(value = "/club/member/refund/cancel",method = RequestMethod.POST) |
| | | public PlatformResult clubMemberRefundCancel(@RequestBody OrderPayVo orderPayVo) { |
| | | userCluebMemberServiceTool.refundCancelChekMember(orderPayVo.getOrderId(), null,null,MarketSystem.TYPE_REGENERATION); |
| | | return PlatformResult.success(); |
| | | } |
| | | |
| | | /** |
| | | *获取员工的 |
| | | */ |
| | | @RequestMapping(value = "/roleData",method = RequestMethod.POST) |