Commit 7044fe28 authored by diaoruifeng's avatar diaoruifeng

修改

parent 5c8a02f3
......@@ -42,6 +42,9 @@ public class OcpTenantIocn implements Serializable {
@ApiModelProperty(value = "应用调用的服务数量图标数据")
private Object iocn;
@ApiModelProperty(value = "图片类型")
private Object iocnKind;
/**
* 所属公司可能会根据公司分区
*/
......
......@@ -51,8 +51,6 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantIocn.setIocnType("tenant");
ocpTenantIocn.setCodeNo(appRegisterDTO.getAppCode());
ocpTenantIocn.setIocn(appRegisterDTO.getImgUrl());
// 加字段
int n = ocpTenantIocnMapper.insert(ocpTenantIocn);
......@@ -110,6 +108,7 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantIocn.setIocnType("tenant");
ocpTenantIocn.setCodeNo(item.getCodeNo());
ocpTenantIocn.setIocn(item.getImg());
ocpTenantIocn.setIocnKind("Tenant_swiper");
list.add(ocpTenantIocn);
}
int count = appRegisterMapper.batchInsert(list);
......
......@@ -14,23 +14,23 @@
INNER JOIN ocp_tenant_iocn icon ON base.tenant_code = icon.code_no
INNER JOIN ocp_tenant_extent extent ON extent.tenant_code = base.tenant_code
INNER JOIN ocp_tenant_group g ON g.tenant_group_code = base.tenant_group_code
<where>
WHERE icon.iocn_type = 'tenant' and icon.iocn_kind is null
<if test="dto.kind != null and dto.kind != ''">
base.professional_kind like CONCAT('%', #{dto.kind}, '%')
</if>
<if test="dto.type != null and dto.type != ''">
and g.tenant_group_name like CONCAT('%', #{dto.type}, '%')
</if>
</where>
</select>
<insert id="batchInsert">
insert into ocp_tenant_iocn(obj_id, iocn_type, code_no, iocn, company_code)
insert into ocp_tenant_iocn(obj_id, iocn_type, code_no, iocn, company_code,iocn_kind)
values
<foreach collection="list" item="item" separator=",">
(#{item.objId,jdbcType=VARCHAR},
#{item.iocnType,jdbcType=VARCHAR},
#{item.codeNo},#{item.iocn},#{item.companyCode,jdbcType=VARCHAR})
#{item.codeNo},#{item.iocn},#{item.companyCode,jdbcType=VARCHAR},#{item.iocnKind,jdbcType=VARCHAR})
</foreach>
</insert>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment