Commit b64f7337 by 邓实川 Committed by chenzg

员工管理,企业讯息bug优化

parent 6b356fc9
......@@ -133,9 +133,12 @@ public class CmsController {
@GetMapping(value = "/getType")
@ApiOperation(value = "分类内容获取", httpMethod = "GET", notes = "接口发布说明")
public Result<Object> getType(@CurrentUser UserBean userBean) {
// 分类信息
// 分类模块信息
List<CmsContentModular> list = CmsContentModular.builder().build().selectList(
new QueryWrapper<CmsContentModular>().eq("organization_id", userBean.getOrgCode()).eq("is_open", 0));
new QueryWrapper<CmsContentModular>()
.eq("is_open", 0) //是否开启
// .eq("organization_id", userBean.getOrgCode())
);
List<List<CmsContent>> o = new ArrayList<List<CmsContent>>();
for (CmsContentModular cmsContentModular : list) {
// 分类模块id
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -60,7 +60,15 @@ public class ZzglController {
Integer orgCode = userBean.getOrgCode();
List<ZzglBmgwM> zzglBmgwMs = new LambdaQueryChainWrapper<ZzglBmgwM>(zzglBmgwMMapper)
.eq(ZzglBmgwM::getOrgCode, orgCode).list();
// TODO Auto-generated method stub
return ResultUtil.data(zzglBmgwMs);
}
@GetMapping(value = "/deptlist2")
@ApiOperation(value = "获取部门岗位2", httpMethod = "GET", notes = "接口发布说明")
public Result<List<ZzglBmgwM>> selectlistdept2(@CurrentUser UserBean userBean) {
Integer orgCode = userBean.getOrgCode();
List<ZzglBmgwM> zzglBmgwMs = new LambdaQueryChainWrapper<ZzglBmgwM>(zzglBmgwMMapper)
.select(ZzglBmgwM::getName,ZzglBmgwM::getId,ZzglBmgwM::getUpId).eq(ZzglBmgwM::getOrgCode, orgCode).list();
return ResultUtil.data(zzglBmgwMs);
}
......
......@@ -2,7 +2,7 @@ package cn.timer.api.dao.htzz;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.timer.api.bean.htzz.HtzzAdminZzda;
......@@ -12,6 +12,6 @@ import cn.timer.api.bean.htzz.HtzzAdminZzda;
* @author Tang 2019-12-04
*/
@Repository
public interface HtzzAdminZzdaMapper extends BaseMapper<HtzzAdminZzda> {
public interface HtzzAdminZzdaMapper extends IService<HtzzAdminZzda> {
}
......@@ -2,7 +2,7 @@ package cn.timer.api.dao.htzz;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.timer.api.bean.htzz.HtzzAssoHtgx;
......@@ -12,6 +12,6 @@ import cn.timer.api.bean.htzz.HtzzAssoHtgx;
* @author Tang 2019-12-18
*/
@Repository
public interface HtzzAssoHtgxMapper extends BaseMapper<HtzzAssoHtgx> {
public interface HtzzAssoHtgxMapper extends IService<HtzzAssoHtgx> {
}
......@@ -2,7 +2,7 @@ package cn.timer.api.dao.htzz;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.timer.api.bean.htzz.HtzzAssoZztx;
......@@ -12,6 +12,6 @@ import cn.timer.api.bean.htzz.HtzzAssoZztx;
* @author Tang 2019-12-04
*/
@Repository
public interface HtzzAssoZztxMapper extends BaseMapper<HtzzAssoZztx> {
public interface HtzzAssoZztxMapper extends IService<HtzzAssoZztx> {
}
......@@ -40,7 +40,8 @@ public class RemindUtil {
/**
* 每天固定时间提醒
*/
@Scheduled(cron = "0 0 8 * * ?") // 每天8点扫一下看有没要提醒的,有就发一个
// @Scheduled(cron = "0 0 8 * * ?") // 每天8点扫一下看有没要提醒的,有就发一个
@Scheduled(cron = "0 8 15 * * ?") // 测试合同提醒
public static void reportCurrentTime() {
List<HtzzAssoHtgx> htgxs = HtzzAssoHtgx.builder().build().selectAll();
......@@ -74,6 +75,7 @@ public class RemindUtil {
} else {
zzda.setTxkgType(1); // 关闭提醒
zzda.updateById();
}
}
}
......
......@@ -257,7 +257,7 @@
<!-- 学历及人数查询 -->
<select id="queryEducation" resultType="cn.timer.api.dto.yggl.YgglCartogramDto">
SELECT
e.name education,count(y.edu) educationNum
IFNULL(e.name,'null') education,count(y.edu) educationNum
FROM
yggl_main_emp y
LEFT JOIN
......@@ -268,6 +268,8 @@
org_code = #{orgCode}
GROUP BY
e.name
ORDER BY
e.id ASC
</select>
<!-- 员工年龄分布查询 -->
......@@ -290,7 +292,7 @@
<!-- 籍贯统计(省份)查询 -->
<select id="queryNativeplace" resultType="cn.timer.api.dto.yggl.YgglCartogramDto">
SELECT
c.name province,count(y.jg) provinceNum
IFNULL(c.name,'null') province,count(y.jg) provinceNum
FROM
yggl_main_emp y
LEFT JOIN
......
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