优化常用单位、用户自定义列保存优化、业务流量库优化
This commit is contained in:
+9
-4
@@ -179,12 +179,17 @@ public class EpsServerRevenueConfigServiceImpl implements IEpsServerRevenueConfi
|
||||
RmResourceRegistration registerMsg = registerLst.get(0);
|
||||
// 赋值
|
||||
if(registerMsg != null){
|
||||
// 根据业务名称查询业务代码
|
||||
EpsBusiness epsBusiness = epsBusinessMapper.selectEpsBusinessByName(registerMsg.getBusinessName());
|
||||
String businessName = registerMsg.getBusinessName();
|
||||
if(businessName != null){
|
||||
initialTrafficData.setBusinessName(businessName);
|
||||
// 根据业务名称查询业务代码
|
||||
EpsBusiness epsBusiness = epsBusinessMapper.selectEpsBusinessByName(businessName);
|
||||
if(epsBusiness != null){
|
||||
initialTrafficData.setBusinessId(epsBusiness.getId());
|
||||
}
|
||||
}
|
||||
initialTrafficData.setServiceSn(registerMsg.getHardwareSn());
|
||||
initialTrafficData.setRevenueMethod("1");
|
||||
initialTrafficData.setBusinessId(epsBusiness.getId());
|
||||
initialTrafficData.setBusinessName(registerMsg.getBusinessName());
|
||||
}
|
||||
}
|
||||
// id自增
|
||||
|
||||
+2
-5
@@ -73,11 +73,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<when test="id != null">
|
||||
and id = #{id}
|
||||
</when>
|
||||
<when test="userId != null">
|
||||
and user_id = #{userId}
|
||||
</when>
|
||||
<when test="pageRoute != null">
|
||||
and page_route = #{pageRoute}
|
||||
<when test="userId != null and pageRoute != null">
|
||||
and user_id = #{userId} and page_route = #{pageRoute}
|
||||
</when>
|
||||
<otherwise>
|
||||
and 1=0 <!-- 如果两个条件都不满足,则不更新任何记录 -->
|
||||
|
||||
Reference in New Issue
Block a user