场站流量方黑名单标识从id变为OperatorID,整型变为字符型
This commit is contained in:
parent
c804922be3
commit
b0c8fe86c6
@ -33,8 +33,8 @@ public class XhpcStationInternetBlacklistController extends BaseController {
|
|||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
public AjaxResult add(@Valid @RequestBody List<XhpcStationInternetBlacklist> list) {
|
public AjaxResult add(@Valid @RequestBody List<XhpcStationInternetBlacklist> list) {
|
||||||
if (null != list && list.size() > 0) {
|
if (null != list && list.size() > 0) {
|
||||||
Long internetUserId = list.get(0).getInternetUserId();
|
String internetUserId = list.get(0).getInternetUserId();
|
||||||
iXhpcStationInternetBlacklistService.deleteByIds(internetUserId);
|
iXhpcStationInternetBlacklistService.deleteByOperatorIdEvcs(internetUserId);
|
||||||
for (XhpcStationInternetBlacklist xhpcStationInternetBlacklist : list) {
|
for (XhpcStationInternetBlacklist xhpcStationInternetBlacklist : list) {
|
||||||
iXhpcStationInternetBlacklistService.insert(xhpcStationInternetBlacklist);
|
iXhpcStationInternetBlacklistService.insert(xhpcStationInternetBlacklist);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,8 +23,8 @@ public class XhpcStationInternetBlacklist implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 流量用户id
|
* 流量用户id
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "流量用户id不能为空")
|
@NotNull(message = "流量用户OperatorID(evcs)不能为空")
|
||||||
private Long internetUserId;
|
private String internetUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 电站id
|
* 电站id
|
||||||
@ -65,11 +65,13 @@ public class XhpcStationInternetBlacklist implements Serializable {
|
|||||||
public XhpcStationInternetBlacklist() {
|
public XhpcStationInternetBlacklist() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getInternetUserId() {
|
public String getInternetUserId() {
|
||||||
|
|
||||||
return internetUserId;
|
return internetUserId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInternetUserId(Long internetUserId) {
|
public void setInternetUserId(String internetUserId) {
|
||||||
|
|
||||||
this.internetUserId = internetUserId;
|
this.internetUserId = internetUserId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,10 +24,10 @@ public interface XhpcStationInternetBlacklistMapper {
|
|||||||
/**
|
/**
|
||||||
* 批量删除流量用户设置流量方黑名单
|
* 批量删除流量用户设置流量方黑名单
|
||||||
*
|
*
|
||||||
* @param internetUserId 需要删除的数据ID
|
* @param internetUserId 需要删除的数据OperatorID(evcs)
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteByIds(@Param("internetUserId") Long internetUserId);
|
public int deleteByOperatorIdEvcs(@Param("internetUserId") String internetUserId);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -24,10 +24,10 @@ public interface IXhpcStationInternetBlacklistService {
|
|||||||
/**
|
/**
|
||||||
* 批量删除流运营商设置流量方黑名单信息
|
* 批量删除流运营商设置流量方黑名单信息
|
||||||
*
|
*
|
||||||
* @param internetUserId 需要删除的数据ID
|
* @param internetUserId 需要删除的数据OperatorID(evcs)
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public void deleteByIds(Long internetUserId);
|
public void deleteByOperatorIdEvcs(String internetUserId);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -48,8 +48,9 @@ public class XhpcStationInternetBlacklistServiceImpl implements IXhpcStationInte
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public void deleteByIds(Long internetUserId) {
|
public void deleteByOperatorIdEvcs(String internetUserId) {
|
||||||
xhpcStationInternetBlacklistMapper.deleteByIds(internetUserId);
|
|
||||||
|
xhpcStationInternetBlacklistMapper.deleteByOperatorIdEvcs(internetUserId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -74,8 +74,10 @@
|
|||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<delete id="deleteByIds" parameterType="java.lang.Long">
|
<delete id="deleteByOperatorIdEvcs" parameterType="java.lang.String">
|
||||||
delete from xhpc_station_internet_blacklist where internet_user_id = #{internetUserId}
|
delete
|
||||||
|
from xhpc_station_internet_blacklist
|
||||||
|
where internet_user_id = #{internetUserId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="list" parameterType="java.lang.Long" resultType="java.util.Map">
|
<select id="list" parameterType="java.lang.Long" resultType="java.util.Map">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user