Commit 9b61e3dd by “zcwang”

Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110

parents a19dde68 3d52af49
...@@ -46,6 +46,9 @@ public interface AdminChangeConfigService { ...@@ -46,6 +46,9 @@ public interface AdminChangeConfigService {
*/ */
AjaxResult deleteChange(ChangeConfigDeleteReq id); AjaxResult deleteChange(ChangeConfigDeleteReq id);
/**
* 返回所有配置类型
* @return
*/
AjaxResult queryConfigType(); AjaxResult queryConfigType();
} }
package com.netease.mail.yanxuan.change.biz.service.change; package com.netease.mail.yanxuan.change.biz.service.change;
import com.netease.mail.yanxuan.change.dal.entity.ChangeConfig; import com.netease.mail.yanxuan.change.dal.entity.ChangeConfig;
import com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeConfigPo;
/** /**
* @author WangJiaXiang * @author WangJiaXiang
...@@ -13,6 +14,8 @@ public interface ChangeConfigService { ...@@ -13,6 +14,8 @@ public interface ChangeConfigService {
ChangeConfig queryChangeConfig(Long id,Long sonChangeClassId); ChangeConfig queryChangeConfig(Long id,Long sonChangeClassId);
ChangeConfigPo queryInfoPo(Long id);
ChangeConfig queryChangeType(Long parentChangeClassId,Long sonChangeClassId); ChangeConfig queryChangeType(Long parentChangeClassId,Long sonChangeClassId);
Boolean deleteChangeConfig(Long id); Boolean deleteChangeConfig(Long id);
......
...@@ -2,6 +2,7 @@ package com.netease.mail.yanxuan.change.biz.service.impl.change; ...@@ -2,6 +2,7 @@ package com.netease.mail.yanxuan.change.biz.service.impl.change;
import com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService; import com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService;
import com.netease.mail.yanxuan.change.dal.entity.ChangeConfig; import com.netease.mail.yanxuan.change.dal.entity.ChangeConfig;
import com.netease.mail.yanxuan.change.dal.mapper.ChangeConfigMapper; import com.netease.mail.yanxuan.change.dal.mapper.ChangeConfigMapper;
import com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeConfigPo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -26,6 +27,11 @@ public class ChangeConfigServiceImpl implements ChangeConfigService { ...@@ -26,6 +27,11 @@ public class ChangeConfigServiceImpl implements ChangeConfigService {
} }
@Override @Override
public ChangeConfigPo queryInfoPo(Long id) {
return mapper.queryInfoPo(id);
}
@Override
public ChangeConfig queryChangeType(Long parentChangeClassId, Long sonChangeClassId) { public ChangeConfig queryChangeType(Long parentChangeClassId, Long sonChangeClassId) {
if (parentChangeClassId == null || sonChangeClassId == null){ if (parentChangeClassId == null || sonChangeClassId == null){
return null; return null;
......
...@@ -28,6 +28,8 @@ public interface ChangeConfigMapper extends tk.mybatis.mapper.common.Mapper<Chan ...@@ -28,6 +28,8 @@ public interface ChangeConfigMapper extends tk.mybatis.mapper.common.Mapper<Chan
ChangeConfig queryInfo(@Param("id") Long id,@Param("sonChangeClassId") Long sonChangeClassId); ChangeConfig queryInfo(@Param("id") Long id,@Param("sonChangeClassId") Long sonChangeClassId);
ChangeConfigPo queryInfoPo(@Param("id") Long id);
@Delete("delete from TB_YX_QC_CHANGE_CONFIG where id = #{id}") @Delete("delete from TB_YX_QC_CHANGE_CONFIG where id = #{id}")
void deleteById(@Param("id") Long id); void deleteById(@Param("id") Long id);
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</select> </select>
<select id="queryByparentChangeClassId" resultType="com.netease.mail.yanxuan.change.dal.entity.ChangeType"> <select id="queryByparentChangeClassId" resultType="com.netease.mail.yanxuan.change.dal.entity.ChangeType">
select * from TB_YX_QC_CHANGE_TYPE where id = #{parentId} or id = #{sonId} and delete_type = 0 select * from TB_YX_QC_CHANGE_TYPE where id = #{parentId} or id = #{sonId} and delete_type = 0 order by parent_id
</select> </select>
<select id="queryInfo" resultType="com.netease.mail.yanxuan.change.dal.entity.ChangeConfig"> <select id="queryInfo" resultType="com.netease.mail.yanxuan.change.dal.entity.ChangeConfig">
...@@ -76,6 +76,22 @@ ...@@ -76,6 +76,22 @@
</if> </if>
</where> </where>
</select> </select>
<select id="queryInfoPo" resultMap="BaseResultPoMap" >
select <include refid="Base_Column_List" />
from TB_YX_QC_CHANGE_CONFIG
<where>
1=1
<if test="id != null">
and id = #{id}
</if>
</where>
</select>
<!--此查询暂时不需要。。。--> <!--此查询暂时不需要。。。-->
<!-- <select id="queryChangeDepartment" resultType="com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeExecConfigPo" parameterType="java.lang.Long">--> <!-- <select id="queryChangeDepartment" resultType="com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeExecConfigPo" parameterType="java.lang.Long">-->
<!-- select--> <!-- select-->
......
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