Commit 158a2f37 authored by daijunxiong's avatar daijunxiong

修改定时任务

parent dd973057
...@@ -103,7 +103,7 @@ public class ArtemisPostTest { ...@@ -103,7 +103,7 @@ public class ArtemisPostTest {
config.setHost("8.136.255.30:8001"); // 代理API网关nginx服务器ip端口 config.setHost("8.136.255.30:8001"); // 代理API网关nginx服务器ip端口
config.setAppKey("25128371"); // 秘钥appkey config.setAppKey("25128371"); // 秘钥appkey
config.setAppSecret("2m9RcPJOKq5j2QPQM4v5");// 秘钥appSecret config.setAppSecret("2m9RcPJOKq5j2QPQM4v5");// 秘钥appSecret
final String getCamsApi = ARTEMIS_PATH + "/api/resource/v1/person/personList"; final String getCamsApi = ARTEMIS_PATH + "/api/resource/v1/org/orgList";
Map<String, String> paramMap = new HashMap<String, String>();// post请求Form表单参数 Map<String, String> paramMap = new HashMap<String, String>();// post请求Form表单参数
paramMap.put("pageNo", "1"); paramMap.put("pageNo", "1");
paramMap.put("pageSize", "1000"); paramMap.put("pageSize", "1000");
......
...@@ -29,6 +29,7 @@ public interface DeptDao extends ICRUDDao<DeptEntity,Long>{ ...@@ -29,6 +29,7 @@ public interface DeptDao extends ICRUDDao<DeptEntity,Long>{
/** /**
* 统计部门人数 * 统计部门人数
* */ * */
DeptEntity queryDept(String deptCode);
} }
...@@ -27,4 +27,10 @@ public class DeptDaoImpl extends BaseCRUDDaoMybatis<DeptEntity,Long> implements ...@@ -27,4 +27,10 @@ public class DeptDaoImpl extends BaseCRUDDaoMybatis<DeptEntity,Long> implements
return this.getList(new DeptEntity()); return this.getList(new DeptEntity());
} }
@Override
public DeptEntity queryDept(String deptCode) {
return getSqlSession().selectOne(getSqlId("queryDept"),deptCode);
}
} }
...@@ -61,5 +61,5 @@ public interface StaffDao extends ICRUDDao<StaffEntity,Long>{ ...@@ -61,5 +61,5 @@ public interface StaffDao extends ICRUDDao<StaffEntity,Long>{
/** /**
* *
* */ * */
StaffEntity queryHik(String remark); StaffEntity queryHik(String remarkId);
} }
...@@ -59,8 +59,8 @@ public class StaffDaoImpl extends BaseCRUDDaoMybatis<StaffEntity,Long> implement ...@@ -59,8 +59,8 @@ public class StaffDaoImpl extends BaseCRUDDaoMybatis<StaffEntity,Long> implement
} }
@Override @Override
public StaffEntity queryHik(String remark) { public StaffEntity queryHik(String remarkId) {
return this.getSqlSession().selectOne(this.getSqlId("queryHik"),remark); return this.getSqlSession().selectOne(this.getSqlId("queryHik"),remarkId);
} }
......
...@@ -878,4 +878,7 @@ ...@@ -878,4 +878,7 @@
</trim> </trim>
</if> </if>
</sql> </sql>
<select id="queryDept" resultType="com.mortals.xhx.module.dept.model.DeptEntity">
select * from mortals_xhx_dept where deptCode = #{deptCode}
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -1341,7 +1341,7 @@ ...@@ -1341,7 +1341,7 @@
select count(1) personNum from mortals_xhx_staff where deptId = #{deptId} select count(1) personNum from mortals_xhx_staff where deptId = #{deptId}
</select> </select>
<select id="queryHik" resultType="com.mortals.xhx.module.staff.model.StaffEntity"> <select id="queryHik" resultType="com.mortals.xhx.module.staff.model.StaffEntity">
select * from mortals_xhx_staff where remark = #{remark} select * from mortals_xhx_staff where remarkId = #{remarkId}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment