| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.chinaitop.depot.yjbj.mapper.YjbjMapper" >
- <!-- 监控设备故障数据查询 -->
- <select id="selectJksbgz" resultType="com.chinaitop.depot.yjbj.model.Jksbgz" parameterType="map">
- select
- id, kdmc, jkdmc, gzlx, cxts, lxsj, bjsj, org_id orgId, is_alarm isAlarm
- from storage_monitoring_alarm
- <where>
- <if test="obj.jkdmc != null">
- and jkdmc like #{obj.jkdmc,jdbcType=VARCHAR}
- </if>
- <if test="obj.orgId != null">
- and org_id = #{obj.orgId,jdbcType=INTEGER}
- </if>
- </where>
- order by bjsj desc
- </select>
- <!-- 同号牌入库预警数据查询 -->
- <select id="selectThprkyj" resultType="com.chinaitop.depot.yjbj.model.Thprkyj" parameterType="map">
- select
- id, kqmc, rkcl, bjnr, zy_kqmc zyKqmc, bjsj, org_id orgId
- from storage_alarm_same_license
- <where>
- <if test="obj.rkcl != null">
- and rkcl like #{obj.rkcl,jdbcType=VARCHAR}
- </if>
- <if test="obj.orgId != null">
- and org_id = #{obj.orgId,jdbcType=INTEGER}
- </if>
- </where>
- order by bjsj desc
- </select>
- <!-- 化验不合格车辆再入库预警数据查询 -->
- <select id="selectHybhgclzrkyj" resultType="com.chinaitop.depot.yjbj.model.Hybhgclzrkyj" parameterType="map">
- select
- id, kqmc, rkcl, pzmc, scrk_kqmc scrkKqmc, scrk_jysj scrkJysj,
- sfrmdj, rkdj_username rkdjUsername, rkdj_sj rkdjSj,
- bjsj, org_id orgId
- from storage_alarm_unqualified_vehicles
- <where>
- <if test="obj.rkcl != null">
- and rkcl like #{obj.rkcl,jdbcType=VARCHAR}
- </if>
- <if test="obj.orgId != null">
- and org_id = #{obj.orgId,jdbcType=INTEGER}
- </if>
- </where>
- order by bjsj desc
- </select>
- <!-- 在库异常报警数据查询 -->
- <select id="selectZkycbj" resultType="com.chinaitop.depot.yjbj.model.Zkycbj" parameterType="map">
- select
- id, kqmc, rmcl, rmsj, ecczsj, cmsj, bjsj, djr, org_id orgId
- from storage_alarm_inventory_abnormality
- <where>
- <if test="obj.rmcl != null">
- and rmcl like #{obj.rmcl,jdbcType=VARCHAR}
- </if>
- <if test="obj.orgId != null">
- and org_id = #{obj.orgId,jdbcType=INTEGER}
- </if>
- </where>
- order by bjsj desc
- </select>
- <!-- 检验报告超期预警数据查询 -->
- <select id="selectJybgcqyj" resultType="com.chinaitop.depot.yjbj.model.Jybgcqyj" parameterType="map">
- select
- id, tzdbh, cfmc, pzmc, lsxzmc, jhsl, sysl, jssj, bjsj, yjlx, approval_status_name approvalStatusName, org_id orgId
- from storage_report_overdue_alarm
- <where>
- <if test="obj.cfmc != null">
- and cfmc like #{obj.cfmc,jdbcType=VARCHAR}
- </if>
- <if test="obj.orgId != null">
- and org_id = #{obj.orgId,jdbcType=INTEGER}
- </if>
- </where>
- order by bjsj desc
- </select>
- <!-- 超耗报警数据查询 -->
- <select id="selectChbj" resultType="com.chinaitop.depot.yjbj.model.Chbj" parameterType="map">
- select
- id, cforyg, cfygmc, hwmc, pzmc, lsxzmc, cksj, rksl, cksl, sjccshsl, chsl, bjsj, org_id orgId
- from storage_profitloss_statement_alarm
- <where>
- <if test="obj.cforyg != null">
- and cforyg = #{obj.cforyg,jdbcType=VARCHAR}
- </if>
- <if test="obj.orgId != null">
- and org_id = #{obj.orgId,jdbcType=INTEGER}
- </if>
- </where>
- order by bjsj desc
- </select>
- <!-- 质量报警数据查询 -->
- <select id="selectZlbj" resultType="com.chinaitop.depot.yjbj.model.Zlbj" parameterType="map">
- select
- id,cfmc,hwmc, pzmc, lyxzmc, decode(0, crklx, '入库质检', '出库质检') crklx,
- yjxx, bjsj, approval_status_name approvalStatusName, org_id orgId
- from storage_quality_alarm
- <where>
- <if test="obj.cfmc != null">
- and cfmc like #{obj.cfmc,jdbcType=VARCHAR}
- </if>
- <if test="obj.orgId != null">
- and org_id = #{obj.orgId,jdbcType=INTEGER}
- </if>
- </where>
- order by bjsj desc
- </select>
- </mapper>
|