作者 xudada

出场站失效所有通道

... ... @@ -383,7 +383,11 @@ public class LiftBar {
logic.listService.updateById(list);
//进出场申请业务表对应场站的卡口失效
logic.listService.updateisvalid(list.getTrailerFrameNo(),list.getBarcode(),list.getEndstation(),list.getTurnoverflag());
if("I".equals(info.getIetype())){
logic.listService.updateisvalid(list.getTrailerFrameNo(),list.getBarcode(),list.getEndstation(),list.getTurnoverflag());
}else{
logic.listService.updateisvalid(list.getTrailerFrameNo(),list.getBarcode(),list.getEndstation(),null);
}
//判断是否为最后一个场站,若是最后个场站申请为出,二维码失效
int count=logic.listService.selectlaststation(list.getTrailerFrameNo(),list.getBarcode());
... ...
... ... @@ -87,7 +87,9 @@
TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR}
and BARCODE = #{barcode,jdbcType=VARCHAR}
and ENDSTATION = #{endstation,jdbcType=VARCHAR}
and TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR}
<if test="turnoverflag != null and turnoverflag!=''">
TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR}
</if>
</update>
<select id="selectlaststation" resultType="java.lang.Integer">
select count(*) from land_businesstype_list where
... ...