跟踪记录增加批次范围查询

master
董哲奇 4 weeks ago
parent 6f9d3a7214
commit 97917f3fd0

@ -34,8 +34,8 @@ public class YdjhzzController {
@ApiOperation(value = "查询")
@PostMapping(value = "/getList")
public ResultBean getList(@RequestParam String ch) {
List<Ydjhzz> list=mapper.getYdjhzz(ch);
public ResultBean getList(@RequestParam String ch,String dcpl,String dcpl1) {
List<Ydjhzz> list=mapper.getYdjhzz(ch,dcpl,dcpl1);
return new ResultBean(list);
}

@ -87,7 +87,7 @@ public interface DmYdjhMapper extends BaseMapper<DmYdjh> {
void updatezyq(String dcch,String dcpl);
Map<String,Object> getMPSYCLJLJBP(String dcCh,String tzbh);
List<Ydjhzz> getYdjhzz(String ch);
List<Ydjhzz> getYdjhzz(String ch,String dcpl,String dcpl1);
RjhDto getRjh(String date);
RjhDto getSyRwc(String yf,Double num);
RjhDto getByRjh(String yf,Double num);

@ -1347,8 +1347,6 @@ where dm_ydjh.DC_CH=#{dcch} and dm_ydjh.dc_pl=#{dcpl}
<result column="bcshzl_dflj" property="bcshzl_dflj"/>
</resultMap>
<select id="getYdjhzz" resultMap="ZZResultMap">
SELECT
RTRIM(DM_BCLQJBP.DC_CH) AS dc_ch,
RTRIM(DM_BCLQJBP.DC_PL) AS dc_pl,
@ -1542,11 +1540,22 @@ where dm_ydjh.DC_CH=#{dcch} and dm_ydjh.dc_pl=#{dcpl}
CAST(SUM(CASE WHEN DM_BCLQMXP.DELX_z='X' and DM_BCLQMXP.WPMC not in ('球扁钢','角钢') THEN isnull( DM_BCLQMXP.ljzl,0) ELSE 0 END)/1000 as decimal(18,1)) as 方钢零件重量
FROM DM_BCLQJBP,DM_BCLQMXP left join DM_WPJBP on DM_BCLQMXP.WPH = DM_WPJBP.WPH
WHERE DM_BCLQMXP.LQBH = DM_BCLQJBP.LQBH and DM_BCLQJBP.DC_CH=#{ch}
WHERE
DM_BCLQMXP.LQBH = DM_BCLQJBP.LQBH and DM_BCLQJBP.DC_CH=#{ch}
<if test=" dcpl!=null and dcpl!='' and (dcpl1==null or dcpl1=='')">
and DM_BCLQJBP.dc_pl=#{dcpl}
</if>
<if test=" dcpl!=null and dcpl!='' and dcpl1!=null and dcpl1!=''">
and DM_BCLQJBP.dc_pl>=#{dcpl} and DM_BCLQJBP.dc_pl&lt;=#{dcpl1}
</if>
<if test=" (dcpl==null or dcpl=='') and dcpl1!=null and dcpl1!=''">
and DM_BCLQJBP.dc_pl&lt;=#{dcpl1}
</if>
GROUP BY DM_BCLQJBP.DC_CH,DM_BCLQJBP.DC_PL,DM_BCLQJBP.DC_FD
ORDER BY DM_BCLQJBP.DC_CH,DM_BCLQJBP.DC_PL
</select>
<select id="getYdjhzz1" resultMap="ZZResultMap">
SELECT

Loading…
Cancel
Save