通讯录查询修改

master
Xusan 2024-05-16 10:03:22 +08:00
parent 63b173201a
commit 20048bdffe
6 changed files with 16 additions and 3 deletions

View File

@ -56,6 +56,10 @@ public class Organization extends Model<Organization> implements Serializable {
@ApiModelProperty(value = "置顶排序序号")
private Integer fsort;
@TableField(exist = false)
@ApiModelProperty(value = "置顶id")
private Integer fcid;
@TableField(exist = false)
@ApiModelProperty(value = "单位")
private List<UnitDict> unitDicts;

View File

@ -56,4 +56,9 @@ public class UnitDict extends Model<UnitDict> implements Serializable {
@TableField(exist = false)
@ApiModelProperty(value = "置顶排序")
private Integer fsort;
@TableField(exist = false)
@ApiModelProperty(value = "置顶id")
private Integer fcid;
}

View File

@ -23,4 +23,8 @@ public class AddressBookVo extends AddressBook{
@TableField(exist = false)
@ApiModelProperty(value = "常用联系人置顶联系人序号")
private Integer fsort;
@TableField(exist = false)
@ApiModelProperty(value = "常用联系人id")
private Integer fcid;
}

View File

@ -5,7 +5,7 @@
<select id="page" resultType="com.whdc.model.vo.AddressBookVo">
SELECT
AB.*,F.SORT FSORT
AB.*,F.SORT FSORT,F.ID FCID
FROM
ADDRESS_BOOK AB
LEFT JOIN FC F ON F.AB_ID = AB.ID AND F.USER_ID = #{dto.userId}

View File

@ -14,7 +14,7 @@
<select id="findByUserId" resultType="com.whdc.model.entity.Organization">
SELECT
O.*,
F.SORT FSORT
F.SORT FSORT,F.ID FCID
FROM
ORGANIZATION O
LEFT JOIN FC F ON F.AB_ID = O.ID AND F.USER_ID = #{userId}

View File

@ -12,7 +12,7 @@
<select id="findByUserId" resultType="com.whdc.model.entity.UnitDict">
SELECT
UD.*,
F.SORT FSORT
F.SORT FSORT,F.ID FCID
FROM
UNIT_DICT UD
LEFT JOIN FC F ON F.AB_ID = UD.O_ID AND F.USER_ID = #{userId}