给供应商查询增加联系人的参数
This commit is contained in:
@@ -69,9 +69,10 @@ public class SupplierController extends BaseController {
|
||||
HttpServletRequest request)throws Exception {
|
||||
String supplier = StringUtil.getInfo(search, "supplier");
|
||||
String type = StringUtil.getInfo(search, "type");
|
||||
String contacts = StringUtil.getInfo(search, "contacts");
|
||||
String phonenum = StringUtil.getInfo(search, "phonenum");
|
||||
String telephone = StringUtil.getInfo(search, "telephone");
|
||||
List<Supplier> list = supplierService.select(supplier, type, phonenum, telephone);
|
||||
List<Supplier> list = supplierService.select(supplier, type, contacts, phonenum, telephone);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ public interface SupplierMapperEx {
|
||||
List<Supplier> selectByConditionSupplier(
|
||||
@Param("supplier") String supplier,
|
||||
@Param("type") String type,
|
||||
@Param("contacts") String contacts,
|
||||
@Param("phonenum") String phonenum,
|
||||
@Param("telephone") String telephone,
|
||||
@Param("creatorArray") String[] creatorArray);
|
||||
|
||||
@@ -87,12 +87,12 @@ public class SupplierService {
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<Supplier> select(String supplier, String type, String phonenum, String telephone) throws Exception{
|
||||
public List<Supplier> select(String supplier, String type, String contacts, String phonenum, String telephone) throws Exception{
|
||||
List<Supplier> list = new ArrayList<>();
|
||||
try{
|
||||
String [] creatorArray = depotHeadService.getCreatorArray();
|
||||
PageUtils.startPage();
|
||||
list = supplierMapperEx.selectByConditionSupplier(supplier, type, phonenum, telephone, creatorArray);
|
||||
list = supplierMapperEx.selectByConditionSupplier(supplier, type, contacts, phonenum, telephone, creatorArray);
|
||||
for(Supplier s : list) {
|
||||
Integer supplierId = s.getId().intValue();
|
||||
String beginTime = Tools.getYearBegin();
|
||||
|
||||
Reference in New Issue
Block a user