Commit 60d44582 by huluobin

# update

parent 7d3d1256
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
t1.create_user_id, t1.create_user_id,
t1.create_user t1.create_user
from cost_type t1 from cost_type t1
left join accounting_subject t2 on t1.accounting_subject_no = t2.subject_no left join accounting_subject t2 on t1.accounting_subject_id = t2.id
where t1.cost_template_type =#{req.costTemplateType} where t1.cost_template_type =#{req.costTemplateType}
<if test="req.accountingSubjectNo !=null"> <if test="req.accountingSubjectNo !=null">
and t1.accounting_subject_no = #{req.accountingSubjectNo} and t1.accounting_subject_no = #{req.accountingSubjectNo}
...@@ -73,9 +73,11 @@ ...@@ -73,9 +73,11 @@
</select> </select>
<select id="selectTestType" resultType="com.blt.other.database.model.CostTypeDomain"> <select id="selectTestType" resultType="com.blt.other.database.model.CostTypeDomain">
SELECT t1.* from cost_type t1 SELECT t1.*
LEFT JOIN cost_type t2 on t1.type_name =t2.type_name and t2.cost_template_type = 2 from cost_type t1
where t1.cost_template_type = 9 and t2.id is null; LEFT JOIN cost_type t2 on t1.type_name = t2.type_name and t2.cost_template_type = 2
where t1.cost_template_type = 9
and t2.id is null;
</select> </select>
......
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