项目罚款记录修改

This commit is contained in:
guoshengxiong 2024-05-29 16:14:06 +08:00
parent 4c6fa89e44
commit 753321e26e
6 changed files with 24 additions and 23 deletions

View File

@ -45,17 +45,17 @@ public class ProjectFineRecordController {
* 分页列表查询
* @return
*/
@ApiOperation(value = "分页列表查询项目罚款记录", notes = "分页列表查询项目罚款记录", httpMethod = "POST")
@ApiImplicitParams({
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "fineType", value = "类型1奖励2扣款3罚款", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "body", required = true, dataType = "Integer"),
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "body", required = true, dataType = "Integer"),
})
@PostMapping(value = "/list")
public Result<IPage<EntityMap>> queryPageList(@RequestBody Map<String,Object> map) {
return Result.success(projectFineRecordService.selectProjectFineRecordPageList(map));
}
@ApiOperation(value = "分页列表查询项目罚款记录", notes = "分页列表查询项目罚款记录", httpMethod = "POST")
@ApiImplicitParams({
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "fineType", value = "类型1奖励2扣款3罚款", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "body", required = true, dataType = "Integer"),
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "body", required = true, dataType = "Integer"),
})
@PostMapping(value = "/list")
public Result<IPage<ProjectFineRecord>> queryPageList(@RequestBody Map<String, Object> map) {
return Result.success(projectFineRecordService.selectProjectFineRecordPageList(map));
}

View File

@ -3,6 +3,7 @@ package com.zhgd.xmgl.modules.project.entity;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@ -90,9 +91,11 @@ public class ProjectFineRecord implements Serializable {
private java.lang.String remarks;
@ApiModelProperty(value = "'安全环保部门签名'")
private java.lang.String securityEnvironmentalDepartment;
private java.lang.String securityEnvironmentalDepartmentSign;
@ApiModelProperty(value = "'承包商项目经理签名'")
private java.lang.String cbsProjectManagerSign;
@TableField(exist = false)
@ApiModelProperty(value = "企业名称")
private String enterpriseName;
}

View File

@ -19,5 +19,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@Mapper
public interface ProjectFineRecordMapper extends BaseMapper<ProjectFineRecord> {
List<EntityMap> selectProjectFineRecordPageList(Page<EntityMap> page, @Param("param")Map<String, Object> map);
List<ProjectFineRecord> selectProjectFineRecordPageList(Page<ProjectFineRecord> page, @Param("param") Map<String, Object> map);
}

View File

@ -2,15 +2,13 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zhgd.xmgl.modules.project.mapper.ProjectFineRecordMapper">
<select id="selectProjectFineRecordPageList" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
<select id="selectProjectFineRecordPageList" resultType="com.zhgd.xmgl.modules.project.entity.ProjectFineRecord">
SELECT a.*,b.enterprise_name
from project_fine_record a LEFT JOIN enterprise_info b ON a.enterprise_id=b.id
WHERE a.project_sn=#{param.projectSn}
<if test="param.fineType!=null and param.fineType!=''">
<if test="param.fineType != null and param.fineType != ''">
and a.fine_type=#{param.fineType}
</if>
ORDER BY a.create_time
</select>
</mapper>
</mapper>

View File

@ -15,5 +15,5 @@ import java.util.Map;
*/
public interface IProjectFineRecordService extends IService<ProjectFineRecord> {
IPage<EntityMap> selectProjectFineRecordPageList(Map<String, Object> map);
IPage<ProjectFineRecord> selectProjectFineRecordPageList(Map<String, Object> map);
}

View File

@ -28,11 +28,11 @@ public class ProjectFineRecordServiceImpl extends ServiceImpl<ProjectFineRecordM
private ProjectFineRecordMapper projectFineRecordMapper;
@Override
public IPage<EntityMap> selectProjectFineRecordPageList(Map<String, Object> map) {
public IPage<ProjectFineRecord> selectProjectFineRecordPageList(Map<String, Object> map) {
int pageNo = Integer.parseInt(map.getOrDefault("pageNo", 1).toString());
int pageSize = Integer.parseInt(map.getOrDefault("pageSize", 10).toString());
Page<EntityMap> page = new Page<>(pageNo, pageSize);
List<EntityMap> list=projectFineRecordMapper.selectProjectFineRecordPageList(page, map);
Page<ProjectFineRecord> page = new Page<>(pageNo, pageSize);
List<ProjectFineRecord> list = projectFineRecordMapper.selectProjectFineRecordPageList(page, map);
return page.setRecords(list);
}
}