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

xignzi006 发布系统代码

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