|
@ -14,11 +14,11 @@ import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
|
|
import com.epmet.plugin.power.dto.axis.form.StructLeaderBindFormDTO; |
|
|
import com.epmet.plugin.power.dto.axis.form.StructLeaderBriefFormDTO; |
|
|
import com.epmet.plugin.power.dto.axis.form.StructLeaderBriefFormDTO; |
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisSLeaderResultDTO; |
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisSLeaderResultDTO; |
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisSimpleListDTO; |
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisSimpleListDTO; |
|
|
import com.epmet.plugin.power.enums.PowerTagLevelEnum; |
|
|
import com.epmet.plugin.power.enums.PowerTagLevelEnum; |
|
|
import com.epmet.plugin.power.modules.axis.dao.PowerAxisLeaderDao; |
|
|
|
|
|
import com.epmet.plugin.power.modules.axis.dao.PowerAxisStructDao; |
|
|
import com.epmet.plugin.power.modules.axis.dao.PowerAxisStructDao; |
|
|
import com.epmet.plugin.power.modules.axis.dao.PowerAxisStructLeaderDao; |
|
|
import com.epmet.plugin.power.modules.axis.dao.PowerAxisStructLeaderDao; |
|
|
import com.epmet.plugin.power.dto.axis.PowerAxisStructLeaderDTO; |
|
|
import com.epmet.plugin.power.dto.axis.PowerAxisStructLeaderDTO; |
|
@ -43,15 +43,9 @@ import java.util.Map; |
|
|
@Service |
|
|
@Service |
|
|
public class PowerAxisStructLeaderServiceImpl extends BaseServiceImpl<PowerAxisStructLeaderDao, PowerAxisStructLeaderEntity> implements PowerAxisStructLeaderService { |
|
|
public class PowerAxisStructLeaderServiceImpl extends BaseServiceImpl<PowerAxisStructLeaderDao, PowerAxisStructLeaderEntity> implements PowerAxisStructLeaderService { |
|
|
|
|
|
|
|
|
// @Autowired
|
|
|
|
|
|
// private PowerAxisStructLeaderRedis powerAxisStructLeaderRedis;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private LoginUserUtil loginUserUtil; |
|
|
private LoginUserUtil loginUserUtil; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private PowerAxisLeaderDao powerAxisLeaderDao; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private PowerAxisStructDao powerAxisStructDao; |
|
|
private PowerAxisStructDao powerAxisStructDao; |
|
|
|
|
|
|
|
@ -141,4 +135,16 @@ public class PowerAxisStructLeaderServiceImpl extends BaseServiceImpl<PowerAxisS |
|
|
formDto.setAxisStructId(rootId); |
|
|
formDto.setAxisStructId(rootId); |
|
|
return baseDao.listLeaderBriefByRootStructId(formDto); |
|
|
return baseDao.listLeaderBriefByRootStructId(formDto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void bindAxisStructLeader(TokenDto tokenDto, StructLeaderBindFormDTO formDto) { |
|
|
|
|
|
baseDao.deleteStructLeader(formDto.getCustomerId(), formDto.getAxisStructId(), formDto.getLeaderId()); |
|
|
|
|
|
|
|
|
|
|
|
PowerAxisStructLeaderEntity structLeader = new PowerAxisStructLeaderEntity(); |
|
|
|
|
|
structLeader.setCustomerId(formDto.getCustomerId()); |
|
|
|
|
|
structLeader.setLeaderId(formDto.getLeaderId()); |
|
|
|
|
|
structLeader.setStructReferenceId(formDto.getAxisStructId()); |
|
|
|
|
|
structLeader.setCategoryCode(formDto.getCategoryCode()); |
|
|
|
|
|
baseDao.insert(structLeader); |
|
|
|
|
|
} |
|
|
} |
|
|
} |