4 changed files with 208 additions and 0 deletions
@ -0,0 +1,115 @@ |
|||
package com.kms.build.controller; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
import com.jianwei.common.core.controller.BaseController; |
|||
import com.jianwei.common.core.domain.SearchParam; |
|||
import com.jianwei.common.utils.poi.ExcelUtil; |
|||
import com.kms.build.domain.BsSgcJsjdBuiPublicity; |
|||
import com.kms.build.service.BsSgcJsjdBuiPublicityService; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
|
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.jianwei.common.mybaitsplus.BeanToWrapper; |
|||
|
|||
import com.jianwei.common.annotation.Log; |
|||
import com.jianwei.common.core.domain.AjaxResult; |
|||
import com.jianwei.common.enums.BusinessType; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 维权公示牌Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-05-06 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/system/publicity") |
|||
@Api(tags = "维权公示牌") |
|||
public class BsSgcJsjdBuiPublicityController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcJsjdBuiPublicityService bsSgcJsjdBuiPublicityService; |
|||
|
|||
/** |
|||
* 查询维权公示牌列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("维权公示牌列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcJsjdBuiPublicity> sp) |
|||
{ |
|||
return bsSgcJsjdBuiPublicityService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出维权公示牌列表 |
|||
*/ |
|||
@Log(title = "维权公示牌导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("维权公示牌导出") |
|||
public AjaxResult export(@RequestBody BsSgcJsjdBuiPublicity bsSgcJsjdBuiPublicity) |
|||
{ |
|||
List<BsSgcJsjdBuiPublicity> list = bsSgcJsjdBuiPublicityService.listByIds(bsSgcJsjdBuiPublicity.getIds()); |
|||
ExcelUtil<BsSgcJsjdBuiPublicity> util = new ExcelUtil<>(BsSgcJsjdBuiPublicity.class); |
|||
return util.exportExcel(list, "publicity"); |
|||
} |
|||
|
|||
/** |
|||
* 获取维权公示牌详细信息 |
|||
*/ |
|||
@ApiOperation(" 维权公示牌详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcJsjdBuiPublicityService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增维权公示牌 |
|||
*/ |
|||
@Log(title = "维权公示牌新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("维权公示牌新增") |
|||
public AjaxResult add(@RequestBody BsSgcJsjdBuiPublicity bsSgcJsjdBuiPublicity) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcJsjdBuiPublicity); |
|||
return toAjax(bsSgcJsjdBuiPublicityService.save(bsSgcJsjdBuiPublicity)); |
|||
} |
|||
|
|||
/** |
|||
* 修改维权公示牌 |
|||
*/ |
|||
@ApiOperation("维权公示牌修改") |
|||
@Log(title = "维权公示牌修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcJsjdBuiPublicity bsSgcJsjdBuiPublicity) |
|||
{ |
|||
return toAjax(bsSgcJsjdBuiPublicityService.updateById(bsSgcJsjdBuiPublicity)); |
|||
} |
|||
|
|||
/** |
|||
* 删除维权公示牌 |
|||
*/ |
|||
@ApiOperation("维权公示牌删除") |
|||
@Log(title = "维权公示牌删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcJsjdBuiPublicityService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,58 @@ |
|||
package com.kms.build.domain; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.jianwei.common.annotation.Excel; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
|
|||
import com.jianwei.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 维权公示牌对象 bs_sgc_jsjd_bui_publicity |
|||
* |
|||
* @author kms |
|||
* @date 2024-05-06 |
|||
*/ |
|||
@TableName("bs_sgc_jsjd_bui_publicity") |
|||
@Data |
|||
@ApiModel("维权公示牌") |
|||
public class BsSgcJsjdBuiPublicity extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 项目编码 */ |
|||
@Excel(name = "项目编码") |
|||
@ApiModelProperty("项目编码") |
|||
private String proCode; |
|||
|
|||
/** 项目编号 */ |
|||
@Excel(name = "项目编号") |
|||
@ApiModelProperty("项目编号") |
|||
private String proNo; |
|||
|
|||
/** 创建人 */ |
|||
@Excel(name = "创建人") |
|||
@ApiModelProperty("创建人") |
|||
private String createUid; |
|||
|
|||
/** 更新人 */ |
|||
@Excel(name = "更新人") |
|||
@ApiModelProperty("更新人") |
|||
private String updateUid; |
|||
|
|||
/** 是否公示 */ |
|||
@Excel(name = "是否公示") |
|||
@ApiModelProperty("是否公示") |
|||
private String isPublicity; |
|||
|
|||
/** 附件 */ |
|||
@Excel(name = "附件") |
|||
@ApiModelProperty("附件") |
|||
private String annex; |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.build.mapper; |
|||
|
|||
import com.kms.build.domain.BsSgcJsjdBuiPublicity; |
|||
import org.springframework.stereotype.Repository; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
|
|||
|
|||
/** |
|||
* 维权公示牌Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-05-06 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcJsjdBuiPublicityMapper extends BaseMapper<BsSgcJsjdBuiPublicity> { |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.kms.build.service; |
|||
|
|||
import com.kms.build.domain.BsSgcJsjdBuiPublicity; |
|||
import com.kms.build.mapper.BsSgcJsjdBuiPublicityMapper; |
|||
import org.springframework.stereotype.Service; |
|||
import com.jianwei.common.core.service.BaseService; |
|||
|
|||
|
|||
/** |
|||
* 维权公示牌Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-05-06 |
|||
*/ |
|||
@Service |
|||
public class BsSgcJsjdBuiPublicityService extends BaseService<BsSgcJsjdBuiPublicityMapper, BsSgcJsjdBuiPublicity>{ |
|||
|
|||
} |
Loading…
Reference in new issue