|
|
|
@ -7,6 +7,8 @@ import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.plugin.power.dto.axis.PowerAxisLeaderDTO; |
|
|
|
import com.epmet.plugin.power.dto.axis.form.PowerAxisLeaderDetailFormDTO; |
|
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisLeaderDetailResultDTO; |
|
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisSimpleListDTO; |
|
|
|
import com.epmet.plugin.power.modules.axis.dao.PowerAxisLeaderDao; |
|
|
|
import com.epmet.plugin.power.modules.axis.dao.PowerAxisStructLeaderDao; |
|
|
|
@ -24,7 +26,7 @@ import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* 动力主轴领导人 |
|
|
|
* 动力主轴领导人 |
|
|
|
* |
|
|
|
* @author generator generator@elink-cn.com |
|
|
|
* @since v1.0.0 2022-04-18 |
|
|
|
@ -51,8 +53,8 @@ public class PowerAxisLeaderServiceImpl extends BaseServiceImpl<PowerAxisLeaderD |
|
|
|
return ConvertUtils.sourceToTarget(entityList, PowerAxisLeaderDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
private QueryWrapper<PowerAxisLeaderEntity> getWrapper(Map<String, Object> params) { |
|
|
|
String id = (String) params.get(FieldConstant.ID_HUMP); |
|
|
|
private QueryWrapper<PowerAxisLeaderEntity> getWrapper(Map<String, Object> params){ |
|
|
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
|
|
|
|
|
|
|
QueryWrapper<PowerAxisLeaderEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
|
@ -71,7 +73,7 @@ public class PowerAxisLeaderServiceImpl extends BaseServiceImpl<PowerAxisLeaderD |
|
|
|
public void save(PowerAxisLeaderDTO dto) { |
|
|
|
PowerAxisLeaderEntity entity = ConvertUtils.sourceToTarget(dto, PowerAxisLeaderEntity.class); |
|
|
|
boolean i = insert(entity); |
|
|
|
if (i) { |
|
|
|
if(i){ |
|
|
|
PowerAxisStructLeaderEntity leaderEntity = new PowerAxisStructLeaderEntity(); |
|
|
|
leaderEntity.setCustomerId(dto.getCustomerId()); |
|
|
|
leaderEntity.setLeaderId(entity.getId()); |
|
|
|
@ -108,5 +110,10 @@ public class PowerAxisLeaderServiceImpl extends BaseServiceImpl<PowerAxisLeaderD |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PowerAxisLeaderDetailResultDTO getLeaderDetail(PowerAxisLeaderDetailFormDTO form) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |