|
@@ -33,8 +33,8 @@
|
|
|
<if test="collectDTO.responsibilityCode != null and collectDTO.responsibilityCode != ''">
|
|
|
and responsibility_code = #{collectDTO.responsibilityCode}
|
|
|
</if>
|
|
|
- <if test="collectDTO.accountingCode != null and collectDTO.accountingCode != ''">
|
|
|
- and accounting_code = #{collectDTO.accountingCode}
|
|
|
+ <if test="collectDTO.productCode != null and collectDTO.productCode != ''">
|
|
|
+ and product_code = #{collectDTO.productCode}
|
|
|
</if>
|
|
|
limit #{collectDTO.current},#{collectDTO.pageSize};
|
|
|
</select>
|
|
@@ -48,8 +48,8 @@
|
|
|
<if test="collectDTO.responsibilityCode != null and collectDTO.responsibilityCode != ''">
|
|
|
and responsibility_code = #{collectDTO.responsibilityCode}
|
|
|
</if>
|
|
|
- <if test="collectDTO.accountingCode != null and collectDTO.accountingCode != ''">
|
|
|
- and accounting_code = #{collectDTO.accountingCode}
|
|
|
+ <if test="collectDTO.productCode != null and collectDTO.productCode != ''">
|
|
|
+ and product_code = #{collectDTO.productCode}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
@@ -62,8 +62,8 @@
|
|
|
<if test="collectDTO.responsibilityCode != null and collectDTO.responsibilityCode != ''">
|
|
|
and responsibility_code = #{collectDTO.responsibilityCode}
|
|
|
</if>
|
|
|
- <if test="collectDTO.accountingCode != null and collectDTO.accountingCode != ''">
|
|
|
- and accounting_code = #{collectDTO.accountingCode}
|
|
|
+ <if test="collectDTO.productCode != null and collectDTO.productCode != ''">
|
|
|
+ and product_code = #{collectDTO.productCode}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
@@ -93,8 +93,8 @@
|
|
|
<select id="getAccount" resultType="com.imed.costaccount.model.vo.CodeAndNameVO">
|
|
|
select accounting_code as code ,accounting_name as name from cost_income_collection
|
|
|
where delete_time = 0 and hosp_id = #{hospId}
|
|
|
- <if test="accountingCode != null and accountingCode != ''">
|
|
|
- and accounting_code = #{accountingCode}
|
|
|
+ <if test="productCode != null and productCode != ''">
|
|
|
+ and product_code = #{productCode}
|
|
|
</if>
|
|
|
<if test="date != null and date != ''">
|
|
|
and `year` = YEAR(concat(#{date},'01')) and `month` = MONTH(concat(#{date},'01'))
|