Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cloud-account
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.account
pica-cloud-account
提交
bb591cad
提交
bb591cad
编写于
1月 06, 2020
作者:
rushui.chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
20200106 删除定时任务代码
上级
93b66cdb
流水线
#20191
已失败 于阶段
in 0 second
变更
7
流水线
1
展开全部
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
16 行增加
和
661 行删除
+16
-661
HospitalLogHandler.java
.../cloud/account/account/server/job/HospitalLogHandler.java
+15
-23
PermissionRoleLogHandler.java
.../account/account/server/job/PermissionRoleLogHandler.java
+0
-8
DoctorMapper.java
...ica/cloud/account/account/server/mapper/DoctorMapper.java
+1
-10
HospitalMapper.java
...a/cloud/account/account/server/mapper/HospitalMapper.java
+0
-20
PermissionDoctorRoleMapper.java
...unt/account/server/mapper/PermissionDoctorRoleMapper.java
+0
-25
HospitalMapper.xml
server/src/main/resources/mybatis/HospitalMapper.xml
+0
-423
PermissionDoctorRoleMapper.xml
...src/main/resources/mybatis/PermissionDoctorRoleMapper.xml
+0
-152
未找到文件。
server/src/main/java/com/pica/cloud/account/account/server/job/HospitalLogHandler.java
浏览文件 @
bb591cad
package
com
.
pica
.
cloud
.
account
.
account
.
server
.
job
;
package
com
.
pica
.
cloud
.
account
.
account
.
server
.
job
;
import
com.pica.cloud.account.account.server.mapper.HospitalMapper
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.handler.IJobHandler
;
import
com.xxl.job.core.handler.annotation.JobHandler
;
import
com.xxl.job.core.log.XxlJobLogger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
/**
/**
* Created on 2019/12/16 17:53
* Created on 2019/12/16 17:53
* author:crs
* author:crs
* Description:记录doctor修改记录日志
* Description:记录doctor修改记录日志
*/
*/
@JobHandler
(
value
=
"HospitalLogHandler"
)
//
@JobHandler(value = "HospitalLogHandler")
@Component
//
@Component
public
class
HospitalLogHandler
extends
IJobHandler
{
//
public class HospitalLogHandler extends IJobHandler {
//
@Autowired
//
@Autowired
private
HospitalMapper
hospitalMapper
;
//
private HospitalMapper hospitalMapper;
//
@Override
//
@Override
public
ReturnT
<
String
>
execute
(
String
s
)
throws
Exception
{
//
public ReturnT<String> execute(String s) throws Exception {
XxlJobLogger
.
log
(
"hospitalLogRecord start-----"
);
//
XxlJobLogger.log("hospitalLogRecord start-----");
Integer
rows
=
hospitalMapper
.
updateDoctorModifyRecord
();
//
Integer rows = hospitalMapper.updateDoctorModifyRecord();
XxlJobLogger
.
log
(
"hospitalLogRecord end-----"
+
rows
);
//
XxlJobLogger.log("hospitalLogRecord end-----"+rows);
return
SUCCESS
;
//
return SUCCESS;
}
//
}
}
//
}
server/src/main/java/com/pica/cloud/account/account/server/job/PermissionRoleLogHandler.java
浏览文件 @
bb591cad
package
com
.
pica
.
cloud
.
account
.
account
.
server
.
job
;
package
com
.
pica
.
cloud
.
account
.
account
.
server
.
job
;
import
com.pica.cloud.account.account.server.mapper.PermissionDoctorRoleMapper
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.handler.IJobHandler
;
import
com.xxl.job.core.handler.annotation.JobHandler
;
import
com.xxl.job.core.log.XxlJobLogger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
/**
/**
* Created on 2019/12/16 17:53
* Created on 2019/12/16 17:53
* author:crs
* author:crs
...
...
server/src/main/java/com/pica/cloud/account/account/server/mapper/DoctorMapper.java
浏览文件 @
bb591cad
...
@@ -87,15 +87,6 @@ public interface DoctorMapper {
...
@@ -87,15 +87,6 @@ public interface DoctorMapper {
void
updateDeleteByPrimaryKey
(
@Param
(
"map"
)
HashMap
<
String
,
Long
>
map
);
void
updateDeleteByPrimaryKey
(
@Param
(
"map"
)
HashMap
<
String
,
Long
>
map
);
/**
* 通过手机号获取用户id
*
* @param mobile
* @return
*/
//Long selectDoctorIdByMobile(String mobile);
Integer
getAcctIdByDoctorId
(
long
id
);
Integer
getAcctIdByDoctorId
(
long
id
);
...
...
server/src/main/java/com/pica/cloud/account/account/server/mapper/HospitalMapper.java
已删除
100644 → 0
浏览文件 @
93b66cdb
package
com
.
pica
.
cloud
.
account
.
account
.
server
.
mapper
;
import
com.pica.cloud.account.account.server.entity.Hospital
;
public
interface
HospitalMapper
{
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
Hospital
record
);
int
insertSelective
(
Hospital
record
);
Hospital
selectByPrimaryKey
(
Integer
id
);
int
updateByPrimaryKeySelective
(
Hospital
record
);
int
updateByPrimaryKey
(
Hospital
record
);
Integer
updateDoctorModifyRecord
();
}
\ No newline at end of file
server/src/main/java/com/pica/cloud/account/account/server/mapper/PermissionDoctorRoleMapper.java
已删除
100644 → 0
浏览文件 @
93b66cdb
package
com
.
pica
.
cloud
.
account
.
account
.
server
.
mapper
;
import
com.pica.cloud.account.account.server.entity.PermissionDoctorRole
;
public
interface
PermissionDoctorRoleMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
PermissionDoctorRole
record
);
int
insertSelective
(
PermissionDoctorRole
record
);
PermissionDoctorRole
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
PermissionDoctorRole
record
);
int
updateByPrimaryKey
(
PermissionDoctorRole
record
);
/**
* 记录用户权限修改记录
*
* @return
*/
Integer
updatePermissionModifyRecord
();
}
\ No newline at end of file
server/src/main/resources/mybatis/HospitalMapper.xml
已删除
100644 → 0
浏览文件 @
93b66cdb
此差异已折叠。
点击以展开。
server/src/main/resources/mybatis/PermissionDoctorRoleMapper.xml
已删除
100644 → 0
浏览文件 @
93b66cdb
<?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=
"com.pica.cloud.account.account.server.mapper.PermissionDoctorRoleMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.pica.cloud.account.account.server.entity.PermissionDoctorRole"
>
<id
column=
"id"
property=
"id"
jdbcType=
"BIGINT"
/>
<result
column=
"doctor_id"
property=
"doctorId"
jdbcType=
"BIGINT"
/>
<result
column=
"hospital_id"
property=
"hospitalId"
jdbcType=
"BIGINT"
/>
<result
column=
"role_id"
property=
"roleId"
jdbcType=
"BIGINT"
/>
<result
column=
"delete_flag"
property=
"deleteFlag"
jdbcType=
"INTEGER"
/>
<result
column=
"created_id"
property=
"createdId"
jdbcType=
"BIGINT"
/>
<result
column=
"created_time"
property=
"createdTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"modified_id"
property=
"modifiedId"
jdbcType=
"BIGINT"
/>
<result
column=
"modified_time"
property=
"modifiedTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, doctor_id, hospital_id, role_id, delete_flag, created_id, created_time, modified_id,
modified_time
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Long"
>
select
<include
refid=
"Base_Column_List"
/>
from permission_doctor_role
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from permission_doctor_role
where id = #{id,jdbcType=BIGINT}
</delete>
<!--用户权限记录表的变更-->
<insert
id=
"updatePermissionModifyRecord"
>
insert into log_permission_doctor_role(`id`, `doctor_id`, `hospital_id`, `role_id`, `delete_flag`, `created_id`,
`created_time`, `modified_id`, `modified_time`)
SELECT * FROM permission_doctor_role where modified_time
>
DATE_SUB(DATE_FORMAT(NOW(),'%Y-%m-%d
%H:00:00'),INTERVAL 1 hour) and modified_time
<
DATE_FORMAT(NOW(), '%Y-%m-%d %H:00:00')
</insert>
<insert
id=
"insert"
parameterType=
"com.pica.cloud.account.account.server.entity.PermissionDoctorRole"
>
insert into permission_doctor_role (id, doctor_id, hospital_id,
role_id, delete_flag, created_id,
created_time, modified_id, modified_time
)
values (#{id,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, #{hospitalId,jdbcType=BIGINT},
#{roleId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=INTEGER}, #{createdId,jdbcType=BIGINT},
#{createdTime,jdbcType=TIMESTAMP}, #{modifiedId,jdbcType=BIGINT}, #{modifiedTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.pica.cloud.account.account.server.entity.PermissionDoctorRole"
>
insert into permission_doctor_role
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"doctorId != null"
>
doctor_id,
</if>
<if
test=
"hospitalId != null"
>
hospital_id,
</if>
<if
test=
"roleId != null"
>
role_id,
</if>
<if
test=
"deleteFlag != null"
>
delete_flag,
</if>
<if
test=
"createdId != null"
>
created_id,
</if>
<if
test=
"createdTime != null"
>
created_time,
</if>
<if
test=
"modifiedId != null"
>
modified_id,
</if>
<if
test=
"modifiedTime != null"
>
modified_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
</if>
<if
test=
"doctorId != null"
>
#{doctorId,jdbcType=BIGINT},
</if>
<if
test=
"hospitalId != null"
>
#{hospitalId,jdbcType=BIGINT},
</if>
<if
test=
"roleId != null"
>
#{roleId,jdbcType=BIGINT},
</if>
<if
test=
"deleteFlag != null"
>
#{deleteFlag,jdbcType=INTEGER},
</if>
<if
test=
"createdId != null"
>
#{createdId,jdbcType=BIGINT},
</if>
<if
test=
"createdTime != null"
>
#{createdTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"modifiedId != null"
>
#{modifiedId,jdbcType=BIGINT},
</if>
<if
test=
"modifiedTime != null"
>
#{modifiedTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.pica.cloud.account.account.server.entity.PermissionDoctorRole"
>
update permission_doctor_role
<set>
<if
test=
"doctorId != null"
>
doctor_id = #{doctorId,jdbcType=BIGINT},
</if>
<if
test=
"hospitalId != null"
>
hospital_id = #{hospitalId,jdbcType=BIGINT},
</if>
<if
test=
"roleId != null"
>
role_id = #{roleId,jdbcType=BIGINT},
</if>
<if
test=
"deleteFlag != null"
>
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
<if
test=
"createdId != null"
>
created_id = #{createdId,jdbcType=BIGINT},
</if>
<if
test=
"createdTime != null"
>
created_time = #{createdTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"modifiedId != null"
>
modified_id = #{modifiedId,jdbcType=BIGINT},
</if>
<if
test=
"modifiedTime != null"
>
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.pica.cloud.account.account.server.entity.PermissionDoctorRole"
>
update permission_doctor_role
set doctor_id = #{doctorId,jdbcType=BIGINT},
hospital_id = #{hospitalId,jdbcType=BIGINT},
role_id = #{roleId,jdbcType=BIGINT},
delete_flag = #{deleteFlag,jdbcType=INTEGER},
created_id = #{createdId,jdbcType=BIGINT},
created_time = #{createdTime,jdbcType=TIMESTAMP},
modified_id = #{modifiedId,jdbcType=BIGINT},
modified_time = #{modifiedTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录