liujie
2025-12-09 ad7bd79d6987e229b374e489ebf798c999d934c1
修改bug
2个文件已修改
3 ■■■■■ 已修改文件
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TErpGoodsController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml 1 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TErpGoodsController.java
@@ -480,7 +480,7 @@
        if (dto.getState() == 1 && goods.getClinicPurchasePrice() == null) {
            return R.fail("操作失败,请设置供应商分佣比例后再启用");
        }
        if (dto.getState() == 1 && goods.getStateUser() == 1 && user.getRoleType() == 5) {
        if (dto.getState() == 1 && goods.getStateUser() == 1 && user.getRoleType() == 4) {
            return R.fail("操作失败,平台禁用商品不可启用");
        }
        if (user.getRoleType() == 1) {
ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml
@@ -74,6 +74,7 @@
        t1.content,
        t1.content_state,
        t1.content_remark,
        t1.state_remark,
        case t1.goods_source
        when 1 then t2.supplier_name
        when 2 then t1.supplier_name