更新代码

This commit is contained in:
xiao-fajia 2024-09-19 19:46:07 +08:00
parent d1cd46f67f
commit 5818693230
6 changed files with 22 additions and 97 deletions

View File

@ -171,17 +171,4 @@ public class CustomerMainController {
busiLabelService.saveBusiLable(saveReqVO.getId(), TABLE_BASE_CUSTOMER_MAIN, saveReqVO.getLabelList());
return success(true);
}
/**
* 用户列表
*
* @author 小李
* @date 14:02 2024/9/13
**/
@GetMapping("/list")
@Operation(summary = "用户列表")
public CommonResult<?> getCustomerMainList(){
return success(customerMainService.list());
}
}

View File

@ -27,6 +27,4 @@ public interface CustomerMainMapper extends BaseMapper<CustomerMain> {
* @date 15:01 2024/8/1
**/
IPage<CustomerMainRespVO> selectListPage(@Param("entity") CustomerMainPageReqVO pageReqVO, Page<CustomerMainRespVO> page);
}

View File

@ -69,5 +69,4 @@ public interface CustomerMainService extends IService<CustomerMain> {
* @date 18:42 2024/8/3
**/
void bindCustomAndCar(CustomerMainSaveReqVO saveReqVO);
}

View File

@ -14,10 +14,7 @@ import cn.iocoder.yudao.module.custom.mapper.CustomerMainMapper;
import cn.iocoder.yudao.module.custom.service.CustomerCarService;
import cn.iocoder.yudao.module.custom.service.CustomerItemService;
import cn.iocoder.yudao.module.custom.service.CustomerMainService;
import cn.iocoder.yudao.module.custom.vo.CarMainRespVO;
import cn.iocoder.yudao.module.custom.vo.CustomerMainPageReqVO;
import cn.iocoder.yudao.module.custom.vo.CustomerMainRespVO;
import cn.iocoder.yudao.module.custom.vo.CustomerMainSaveReqVO;
import cn.iocoder.yudao.module.custom.vo.*;
import cn.iocoder.yudao.module.label.entity.BusiLabel;
import cn.iocoder.yudao.module.label.service.BusiLabelService;
import cn.iocoder.yudao.module.system.api.dept.DeptApi;

View File

@ -59,27 +59,27 @@
ORDER BY main.create_time DESC
</select>
<select id="getAttn" resultType="cn.iocoder.yudao.module.custom.entity.CustomerMain">
SELECT
main.id AS id,
main.user_id AS userId,
main.type_code AS typeCode,
main.dept_code AS deptCode,
main.cus_name AS cusName,
main.phone_number AS phoneNumber,
main.birthday AS birthday,
main.address AS address,
main.sex AS sex,
main.id_card AS idCard,
main.id_card_image AS idCardImage,
main.data_from AS dataFrom,
main.near_do_time AS nearDoTime,
main.near_do_content AS nearDoContent,
main.inviter AS inviter,
main.inviter_type AS inviterType,
main.status AS status
FROM
base_customer_main main
where main.dept_code = #{deptCode} and main.deleted = 0 and main.type_code = '04'
SELECT main.id AS id,
main.user_id AS userId,
main.type_code AS typeCode,
main.dept_code AS deptCode,
main.cus_name AS cusName,
main.phone_number AS phoneNumber,
main.birthday AS birthday,
main.address AS address,
main.sex AS sex,
main.id_card AS idCard,
main.id_card_image AS idCardImage,
main.data_from AS dataFrom,
main.near_do_time AS nearDoTime,
main.near_do_content AS nearDoContent,
main.inviter AS inviter,
main.inviter_type AS inviterType,
main.status AS status
FROM base_customer_main main
where main.dept_code = #{deptCode}
and main.deleted = 0
and main.type_code = '04'
ORDER BY main.create_time DESC
</select>
</mapper>

View File

@ -20,61 +20,5 @@ public class DlRepairTicketsController {
*/
@Resource
private DlRepairTicketsService dlRepairTicketsService;
// /**
// * 分页查询所有数据
// *
// * @param page 分页对象
// * @param dlRepairTickets 查询实体
// * @return 所有数据
// */
// @GetMapping
// public R selectAll(Page<DlRepairTickets> page, DlRepairTickets dlRepairTickets) {
// return success(this.dlRepairTicketsService.page(page, new QueryWrapper<>(dlRepairTickets)));
// }
//
// /**
// * 通过主键查询单条数据
// *
// * @param id 主键
// * @return 单条数据
// */
// @GetMapping("{id}")
// public R selectOne(@PathVariable Serializable id) {
// return success(this.dlRepairTicketsService.getById(id));
// }
//
// /**
// * 新增数据
// *
// * @param dlRepairTickets 实体对象
// * @return 新增结果
// */
// @PostMapping
// public R insert(@RequestBody DlRepairTickets dlRepairTickets) {
// return success(this.dlRepairTicketsService.save(dlRepairTickets));
// }
//
// /**
// * 修改数据
// *
// * @param dlRepairTickets 实体对象
// * @return 修改结果
// */
// @PutMapping
// public R update(@RequestBody DlRepairTickets dlRepairTickets) {
// return success(this.dlRepairTicketsService.updateById(dlRepairTickets));
// }
//
// /**
// * 删除数据
// *
// * @param idList 主键结合
// * @return 删除结果
// */
// @DeleteMapping
// public R delete(@RequestParam("idList") List<Long> idList) {
// return success(this.dlRepairTicketsService.removeByIds(idList));
// }
}