17 changed files with 379 additions and 29 deletions
@ -0,0 +1,114 @@ |
|||||
|
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.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; |
||||
|
import com.kms.build.domain.BsSgcJsjdBuiPayAmountInfo; |
||||
|
import com.kms.build.service.BsSgcJsjdBuiPayAmountInfoService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 资金支付-立项Controller |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-04-09 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("/build/payInfo") |
||||
|
@Api(tags = "资金支付-立项") |
||||
|
public class BsSgcJsjdBuiPayAmountInfoController extends BaseController |
||||
|
{ |
||||
|
@Autowired |
||||
|
private BsSgcJsjdBuiPayAmountInfoService bsSgcJsjdBuiPayAmountInfoService; |
||||
|
|
||||
|
/** |
||||
|
* 查询资金支付-立项列表 |
||||
|
*/ |
||||
|
@PostMapping("/list") |
||||
|
@ApiOperation("资金支付-立项列表") |
||||
|
public IPage list(@RequestBody SearchParam<BsSgcJsjdBuiPayAmountInfo> sp) |
||||
|
{ |
||||
|
return bsSgcJsjdBuiPayAmountInfoService.selectPage(sp); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出资金支付-立项列表 |
||||
|
*/ |
||||
|
@Log(title = "资金支付-立项导出", businessType = BusinessType.EXPORT) |
||||
|
@PostMapping("/export") |
||||
|
@ApiOperation("资金支付-立项导出") |
||||
|
public AjaxResult export(@RequestBody BsSgcJsjdBuiPayAmountInfo bsSgcJsjdBuiPayAmountInfo) |
||||
|
{ |
||||
|
List<BsSgcJsjdBuiPayAmountInfo> list = bsSgcJsjdBuiPayAmountInfoService.listByIds(bsSgcJsjdBuiPayAmountInfo.getIds()); |
||||
|
ExcelUtil<BsSgcJsjdBuiPayAmountInfo> util = new ExcelUtil<>(BsSgcJsjdBuiPayAmountInfo.class); |
||||
|
return util.exportExcel(list, "payInfo"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 获取资金支付-立项详细信息 |
||||
|
*/ |
||||
|
@ApiOperation(" 资金支付-立项详情") |
||||
|
@GetMapping(value = "/{id}") |
||||
|
public AjaxResult getInfo(@PathVariable("id") String id) |
||||
|
{ |
||||
|
return AjaxResult.success(bsSgcJsjdBuiPayAmountInfoService.getById(id)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增资金支付-立项 |
||||
|
*/ |
||||
|
@Log(title = "资金支付-立项新增", businessType = BusinessType.INSERT) |
||||
|
@PostMapping |
||||
|
@ApiOperation("资金支付-立项新增") |
||||
|
public AjaxResult add(@RequestBody BsSgcJsjdBuiPayAmountInfo bsSgcJsjdBuiPayAmountInfo) |
||||
|
{ |
||||
|
BaseEntityUtils.preInsert(bsSgcJsjdBuiPayAmountInfo); |
||||
|
return toAjax(bsSgcJsjdBuiPayAmountInfoService.save(bsSgcJsjdBuiPayAmountInfo)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改资金支付-立项 |
||||
|
*/ |
||||
|
@ApiOperation("资金支付-立项修改") |
||||
|
@Log(title = "资金支付-立项修改", businessType = BusinessType.UPDATE) |
||||
|
@PutMapping |
||||
|
public AjaxResult edit(@RequestBody BsSgcJsjdBuiPayAmountInfo bsSgcJsjdBuiPayAmountInfo) |
||||
|
{ |
||||
|
return toAjax(bsSgcJsjdBuiPayAmountInfoService.updateById(bsSgcJsjdBuiPayAmountInfo)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除资金支付-立项 |
||||
|
*/ |
||||
|
@ApiOperation("资金支付-立项删除") |
||||
|
@Log(title = "资金支付-立项删除", businessType = BusinessType.DELETE) |
||||
|
@DeleteMapping("/{ids}") |
||||
|
public AjaxResult remove(@PathVariable String[] ids) |
||||
|
{ |
||||
|
return toAjax(bsSgcJsjdBuiPayAmountInfoService.removeByIds(Arrays.asList(ids))); |
||||
|
} |
||||
|
} |
@ -0,0 +1,87 @@ |
|||||
|
package com.kms.build.domain; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
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_pay_amount_info |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-04-09 |
||||
|
*/ |
||||
|
@TableName("bs_sgc_jsjd_bui_pay_amount_info") |
||||
|
@Data |
||||
|
@ApiModel("资金支付-立项") |
||||
|
public class BsSgcJsjdBuiPayAmountInfo extends BaseEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 所属项目 */ |
||||
|
@Excel(name = "所属项目") |
||||
|
@ApiModelProperty("所属项目") |
||||
|
private String projectName; |
||||
|
|
||||
|
/** 项目编码 */ |
||||
|
@Excel(name = "项目编码") |
||||
|
@ApiModelProperty("项目编码") |
||||
|
private String proCode; |
||||
|
|
||||
|
/** 项目编号 */ |
||||
|
@Excel(name = "项目编号") |
||||
|
@ApiModelProperty("项目编号") |
||||
|
private String proNo; |
||||
|
|
||||
|
/** 支付期数 */ |
||||
|
@Excel(name = "支付期数") |
||||
|
@ApiModelProperty("支付期数") |
||||
|
private String payPeriods; |
||||
|
|
||||
|
/** 支付日期 */ |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8") |
||||
|
@Excel(name = "支付日期", width = 30, dateFormat = "yyyy-MM-dd") |
||||
|
@ApiModelProperty("支付日期") |
||||
|
private Date payDate; |
||||
|
|
||||
|
/** 本期应付金额 */ |
||||
|
@Excel(name = "本期应付金额") |
||||
|
@ApiModelProperty("本期应付金额") |
||||
|
private String payAmount; |
||||
|
|
||||
|
/** 本期实付金额 */ |
||||
|
@Excel(name = "本期实付金额") |
||||
|
@ApiModelProperty("本期实付金额") |
||||
|
private String payActual; |
||||
|
|
||||
|
/** 本期暂扣款 */ |
||||
|
@Excel(name = "本期暂扣款") |
||||
|
@ApiModelProperty("本期暂扣款") |
||||
|
private String payDeduction; |
||||
|
|
||||
|
/** 状态(0:待审核,1:已审核,2:审核通过 */ |
||||
|
@Excel(name = "状态", readConverterExp = "状态(0:待审核,1:已审核,2:审核通过") |
||||
|
@ApiModelProperty("状态") |
||||
|
private String status; |
||||
|
|
||||
|
/** 创建人 */ |
||||
|
@Excel(name = "创建人") |
||||
|
@ApiModelProperty("创建人") |
||||
|
private String createUid; |
||||
|
private String opinion; |
||||
|
|
||||
|
/** 更新人 */ |
||||
|
@Excel(name = "更新人") |
||||
|
@ApiModelProperty("更新人") |
||||
|
private String updateUid; |
||||
|
|
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.kms.build.mapper; |
||||
|
|
||||
|
import org.springframework.stereotype.Repository; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.kms.build.domain.BsSgcJsjdBuiPayAmountInfo; |
||||
|
|
||||
|
/** |
||||
|
* 资金支付-立项Mapper接口 |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-04-09 |
||||
|
*/ |
||||
|
@Repository |
||||
|
public interface BsSgcJsjdBuiPayAmountInfoMapper extends BaseMapper<BsSgcJsjdBuiPayAmountInfo> { |
||||
|
|
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.kms.build.service; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.jianwei.common.core.service.BaseService; |
||||
|
import com.kms.build.mapper.BsSgcJsjdBuiPayAmountInfoMapper; |
||||
|
import com.kms.build.domain.BsSgcJsjdBuiPayAmountInfo; |
||||
|
|
||||
|
/** |
||||
|
* 资金支付-立项Service接口 |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-04-09 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class BsSgcJsjdBuiPayAmountInfoService extends BaseService<BsSgcJsjdBuiPayAmountInfoMapper, BsSgcJsjdBuiPayAmountInfo>{ |
||||
|
|
||||
|
} |
Loading…
Reference in new issue