xuhy
2025-12-05 8863a7e9904ebe8f11afcb17915bce23c56ddf2d
bug修改
2个文件已修改
19 ■■■■■ 已修改文件
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TCrmSupplierController.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/resources/mapper/system/TCrmBranchMapper.xml 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TCrmSupplierController.java
@@ -104,6 +104,9 @@
    @GetMapping(value = "/getDetailById")
    public R<TCrmSupplierVO> getDetailById(@RequestParam String id) {
        TCrmSupplier crmSupplier = crmSupplierService.getById(id);
        if(Objects.isNull(crmSupplier)){
            return R.fail("供应商不存在");
        }
        TCrmSupplierVO crmSupplierVO = new TCrmSupplierVO();
        BeanUtils.copyProperties(crmSupplier, crmSupplierVO);
        // 查询仓库
ruoyi-system/src/main/resources/mapper/system/TCrmBranchMapper.xml
@@ -108,15 +108,13 @@
            <if test="query.phone != null and query.phone != ''">
                and phone like concat('%',#{query.phone},'%')
            </if>
            <if test="query.status != null">
                and status = #{query.status}
            </if>
            <if test="query.roleType != null and query.roleType == 1">
                and audit_status in (1,3)
            <if test="query.auditStatus != null">
                and audit_status = #{query.auditStatus}
            </if>
            <if test="query.branchId != null and query.branchId != ''">
                and province_branch_id = #{query.branchId}
            </if>
            and audit_status in (1,3)
            AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY create_time DESC
@@ -157,15 +155,13 @@
            <if test="query.phone != null and query.phone != ''">
                and phone like concat('%',#{query.phone},'%')
            </if>
            <if test="query.status != null">
                and status = #{query.status}
            </if>
            <if test="query.roleType != null and query.roleType == 1">
                and audit_status in (1,3)
            <if test="query.auditStatus != null">
                and audit_status = #{query.auditStatus}
            </if>
            <if test="query.branchId != null and query.branchId != ''">
                and province_branch_id = #{query.branchId}
            </if>
            and audit_status in (1,3)
            AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY create_time DESC