Commit f656474d authored by eddie.woo's avatar eddie.woo

merge

parent 81420c55
...@@ -259,4 +259,6 @@ public interface ProjectMapper extends MyMapper { ...@@ -259,4 +259,6 @@ public interface ProjectMapper extends MyMapper {
* @return * @return
*/ */
public List<TemplateQueryDto> getTemplateCode(@Param("type")String type, @Param("name")String name); public List<TemplateQueryDto> getTemplateCode(@Param("type")String type, @Param("name")String name);
int insertOnWhere(Project record);
} }
\ No newline at end of file
...@@ -47,7 +47,32 @@ ...@@ -47,7 +47,32 @@
and o.parent_id = #{orgId,jdbcType=VARCHAR} and o.parent_id = #{orgId,jdbcType=VARCHAR}
</select> </select>
<insert id="insertOnWhere" parameterType="pwc.taxtech.atms.entity.Project">
<select id="getTemplateCode" resultType="pwc.taxtech.atms.entity.TemplateQueryDto">
SELECT
*
FROM
(SELECT
t.code,
t.name,
p.`pay_tax_type`
FROM
template t
LEFT JOIN template_group p
ON p.id = t.template_group_id) m
WHERE 1 = 1
<if test="name != null and name != '' ">
AND m.name = #{name}
</if>
<if test="type != null and type != '' ">
AND m.pay_tax_type = #{type}
</if>
</select>
<insert id="insertOnWhere" parameterType="pwc.taxtech.atms.entity.Project">
insert into project (id, code, name, insert into project (id, code, name,
year, client_code, is_active, year, client_code, is_active,
create_time, update_time, region_id, create_time, update_time, region_id,
...@@ -74,33 +99,7 @@ ...@@ -74,33 +99,7 @@
is_active = 1 is_active = 1
) )
<<<<<<< HEAD
</insert> </insert>
=======
<select id="getTemplateCode" resultType="pwc.taxtech.atms.entity.TemplateQueryDto">
>>>>>>> 0e707ae17266bb0035246f93c27c44ccbf687b27
SELECT
*
FROM
(SELECT
t.code,
t.name,
p.`pay_tax_type`
FROM
template t
LEFT JOIN template_group p
ON p.id = t.template_group_id) m
WHERE 1 = 1
<if test="name != null and name != '' ">
AND m.name = #{name}
</if>
<if test="type != null and type != '' ">
AND m.pay_tax_type = #{type}
</if>
</select>
</mapper> </mapper>
\ No newline at end of file
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