提交 da27c9d2 作者: xiaowang

更新

上级 cfe97027
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
</insert> </insert>
<select id="countId" resultType="java.lang.Integer"> <select id="countId" resultType="java.lang.Integer">
select count(*) select count(*)
from license_organizations from license_organizations
...@@ -94,17 +93,11 @@ ...@@ -94,17 +93,11 @@
</update> </update>
<insert id="insertProject" useGeneratedKeys="true" keyProperty="id" <insert id="insertProject" useGeneratedKeys="true" keyProperty="id"
parameterType="com.mmc.csf.release.entity.licence.LicenseOrganizationsDO"> parameterType="com.mmc.csf.release.entity.licence.LicenseOrganizationsDO">
insert into license_training_programs(grade_id, models_id, type_id, price, place, main_image, create_time, insert into license_training_programs(grade_id, models_id, type_id, price, place, main_image, create_time,
update_time,org_id) update_time, org_id)
values (#{gradeId}, #{modelsId}, #{typeId}, #{price}, #{place}, #{mainImage}, NOW(), NOW(),#{orgId}) values (#{gradeId}, #{modelsId}, #{typeId}, #{price}, #{place}, #{mainImage}, NOW(), NOW(), #{orgId})
</insert> </insert>
<update id="updateProject" parameterType="com.mmc.csf.release.entity.licence.LicenseTrainingProgramsDO"> <update id="updateProject" parameterType="com.mmc.csf.release.entity.licence.LicenseTrainingProgramsDO">
...@@ -197,7 +190,7 @@ ...@@ -197,7 +190,7 @@
LEFT JOIN licence_scale ls ON lo.scale_id = ls.id LEFT JOIN licence_scale ls ON lo.scale_id = ls.id
where 1=1 where 1=1
<if test=" name != null and name != '' "> <if test=" name != null and name != '' ">
and lo.`name` =#{name} and lo.`name` like CONCAT('%',#{name},'%')
</if> </if>
<if test=" startTime != null and startTime != '' and endTime != null and endTime != '' "> <if test=" startTime != null and startTime != '' and endTime != null and endTime != '' ">
and DATE_FORMAT(create_time,'%Y-%m-%d') BETWEEN #{startTime} and #{endTime} and DATE_FORMAT(create_time,'%Y-%m-%d') BETWEEN #{startTime} and #{endTime}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论