| | |
| | | * @return |
| | | */ |
| | | Integer updateIsPauseStatus(@Param("needDealIds") List<Long> needDealIds); |
| | | |
| | | /** |
| | | * 设置相关联用户为启用状态 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | Integer enableUserStatus(@Param("userId") Long userId); |
| | | } |
| | |
| | | return R.fail("商家不存在"); |
| | | } |
| | | mcsMerchant.setIsDel(true); |
| | | this.baseMapper.updateById(mcsMerchant); |
| | | int num = this.baseMapper.updateById(mcsMerchant); |
| | | if (num > 0) { |
| | | this.baseMapper.enableUserStatus(mcsMerchant.getUserId()); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | #{item} |
| | | </foreach> |
| | | </update> |
| | | <update id="enableUserStatus"> |
| | | UPDATE sys_user SET `status` = 1 WHERE user_id = #{userId} |
| | | </update> |
| | | <select id="getMcsMerchantById" |
| | | resultType="com.panzhihua.common.model.vos.community.microCommercialStreet.McsMerchantVO"> |
| | | SELECT t1.id, t1.`name`, t1.phone, t1.account, t1.`level`, t1.expire_at, t1.first_lit_at, t1.publish_limit, |