Commit c2650b99 by jx-art

修改查询PO参数

parent debe3b98
...@@ -14,7 +14,7 @@ public interface ChangeConfigService { ...@@ -14,7 +14,7 @@ public interface ChangeConfigService {
ChangeConfig queryChangeConfig(Long id,Long sonChangeClassId); ChangeConfig queryChangeConfig(Long id,Long sonChangeClassId);
ChangeConfigPo queryInfoPo(Long id); ChangeConfigPo queryInfoPo(Long parentChangeClassId,Long sonChangeClassId);
ChangeConfig queryChangeType(Long parentChangeClassId,Long sonChangeClassId); ChangeConfig queryChangeType(Long parentChangeClassId,Long sonChangeClassId);
......
...@@ -27,8 +27,8 @@ public class ChangeConfigServiceImpl implements ChangeConfigService { ...@@ -27,8 +27,8 @@ public class ChangeConfigServiceImpl implements ChangeConfigService {
} }
@Override @Override
public ChangeConfigPo queryInfoPo(Long id) { public ChangeConfigPo queryInfoPo(Long parentChangeClassId,Long sonChangeClassId) {
return mapper.queryInfoPo(id); return mapper.queryInfoPo(parentChangeClassId,sonChangeClassId);
} }
@Override @Override
......
...@@ -28,7 +28,8 @@ public interface ChangeConfigMapper extends tk.mybatis.mapper.common.Mapper<Chan ...@@ -28,7 +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); ChangeConfigPo queryInfoPo(@Param("parentChangeClassId")Long parentChangeClassId,
@Param("sonChangeClassId")Long sonChangeClassId);
@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);
......
...@@ -83,8 +83,11 @@ ...@@ -83,8 +83,11 @@
from TB_YX_QC_CHANGE_CONFIG from TB_YX_QC_CHANGE_CONFIG
<where> <where>
1=1 1=1
<if test="id != null"> <if test="parentChangeClassId != null ">
and id = #{id} and parent_change_class_id = #{parentChangeClassId}
</if>
<if test="sonChangeClassId != null ">
and son_change_class_id = #{sonChangeClassId}
</if> </if>
</where> </where>
</select> </select>
......
...@@ -17,7 +17,7 @@ import java.util.List; ...@@ -17,7 +17,7 @@ import java.util.List;
public interface FlowRpcSupplierService { public interface FlowRpcSupplierService {
/** /**
* 邮件通知接口 * 供应商模糊查询
* @return * @return
*/ */
@GetMapping("/api/supplier/getSupplierInfo.json") @GetMapping("/api/supplier/getSupplierInfo.json")
......
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