This commit is contained in:
parent
159122ae7f
commit
e1d243970a
|
|
@ -135,4 +135,22 @@ public class TbSubController extends BaseController {
|
|||
log.info("导出失败{}",e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 分包商列表所有
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分包商列表所有")
|
||||
// @PreAuthorize("@ss.hasPermi('key:people:list')")
|
||||
@GetMapping("/getTbSubAll")
|
||||
public TableDataInfo getTbSubAll(TbSubVo tbSubVo) {
|
||||
try {
|
||||
List<TbSubVo> tbSubVoList = tbSubService.getTbSubList(tbSubVo);
|
||||
return getDataTable(tbSubVoList);
|
||||
}catch (Exception e){
|
||||
log.info("分包商列表失败{}",e.getMessage());
|
||||
return getDataTableError(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
package com.bonus.tool.mapper;
|
||||
|
||||
import com.bonus.tool.dto.TbCompanyPerfRelVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TbCompanyPerfRelMapper {
|
||||
List<TbCompanyPerfRelVo> getTbCompanyPerRelByPerfId(Long perfId,String source);
|
||||
List<TbCompanyPerfRelVo> getTbCompanyPerRelByPerfId(@Param("perfId") Long perfId, @Param("source")String source);
|
||||
|
||||
void addTbCompanyPerRel(TbCompanyPerfRelVo tbCompanyPerfRelVo);
|
||||
|
||||
void delTbCompanyPerRelByPerfId(Long perfId,String source);
|
||||
void delTbCompanyPerRelByPerfId(@Param("perfId") Long perfId, @Param("source")String source);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,11 +9,13 @@ public interface TbSubMapper {
|
|||
|
||||
TbSubVo getTbSubById(TbSubVo tbSubVo);
|
||||
|
||||
TbSubVo addTbSub(TbSubVo tbSubVo);
|
||||
void addTbSub(TbSubVo tbSubVo);
|
||||
|
||||
TbSubVo getTbSubBySubName(TbSubVo tbSubVo);
|
||||
|
||||
void updateTbSub(TbSubVo tbSubVo);
|
||||
|
||||
void delTbSub(TbSubVo tbSubVo);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@
|
|||
</delete>
|
||||
|
||||
<select id="getTbSubList" resultType="com.bonus.tool.dto.TbSubVo">
|
||||
select id,sub_name,address,user_name,user_phone,create_time,create_user
|
||||
select id as id,sub_name as subName,address as address,user_name as userName,user_phone as userPhone,create_time,create_user
|
||||
from tb_sub where del_flag = 0
|
||||
<if test="subName != '' and subName != null">and sub_name = #{subName}</if>
|
||||
<if test="subName != '' and subName != null">and sub_name like concat('%', #{subName}, '%')</if>
|
||||
</select>
|
||||
<select id="getTbSubById" resultType="com.bonus.tool.dto.TbSubVo">
|
||||
select id,sub_name,address,user_name,user_phone,create_time,create_user
|
||||
|
|
|
|||
Loading…
Reference in New Issue