客户案例修改

This commit is contained in:
xiezhijun
2021-03-19 16:02:12 +08:00
parent 88f6b8e955
commit 8c3eb7ab9c
10 changed files with 185 additions and 27 deletions

View File

@ -20,6 +20,8 @@ public class SysCustomerCase extends BaseEntity
/** $column.columnComment */
private Long id;
private Long[] ids;
/** 案例名称 */
@Excel(name = "案例名称")
private String name;
@ -37,7 +39,7 @@ public class SysCustomerCase extends BaseEntity
private String customerName;
//是否显示到微信小程序
private Integer wxShow;
private Boolean wxShow;
/** 删除标识 0未删除 1已删除默认0 */
private Long delFlag;

View File

@ -7,7 +7,7 @@ import java.util.List;
@Data
public class CustomerCaseResponse {
private Long id;
private String id;
private String name;
@ -15,5 +15,7 @@ public class CustomerCaseResponse {
private String remark;
private Boolean wxShow;
private List<String> fileList;
}

View File

@ -2,6 +2,8 @@ package com.stdiet.custom.mapper;
import java.util.List;
import com.stdiet.custom.domain.SysCustomerCase;
import com.stdiet.custom.dto.response.CustomerCaseResponse;
import org.apache.ibatis.annotations.Param;
/**
* 客户案例管理Mapper接口
@ -58,4 +60,19 @@ public interface SysCustomerCaseMapper
* @return 结果
*/
public int deleteSysCustomerCaseByIds(Long[] ids);
/**
* 查询微信小程序上展示的客户案例
* @param sysCustomerCase
* @return
*/
public List<CustomerCaseResponse> getWxCustomerCaseList(SysCustomerCase sysCustomerCase);
/**
* 更新微信展示状态
* @param wxShow 是否展示 0不展示 1展示
* @param ids id数组
* @return
*/
public int updateWxShowByIds(@Param("wxShow")Integer wxShow, @Param("array") Long[] ids);
}

View File

@ -3,6 +3,7 @@ package com.stdiet.custom.service;
import java.util.List;
import com.stdiet.custom.domain.SysCustomerCase;
import com.stdiet.custom.domain.SysCustomerCaseFile;
import com.stdiet.custom.dto.response.CustomerCaseResponse;
/**
* 客户案例管理Service接口
@ -66,4 +67,19 @@ public interface ISysCustomerCaseService {
*/
List<SysCustomerCaseFile> getFileListByCaseId(Long caseId);
/**
* 查询微信小程序上展示的客户案例
* @param sysCustomerCase
* @return
*/
List<CustomerCaseResponse> getWxCustomerCaseList(SysCustomerCase sysCustomerCase);
/**
* 更新微信展示状态
* @param wxShow 是否展示 0不展示 1展示
* @param ids id数组
* @return
*/
int updateWxShowByIds(Integer wxShow, Long[] ids);
}

View File

@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.List;
import com.stdiet.common.utils.DateUtils;
import com.stdiet.custom.domain.SysCustomerCaseFile;
import com.stdiet.custom.dto.response.CustomerCaseResponse;
import com.stdiet.custom.mapper.SysCustomerCaseFileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -154,7 +155,29 @@ public class SysCustomerCaseServiceImpl implements ISysCustomerCaseService
* @param caseId
* @return
*/
@Override
public List<SysCustomerCaseFile> getFileListByCaseId(Long caseId){
return sysCustomerCaseFileMapper.selectSysCustomerCaseFileListByCaseId(caseId);
}
/**
* 查询微信小程序上展示的客户案例
* @param sysCustomerCase
* @return
*/
@Override
public List<CustomerCaseResponse> getWxCustomerCaseList(SysCustomerCase sysCustomerCase){
return sysCustomerCaseMapper.getWxCustomerCaseList(sysCustomerCase);
}
/**
* 更新微信展示状态
* @param wxShow 是否展示 0不展示 1展示
* @param ids id数组
* @return
*/
@Override
public int updateWxShowByIds(Integer wxShow, Long[] ids){
return sysCustomerCaseMapper.updateWxShowByIds(wxShow, ids);
}
}