asn ip修改时修改compileId

This commit is contained in:
wangxin
2019-01-06 11:49:48 +08:00
parent f56a0fe09a
commit c16c585a43
3 changed files with 5 additions and 0 deletions

View File

@@ -515,6 +515,9 @@
<if test="userRegion1 != null and userRegion1 != ''" >
user_region1 = #{userRegion1,jdbcType=VARCHAR},
</if>
<if test="compileId != null and compileId != ''" >
compile_id = #{compileId,jdbcType=INTEGER},
</if>
</trim>
</set>
<where>

View File

@@ -113,6 +113,7 @@ public class AsnIpCfgService extends CrudService<CrudDao<AsnIpCfg>, AsnIpCfg> {
entity.setOrganization(org);
entity.setCountry(country);
entity.setDetail(detail);
entity.setCompileId(groupInfo.getCompileId());
asnIpCfgDao.update(entity);
}
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)