update 联联

This commit is contained in:
Lemon
2023-06-06 10:54:29 +08:00
parent 91e37c0bd6
commit 8e6bf11abc
6 changed files with 177 additions and 116 deletions

View File

@@ -16,6 +16,8 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@Builder
public class LianLianPushStationInfoDTO {
private String thirdPartyType;
/**
* 运营商id
*/

View File

@@ -3,6 +3,8 @@ package com.jsowell.pile.service.impl;
import java.util.List;
import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.SecurityUtils;
import com.jsowell.framework.web.domain.server.Sys;
import com.jsowell.pile.vo.base.StationSettingRelationVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -61,7 +63,8 @@ public class StationSettingRelationServiceImpl implements IStationSettingRelatio
*/
@Override
public int insertStationSettingRelation(StationSettingRelation stationSettingRelation) {
stationSettingRelation.setCreateTime(DateUtils.getNowDate());
// stationSettingRelation.setCreateTime(DateUtils.getNowDate());
stationSettingRelation.setCreateBy(SecurityUtils.getUsername());
return stationSettingRelationMapper.insertStationSettingRelation(stationSettingRelation);
}
@@ -73,7 +76,7 @@ public class StationSettingRelationServiceImpl implements IStationSettingRelatio
*/
@Override
public int updateStationSettingRelation(StationSettingRelation stationSettingRelation) {
stationSettingRelation.setUpdateTime(DateUtils.getNowDate());
// stationSettingRelation.setUpdateTime(DateUtils.getNowDate());
return stationSettingRelationMapper.updateStationSettingRelation(stationSettingRelation);
}

View File

@@ -69,7 +69,7 @@
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
where station_id = #{stationId,jdbcType=BIGINT}
</update>
<delete id="deleteStationSettingRelationById" parameterType="Long">
@@ -92,8 +92,8 @@
t2.operator_secret as operatorSecret,
t2.sign_secret as signSecret,
t2.data_secret as dataSecret,
t2.data_secret_IV as dataSecretIv,
from station_setting_relation t1 join thirdparty_setting_info t2 on t1.type = t2.type
t2.data_secret_IV as dataSecretIv
from station_setting_relation t1 join thirdparty_setting_info t2 on t1.third_party_type = t2.type
where t1.del_flag = '0'
<if test="stationId != null">
and t1.station_id = #{stationId,jdbcType=BIGINT}