xml文件修改
This commit is contained in:
parent
9ab6d1621b
commit
1b6ea7b140
|
@ -7,7 +7,7 @@
|
|||
|
||||
<!-- 插入方法的 SQL 语句 -->
|
||||
<insert id="insert" parameterType="com.jsl.oa.model.dodata.ProjectDailyDO">
|
||||
insert into oa_project_daily
|
||||
insert into organize_oa.oa_project_daily
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
|
@ -27,19 +27,19 @@
|
|||
|
||||
<select id="getProjectDailyByUser" parameterType="java.lang.Long"
|
||||
resultType="com.jsl.oa.model.dodata.ProjectDailyDO">
|
||||
select * from oa_project_daily where user_id = #{uid}
|
||||
select * from organize_oa.oa_project_daily where user_id = #{uid}
|
||||
and is_delete = 0
|
||||
</select>
|
||||
|
||||
<select id="getProjectDailyByProject" parameterType="java.lang.Long"
|
||||
resultType="com.jsl.oa.model.dodata.ProjectDailyDO">
|
||||
select * from oa_project_daily where user_id = #{pid}
|
||||
select * from organize_oa.oa_project_daily where user_id = #{pid}
|
||||
and is_delete = 0
|
||||
</select>
|
||||
|
||||
<select id="getProjectDailyByProjectAndTime" parameterType="java.util.Map"
|
||||
resultType="com.jsl.oa.model.dodata.ProjectDailyDO">
|
||||
select * from oa_project_daily
|
||||
select * from organize_oa.oa_project_daily
|
||||
where project_id = #{id}
|
||||
and created_at between #{beginTime} and #{endTime}
|
||||
and is_delete = 0
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
<select id="getProjectDailyByUserAndTime" parameterType="java.util.Map"
|
||||
resultType="com.jsl.oa.model.dodata.ProjectDailyDO">
|
||||
select * from oa_project_daily
|
||||
select * from organize_oa.oa_project_daily
|
||||
where user_id = #{userId}
|
||||
and created_at between #{beginTime} and #{endTime}
|
||||
and is_delete = 0
|
||||
|
@ -56,19 +56,19 @@
|
|||
|
||||
<select id="getDailyById" parameterType="java.lang.Integer"
|
||||
resultType="com.jsl.oa.model.dodata.ProjectDailyDO">
|
||||
select * from oa_project_daily
|
||||
select * from organize_oa.oa_project_daily
|
||||
where id = #{id}
|
||||
and is_delete = 0
|
||||
</select>
|
||||
|
||||
<delete id="deleteDailyById" parameterType="java.lang.Integer">
|
||||
UPDATE oa_project_daily
|
||||
UPDATE organize_oa.oa_project_daily
|
||||
SET is_delete = 1
|
||||
WHERE id = #{id}
|
||||
</delete>
|
||||
|
||||
<update id="updateDaily" parameterType="com.jsl.oa.model.dodata.ProjectDailyDO">
|
||||
UPDATE oa_project_daily
|
||||
UPDATE organize_oa.oa_project_daily
|
||||
<set>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
|
|
Loading…
Reference in New Issue
Block a user