Browse Source

接口部门搜索

anderx 3 years ago
parent
commit
dc86d5f3f6

+ 2 - 0
src/main/java/com/goafanti/admin/service/impl/AdminServiceImpl.java

@@ -382,12 +382,14 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
 			acb.setId(depId);
 			deps=departmentMapper.selectBysuperId(oo.getId());
 			depIds =departmentService.selectSubordinateDeps(depId);
+
 		}
 		List<AdminCustomerBo> list =departmentMapper.AlldepCount(depIds,startTime,  endTime);
 		for (AdminCustomerBo ad : list) {
 			if (acb.getId().equals(ad.getDepId())){
 				acb.getaList().add(ad);
 			}
+
 		}
 		for (depCountBo dep : deps) {
 			dep.setList(iterationDeps(dep.getId(),list));

+ 2 - 2
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -1331,7 +1331,7 @@
     </if>
     <if test="thchDeps != null">
       and td.id in
-      <foreach close=")" collection="thchDep" item="thchDeps" open="(" separator=",">
+      <foreach close=")" collection="thchDeps" item="thchDep" open="(" separator=",">
         #{thchDep}
       </foreach>
     </if>
@@ -1442,7 +1442,7 @@
     </if>
     <if test="thchDeps != null">
       and td.id in
-      <foreach close=")" collection="thchDep" item="thchDeps" open="(" separator=",">
+      <foreach close=")" collection="thchDeps" item="thchDep" open="(" separator=",">
         #{thchDep}
       </foreach>
     </if>

+ 0 - 1
src/main/java/com/goafanti/order/controller/StatisticsApiController.java

@@ -75,7 +75,6 @@ public class StatisticsApiController extends CertifyApiController {
 	 */
 	@RequestMapping(value = "/exporProvincialList", method = RequestMethod.GET)
 	public Result exporProvincialList(InputProvincialStatistics ib){
-		Result res=new Result();
 		return projectStatisticsService.exporProvincialList(ib);
 		}