Commit b6bbaf5c authored by zhengyi's avatar zhengyi

sql修正

parent 0e7b5c10
......@@ -154,9 +154,9 @@ public interface WarehouseMapper extends BaseMapperX<WarehouseDO> {
"LEFT JOIN ecw_region r2 ",
"ON w.shi = r2.id ",
"WHERE w.deleted = 0 AND w.`status` =0 ",
"<when test= 'tradeType != null'>",
"AND trade_type =#{tradeType}",
"</when>",
"<if test= 'tradeType != null'>",
"AND w.`trade_type` =#{tradeType}",
"</if>",
"</script>"
})
List<WarehouseTreeVO> getWarehouseTreeList(@Param("tradeType") Integer tradeType);
......@@ -172,7 +172,7 @@ public interface WarehouseMapper extends BaseMapperX<WarehouseDO> {
"ON w.guojia = r1.id ",
"LEFT JOIN ecw_region r2 ",
"ON w.shi = r2.id ",
"WHERE w.deleted = 0 AND w.`status` =0 AND trade_type =1 ",
"WHERE w.deleted = 0 AND w.`status` =0 AND w.`trade_type` =1 ",
"<when test = 'type == 1'>",
"GROUP BY r1.title_zh",
"</when>",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment