Browse Source

工具优化-ZWW

master
zuowenwen 5 years ago
parent
commit
88aa37e2ed
  1. 7
      src/main/java/com/gaotao/modules/app/dao/SupplierMapper.java
  2. 5
      src/main/java/com/gaotao/modules/app/service/impl/SupplierServiceImpl.java
  3. 6
      src/main/java/com/gaotao/modules/ftp/util/FTPUtils.java
  4. 4
      src/main/resources/mapper/app/SupplierMapper.xml

7
src/main/java/com/gaotao/modules/app/dao/SupplierMapper.java

@ -1,11 +1,10 @@
package com.gaotao.modules.app.dao;
import com.gaotao.modules.app.entity.Supplier;
import java.util.List;
import com.gaotao.modules.app.query.SupplierQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @Auther: Zuowenwen
@ -62,4 +61,6 @@ public interface SupplierMapper {
* @date 2021/7/19
*/
int updateSupplier(SupplierQuery supplierQuery);
List<Supplier> getViewSupplierList(SupplierQuery supplierQuery);
}

5
src/main/java/com/gaotao/modules/app/service/impl/SupplierServiceImpl.java

@ -23,6 +23,7 @@ public class SupplierServiceImpl implements SupplierService {
@Override
public List<Supplier> getSupplierList(SupplierQuery supplierQuery) {
return supplierMapper.getSupplierList(supplierQuery);
// return supplierMapper.getSupplierList(supplierQuery);
return supplierMapper.getViewSupplierList(supplierQuery);
}
}
}

6
src/main/java/com/gaotao/modules/ftp/util/FTPUtils.java

@ -3,9 +3,7 @@ package com.gaotao.modules.ftp.util;
import com.gaotao.common.utils.ConfigConstant;
import com.gaotao.common.utils.R;
import com.gaotao.common.utils.SpringContextUtils;
import com.gaotao.modules.oss.cloud.CloudStorageConfig;
import com.gaotao.modules.oss.cloud.CloudStorageService;
import com.gaotao.modules.pda.utils.ResponseData;
import com.gaotao.modules.sys.service.SysConfigService;
import lombok.extern.slf4j.Slf4j;
@ -14,15 +12,11 @@ import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.commons.net.ftp.FTPReply;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
/**
*

4
src/main/resources/mapper/app/SupplierMapper.xml

@ -183,4 +183,8 @@ A.Buyer,A.Currency,A.SupplierGroup,A.ABC,A.Active,A.CreateDate,A.BankName,A.Bank
</if>
</where>
</update>
<select id="getViewSupplierList" resultMap="BaseResultMap">
select * from view_supplier
</select>
</mapper>
Loading…
Cancel
Save