|
|
@@ -10,6 +10,7 @@ import com.mokamrp.privates.service.pangu.DomainFirstService;
|
|
|
import com.mokamrp.privates.service.pangu.DomainSecondService;
|
|
|
import com.mokamrp.privates.service.pangu.PromoteCodeService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.mokamrp.privates.utils.sign.Aes;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -46,7 +47,14 @@ public class PromoteCodeServiceImpl extends ServiceImpl<PromoteCodeMapper, Promo
|
|
|
List<PromoteCodeVo> list = promoteCodeMapper.getlist(page,promoteCodeListHandle,deptId);
|
|
|
Map<String,Object> res = new HashMap<>();
|
|
|
for (PromoteCodeVo promoteCodeVo : list){
|
|
|
- promoteCodeVo.setQrcode(promoteCodeVo.getId()+"/#/dispatch?promoteId=");
|
|
|
+ Integer promoteId = promoteCodeVo.getId();
|
|
|
+ String promoteIdAes;
|
|
|
+ try{
|
|
|
+ promoteIdAes = Aes.encryptAES(promoteId.toString());
|
|
|
+ }catch (Exception e){
|
|
|
+ promoteIdAes = promoteId.toString();
|
|
|
+ }
|
|
|
+ promoteCodeVo.setQrcode(promoteCodeVo.getDomain()+"/#/dispatch?promoteId="+promoteIdAes);
|
|
|
}
|
|
|
res.put("list",list);
|
|
|
res.put("total",page.getTotal());
|