|
...
|
...
|
@@ -28,7 +28,7 @@ import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
* @Date: 2024-04-15
|
|
|
|
* @Version: V1.0
|
|
|
|
*/
|
|
|
|
@Api(tags="tbl_trad_zong")
|
|
|
|
@Api(tags="view_trad_zong")
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/trad/tblTradZong")
|
|
|
|
@Slf4j
|
|
...
|
...
|
@@ -46,7 +46,7 @@ public class ViewTradZongController extends JeecgController<ViewTradZong, ViewTr |
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
//@AutoLog(value = "tbl_trad_zong-分页列表查询")
|
|
|
|
@ApiOperation(value="tbl_trad_zong-分页列表查询", notes="tbl_trad_zong-分页列表查询")
|
|
|
|
@ApiOperation(value="view_trad_zong-分页列表查询", notes="view_trad_zong-分页列表查询")
|
|
|
|
@GetMapping(value = "/list")
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
public Result<IPage<ViewTradZong>> queryPageList(ViewTradZong viewTradZong,
|
|
...
|
...
|
@@ -65,8 +65,8 @@ public class ViewTradZongController extends JeecgController<ViewTradZong, ViewTr |
|
|
|
* @param viewTradZong
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@AutoLog(value = "tbl_trad_zong-添加")
|
|
|
|
@ApiOperation(value="tbl_trad_zong-添加", notes="tbl_trad_zong-添加")
|
|
|
|
@AutoLog(value = "view_trad_zong-添加")
|
|
|
|
@ApiOperation(value="view_trad_zong-添加", notes="view_trad_zong-添加")
|
|
|
|
@PostMapping(value = "/add")
|
|
|
|
public Result<String> add(@RequestBody ViewTradZong viewTradZong) {
|
|
|
|
viewTradZongService.save(viewTradZong);
|
|
...
|
...
|
@@ -79,8 +79,8 @@ public class ViewTradZongController extends JeecgController<ViewTradZong, ViewTr |
|
|
|
* @param viewTradZong
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@AutoLog(value = "tbl_trad_zong-编辑")
|
|
|
|
@ApiOperation(value="tbl_trad_zong-编辑", notes="tbl_trad_zong-编辑")
|
|
|
|
@AutoLog(value = "view_trad_zong-编辑")
|
|
|
|
@ApiOperation(value="view_trad_zong-编辑", notes="view_trad_zong-编辑")
|
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
|
public Result<String> edit(@RequestBody ViewTradZong viewTradZong) {
|
|
|
|
viewTradZongService.updateById(viewTradZong);
|
|
...
|
...
|
@@ -93,8 +93,8 @@ public class ViewTradZongController extends JeecgController<ViewTradZong, ViewTr |
|
|
|
* @param id
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@AutoLog(value = "tbl_trad_zong-通过id删除")
|
|
|
|
@ApiOperation(value="tbl_trad_zong-通过id删除", notes="tbl_trad_zong-通过id删除")
|
|
|
|
@AutoLog(value = "view_trad_zong-通过id删除")
|
|
|
|
@ApiOperation(value="view_trad_zong-通过id删除", notes="view_trad_zong-通过id删除")
|
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
|
|
viewTradZongService.removeById(id);
|
|
...
|
...
|
@@ -107,8 +107,8 @@ public class ViewTradZongController extends JeecgController<ViewTradZong, ViewTr |
|
|
|
* @param ids
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@AutoLog(value = "tbl_trad_zong-批量删除")
|
|
|
|
@ApiOperation(value="tbl_trad_zong-批量删除", notes="tbl_trad_zong-批量删除")
|
|
|
|
@AutoLog(value = "view_trad_zong-批量删除")
|
|
|
|
@ApiOperation(value="view_trad_zong-批量删除", notes="view_trad_zong-批量删除")
|
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
|
|
this.viewTradZongService.removeByIds(Arrays.asList(ids.split(",")));
|
|
...
|
...
|
@@ -121,8 +121,8 @@ public class ViewTradZongController extends JeecgController<ViewTradZong, ViewTr |
|
|
|
* @param id
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
//@AutoLog(value = "tbl_trad_zong-通过id查询")
|
|
|
|
@ApiOperation(value="tbl_trad_zong-通过id查询", notes="tbl_trad_zong-通过id查询")
|
|
|
|
//@AutoLog(value = "view_trad_zong-通过id查询")
|
|
|
|
@ApiOperation(value="view_trad_zong-通过id查询", notes="view_trad_zong-通过id查询")
|
|
|
|
@GetMapping(value = "/queryById")
|
|
|
|
public Result<ViewTradZong> queryById(@RequestParam(name="id",required=true) String id) {
|
|
|
|
ViewTradZong viewTradZong = viewTradZongService.getById(id);
|
|
...
|
...
|
@@ -140,7 +140,7 @@ public class ViewTradZongController extends JeecgController<ViewTradZong, ViewTr |
|
|
|
*/
|
|
|
|
@RequestMapping(value = "/exportXls")
|
|
|
|
public ModelAndView exportXls(HttpServletRequest request, ViewTradZong viewTradZong) {
|
|
|
|
return super.exportXls(request, viewTradZong, ViewTradZong.class, "tbl_trad_zong");
|
|
|
|
return super.exportXls(request, viewTradZong, ViewTradZong.class, "贸易综合信息");
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|