@ -163,9 +163,11 @@ public class BadgeServiceImpl extends BaseServiceImpl<BadgeDao, BadgeEntity> imp
if ( CollectionUtils . isNotEmpty ( list ) ) {
throw new RenException ( EpmetErrorCode . DUPLICATE_BADGE_NAME . getCode ( ) ) ;
}
int nextSort = baseDao . selectNextSort ( tokenDto . getCustomerId ( ) ) ;
BadgeEntity entity = ConvertUtils . sourceToTarget ( formDTO , BadgeEntity . class ) ;
entity . setCustomerId ( tokenDto . getCustomerId ( ) ) ;
entity . setFixationBadgeType ( BadgeConstant . NONE ) ;
entity . setSort ( nextSort ) ;
insert ( entity ) ;
//保存徽章认证配置
List < BadgeCertificationConfigEntity > badgeList = new ArrayList < > ( ) ;
@ -220,7 +222,7 @@ public class BadgeServiceImpl extends BaseServiceImpl<BadgeDao, BadgeEntity> imp
BadgeEntity badgeEntity = baseDao . selectBadgeInfo ( tokenDto . getCustomerId ( ) , formDTO . getBadgeId ( ) ) ;
if ( null = = badgeEntity ) {
badgeEntity = baseDao . selectBadgeInfo ( "default" , formDTO . getBadgeId ( ) ) ;
badgeEntity = baseDao . selectBadgeInfo ( BadgeConstant . DEFAULT_CUSTOMER , formDTO . getBadgeId ( ) ) ;
badgeEntity . setCustomerId ( tokenDto . getCustomerId ( ) ) ;
badgeEntity . setBadgeName ( formDTO . getBadgeName ( ) ) ;
badgeEntity . setBadgeIcon ( formDTO . getBadgeIcon ( ) ) ;