This commit is contained in:
linfso 2024-05-15 17:50:02 +08:00
parent 696110dfda
commit ce26290f68
3 changed files with 5 additions and 7 deletions

View File

@ -66,13 +66,9 @@ public class EmisCustomerAddressController extends BaseController
{
// 需要限制,除总部外,只能查看站点自有数据
startPage();
// if(!getLoginUser().getUser().isTopSite()) {
// }
if(StringUtils.isEmpty(emisCustomerAddress.getUseSiteCode())) {
emisCustomerAddress.setUseSiteCode(getLoginUser().getUser().getOwnerSiteCode());
}
List<EmisCustomerAddress> list = emisCustomerAddressService.selectEmisCustomerAddressList(emisCustomerAddress);
return getDataTable(list);
}

View File

@ -69,6 +69,8 @@ public class EmisCustomerAddressServiceImpl extends EmisBaseService implements I
emisCustomerAddress.setUseSiteCode(getCurrentUser().getOwnerSiteCode());
emisCustomerAddress.setUseSite(getCurrentUser().getOwnerSiteName());
// 创建用户
return emisCustomerAddressMapper.insertEmisCustomerAddress(emisCustomerAddress);
}

View File

@ -58,10 +58,10 @@
<if test="prodNameEn != null and prodNameEn != ''"> and prod_name_en like concat('%', #{prodNameEn}, '%')</if>
<if test="status != null "> and status = #{status}</if>
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
<if test="transLineCode != null and transLineCode != ''"> and trans_line_code like concat('%', #{transLineCode}, '%')</if>
<if test="transLineCode != null and transLineCode != ''"> and trans_line_code=#{transLineCode}</if>
<if test="transLine != null and transLine != ''"> and trans_line like concat('%', #{transLine}, '%')</if>
<if test="carryType != null and carryType != ''"> and carry_type like concat('%', #{carryType}, '%')</if>
<if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>
<if test="carryType != null and carryType != ''"> and carry_type=#{carryType}</if>
<if test="transType != null and transType != ''"> and trans_type=#{transType}</if>
<if test="agingDesc != null and agingDesc != ''"> and aging_desc like concat('%', #{agingDesc}, '%')</if>
<if test="minAging != null "> and min_aging = #{minAging}</if>
<if test="maxAging != null "> and max_aging = #{maxAging}</if>