| | |
| | | and del_flag = '0' |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectProcessRouteStandardTimeData" parameterType="String" resultType="com.alibaba.fastjson2.JSONObject"> |
| | | select hd.item_code,sum(standard_time) as standardTime,hd.org_code |
| | | from aps_standard_process_route_line as ln |
| | | left join aps_standard_process_route_header as hd on ln.route_id=hd.route_id |
| | | where ln.del_flag='0' and hd.del_flag='0' |
| | | <if test="orgCode != null and orgCode != ''"> |
| | | and hd.org_code = #{orgCode} |
| | | </if> |
| | | group by hd.item_code,hd.org_code |
| | | </select> |
| | | </mapper> |