first commit

This commit is contained in:
2025-02-20 15:14:38 +08:00
commit 70e3764011
1113 changed files with 107789 additions and 0 deletions
@@ -0,0 +1,38 @@
package lingtao.net.dao;
import java.util.List;
import lingtao.net.bean.Article;
import lingtao.net.bean.ArticleExample;
import org.apache.ibatis.annotations.Param;
public interface ArticleMapper {
long countByExample(ArticleExample example);
int deleteByExample(ArticleExample example);
int deleteByPrimaryKey(Integer id);
int insert(Article record);
int insertSelective(Article record);
List<Article> selectByExampleWithBLOBs(ArticleExample example);
List<Article> selectByExample(ArticleExample example);
Article selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Article record, @Param("example") ArticleExample example);
int updateByExampleWithBLOBs(@Param("record") Article record, @Param("example") ArticleExample example);
int updateByExample(@Param("record") Article record, @Param("example") ArticleExample example);
int updateByPrimaryKeySelective(Article record);
int updateByPrimaryKeyWithBLOBs(Article record);
int updateByPrimaryKey(Article record);
List<Article> getArticle(Article article);
}
@@ -0,0 +1,12 @@
package lingtao.net.dao;
import java.util.List;
import lingtao.net.bean.Bug;
public interface BugMapper {
List<Bug> getBugs(Bug bug);
int addBug(Bug bug);
}
@@ -0,0 +1,21 @@
package lingtao.net.dao;
import java.io.Serializable;
import java.util.List;
public interface CommonDao<E, PK extends Serializable> {
public List<E> getAll();
public E get(PK id);
public void add(E user);
public void delete(PK id);
public void batchDelete(PK[] ids);
public void update(E user);
public List<E> getList(E condition);
}
@@ -0,0 +1,23 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import lingtao.net.bean.CustomerAward;
@Mapper
public interface CustomerAwardMapper {
void insertForeach(List<CustomerAward> list);
List<CustomerAward> getCustomerAward(CustomerAward customerAward);
// 批量删除
public void deleteBatch(int[] ints);
@Select("select distinct shopname from tbl_customer_award")
List<String> getArardShopname();
}
@@ -0,0 +1,28 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import lingtao.net.bean.CustomerData;
public interface CustomerDataMapper {
List<CustomerData> getCustomerDatas(CustomerData customerData);
void addCustomerData(CustomerData customerData);
void updateCustomerDataById(CustomerData customerData);
void deleteCustomerDataById(Integer id);
void updateCommentManager(CustomerData customerData);
@Update("UPDATE tbl_customer_data SET isBuy = '1',completeDate = now() WHERE id = #{id} ")
void changeIsBuy(@Param("id") Integer id);
List<String> getProductExplain(@Param("productExplain") String productExplain, @Param("username") String username);
}
@@ -0,0 +1,43 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import lingtao.net.bean.CustomerTrainContent;
import lingtao.net.bean.CustomerTrainKindLabel;
import lingtao.net.bean.CustomerTrainProType;
@Mapper
public interface CustomerTrainMapper {
List<CustomerTrainContent> getCustomerTrainContents(CustomerTrainContent customerTrainContent);
void addCustomerTrainContent(CustomerTrainContent customerTrainContent);
void updateCustomerTrainContentById(CustomerTrainContent customerTrainContent);
@Update("update t_customer_knowledge_content set sort = #{sort} where id = #{id}")
void updateCustomerTrainContentSort(@Param("id") int id, @Param("sort") int sort);
void deleteCustomerTrainContentById(Integer id);
List<CustomerTrainProType> getCustomerTrainProTypes(CustomerTrainProType customerTrainProType);
void addCustomerTrainProType(CustomerTrainProType customerTrainProType);
void updateCustomerTrainProTypeById(CustomerTrainProType customerTrainProType);
void deleteCustomerTrainProTypeById(Integer id);
List<CustomerTrainKindLabel> getCustomerTrainKindLabelsByProType(CustomerTrainKindLabel customerTrainKindLabel);
void addCustomerTrainKindLabel(CustomerTrainKindLabel customerTrainKindLabel);
void updateCustomerTrainKindLabelById(CustomerTrainKindLabel customerTrainKindLabel);
void deleteCustomerTrainKindLabelById(Integer id);
}
@@ -0,0 +1,33 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import lingtao.net.bean.ExpressFee;
public interface ExpressFeeMapper {
List<ExpressFee> getExpressFees(ExpressFee expressFee);
void addExpressFee(ExpressFee expressFee);
void updateExpressFeeById(ExpressFee expressFee);
void deleteExpressFeeById(Integer id);
List<ExpressFee> getShortAnswers();
@Select("select * from tbl_express_fee where pro_type_value = '999' order by id")
List<ExpressFee> getAllExpressFees(ExpressFee expressFee);
@Select("select * from tbl_express_fee where pro_type_value = '11' order by id")
List<ExpressFee> getHandBagExpressFees(ExpressFee expressFee);
@Select("select * from tbl_express_fee where pro_type_value = '6,7,8' order by id")
List<ExpressFee> getTaoExpressFees(ExpressFee expressFee);
@Select("select * from tbl_express_fee where pro_type_value = '0' order by id")
List<ExpressFee> getOtherExpressFees(ExpressFee expressFee);
}
@@ -0,0 +1,26 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import lingtao.net.bean.Finance;
@Mapper
public interface Finance2Mapper {
List<Finance> getFinance(Finance finance);
void insertForeach(List<Finance> list);
// 查询数据是否存在,避免重复上传
String checkAccountNumber(@Param("orderNumber") String orderNumber);
List<String> getAllFilename(@Param("creator") String creator);
@Delete("delete from tbl_sys_finance where filename = #{filename} and creator = #{realname}")
void deleteDataByFilename(@Param("filename") String filename, @Param("realname") String realname);
}
@@ -0,0 +1,52 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import lingtao.net.bean.Finance;
@Mapper
public interface Finance3Mapper {
List<Finance> getFinance(Finance finance);
List<Finance> getFinance4(Finance finance);
List<Finance> getFinance5(Finance finance);
void insertForeach(List<Finance> list);
void insertForeach4(List<Finance> list);
void insertForeach5(List<Finance> list);
// 查询数据是否存在,避免重复上传
String checkAccountNumber(@Param("orderNumber") String orderNumber);
String checkAccountNumber4(@Param("orderNumber") String orderNumber);
String checkAccountNumber5(@Param("orderNumber") String orderNumber);
List<String> getAllFilename(@Param("creator") String creator);
List<String> getAllFilename4(@Param("creator") String creator);
List<String> getAllFilename5(@Param("creator") String creator);
@Delete("delete from tbl_sys_finance3 where filename = #{filename} and creator = #{realname}")
void deleteDataByFilename(@Param("filename") String filename, @Param("realname") String realname);
@Delete("delete from tbl_sys_finance4 where filename = #{filename} and creator = #{realname}")
void deleteDataByFilename4(@Param("filename") String filename, @Param("realname") String realname);
@Delete("delete from tbl_sys_finance5 where filename = #{filename} and creator = #{realname}")
void deleteDataByFilename5(@Param("filename") String filename, @Param("realname") String realname);
List<Finance> getFinance6(Finance finance);
void insertForeach6(List<Finance> list);
String checkAccountNumber6(@Param("orderNumber") String orderNumber);
List<String> getAllFilename6(@Param("creator") String creator);
@Delete("delete from tbl_sys_finance6 where filename = #{filename} and creator = #{realname}")
void deleteDataByFilename6(@Param("filename") String filename, @Param("realname") String realname);
List<Finance> getFinance7(Finance finance);
void insertForeach7(List<Finance> list);
String checkAccountNumber7(@Param("orderNumber") String orderNumber);
List<String> getAllFilename7(@Param("creator") String creator);
@Delete("delete from tbl_sys_finance7 where filename = #{filename} and creator = #{realname}")
void deleteDataByFilename7(@Param("filename") String filename, @Param("realname") String realname);
}
@@ -0,0 +1,17 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import lingtao.net.bean.FinanceDifference;
public interface FinanceDifferenceMapper {
List<FinanceDifference> get(FinanceDifference difference);
void insertForeach(List<FinanceDifference> list);
List<String> getAllFilename(@Param("creator")String creator);
}
@@ -0,0 +1,26 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import lingtao.net.bean.FinanceExtract;
@Mapper
public interface FinanceExtractMapper {
List<FinanceExtract> getFinanceExtract(FinanceExtract financeExtract);
void insertForeach(List<FinanceExtract> list);
// 查询数据是否存在,避免重复上传
String checkAccountNumber(@Param("orderNumber") String orderNumber);
List<String> getFilename_extract(@Param("creator") String creator);
@Delete("delete from tbl_sys_finance_extract where filename = #{filename} and creator = #{realname}")
void deleteDataByFilename(@Param("filename") String filename, @Param("realname") String realname);
}
@@ -0,0 +1,26 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import lingtao.net.bean.Finance;
@Mapper
public interface FinanceMapper {
List<Finance> getFinance(Finance finance);
void insertForeach(List<Finance> list);
// 查询数据是否存在,避免重复上传
String checkAccountNumber(@Param("orderNumber") String orderNumber);
List<String> getAllFilename(@Param("creator") String creator);
@Delete("delete from tbl_sys_finance where filename = #{filename} and creator = #{realname}")
void deleteDataByFilename(@Param("filename") String filename, @Param("realname") String realname);
}
@@ -0,0 +1,19 @@
package lingtao.net.dao;
import java.util.List;
import lingtao.net.bean.Information;
public interface InformationMapper {
List<Information> getInformations(Information information);
void addInformation(Information information);
void updateInformationById(Information information);
void deleteInformationById(Integer id);
List<Information> getShortAnswers();
}
@@ -0,0 +1,27 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import lingtao.net.bean.LoginIp;
public interface LoginIpMapper {
public List<LoginIp> getLoginIpList(LoginIp loginIp);
@Select("select agreeIp from tbl_login_ip")
public List<String> getAllIp();
public void addIp(LoginIp loginIp);
public void updateIp(LoginIp loginIp);
public int deleteIpById(Integer id);
// 批量删除
public void deleteBatch(int[] ints);
@Select("select * from tbl_login_ip where agreeIp = #{agreeIp}")
public LoginIp checkIP(String agreeIp);
}
@@ -0,0 +1,16 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import lingtao.net.bean.LoginLog;
public interface LoginLogMapper {
List<LoginLog> getLoginLogList(LoginLog loginLog);
@Insert("insert into tbl_login_log set remark = #{remark},status = #{status}")
int addLog(LoginLog loginLog);
}
@@ -0,0 +1,32 @@
package lingtao.net.dao;
import java.util.List;
import lingtao.net.bean.MyFile;
import lingtao.net.bean.MyFileExample;
import org.apache.ibatis.annotations.Param;
public interface MyFileMapper {
long countByExample(MyFileExample example);
int deleteByExample(MyFileExample example);
int deleteByPrimaryKey(Integer fileId);
int insert(MyFile record);
int insertSelective(MyFile record);
List<MyFile> selectByExample(MyFileExample example);
MyFile selectByPrimaryKey(Integer fileId);
int updateByExampleSelective(@Param("record") MyFile record, @Param("example") MyFileExample example);
int updateByExample(@Param("record") MyFile record, @Param("example") MyFileExample example);
int updateByPrimaryKeySelective(MyFile record);
int updateByPrimaryKey(MyFile record);
List<MyFile> getFileList(MyFile myFile);
}
@@ -0,0 +1,34 @@
package lingtao.net.dao;
import lingtao.net.bean.ProductImg;
import lingtao.net.bean.SysDictProduct;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface ProductImgMapper {
List<ProductImg> getProKindList(ProductImg productImg);
SysDictProduct getLabel(ProductImg productImg);
int addImgUrl(ProductImg productImg);
int updateImgUploadRemark(ProductImg productImg);
List<SysDictProduct> findAllPro();
List<SysDictProduct> getKindsByPro(@Param("proTypeValue") String proTypeValue);
List<SysDictProduct> getKind2sByKind(@Param("proTypeValue") String proTypeValue,
@Param("kindValue") String kindValue);
List<ProductImg> getImgsByProKind(@Param("proTypeValue") String proTypeValue, @Param("kindValue") String kindValue,
@Param("kind2Value") String kind2Value, @Param("craftValue") String craftValue);
// 获取视频地址
@Select("select img_url from product_img where pro_type_value = '999'")
List<String> getVideos();
}
@@ -0,0 +1,60 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import lingtao.net.bean.Product;
import lingtao.net.bean.SysDictSearchPro;
public interface ProductMapper {
// 价格列表
List<Product> getProductList(Product product);
// 更新价格
int updatePriceById(Product product);
// 得到所有的产品种类
List<Product> findAllPro();
// 根据产品种类得到旗下的产品品种
List<Product> getKindsByPro(@Param("proTypeValue") String proTypeValue);
// 根据关键字搜索产品菜单
List<SysDictSearchPro> searchPro(@Param("likeProTypeLabel") String likeProTypeLabel);
// 价格导入
void insertSelective(Product vo);
// 根据种类和品种得到单价,再根据尺寸—数量计算价格
List<Product> getThanPrice(Product product);
// 优惠券5位以上1万以内价格
List<Product> couponThanPrice(Product dto);
// 优惠券位以上1万以内价格
List<Product> couponThanPrices(Product dto);
// 优惠券5位以上1万以上价格
List<Product> couponThousandThanPrice(Product dto);
// 吊旗/宣传单5位数以上价格计算(同 couponThanPrice
List<Product> diaoqiThanPrice(Product dto);
// 吊旗比优惠券价格贵5/10块钱一位--1万以内
List<Product> hangingFlagsThanPrice(Product dto);
// 吊旗比优惠券价格贵10--1万以上的价格
List<Product> hangingFlagsThousandThanPrice(Product dto);
// 便签本联单/稿纸超过1千数量的价格
List<Product> notePaperPrice(Product dto);
// 优惠券、吊旗、腰封;便签本彩胶纸/红头文件;扇子;超过1万数量的价格
List<Product> thanThousandPrice(Product dto);
//慕斯垫价格计算
List<Product> getMsdPrice(Product dto);
}
@@ -0,0 +1,25 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import lingtao.net.bean.Question;
public interface QuestionMapper {
List<Question> questions(Question question);
int addQuestion(Question question);
int updateQuestionById(Question question);
int deleteQuestionById(@Param("id") Integer id);
List<Question> getSingleQuestions();
List<Question> getMultipleQuestions();
List<Question> getFillQuestions();
}
@@ -0,0 +1,42 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import lingtao.net.bean.QuoteData;
public interface QuoteDataMapper {
List<QuoteData> quoteDatas(QuoteData quoteData);
void updateById(QuoteData quoteData);
void changeIsBuyToDay(@Param("id") Integer id);
void changeIsBuy(@Param("id") Integer id);
@Update("update tbl_quote_data set shopname = #{shopname},isSelect = 1,selectDate = now() where id = #{id}")
void updateShopnameSelect(@Param("shopname") String shopname, @Param("id") Integer id);
@Update("update tbl_quote_data set orderNumber = #{orderNumber} where id = #{id}")
void addOrderNumber(@Param("id") Integer id, @Param("orderNumber") String orderNumber);
void addQuoteData(QuoteData quoteData);
List<String> getQuoteDataByMinutes(String username);
List<String> getShopName(QuoteData quoteData);
@Select("select distinct proTypeLabel from tbl_quote_data WHERE proTypeLabel IS NOT NULL")
List<String> getProType();
List<String> getRealnames(@Param("shopname") String shopname);
QuoteData getEchartList(QuoteData quoteData);
QuoteData getKefuEchartList(QuoteData quoteData);//客服大单流失列表
}
@@ -0,0 +1,12 @@
package lingtao.net.dao;
import java.util.List;
import lingtao.net.bean.QuoteLog;
public interface QuoteLogMapper {
List<QuoteLog> quoteLogs(QuoteLog quoteLog);
void insertSelective(QuoteLog log);
}
@@ -0,0 +1,19 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import lingtao.net.bean.SysDictSearchPro;
public interface SysDictSearchProMapper {
List<SysDictSearchPro> keyWordsList(SysDictSearchPro searchPro);
int changeKeyWordStatus(@Param("id") Integer id);
int insertSelective(SysDictSearchPro searchPro);
int updateKeyWordById(SysDictSearchPro searchPro);
}
@@ -0,0 +1,15 @@
package lingtao.net.dao;
import java.util.List;
import lingtao.net.bean.SysPermission;
public interface SysPermissionMapper {
List<SysPermission> getAll();
List<SysPermission> getParentPers();
List<SysPermission> getPersByUserId(Integer integer);
}
@@ -0,0 +1,37 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import lingtao.net.bean.SysRole;
public interface SysRoleMapper {
int insertSelective(SysRole role);
List<SysRole> getRoles(SysRole role);
int updateByPrimaryKeySelective(SysRole role);
int changeRoleStatus(@Param("roleId") String roleId);
// 根据角色编号查询对应的权限编号集合
public List<Integer> getPerIdsByRoleId(@Param("roleId") Integer roleId);
public void deleteRolePermissions(Integer roleId);
public void addRolePermissions(@Param("roleId") Integer roleId, @Param("perIds") String[] perIds);
List<SysRole> getAllRoleName(@Param("isRegist") String isRegist);
// 查询出用户所拥有的且允许被创建的角色
List<SysRole> getRolesByUserId(@Param("userId") Integer userId);
@Select("select roleId from tbl_sys_role where isRegist = '0'")
List<Integer> getRoleIdsWhenIsNotRegist();
@Select("select roleId from tbl_sys_role where isSelf = '0'")
List<Integer> getRoleIdsWhenIsNotLingTao();
}
@@ -0,0 +1,73 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import lingtao.net.bean.SysUser;
public interface SysUserMapper {
int deleteByPrimaryKey(Integer userId);
int insertSelective(SysUser record);
int updateByPrimaryKeySelective(SysUser record);
@Select("select * from tbl_sys_user where username = #{username}")
SysUser getUserByUsername(@Param("username") String username);
List<SysUser> getUsers(SysUser user);
int changeUserStatus(@Param("userId") Integer userId);
public void addUserRoles(@Param("userId") Integer userId, @Param("roleIds") Integer[] roleIds);
void deleteUserRoles(@Param("userId") Integer userId);
int addBirthDay(SysUser user);
int changeSysStatus(@Param("userId") Integer userId);
int changeNeedIp();
@Update("update tbl_sys_user set sysStatus = 1 where sysStatus = 0 and userId = #{userId}")
int videoOverToChangeSysStatus(@Param("userId") Integer userId);
@Update("update tbl_sys_user set sysStatus = 2 where userId = #{userId}")
int examOverToChangeSysStatus(@Param("userId") Integer userId);
@Update("update tbl_sys_user set readLogStatus = 1 where userId = #{userId}")
int changeReadLogStatus(Integer userId);
@Select("select * from tbl_sys_user where userId = #{userId}")
SysUser getUserInfo(Integer userId);
/**
* 如果当天生日,更改状态
*
* @param isBirthDay
* @param userId
* @return
*/
@Update("update tbl_sys_user set isBirthDay = #{isBirthDay} where userId = #{userId}")
int setIsBirthDay(@Param("isBirthDay") Integer isBirthDay, @Param("userId") Integer userId);
/**
* 改变生日状态
*
* @param userId
*/
@Update("update tbl_sys_user set isBirthDay = 0 where userId = #{userId}")
void changeIsBirthDay(Integer userId);
/**
* 客服数据 -- 根据搜索的店铺获取人员
*
* @param shopname
*/
@Select("select * from tbl_sys_user where role like '%${shopname}%'")
List<SysUser> getRealnamesByShopname(@Param("shopname") String shopname);
}
@@ -0,0 +1,22 @@
package lingtao.net.dao;
import java.util.List;
import org.apache.ibatis.annotations.Update;
import lingtao.net.bean.UpdateLog;
public interface UpdateLogMapper {
List<UpdateLog> getUpdateLogs(UpdateLog updateLog);
int addLog(UpdateLog updateLog);
int deleteLogById(Integer id);
int updateLogById(UpdateLog updateLog);
@Update("UPDATE tbl_sys_user SET readLogStatus = 0")
void changeReadLogStatus();
}