Explorar el Código

解决SQL语法错误

bruce hace 2 años
padre
commit
3173f636c9

+ 1 - 1
imcs-bt-be/imcs-authority-controller/src/main/java/com/github/zuihou/authority/controller/core/OrgController.java

@@ -71,7 +71,7 @@ public class OrgController extends SuperCacheController<OrgService, Long, Org, O
         // 1 修改组织
         Org org = BeanPlusUtil.toBean(model, Org.class);
         fillOrg(org);
-        this.baseService.updateAllById(org);
+        this.baseService.updateById(org);
 
         // 2 保存所属区域
         // 2.1 删除老数据

+ 0 - 1
imcs-bt-be/imcs-business-biz/src/main/resources/mapper_business/base/productionresource/ProductionresourceMapper.xml

@@ -108,7 +108,6 @@
       LEFT JOIN bt_goods_cate gc ON g.goods_cate_id = gc.id
       LEFT JOIN bt_spe s ON s.goods_id = g.id
       WHERE eg.equ_id = #{equId}
-      GROUP BY g.id
     </select>
 
     <select id="getEquLockCount" resultType="Integer">