查询条件

master
bynt 7 months ago
parent 179812977f
commit 9e437e4517

@ -66,6 +66,7 @@
sys_user_role ur sys_user_role ur
on su.user_id = ur.user_id on su.user_id = ur.user_id
where su.deleted = 0 where su.deleted = 0
and su.status = 1
and su.which_user_id = #{userId} and su.which_user_id = #{userId}
and ur.role_code = #{roleCode} and ur.role_code = #{roleCode}
</select> </select>

@ -23,6 +23,7 @@ import com.baiye.modules.distribute.service.PushConfigService;
import com.baiye.modules.distribute.vo.PushClueInfoVo; import com.baiye.modules.distribute.vo.PushClueInfoVo;
import com.baiye.util.AESUtils; import com.baiye.util.AESUtils;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.ballcat.security.properties.SecurityProperties; import org.ballcat.security.properties.SecurityProperties;
@ -58,7 +59,7 @@ public class PushClueServiceImpl extends ExtendServiceImpl<PlushClueMapper, Push
entity.getStatus() == DefaultNumberConstants.ONE_NUMBER) { entity.getStatus() == DefaultNumberConstants.ONE_NUMBER) {
SendClueResponse firstResponse = new SendClueResponse(); SendClueResponse firstResponse = new SendClueResponse();
String pushUrl = entity.getPushUrl(); String pushUrl = entity.getPushUrl();
Gson gson = new Gson(); Gson gson = new GsonBuilder().disableHtmlEscaping().create();
Long requestId = IdUtil.getSnowflake(workerId, datacenterId).nextId(); Long requestId = IdUtil.getSnowflake(workerId, datacenterId).nextId();
String decrypt = AESUtils.decrypt(nid, securityProperties.getPasswordSecretKey()); String decrypt = AESUtils.decrypt(nid, securityProperties.getPasswordSecretKey());
TripartiteDTO tripartiteDTO = TripartiteDTO tripartiteDTO =
@ -111,4 +112,5 @@ public class PushClueServiceImpl extends ExtendServiceImpl<PlushClueMapper, Push
clueInfo.setPushStatus(code.equals(DefaultNumberConstants.TWO_HUNDRED) ? DefaultNumberConstants.ONE_NUMBER : DefaultNumberConstants.ZERO_NUMBER); clueInfo.setPushStatus(code.equals(DefaultNumberConstants.TWO_HUNDRED) ? DefaultNumberConstants.ONE_NUMBER : DefaultNumberConstants.ZERO_NUMBER);
this.save(clueInfo); this.save(clueInfo);
} }
} }

Loading…
Cancel
Save