Commit 9fc6c581 by ilal Committed by chenzg

提交

parent 50a911a5
...@@ -31,7 +31,7 @@ public class ClockInTool { ...@@ -31,7 +31,7 @@ public class ClockInTool {
} }
// 获得上个月月份年份 // 获得上个月月份年份
public static String getYearMonth() { public static String getLastYearMonth() {
Calendar now = Calendar.getInstance(); Calendar now = Calendar.getInstance();
int month = now.get(Calendar.MONTH); int month = now.get(Calendar.MONTH);
String m; String m;
......
...@@ -97,7 +97,7 @@ public class LastMonthtimingExport { ...@@ -97,7 +97,7 @@ public class LastMonthtimingExport {
cale.set(Calendar.DAY_OF_MONTH,0);//设置为1号,当前日期既为本月第一天 cale.set(Calendar.DAY_OF_MONTH,0);//设置为1号,当前日期既为本月第一天
lastDay = format.format(cale.getTime()); lastDay = format.format(cale.getTime());
String lastmonth = ClockInTool.getYearMonth();//2020-07 String lastmonth = ClockInTool.getLastYearMonth();//2020-07
int year = Integer.valueOf(lastmonth.substring(0,4));//获取前一个年份 int year = Integer.valueOf(lastmonth.substring(0,4));//获取前一个年份
int month=Integer.valueOf(lastmonth.substring(5,7));//获取前一个月份 int month=Integer.valueOf(lastmonth.substring(5,7));//获取前一个月份
......
...@@ -1379,6 +1379,7 @@ public class YgglController { ...@@ -1379,6 +1379,7 @@ public class YgglController {
QyzxEmpLogin.builder().id(empNum).orgId(CollUtil.getFirst(listEEA).getOrgCode()).build().updateById(); QyzxEmpLogin.builder().id(empNum).orgId(CollUtil.getFirst(listEEA).getOrgCode()).build().updateById();
} }
QyzxEmpLogin.builder().build().delete(new QueryWrapper<QyzxEmpLogin>().lambda().eq(QyzxEmpLogin::getOrgId, userBean.getOrgCode()).eq(QyzxEmpLogin::getId, empNum));
KqglAssoYhkqz.builder().build().delete(new QueryWrapper<KqglAssoYhkqz>().lambda().eq(KqglAssoYhkqz::getUserid, empNum).eq(KqglAssoYhkqz::getQyid, userBean.getOrgCode())); KqglAssoYhkqz.builder().build().delete(new QueryWrapper<KqglAssoYhkqz>().lambda().eq(KqglAssoYhkqz::getUserid, empNum).eq(KqglAssoYhkqz::getQyid, userBean.getOrgCode()));
......
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