Browse Source

/heart/work/act/sponsorlist发布活动主办方不展示废弃的网格

master
yinzuomei 4 years ago
parent
commit
5b8bd39079
  1. 2
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerStaffAgencyDao.java
  2. 1
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java
  3. 3
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerStaffAgencyDao.xml

2
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerStaffAgencyDao.java

@ -88,7 +88,7 @@ public interface CustomerStaffAgencyDao extends BaseDao<CustomerStaffAgencyEntit
* @return com.epmet.dto.result.ActSponsorResultDTO * @return com.epmet.dto.result.ActSponsorResultDTO
* @param staffId * @param staffId
* @author yinzuomei * @author yinzuomei
* @description 根据staffId查询我所在的网格信息 * @description 根据staffId查询我所在的网格信息限制网格是未废弃的网格
* @Date 2020/7/23 21:04 * @Date 2020/7/23 21:04
**/ **/
List<ActSponsorGridInfo> selectActSponsorGrid(String staffId); List<ActSponsorGridInfo> selectActSponsorGrid(String staffId);

1
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java

@ -872,6 +872,7 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao
resultDTO.setAgencyId(customerAgency.getId()); resultDTO.setAgencyId(customerAgency.getId());
resultDTO.setAgencyName(customerAgency.getOrganizationName()); resultDTO.setAgencyName(customerAgency.getOrganizationName());
} }
//限制网格是未废弃的网格
List<ActSponsorGridInfo> list=customerStaffAgencyDao.selectActSponsorGrid(staffId); List<ActSponsorGridInfo> list=customerStaffAgencyDao.selectActSponsorGrid(staffId);
resultDTO.setAgencyGridList(list); resultDTO.setAgencyGridList(list);
return resultDTO; return resultDTO;

3
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerStaffAgencyDao.xml

@ -125,7 +125,7 @@
</if> </if>
</select> </select>
<!-- 根据staffId查询我所在的网格信息 --> <!-- 根据staffId查询我所在的网格信息,限制网格是未废弃的网格 -->
<select id="selectActSponsorGrid" resultType="com.epmet.dto.result.ActSponsorGridInfo" parameterType="java.lang.String"> <select id="selectActSponsorGrid" resultType="com.epmet.dto.result.ActSponsorGridInfo" parameterType="java.lang.String">
SELECT SELECT
csg.GRID_ID, csg.GRID_ID,
@ -136,6 +136,7 @@
LEFT JOIN customer_agency ca ON ( cg.PID = ca.ID AND ca.DEL_FLAG = '0' ) LEFT JOIN customer_agency ca ON ( cg.PID = ca.ID AND ca.DEL_FLAG = '0' )
WHERE WHERE
csg.DEL_FLAG = '0' csg.DEL_FLAG = '0'
and cg.ABANDON_FLAG='0'
AND csg.USER_ID =#{staffId} AND csg.USER_ID =#{staffId}
</select> </select>
<!-- 根据staffId,查询我所属的组织信息 --> <!-- 根据staffId,查询我所属的组织信息 -->

Loading…
Cancel
Save