@ -93,21 +93,21 @@ public class SupplierInfoService extends MybatisBaseService<SupplierInfoMapper,
return rb . success ( ) . setData ( p ) ;
}
if ( StringUtils . isNotBlank ( query . getSupplierName ( ) ) ) {
qw . like ( "supplierName" , query . getSupplierName ( ) ) ;
qw . like ( "a. supplierName" , query . getSupplierName ( ) ) ;
}
if ( StringUtils . isNotBlank ( query . getSupplierTypeName ( ) ) ) {
qw . like ( "supplierTypeName" , query . getSupplierTypeName ( ) ) ;
qw . like ( "a. supplierTypeName" , query . getSupplierTypeName ( ) ) ;
}
if ( StringUtils . isNotBlank ( query . getContactTelePhone ( ) ) ) {
qw . like ( "contactTelePhone" , query . getContactTelePhone ( ) ) ;
qw . like ( "a. contactTelePhone" , query . getContactTelePhone ( ) ) ;
}
if ( StringUtils . isNotBlank ( query . getContactName ( ) ) ) {
qw . like ( "contactName" , query . getContactName ( ) ) ;
qw . like ( "a. contactName" , query . getContactName ( ) ) ;
}
if ( StringUtils . isNotBlank ( query . getOtherQuery ( ) ) ) {
qw . and ( wrapper - > wrapper . like ( "supplierName" , query . getOtherQuery ( ) ) . or ( ) . like ( "supplierPY" , query . getOtherQuery ( ) ) . or ( ) . like ( "contactTelePhone" , query . getOtherQuery ( ) ) ) ;
qw . and ( wrapper - > wrapper . like ( "a. supplierName" , query . getOtherQuery ( ) ) . or ( ) . like ( "a. supplierPY" , query . getOtherQuery ( ) ) . or ( ) . like ( "contactTelePhone" , query . getOtherQuery ( ) ) ) ;
}
qw . eq ( "isDelete" , 0 ) ;
qw . eq ( "a. isDelete" , 0 ) ;
IPage < SupplierInfo > page = PagerUtil . queryToPage ( pq ) ;
IPage < SupplierInfoVo > pagging = baseMapper . selectPageVo ( page , qw ) ;
PagerVo < SupplierInfoVo > p = PagerUtil . pageToVo ( pagging , null ) ;
@ -151,8 +151,7 @@ public class SupplierInfoService extends MybatisBaseService<SupplierInfoMapper,
SupplierInfo entity = new SupplierInfo ( ) ;
BeanUtil . copyProperties ( dto , entity , "id" , "sid" ) ;
entity . setCreateBySid ( dto . getUserSid ( ) ) ;
entity . setCreateOrgSid ( dto . getOrgPath ( ) ) ;
entity . setUseOrgSid ( dto . getOrgPath ( ) ) ;
entity . setCreateOrgSid ( dto . getUseOrgSid ( ) ) ;
baseMapper . insert ( entity ) ;
return entity . getSid ( ) ;
}