Browse Source

移除冗余代码

dev_power_axis
YUJT 4 years ago
parent
commit
7f497b22a2
  1. 18
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/controller/PowerAxisStructController.java
  2. 10
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerAxisStructDao.java
  3. 10
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/PowerAxisStructService.java
  4. 17
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java
  5. 28
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml

18
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/controller/PowerAxisStructController.java

@ -119,24 +119,6 @@ public class PowerAxisStructController {
return new Result();
}
/**
* 获取上级网格党支部
*/
@PostMapping("/GridPartyBranchList")
public Result<List<PowerAxisStructGridPartyBranchResultDTO>> getGridPartyBranchList() {
List<PowerAxisStructGridPartyBranchResultDTO> list = powerAxisStructService.getGridPartyBranchList();
return new Result<List<PowerAxisStructGridPartyBranchResultDTO>>().ok(list);
}
/**
* 获取上级组织
*/
@PostMapping("/getPartyCommList")
public Result<List<PowerAxisStructPartyCommResultDTO>> getPartyCommList() {
List<PowerAxisStructPartyCommResultDTO> list = powerAxisStructService.getPartyCommList();
return new Result<List<PowerAxisStructPartyCommResultDTO>>().ok(list);
}
/**
* 根据节点接报组装其上级节点树
*

10
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerAxisStructDao.java

@ -40,16 +40,6 @@ public interface PowerAxisStructDao extends BaseDao<PowerAxisStructEntity> {
void delete(String id);
/**
* 获取上级网格党支部
*/
List<PowerAxisStructGridPartyBranchResultDTO> getGridPartyBranchList(String customerId);
/**
* 获取上级党委
*/
List<PowerAxisStructPartyCommResultDTO> getPartyCommList(String customerId);
/**
* 查询同组织下是否有同名的节点
*

10
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/PowerAxisStructService.java

@ -101,16 +101,6 @@ public interface PowerAxisStructService extends BaseService<PowerAxisStructEntit
*/
void delete(String id);
/**
* 获取上级网格党支部
*/
List<PowerAxisStructGridPartyBranchResultDTO> getGridPartyBranchList();
/**
* 获取上级党委列表
*/
List<PowerAxisStructPartyCommResultDTO> getPartyCommList();
/**
* 根据id查询修改表单数据
*/

17
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java

@ -211,23 +211,6 @@ public class PowerAxisStructServiceImpl extends BaseServiceImpl<PowerAxisStructD
baseDao.delete(id);
}
/**
* 获取上级网格党支部
*/
@Override
public List<PowerAxisStructGridPartyBranchResultDTO> getGridPartyBranchList() {
String customerId = loginUserUtil.getLoginUserCustomerId();
List<PowerAxisStructGridPartyBranchResultDTO> list = baseDao.getGridPartyBranchList(customerId);
return list;
}
@Override
public List<PowerAxisStructPartyCommResultDTO> getPartyCommList() {
String customerId = loginUserUtil.getLoginUserCustomerId();
List<PowerAxisStructPartyCommResultDTO> list = baseDao.getPartyCommList(customerId);
return list;
}
@Override
public PowerAxisStructEntity queryModifyById(String id) {
PowerAxisStructEntity entity = baseDao.selectById(id);

28
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml

@ -88,34 +88,6 @@
</where>
</select>
<select id="getGridPartyBranchList"
resultType="com.epmet.plugin.power.dto.axis.result.PowerAxisStructGridPartyBranchResultDTO">
SELECT
id,
NAME
FROM
pli_power_axis_struct
WHERE
CATEGORY_CODE = 'grid_party'
AND
del_flag = 0
AND
customer_id = #{customerId}
</select>
<select id="getPartyCommList"
resultType="com.epmet.plugin.power.dto.axis.result.PowerAxisStructPartyCommResultDTO">
SELECT
id,
NAME
FROM
pli_power_axis_struct
WHERE
CATEGORY_CODE = 'community_party'
AND
del_flag = 0
AND
customer_id = #{customerId}
</select>
<select id="countRepeatStructByName" resultType="java.lang.Integer">
SELECT
count(*)

Loading…
Cancel
Save