提交 f4deed7a 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 37c0f655
......@@ -20,6 +20,7 @@ import com.alibaba.fastjson.JSONObject;
public interface Ir_model_fieldsMapper extends BaseMapper<Ir_model_fields>{
Page<Ir_model_fields> searchDefault(IPage page, @Param("srf") Ir_model_fieldsSearchContext context, @Param("ew") Wrapper<Ir_model_fields> wrapper) ;
Page<Ir_model_fields> searchTrackingField(IPage page, @Param("srf") Ir_model_fieldsSearchContext context, @Param("ew") Wrapper<Ir_model_fields> wrapper) ;
@Override
Ir_model_fields selectById(Serializable id);
@Override
......
......@@ -38,6 +38,7 @@ public interface IIr_model_fieldsService extends IService<Ir_model_fields>{
boolean save(Ir_model_fields et) ;
void saveBatch(List<Ir_model_fields> list) ;
Page<Ir_model_fields> searchDefault(Ir_model_fieldsSearchContext context) ;
Page<Ir_model_fields> searchTrackingField(Ir_model_fieldsSearchContext context) ;
List<Ir_model_fields> selectByModelId(Long id) ;
void removeByModelId(Long id) ;
/**
......
......@@ -171,6 +171,15 @@ public class Ir_model_fieldsServiceImpl extends ServiceImpl<Ir_model_fieldsMappe
return new PageImpl<Ir_model_fields>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
/**
* 查询集合 跟踪字段
*/
@Override
public Page<Ir_model_fields> searchTrackingField(Ir_model_fieldsSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Ir_model_fields> pages=baseMapper.searchTrackingField(context.getPages(),context,context.getSelectCond());
return new PageImpl<Ir_model_fields>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
......
......@@ -36,11 +36,29 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据集合[TrackingField]-->
<select id="searchTrackingField" parameterType="cn.ibizlab.businesscentral.core.odoo_ir.filter.Ir_model_fieldsSearchContext" resultMap="Ir_model_fieldsResultMap">
select * from (
select t1.* from (
<include refid="TrackingField" />
)t1
<where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
)t1
order by tracking asc
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
]]>
</sql>
<!--数据查询[TrackingField]-->
<sql id="TrackingField" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
WHERE ( t1.TRACKING IS NOT NULL )
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册