md
This commit is contained in:
parent
985c287136
commit
eadcf07b3d
@ -52,6 +52,9 @@ public class EmisCustomerAddressController extends BaseController
|
|||||||
public TableDataInfo list(EmisCustomerAddress emisCustomerAddress)
|
public TableDataInfo list(EmisCustomerAddress emisCustomerAddress)
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
|
if(!getLoginUser().getUser().isTopSite()) {
|
||||||
|
emisCustomerAddress.setUseSiteCode(getLoginUser().getUser().getOwnerSiteCode());
|
||||||
|
}
|
||||||
List<EmisCustomerAddress> list = emisCustomerAddressService.selectEmisCustomerAddressList(emisCustomerAddress);
|
List<EmisCustomerAddress> list = emisCustomerAddressService.selectEmisCustomerAddressList(emisCustomerAddress);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
@ -62,12 +65,10 @@ public class EmisCustomerAddressController extends BaseController
|
|||||||
public TableDataInfo listSimple(EmisCustomerAddress emisCustomerAddress)
|
public TableDataInfo listSimple(EmisCustomerAddress emisCustomerAddress)
|
||||||
{
|
{
|
||||||
// 需要限制,除总部外,只能查看站点自有数据
|
// 需要限制,除总部外,只能查看站点自有数据
|
||||||
String ownerSiteCode = getLoginUser().getUser().getOwnerSiteCode();
|
|
||||||
// if(!"88888".equals(ownerSiteCode)) {
|
|
||||||
emisCustomerAddress.setUseSiteCode(ownerSiteCode);
|
|
||||||
// }
|
|
||||||
|
|
||||||
startPage();
|
startPage();
|
||||||
|
if(!getLoginUser().getUser().isTopSite()) {
|
||||||
|
emisCustomerAddress.setUseSiteCode(getLoginUser().getUser().getOwnerSiteCode());
|
||||||
|
}
|
||||||
List<EmisCustomerAddress> list = emisCustomerAddressService.selectEmisCustomerAddressList(emisCustomerAddress);
|
List<EmisCustomerAddress> list = emisCustomerAddressService.selectEmisCustomerAddressList(emisCustomerAddress);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -80,7 +80,6 @@
|
|||||||
<if test="orderNum != null "> and order_num like concat('%', #{orderNum}, '%')</if>
|
<if test="orderNum != null "> and order_num like concat('%', #{orderNum}, '%')</if>
|
||||||
<if test="blSiteDefaultFlag != null and blSiteDefaultFlag != ''"> and bl_site_default_flag like concat('%', #{blSiteDefaultFlag}, '%')</if>
|
<if test="blSiteDefaultFlag != null and blSiteDefaultFlag != ''"> and bl_site_default_flag like concat('%', #{blSiteDefaultFlag}, '%')</if>
|
||||||
<if test="useSite != null and useSite != ''"> and use_site = #{useSite}</if>
|
<if test="useSite != null and useSite != ''"> and use_site = #{useSite}</if>
|
||||||
<if test="useSiteCode != null and useSiteCode != ''"> and use_site_code=#{useSiteCode}</if>
|
|
||||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||||
@ -90,6 +89,8 @@
|
|||||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||||
|
|
||||||
|
<if test="useSiteCode != null and useSiteCode != ''"> and use_site_code=#{useSiteCode}</if>
|
||||||
|
|
||||||
<if test="searchValue != null and searchValue != ''">
|
<if test="searchValue != null and searchValue != ''">
|
||||||
and ( name like concat(#{searchValue}, '%') or phone like concat(#{searchValue}, '%') or company like concat(#{searchValue}, '%') )
|
and ( name like concat(#{searchValue}, '%') or phone like concat(#{searchValue}, '%') or company like concat(#{searchValue}, '%') )
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user