|
|
|
@ -49,7 +49,7 @@ import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
|
public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZyModuleSampleService> { |
|
|
|
|
@Autowired |
|
|
|
|
private IZyModuleSampleService zyModuleSampleService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页列表查询 |
|
|
|
|
* |
|
|
|
@ -66,12 +66,12 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ |
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
QueryWrapper<ZyModuleSample> queryWrapper = QueryGenerator.initQueryWrapper(zyModuleSample, req.getParameterMap()); |
|
|
|
|
QueryWrapper<ZyModuleSample> queryWrapper = QueryGenerator.initQueryWrapper(zyModuleSample, req.getParameterMap()).eq("cloth_id",zyModuleSample.getClothId()); |
|
|
|
|
Page<ZyModuleSample> page = new Page<ZyModuleSample>(pageNo, pageSize); |
|
|
|
|
IPage<ZyModuleSample> pageList = zyModuleSampleService.page(page, queryWrapper); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加 |
|
|
|
|
* |
|
|
|
@ -85,7 +85,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ |
|
|
|
|
zyModuleSampleService.save(zyModuleSample); |
|
|
|
|
return Result.OK("添加成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 编辑 |
|
|
|
|
* |
|
|
|
@ -107,7 +107,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ |
|
|
|
|
zyModuleSampleService.updateById(zyModuleSample); |
|
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过id删除 |
|
|
|
|
* |
|
|
|
@ -121,7 +121,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ |
|
|
|
|
zyModuleSampleService.removeById(id); |
|
|
|
|
return Result.OK("删除成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 批量删除 |
|
|
|
|
* |
|
|
|
@ -135,7 +135,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ |
|
|
|
|
this.zyModuleSampleService.removeByIds(Arrays.asList(ids.split(","))); |
|
|
|
|
return Result.OK("批量删除成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过id查询 |
|
|
|
|
* |
|
|
|
|