Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
da2ee2e8
Commit
da2ee2e8
authored
Nov 09, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提醒
parent
1991970a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
475 additions
and
2 deletions
+475
-2
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
+1
-1
src/main/java/cn/timer/api/controller/kqgl/atttimer/LastMonthtimingExport.java
+1
-1
src/main/resources/mapping/htzz/HtzzAdminZzdaMapper.xml
+211
-0
src/main/resources/mapping/htzz/HtzzAssoHtgxMapper.xml
+111
-0
src/main/resources/mapping/htzz/HtzzAssoZztxMapper.xml
+151
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
View file @
da2ee2e8
...
@@ -102,7 +102,7 @@ public class AttendanceTaskTiming{
...
@@ -102,7 +102,7 @@ public class AttendanceTaskTiming{
// @Scheduled(cron = "0 */5 * * * ?")
// @Scheduled(cron = "0 */5 * * * ?")
// @Scheduled(cron = "0 6 17 * * ?")
// @Scheduled(cron = "0 6 17 * * ?")
@Scheduled
(
cron
=
"0 0 8,12,16,20 * * ?"
)
//每天上午8、12点,下午16点,20点 执行
//
@Scheduled(cron = "0 0 8,12,16,20 * * ?")//每天上午8、12点,下午16点,20点 执行
public
void
AttendanceTask
()
throws
ParseException
{
public
void
AttendanceTask
()
throws
ParseException
{
boolean
implement
=
true
;
boolean
implement
=
true
;
...
...
src/main/java/cn/timer/api/controller/kqgl/atttimer/LastMonthtimingExport.java
View file @
da2ee2e8
...
@@ -94,7 +94,7 @@ public class LastMonthtimingExport {
...
@@ -94,7 +94,7 @@ public class LastMonthtimingExport {
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
// @Scheduled(cron = "0 48 16 * * ?")
// @Scheduled(cron = "0 48 16 * * ?")
@Scheduled
(
cron
=
"0 0 4,20 * * ?"
)
//每天上午4点,下午20点 执行
//
@Scheduled(cron = "0 0 4,20 * * ?")//每天上午4点,下午20点 执行
public
void
LastMonthtimingAttendanceTask
()
throws
ParseException
{
public
void
LastMonthtimingAttendanceTask
()
throws
ParseException
{
//获取前月的最后一天
//获取前月的最后一天
...
...
src/main/resources/mapping/htzz/HtzzAdminZzdaMapper.xml
0 → 100644
View file @
da2ee2e8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.htzz.HtzzAdminZzdaMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.htzz.HtzzAdminZzda"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"czrdh"
property=
"czrdh"
/>
<result
column=
"czry"
property=
"czry"
/>
<result
column=
"fzjg"
property=
"fzjg"
/>
<result
column=
"fzrq"
property=
"fzrq"
/>
<result
column=
"lrrid"
property=
"lrrid"
/>
<result
column=
"lrsj_time"
property=
"lrsjTime"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"txkg_type"
property=
"txkgType"
/>
<result
column=
"yxdqr"
property=
"yxdqr"
/>
<result
column=
"yxksr"
property=
"yxksr"
/>
<result
column=
"zjbh"
property=
"zjbh"
/>
<result
column=
"zjfj"
property=
"zjfj"
/>
<result
column=
"zjmc"
property=
"zjmc"
/>
<result
column=
"is_delete"
property=
"isDelete"
/>
<result
column=
"template_id"
property=
"templateId"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
czrdh,
czry,
fzjg,
fzrq,
lrrid,
lrsj_time,
org_code,
txkg_type,
yxdqr,
yxksr,
zjbh,
zjfj,
zjmc,
is_delete,
template_id
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id HtzzAdminZzda_id,
czrdh HtzzAdminZzda_czrdh,
czry HtzzAdminZzda_czry,
fzjg HtzzAdminZzda_fzjg,
fzrq HtzzAdminZzda_fzrq,
lrrid HtzzAdminZzda_lrrid,
lrsj_time HtzzAdminZzda_lrsj_time,
org_code HtzzAdminZzda_org_code,
txkg_type HtzzAdminZzda_txkg_type,
yxdqr HtzzAdminZzda_yxdqr,
yxksr HtzzAdminZzda_yxksr,
zjbh HtzzAdminZzda_zjbh,
zjfj HtzzAdminZzda_zjfj,
zjmc HtzzAdminZzda_zjmc,
is_delete HtzzAdminZzda_is_delete,
template_id HtzzAdminZzda_template_id
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.htzz.HtzzAdminZzda">
INSERT INTO htzz_admin_zzda
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != czrdh'>
czrdh,
</if>
<if test ='null != czry'>
czry,
</if>
<if test ='null != fzjg'>
fzjg,
</if>
<if test ='null != fzrq'>
fzrq,
</if>
<if test ='null != lrrid'>
lrrid,
</if>
<if test ='null != lrsjTime'>
lrsj_time,
</if>
<if test ='null != orgCode'>
org_code,
</if>
<if test ='null != txkgType'>
txkg_type,
</if>
<if test ='null != yxdqr'>
yxdqr,
</if>
<if test ='null != yxksr'>
yxksr,
</if>
<if test ='null != zjbh'>
zjbh,
</if>
<if test ='null != zjfj'>
zjfj,
</if>
<if test ='null != zjmc'>
zjmc,
</if>
<if test ='null != isDelete'>
is_delete,
</if>
<if test ='null != templateId'>
template_id
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != czrdh'>
#{czrdh},
</if>
<if test ='null != czry'>
#{czry},
</if>
<if test ='null != fzjg'>
#{fzjg},
</if>
<if test ='null != fzrq'>
#{fzrq},
</if>
<if test ='null != lrrid'>
#{lrrid},
</if>
<if test ='null != lrsjTime'>
#{lrsjTime},
</if>
<if test ='null != orgCode'>
#{orgCode},
</if>
<if test ='null != txkgType'>
#{txkgType},
</if>
<if test ='null != yxdqr'>
#{yxdqr},
</if>
<if test ='null != yxksr'>
#{yxksr},
</if>
<if test ='null != zjbh'>
#{zjbh},
</if>
<if test ='null != zjfj'>
#{zjfj},
</if>
<if test ='null != zjmc'>
#{zjmc},
</if>
<if test ='null != isDelete'>
#{isDelete},
</if>
<if test ='null != templateId'>
#{templateId}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM htzz_admin_zzda
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.htzz.HtzzAdminZzda">
UPDATE htzz_admin_zzda
<set>
<if test ='null != czrdh'>czrdh = #{czrdh},</if>
<if test ='null != czry'>czry = #{czry},</if>
<if test ='null != fzjg'>fzjg = #{fzjg},</if>
<if test ='null != fzrq'>fzrq = #{fzrq},</if>
<if test ='null != lrrid'>lrrid = #{lrrid},</if>
<if test ='null != lrsjTime'>lrsj_time = #{lrsjTime},</if>
<if test ='null != orgCode'>org_code = #{orgCode},</if>
<if test ='null != txkgType'>txkg_type = #{txkgType},</if>
<if test ='null != yxdqr'>yxdqr = #{yxdqr},</if>
<if test ='null != yxksr'>yxksr = #{yxksr},</if>
<if test ='null != zjbh'>zjbh = #{zjbh},</if>
<if test ='null != zjfj'>zjfj = #{zjfj},</if>
<if test ='null != zjmc'>zjmc = #{zjmc},</if>
<if test ='null != isDelete'>is_delete = #{isDelete},</if>
<if test ='null != templateId'>template_id = #{templateId}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM htzz_admin_zzda
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM htzz_admin_zzda
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM htzz_admin_zzda
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/htzz/HtzzAssoHtgxMapper.xml
0 → 100644
View file @
da2ee2e8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.htzz.HtzzAssoHtgxMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.htzz.HtzzAssoHtgx"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"htid"
property=
"htid"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"tzrid"
property=
"tzrid"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"phone"
property=
"phone"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
htid,
org_code,
tzrid,
name,
phone
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id HtzzAssoHtgx_id,
htid HtzzAssoHtgx_htid,
org_code HtzzAssoHtgx_org_code,
tzrid HtzzAssoHtgx_tzrid,
name HtzzAssoHtgx_name,
phone HtzzAssoHtgx_phone
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.htzz.HtzzAssoHtgx">
INSERT INTO htzz_asso_htgx
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != htid'>
htid,
</if>
<if test ='null != orgCode'>
org_code,
</if>
<if test ='null != tzrid'>
tzrid,
</if>
<if test ='null != name'>
name,
</if>
<if test ='null != phone'>
phone
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != htid'>
#{htid},
</if>
<if test ='null != orgCode'>
#{orgCode},
</if>
<if test ='null != tzrid'>
#{tzrid},
</if>
<if test ='null != name'>
#{name},
</if>
<if test ='null != phone'>
#{phone}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM htzz_asso_htgx
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.htzz.HtzzAssoHtgx">
UPDATE htzz_asso_htgx
<set>
<if test ='null != htid'>htid = #{htid},</if>
<if test ='null != orgCode'>org_code = #{orgCode},</if>
<if test ='null != tzrid'>tzrid = #{tzrid},</if>
<if test ='null != name'>name = #{name},</if>
<if test ='null != phone'>phone = #{phone}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM htzz_asso_htgx
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM htzz_asso_htgx
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM htzz_asso_htgx
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/htzz/HtzzAssoZztxMapper.xml
0 → 100644
View file @
da2ee2e8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.htzz.HtzzAssoZztxMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.htzz.HtzzAssoZztx"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"cffs"
property=
"cffs"
/>
<result
column=
"is_email"
property=
"isEmail"
/>
<result
column=
"is_message"
property=
"isMessage"
/>
<result
column=
"lrrid"
property=
"lrrid"
/>
<result
column=
"lrsj_time"
property=
"lrsjTime"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"txsj"
property=
"txsj"
/>
<result
column=
"zzda_id"
property=
"zzdaId"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
cffs,
is_email,
is_message,
lrrid,
lrsj_time,
name,
org_code,
txsj,
zzda_id
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id HtzzAssoZztx_id,
cffs HtzzAssoZztx_cffs,
is_email HtzzAssoZztx_is_email,
is_message HtzzAssoZztx_is_message,
lrrid HtzzAssoZztx_lrrid,
lrsj_time HtzzAssoZztx_lrsj_time,
name HtzzAssoZztx_name,
org_code HtzzAssoZztx_org_code,
txsj HtzzAssoZztx_txsj,
zzda_id HtzzAssoZztx_zzda_id
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.htzz.HtzzAssoZztx">
INSERT INTO htzz_asso_zztx
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != cffs'>
cffs,
</if>
<if test ='null != isEmail'>
is_email,
</if>
<if test ='null != isMessage'>
is_message,
</if>
<if test ='null != lrrid'>
lrrid,
</if>
<if test ='null != lrsjTime'>
lrsj_time,
</if>
<if test ='null != name'>
name,
</if>
<if test ='null != orgCode'>
org_code,
</if>
<if test ='null != txsj'>
txsj,
</if>
<if test ='null != zzdaId'>
zzda_id
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != cffs'>
#{cffs},
</if>
<if test ='null != isEmail'>
#{isEmail},
</if>
<if test ='null != isMessage'>
#{isMessage},
</if>
<if test ='null != lrrid'>
#{lrrid},
</if>
<if test ='null != lrsjTime'>
#{lrsjTime},
</if>
<if test ='null != name'>
#{name},
</if>
<if test ='null != orgCode'>
#{orgCode},
</if>
<if test ='null != txsj'>
#{txsj},
</if>
<if test ='null != zzdaId'>
#{zzdaId}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM htzz_asso_zztx
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.htzz.HtzzAssoZztx">
UPDATE htzz_asso_zztx
<set>
<if test ='null != cffs'>cffs = #{cffs},</if>
<if test ='null != isEmail'>is_email = #{isEmail},</if>
<if test ='null != isMessage'>is_message = #{isMessage},</if>
<if test ='null != lrrid'>lrrid = #{lrrid},</if>
<if test ='null != lrsjTime'>lrsj_time = #{lrsjTime},</if>
<if test ='null != name'>name = #{name},</if>
<if test ='null != orgCode'>org_code = #{orgCode},</if>
<if test ='null != txsj'>txsj = #{txsj},</if>
<if test ='null != zzdaId'>zzda_id = #{zzdaId}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM htzz_asso_zztx
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM htzz_asso_zztx
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM htzz_asso_zztx
</select>
-->
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment