|
@@ -90,10 +90,6 @@
|
|
|
AND record.handler_id = user.id
|
|
|
AND nodeInstance.deleted = 0
|
|
|
AND record.instance_id = nodeInstance.id
|
|
|
- # 根据处理节点查询(节点code)
|
|
|
- <if test="assetsSelectDTO != null and assetsSelectDTO.nodeCode != null and assetsSelectDTO.nodeCode != '' ">
|
|
|
- AND node.`code` = #{assetsSelectDTO.nodeCode}
|
|
|
- </if>
|
|
|
) AS nodeInfo ON nodeInfo.businessId = assets.id
|
|
|
WHERE assets.deleted = 0
|
|
|
#评估业务类别(业务类型)查询
|
|
@@ -117,6 +113,10 @@
|
|
|
customer.name LIKE CONCAT('%',#{assetsSelectDTO.keyWord},'%')
|
|
|
)
|
|
|
</if>
|
|
|
+ # 根据处理节点查询(节点code)
|
|
|
+ <if test="assetsSelectDTO != null and assetsSelectDTO.nodeCode != null and assetsSelectDTO.nodeCode != '' ">
|
|
|
+ AND nodeInfo.currentNodeCode = #{assetsSelectDTO.nodeCode}
|
|
|
+ </if>
|
|
|
ORDER BY assets.created DESC
|
|
|
</select>
|
|
|
|
|
@@ -266,9 +266,9 @@
|
|
|
bank_address,
|
|
|
bank_tel
|
|
|
FROM order_fund
|
|
|
- LEFT JOIN finance_invoice ON finance_invoice.order_fund_id = order_fund.id
|
|
|
+ LEFT JOIN finance_invoice ON finance_invoice.order_fund_id = order_fund.id
|
|
|
WHERE order_fund.business_id = #{id}
|
|
|
- AND order_fund.deleted = 0
|
|
|
+ AND order_fund.deleted = 0
|
|
|
</select>
|
|
|
|
|
|
<!--根据业务类型与取号类型获取业务取号信息-->
|
|
@@ -276,15 +276,15 @@
|
|
|
SELECT id, year, month, next_no
|
|
|
FROM business_number
|
|
|
WHERE take_type = #{takeType}
|
|
|
- AND business_type = #{businessType}
|
|
|
- AND year = #{year}
|
|
|
- AND deleted = 0
|
|
|
+ AND business_type = #{businessType}
|
|
|
+ AND year = #{year}
|
|
|
+ AND deleted = 0
|
|
|
</select>
|
|
|
|
|
|
<!--新增取号信息-->
|
|
|
<insert id="addBusinessNum">
|
|
|
INSERT INTO business_number(id, take_type, business_type, year, month, next_no)
|
|
|
- VALUE (NULL, #{takeType}, #{businessType}, #{year}, #{month}, #{nextNo})
|
|
|
+ VALUE (NULL, #{takeType}, #{businessType}, #{year}, #{month}, #{nextNo})
|
|
|
</insert>
|
|
|
|
|
|
<!--更新取号信息-->
|
|
@@ -296,4 +296,4 @@
|
|
|
</update>
|
|
|
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|