修改
This commit is contained in:
@ -0,0 +1,147 @@
|
||||
package com.xjrsoft.module.price.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.google.api.client.util.Lists;
|
||||
import com.pictc.datalog.DataOperationContent;
|
||||
import com.pictc.datalog.DataOperationListener;
|
||||
import com.pictc.enums.BusinessCode;
|
||||
import com.pictc.enums.ExceptionCommonCode;
|
||||
import com.pictc.jdbc.JdbcTools;
|
||||
import com.pictc.jdbc.model.JdbcParam;
|
||||
import com.pictc.utils.StringUtils;
|
||||
import com.xjrsoft.common.exception.BusinessException;
|
||||
import com.xjrsoft.common.model.result.R;
|
||||
import com.xjrsoft.common.page.ConventPage;
|
||||
import com.xjrsoft.common.page.PageOutput;
|
||||
import com.xjrsoft.common.utils.VoToColumnUtil;
|
||||
import com.xjrsoft.module.datalog.service.DatalogService;
|
||||
import com.xjrsoft.module.datalog.vo.DataChangeLogVo;
|
||||
import com.xjrsoft.module.price.dto.LngPricePurPngAppPageDto;
|
||||
import com.xjrsoft.module.price.dto.UpdateLngPricePurPngAppDto;
|
||||
import com.xjrsoft.module.price.entity.LngPricePurPngApp;
|
||||
import com.xjrsoft.module.price.service.IPricePurPngAppService;
|
||||
import com.xjrsoft.module.price.vo.LngPricePurPngAppPageVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @title: 管道气采购价格申请单
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/price" + "/pricePurPngApp")
|
||||
@Api(value = "/price" + "/pricePurPngApp",tags = "管道气采购价格申请单代码")
|
||||
@AllArgsConstructor
|
||||
public class PricePurPngAppController {
|
||||
|
||||
|
||||
private final IPricePurPngAppService pricePurPngAppService;
|
||||
private final DatalogService dataService;
|
||||
|
||||
@GetMapping(value = "/page")
|
||||
@ApiOperation(value="LngPricePurPngApp列表(分页)")
|
||||
@SaCheckPermission("pricePurPngApp:list")
|
||||
public R page(@Valid LngPricePurPngAppPageDto dto){
|
||||
|
||||
LambdaQueryWrapper<LngPricePurPngApp> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper
|
||||
.eq(ObjectUtil.isNotNull(dto.getId()),LngPricePurPngApp::getId,dto.getId())
|
||||
.like(StrUtil.isNotBlank(dto.getAppName()),LngPricePurPngApp::getAppName,dto.getAppName())
|
||||
.like(StrUtil.isNotBlank(dto.getPriceTypeCode()),LngPricePurPngApp::getPriceTypeCode,dto.getPriceTypeCode())
|
||||
.eq(ObjectUtil.isNotNull(dto.getComId()),LngPricePurPngApp::getComId,dto.getComId())
|
||||
.like(StrUtil.isNotBlank(dto.getPriceDesc()),LngPricePurPngApp::getPriceDesc,dto.getPriceDesc())
|
||||
.like(StrUtil.isNotBlank(dto.getApproCode()),LngPricePurPngApp::getApproCode,dto.getApproCode())
|
||||
.orderByDesc(LngPricePurPngApp::getId)
|
||||
.select(LngPricePurPngApp.class,x -> VoToColumnUtil.fieldsToColumns(LngPricePurPngAppPageVo.class).contains(x.getProperty()));
|
||||
IPage<LngPricePurPngApp> page = pricePurPngAppService.page(ConventPage.getPage(dto), queryWrapper);
|
||||
PageOutput<LngPricePurPngAppPageVo> pageOutput = ConventPage.getPageOutput(page, LngPricePurPngAppPageVo.class);
|
||||
return R.ok(pageOutput);
|
||||
}
|
||||
|
||||
@GetMapping(value = "/info")
|
||||
@ApiOperation(value="根据id查询LngPricePurPngApp信息")
|
||||
@SaCheckPermission("pricePurPngApp:detail")
|
||||
public R info(@RequestParam Long id){
|
||||
return R.ok(pricePurPngAppService.getInfoById(id));
|
||||
}
|
||||
|
||||
@GetMapping(value = "/datalog")
|
||||
@ApiOperation(value="根据id查询LngPricePurPngApp数据详细日志")
|
||||
@SaCheckPermission("pricePurPngApp:datalog")
|
||||
public R datalog(@RequestParam Long id){
|
||||
List<DataChangeLogVo> logs = dataService.findLogsByEntityId(UpdateLngPricePurPngAppDto.class,id);
|
||||
return R.ok(logs);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation(value = "新增LngPricePurPngApp")
|
||||
@SaCheckPermission("pricePurPngApp:add")
|
||||
public R add(@Valid @RequestBody UpdateLngPricePurPngAppDto dto){
|
||||
UpdateLngPricePurPngAppDto res = dataService.insert(dto, new DataOperationListener<UpdateLngPricePurPngAppDto>() {
|
||||
@Override
|
||||
public UpdateLngPricePurPngAppDto before(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateLngPricePurPngAppDto after(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
||||
execAfter(content.getTableName(), content.getIdValue(), "I");
|
||||
return content.getObj();
|
||||
}
|
||||
});
|
||||
return R.ok(res);
|
||||
}
|
||||
|
||||
private void execAfter(String table, Long id, String sign) {
|
||||
String sql = StringUtils.format("{? = call pc_{0}.f_save(?, ?)}", table);
|
||||
List<JdbcParam> params = Lists.newArrayList();
|
||||
JdbcParam outParam = JdbcParam.ofString(null).setOut(true);
|
||||
params.add(outParam);
|
||||
params.add(JdbcParam.ofLong(id));
|
||||
params.add(JdbcParam.ofString(sign));
|
||||
JdbcTools.call(sql,params);
|
||||
String error = outParam.getStringValue();
|
||||
if (StringUtils.isNotEmpty(error)) {
|
||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_SAVE_EXEC_ERROR, error));
|
||||
}
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation(value = "修改LngPricePurPngApp")
|
||||
@SaCheckPermission("pricePurPngApp:edit")
|
||||
public R update(@Valid @RequestBody UpdateLngPricePurPngAppDto dto){
|
||||
return R.ok(dataService.updateById(dto, new DataOperationListener<UpdateLngPricePurPngAppDto>() {
|
||||
@Override
|
||||
public UpdateLngPricePurPngAppDto before(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateLngPricePurPngAppDto after(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
||||
execAfter(content.getTableName(), content.getIdValue(), "U");
|
||||
return content.getObj();
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation(value = "删除")
|
||||
@SaCheckPermission("pricePurPngApp:delete")
|
||||
public R delete(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(dataService.deleteByIds(UpdateLngPricePurPngAppDto.class, ids));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,147 @@
|
||||
package com.xjrsoft.module.price.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.google.api.client.util.Lists;
|
||||
import com.pictc.datalog.DataOperationContent;
|
||||
import com.pictc.datalog.DataOperationListener;
|
||||
import com.pictc.enums.BusinessCode;
|
||||
import com.pictc.enums.ExceptionCommonCode;
|
||||
import com.pictc.jdbc.JdbcTools;
|
||||
import com.pictc.jdbc.model.JdbcParam;
|
||||
import com.pictc.utils.StringUtils;
|
||||
import com.xjrsoft.common.exception.BusinessException;
|
||||
import com.xjrsoft.common.model.result.R;
|
||||
import com.xjrsoft.common.page.ConventPage;
|
||||
import com.xjrsoft.common.page.PageOutput;
|
||||
import com.xjrsoft.common.utils.VoToColumnUtil;
|
||||
import com.xjrsoft.module.datalog.service.DatalogService;
|
||||
import com.xjrsoft.module.datalog.vo.DataChangeLogVo;
|
||||
import com.xjrsoft.module.price.dto.LngPriceSalesPngAppPageDto;
|
||||
import com.xjrsoft.module.price.dto.UpdateLngPriceSalesPngAppDto;
|
||||
import com.xjrsoft.module.price.entity.LngPriceSalesPngApp;
|
||||
import com.xjrsoft.module.price.service.IPriceSalesPngAppService;
|
||||
import com.xjrsoft.module.price.vo.LngPriceSalesPngAppPageVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @title: 管道气销售价格申请
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/price" + "/priceSalesPngApp")
|
||||
@Api(value = "/price" + "/priceSalesPngApp",tags = "管道气销售价格申请代码")
|
||||
@AllArgsConstructor
|
||||
public class PriceSalesPngAppController {
|
||||
|
||||
|
||||
private final IPriceSalesPngAppService priceSalesPngAppService;
|
||||
private final DatalogService dataService;
|
||||
|
||||
@GetMapping(value = "/page")
|
||||
@ApiOperation(value="LngPriceSalesPngApp列表(分页)")
|
||||
@SaCheckPermission("priceSalesPngApp:list")
|
||||
public R page(@Valid LngPriceSalesPngAppPageDto dto){
|
||||
|
||||
LambdaQueryWrapper<LngPriceSalesPngApp> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper
|
||||
.eq(ObjectUtil.isNotNull(dto.getId()),LngPriceSalesPngApp::getId,dto.getId())
|
||||
.like(StrUtil.isNotBlank(dto.getAppName()),LngPriceSalesPngApp::getAppName,dto.getAppName())
|
||||
.like(StrUtil.isNotBlank(dto.getPriceTypeCode()),LngPriceSalesPngApp::getPriceTypeCode,dto.getPriceTypeCode())
|
||||
.like(StrUtil.isNotBlank(dto.getPriceDesc()),LngPriceSalesPngApp::getPriceDesc,dto.getPriceDesc())
|
||||
.eq(ObjectUtil.isNotNull(dto.getComId()),LngPriceSalesPngApp::getComId,dto.getComId())
|
||||
.like(StrUtil.isNotBlank(dto.getApproCode()),LngPriceSalesPngApp::getApproCode,dto.getApproCode())
|
||||
.orderByDesc(LngPriceSalesPngApp::getId)
|
||||
.select(LngPriceSalesPngApp.class,x -> VoToColumnUtil.fieldsToColumns(LngPriceSalesPngAppPageVo.class).contains(x.getProperty()));
|
||||
IPage<LngPriceSalesPngApp> page = priceSalesPngAppService.page(ConventPage.getPage(dto), queryWrapper);
|
||||
PageOutput<LngPriceSalesPngAppPageVo> pageOutput = ConventPage.getPageOutput(page, LngPriceSalesPngAppPageVo.class);
|
||||
return R.ok(pageOutput);
|
||||
}
|
||||
|
||||
@GetMapping(value = "/info")
|
||||
@ApiOperation(value="根据id查询LngPriceSalesPngApp信息")
|
||||
@SaCheckPermission("priceSalesPngApp:detail")
|
||||
public R info(@RequestParam Long id){
|
||||
return R.ok(priceSalesPngAppService.getInfoById(id));
|
||||
}
|
||||
|
||||
@GetMapping(value = "/datalog")
|
||||
@ApiOperation(value="根据id查询LngPriceSalesPngApp数据详细日志")
|
||||
@SaCheckPermission("priceSalesPngApp:datalog")
|
||||
public R datalog(@RequestParam Long id){
|
||||
List<DataChangeLogVo> logs = dataService.findLogsByEntityId(UpdateLngPriceSalesPngAppDto.class,id);
|
||||
return R.ok(logs);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation(value = "新增LngPriceSalesPngApp")
|
||||
@SaCheckPermission("priceSalesPngApp:add")
|
||||
public R add(@Valid @RequestBody UpdateLngPriceSalesPngAppDto dto){
|
||||
UpdateLngPriceSalesPngAppDto res = dataService.insert(dto, new DataOperationListener<UpdateLngPriceSalesPngAppDto>() {
|
||||
@Override
|
||||
public UpdateLngPriceSalesPngAppDto before(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateLngPriceSalesPngAppDto after(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
||||
execAfter(content.getTableName(), content.getIdValue(), "I");
|
||||
return content.getObj();
|
||||
}
|
||||
});
|
||||
return R.ok(res.getId());
|
||||
}
|
||||
|
||||
private void execAfter(String table, Long id, String sign) {
|
||||
String sql = StringUtils.format("{? = call pc_{0}.f_save(?, ?)}", table);
|
||||
List<JdbcParam> params = Lists.newArrayList();
|
||||
JdbcParam outParam = JdbcParam.ofString(null).setOut(true);
|
||||
params.add(outParam);
|
||||
params.add(JdbcParam.ofLong(id));
|
||||
params.add(JdbcParam.ofString(sign));
|
||||
JdbcTools.call(sql,params);
|
||||
String error = outParam.getStringValue();
|
||||
if (StringUtils.isNotEmpty(error)) {
|
||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_SAVE_EXEC_ERROR, error));
|
||||
}
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation(value = "修改LngPriceSalesPngApp")
|
||||
@SaCheckPermission("priceSalesPngApp:edit")
|
||||
public R update(@Valid @RequestBody UpdateLngPriceSalesPngAppDto dto){
|
||||
return R.ok(dataService.updateById(dto, new DataOperationListener<UpdateLngPriceSalesPngAppDto>() {
|
||||
@Override
|
||||
public UpdateLngPriceSalesPngAppDto before(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateLngPriceSalesPngAppDto after(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
||||
execAfter(content.getTableName(), content.getIdValue(), "U");
|
||||
return content.getObj();
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation(value = "删除")
|
||||
@SaCheckPermission("priceSalesPngApp:delete")
|
||||
public R delete(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(dataService.deleteByIds(UpdateLngPriceSalesPngAppDto.class, ids));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,149 @@
|
||||
package com.xjrsoft.module.price.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.github.yulichang.annotation.EntityMapping;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @title: 管道气采购价格申请单
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("lng_price_pur_png_app")
|
||||
@ApiModel(value = "管道气采购价格申请单对象", description = "管道气采购价格申请单")
|
||||
public class LngPricePurPngApp implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 交易主体(天然气公司/惠贸)
|
||||
*/
|
||||
@ApiModelProperty("交易主体(天然气公司/惠贸)")
|
||||
private Long comId;
|
||||
|
||||
/**
|
||||
* 申请说明
|
||||
*/
|
||||
@ApiModelProperty("申请说明")
|
||||
private String appName;
|
||||
|
||||
/**
|
||||
* 定价类型(临时定价/最终定价)
|
||||
*/
|
||||
@ApiModelProperty("定价类型(临时定价/最终定价)")
|
||||
private String priceTypeCode;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
@ApiModelProperty("说明")
|
||||
private String priceDesc;
|
||||
|
||||
/**
|
||||
* 提交审批时间
|
||||
*/
|
||||
@ApiModelProperty("提交审批时间")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime dateSubmit;
|
||||
|
||||
/**
|
||||
* 审批状态(未提交/审批中/已审批/已驳回)
|
||||
*/
|
||||
@ApiModelProperty("审批状态(未提交/审批中/已审批/已驳回)")
|
||||
private String approCode;
|
||||
|
||||
/**
|
||||
* 审批时间/价格生效时间
|
||||
*/
|
||||
@ApiModelProperty("审批时间/价格生效时间")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime timeAppro;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ApiModelProperty("创建人id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime createDate;
|
||||
|
||||
/**
|
||||
* 修改人id
|
||||
*/
|
||||
@ApiModelProperty("修改人id")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long modifyUserId;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty("修改时间")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime modifyDate;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@ApiModelProperty("租户id")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
@ApiModelProperty("部门id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 数据权限id
|
||||
*/
|
||||
@ApiModelProperty("数据权限id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ruleUserId;
|
||||
|
||||
|
||||
/**
|
||||
* lngPricePurPngAppSu
|
||||
*/
|
||||
@ApiModelProperty("lngPricePurPngAppSu子表")
|
||||
@TableField(exist = false)
|
||||
@EntityMapping(thisField = "id", joinField = "pppaId")
|
||||
private List<LngPricePurPngAppSu> lngPricePurPngAppSuList;
|
||||
/**
|
||||
* lngPricePurPngAppSuDtl
|
||||
*/
|
||||
@ApiModelProperty("lngPricePurPngAppSuDtl子表")
|
||||
@TableField(exist = false)
|
||||
@EntityMapping(thisField = "id", joinField = "pppasId")
|
||||
private List<LngPricePurPngAppSuDtl> lngPricePurPngAppSuDtlList;
|
||||
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
package com.xjrsoft.module.price.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* @title: 管道气采购价格申请单
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("lng_price_pur_png_app_su")
|
||||
@ApiModel(value = "管道气采购价格申请单对象", description = "管道气采购价格申请单")
|
||||
public class LngPricePurPngAppSu implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 价格-采购-管道气-申请主键
|
||||
*/
|
||||
@ApiModelProperty("价格-采购-管道气-申请主键")
|
||||
private Long pppaId;
|
||||
|
||||
/**
|
||||
* 供应商编码
|
||||
*/
|
||||
@ApiModelProperty("供应商编码")
|
||||
private String suCode;
|
||||
|
||||
/**
|
||||
* 合同-主信息主键(采购合同)
|
||||
*/
|
||||
@ApiModelProperty("合同-主信息主键(采购合同)")
|
||||
private Long kId;
|
||||
|
||||
/**
|
||||
* 合同-国内采购-管道气-上载点主键
|
||||
*/
|
||||
@ApiModelProperty("合同-国内采购-管道气-上载点主键")
|
||||
private Long kpppId;
|
||||
|
||||
/**
|
||||
* 上载点
|
||||
*/
|
||||
@ApiModelProperty("上载点")
|
||||
private String pointUpCode;
|
||||
|
||||
/**
|
||||
* 合同-国内采购-管道气-上载点-交割点主键(合同中交割点价格不同时有值)
|
||||
*/
|
||||
@ApiModelProperty("合同-国内采购-管道气-上载点-交割点主键(合同中交割点价格不同时有值)")
|
||||
private Long kpppsId;
|
||||
|
||||
/**
|
||||
* 交割点
|
||||
*/
|
||||
@ApiModelProperty("交割点")
|
||||
private String pointDelyCode;
|
||||
|
||||
/**
|
||||
* 自主托运(Y-是,N-否;隐藏)
|
||||
*/
|
||||
@ApiModelProperty("自主托运(Y-是,N-否;隐藏)")
|
||||
private String transSign;
|
||||
|
||||
/**
|
||||
* 计量单位(隐藏)
|
||||
*/
|
||||
@ApiModelProperty("计量单位(隐藏)")
|
||||
private String uomCode;
|
||||
|
||||
/**
|
||||
* 价格生效年月(YYYY-MM格式;日期缺省01)
|
||||
*/
|
||||
@ApiModelProperty("价格生效年月(YYYY-MM格式;日期缺省01)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime dateFrom;
|
||||
|
||||
/**
|
||||
* 价格组成(明细表记录组合,用于页面显示)
|
||||
*/
|
||||
@ApiModelProperty("价格组成(明细表记录组合,用于页面显示)")
|
||||
private String priceDesc;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ApiModelProperty("创建人id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime createDate;
|
||||
|
||||
/**
|
||||
* 修改人id
|
||||
*/
|
||||
@ApiModelProperty("修改人id")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long modifyUserId;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty("修改时间")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime modifyDate;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@ApiModelProperty("租户id")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
@ApiModelProperty("部门id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 数据权限id
|
||||
*/
|
||||
@ApiModelProperty("数据权限id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ruleUserId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,144 @@
|
||||
package com.xjrsoft.module.price.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* @title: 管道气采购价格申请单
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("lng_price_pur_png_app_su_dtl")
|
||||
@ApiModel(value = "管道气采购价格申请单对象", description = "管道气采购价格申请单")
|
||||
public class LngPricePurPngAppSuDtl implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 价格-采购-管道气-申请-供应商主键
|
||||
*/
|
||||
@ApiModelProperty("价格-采购-管道气-申请-供应商主键")
|
||||
private Long pppasId;
|
||||
|
||||
/**
|
||||
* 基础量/增量(基础量/增量1/增量2)
|
||||
*/
|
||||
@ApiModelProperty("基础量/增量(基础量/增量1/增量2)")
|
||||
private String priceCode;
|
||||
|
||||
/**
|
||||
* 优先级(必须录入)
|
||||
*/
|
||||
@ApiModelProperty("优先级(必须录入)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Byte sort;
|
||||
|
||||
/**
|
||||
* 比值(方/吉焦)(只读,从参数设置带过来;1立方=37.3兆焦;)
|
||||
*/
|
||||
@ApiModelProperty("比值(方/吉焦)(只读,从参数设置带过来;1立方=37.3兆焦;)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal rateM3Gj;
|
||||
|
||||
/**
|
||||
* 数量(吉焦)(父主键相同的记录,只有一条记录的量可空)
|
||||
*/
|
||||
@ApiModelProperty("数量(吉焦)(父主键相同的记录,只有一条记录的量可空)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal rateQtyGj;
|
||||
|
||||
/**
|
||||
* 数量(方)(父主键相同的记录,只有一条记录的量可空)
|
||||
*/
|
||||
@ApiModelProperty("数量(方)(父主键相同的记录,只有一条记录的量可空)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal rateQtyM3;
|
||||
|
||||
/**
|
||||
* 采购价格(元/吉焦)(必须录入)
|
||||
*/
|
||||
@ApiModelProperty("采购价格(元/吉焦)(必须录入)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal priceGj;
|
||||
|
||||
/**
|
||||
* 采购价格(元/方)(必须录入)
|
||||
*/
|
||||
@ApiModelProperty("采购价格(元/方)(必须录入)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal priceM3;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ApiModelProperty("创建人id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime createDate;
|
||||
|
||||
/**
|
||||
* 修改人id
|
||||
*/
|
||||
@ApiModelProperty("修改人id")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long modifyUserId;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty("修改时间")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime modifyDate;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@ApiModelProperty("租户id")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
@ApiModelProperty("部门id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 数据权限id
|
||||
*/
|
||||
@ApiModelProperty("数据权限id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ruleUserId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,149 @@
|
||||
package com.xjrsoft.module.price.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.github.yulichang.annotation.EntityMapping;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @title: 管道气销售价格申请
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("lng_price_sales_png_app")
|
||||
@ApiModel(value = "管道气销售价格申请对象", description = "管道气销售价格申请")
|
||||
public class LngPriceSalesPngApp implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 交易主体(天然气公司/惠贸)
|
||||
*/
|
||||
@ApiModelProperty("交易主体(天然气公司/惠贸)")
|
||||
private Long comId;
|
||||
|
||||
/**
|
||||
* 申请说明
|
||||
*/
|
||||
@ApiModelProperty("申请说明")
|
||||
private String appName;
|
||||
|
||||
/**
|
||||
* 定价类型(临时定价/最终定价)
|
||||
*/
|
||||
@ApiModelProperty("定价类型(临时定价/最终定价)")
|
||||
private String priceTypeCode;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
@ApiModelProperty("说明")
|
||||
private String priceDesc;
|
||||
|
||||
/**
|
||||
* 提交审批时间
|
||||
*/
|
||||
@ApiModelProperty("提交审批时间")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime dateSubmit;
|
||||
|
||||
/**
|
||||
* 审批状态(未提交/审批中/已审批/已驳回)
|
||||
*/
|
||||
@ApiModelProperty("审批状态(未提交/审批中/已审批/已驳回)")
|
||||
private String approCode;
|
||||
|
||||
/**
|
||||
* 审批时间/价格生效时间
|
||||
*/
|
||||
@ApiModelProperty("审批时间/价格生效时间")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime timeAppro;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ApiModelProperty("创建人id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime createDate;
|
||||
|
||||
/**
|
||||
* 修改人id
|
||||
*/
|
||||
@ApiModelProperty("修改人id")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long modifyUserId;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty("修改时间")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime modifyDate;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@ApiModelProperty("租户id")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
@ApiModelProperty("部门id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 数据权限id
|
||||
*/
|
||||
@ApiModelProperty("数据权限id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ruleUserId;
|
||||
|
||||
|
||||
/**
|
||||
* lngPriceSalesPngAppCu
|
||||
*/
|
||||
@ApiModelProperty("lngPriceSalesPngAppCu子表")
|
||||
@TableField(exist = false)
|
||||
@EntityMapping(thisField = "id", joinField = "pspaId")
|
||||
private List<LngPriceSalesPngAppCu> lngPriceSalesPngAppCuList;
|
||||
/**
|
||||
* lngPriceSalesPngAppCuDtl
|
||||
*/
|
||||
@ApiModelProperty("lngPriceSalesPngAppCuDtl子表")
|
||||
@TableField(exist = false)
|
||||
@EntityMapping(thisField = "id", joinField = "pspacId")
|
||||
private List<LngPriceSalesPngAppCuDtl> lngPriceSalesPngAppCuDtlList;
|
||||
|
||||
}
|
||||
@ -0,0 +1,138 @@
|
||||
package com.xjrsoft.module.price.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* @title: 管道气销售价格申请
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("lng_price_sales_png_app_cu")
|
||||
@ApiModel(value = "管道气销售价格申请对象", description = "管道气销售价格申请")
|
||||
public class LngPriceSalesPngAppCu implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 价格-销售-管道气-申请主键
|
||||
*/
|
||||
@ApiModelProperty("价格-销售-管道气-申请主键")
|
||||
private Long pspaId;
|
||||
|
||||
/**
|
||||
* 客户编码
|
||||
*/
|
||||
@ApiModelProperty("客户编码")
|
||||
private String cuCode;
|
||||
|
||||
/**
|
||||
* 合同-主信息主键(销售合同)
|
||||
*/
|
||||
@ApiModelProperty("合同-主信息主键(销售合同)")
|
||||
private Long kId;
|
||||
|
||||
/**
|
||||
* 合同-国内销售-管道气-交割点主键
|
||||
*/
|
||||
@ApiModelProperty("合同-国内销售-管道气-交割点主键")
|
||||
private Long ksppId;
|
||||
|
||||
/**
|
||||
* 交割点
|
||||
*/
|
||||
@ApiModelProperty("交割点")
|
||||
private String pointDelyCode;
|
||||
|
||||
/**
|
||||
* 计量单位(隐藏)
|
||||
*/
|
||||
@ApiModelProperty("计量单位(隐藏)")
|
||||
private String uomCode;
|
||||
|
||||
/**
|
||||
* 价格生效年月(YYYY-MM格式;日期缺省01)
|
||||
*/
|
||||
@ApiModelProperty("价格生效年月(YYYY-MM格式;日期缺省01)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime dateFrom;
|
||||
|
||||
/**
|
||||
* 价格组成(明细表记录组合,用于页面显示)
|
||||
*/
|
||||
@ApiModelProperty("价格组成(明细表记录组合,用于页面显示)")
|
||||
private String priceDesc;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ApiModelProperty("创建人id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime createDate;
|
||||
|
||||
/**
|
||||
* 修改人id
|
||||
*/
|
||||
@ApiModelProperty("修改人id")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long modifyUserId;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty("修改时间")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime modifyDate;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@ApiModelProperty("租户id")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
@ApiModelProperty("部门id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 数据权限id
|
||||
*/
|
||||
@ApiModelProperty("数据权限id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ruleUserId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,144 @@
|
||||
package com.xjrsoft.module.price.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* @title: 管道气销售价格申请
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("lng_price_sales_png_app_cu_dtl")
|
||||
@ApiModel(value = "管道气销售价格申请对象", description = "管道气销售价格申请")
|
||||
public class LngPriceSalesPngAppCuDtl implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 价格-销售-管道气-申请-客户主键
|
||||
*/
|
||||
@ApiModelProperty("价格-销售-管道气-申请-客户主键")
|
||||
private Long pspacId;
|
||||
|
||||
/**
|
||||
* 基础量/增量(基础量/增量1/增量2)
|
||||
*/
|
||||
@ApiModelProperty("基础量/增量(基础量/增量1/增量2)")
|
||||
private String priceCode;
|
||||
|
||||
/**
|
||||
* 优先级(必须录入)
|
||||
*/
|
||||
@ApiModelProperty("优先级(必须录入)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Byte sort;
|
||||
|
||||
/**
|
||||
* 比值(方/吉焦)(只读,从参数设置带过来;1立方=37.3兆焦;)
|
||||
*/
|
||||
@ApiModelProperty("比值(方/吉焦)(只读,从参数设置带过来;1立方=37.3兆焦;)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal rateM3Gj;
|
||||
|
||||
/**
|
||||
* 数量(吉焦)(父主键相同的记录,只有一条记录的量可空)
|
||||
*/
|
||||
@ApiModelProperty("数量(吉焦)(父主键相同的记录,只有一条记录的量可空)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal rateQtyGj;
|
||||
|
||||
/**
|
||||
* 数量(方)(父主键相同的记录,只有一条记录的量可空)
|
||||
*/
|
||||
@ApiModelProperty("数量(方)(父主键相同的记录,只有一条记录的量可空)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal rateQtyM3;
|
||||
|
||||
/**
|
||||
* 销售价格(元/吉焦)(必须录入)
|
||||
*/
|
||||
@ApiModelProperty("销售价格(元/吉焦)(必须录入)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal priceGj;
|
||||
|
||||
/**
|
||||
* 销售价格(元/方)(必须录入)
|
||||
*/
|
||||
@ApiModelProperty("销售价格(元/方)(必须录入)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private BigDecimal priceM3;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ApiModelProperty("创建人id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime createDate;
|
||||
|
||||
/**
|
||||
* 修改人id
|
||||
*/
|
||||
@ApiModelProperty("修改人id")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long modifyUserId;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty("修改时间")
|
||||
@TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime modifyDate;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@ApiModelProperty("租户id")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
@ApiModelProperty("部门id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 数据权限id
|
||||
*/
|
||||
@ApiModelProperty("数据权限id")
|
||||
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ruleUserId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xjrsoft.module.price.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.price.entity.LngPricePurPngApp;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface LngPricePurPngAppMapper extends MPJBaseMapper<LngPricePurPngApp>, BaseMapper<LngPricePurPngApp> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xjrsoft.module.price.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.price.entity.LngPricePurPngAppSuDtl;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface LngPricePurPngAppSuDtlMapper extends MPJBaseMapper<LngPricePurPngAppSuDtl>, BaseMapper<LngPricePurPngAppSuDtl> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.xjrsoft.module.price.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.price.entity.LngPricePurPngAppSu;
|
||||
import com.xjrsoft.module.price.vo.LngPricePurPngAppSuVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface LngPricePurPngAppSuMapper extends MPJBaseMapper<LngPricePurPngAppSu>, BaseMapper<LngPricePurPngAppSu> {
|
||||
|
||||
@Select("SELECT t1.*, t2.k_name AS kName, t3.su_sname AS suName, t7.name as uomName," +
|
||||
" t4.full_name AS pointUpName, t5.full_name AS pointDelyName" +
|
||||
" FROM lng_price_pur_png_app_su t1" +
|
||||
" LEFT JOIN lng_contract t2 ON t1.id = t1.k_id" +
|
||||
" LEFT JOIN lng_supplier t3 ON t3.su_code = t1.su_code" +
|
||||
" LEFT JOIN lng_b_station_png t4 ON t4.code = t1.point_up_code" +
|
||||
" LEFT JOIN lng_b_station_png t5 ON t5.code = t1.point_dely_code" +
|
||||
" LEFT JOIN xjr_dictionary_item t6 ON t6.code = 'LNG_UOM'" +
|
||||
" LEFT JOIN xjr_dictionary_detail t7 ON t7.item_id = t6.id AND t7.code = t1.uom_code" +
|
||||
" WHERE t1.pppa_id = #{pid}")
|
||||
List<LngPricePurPngAppSuVo> selectListByPid(@Param("pid") Long pid);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xjrsoft.module.price.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.price.entity.LngPriceSalesPngAppCuDtl;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface LngPriceSalesPngAppCuDtlMapper extends MPJBaseMapper<LngPriceSalesPngAppCuDtl>, BaseMapper<LngPriceSalesPngAppCuDtl> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.xjrsoft.module.price.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.price.entity.LngPriceSalesPngAppCu;
|
||||
import com.xjrsoft.module.price.vo.LngPriceSalesPngAppCuVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface LngPriceSalesPngAppCuMapper extends MPJBaseMapper<LngPriceSalesPngAppCu>, BaseMapper<LngPriceSalesPngAppCu> {
|
||||
|
||||
@Select("SELECT t1.*, t2.k_name AS kName, t3.cu_sname AS cuName, t7.name as uomName," +
|
||||
" t5.full_name AS pointDelyName" +
|
||||
" FROM lng_price_sales_png_app_cu t1" +
|
||||
" LEFT JOIN lng_contract t2 ON t1.id = t1.k_id" +
|
||||
" LEFT JOIN lng_customer t3 ON t3.cu_code = t1.cu_code" +
|
||||
" LEFT JOIN lng_b_station_png t5 ON t5.code = t1.point_dely_code" +
|
||||
" LEFT JOIN xjr_dictionary_item t6 ON t6.code = 'LNG_UOM'" +
|
||||
" LEFT JOIN xjr_dictionary_detail t7 ON t7.item_id = t6.id AND t7.code = t1.uom_code" +
|
||||
" WHERE t1.pspa_id = #{pid}")
|
||||
List<LngPriceSalesPngAppCuVo> selectListByPid(@Param("pid") Long pid);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xjrsoft.module.price.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.price.entity.LngPriceSalesPngApp;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface LngPriceSalesPngAppMapper extends MPJBaseMapper<LngPriceSalesPngApp>, BaseMapper<LngPriceSalesPngApp> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.xjrsoft.module.price.service;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseService;
|
||||
import com.github.yulichang.extension.mapping.base.MPJDeepService;
|
||||
import com.github.yulichang.extension.mapping.base.MPJRelationService;
|
||||
import com.xjrsoft.module.price.entity.LngPricePurPngApp;
|
||||
import com.xjrsoft.module.price.vo.LngPricePurPngAppVo;
|
||||
|
||||
/**
|
||||
* @title: service
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
public interface IPricePurPngAppService extends MPJBaseService<LngPricePurPngApp>, MPJDeepService<LngPricePurPngApp>, MPJRelationService<LngPricePurPngApp> {
|
||||
|
||||
LngPricePurPngAppVo getInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.xjrsoft.module.price.service;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseService;
|
||||
import com.github.yulichang.extension.mapping.base.MPJDeepService;
|
||||
import com.github.yulichang.extension.mapping.base.MPJRelationService;
|
||||
import com.xjrsoft.module.price.entity.LngPriceSalesPngApp;
|
||||
import com.xjrsoft.module.price.vo.LngPriceSalesPngAppVo;
|
||||
|
||||
/**
|
||||
* @title: service
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
public interface IPriceSalesPngAppService extends MPJBaseService<LngPriceSalesPngApp>, MPJDeepService<LngPriceSalesPngApp>, MPJRelationService<LngPriceSalesPngApp> {
|
||||
|
||||
LngPriceSalesPngAppVo getInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.xjrsoft.module.price.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.github.yulichang.base.MPJBaseServiceImpl;
|
||||
import com.pictc.enums.BusinessCode;
|
||||
import com.xjrsoft.common.exception.BusinessException;
|
||||
import com.xjrsoft.module.price.entity.LngPricePurPngApp;
|
||||
import com.xjrsoft.module.price.entity.LngPricePurPngAppSuDtl;
|
||||
import com.xjrsoft.module.price.mapper.LngPricePurPngAppMapper;
|
||||
import com.xjrsoft.module.price.mapper.LngPricePurPngAppSuDtlMapper;
|
||||
import com.xjrsoft.module.price.mapper.LngPricePurPngAppSuMapper;
|
||||
import com.xjrsoft.module.price.service.IPricePurPngAppService;
|
||||
import com.xjrsoft.module.price.vo.LngPricePurPngAppSuDtlVo;
|
||||
import com.xjrsoft.module.price.vo.LngPricePurPngAppSuVo;
|
||||
import com.xjrsoft.module.price.vo.LngPricePurPngAppVo;
|
||||
import com.xjrsoft.module.system.client.IFileClient;
|
||||
import com.xjrsoft.module.system.vo.LngFileUploadVo;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @title: service
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class PricePurPngAppServiceImpl extends MPJBaseServiceImpl<LngPricePurPngAppMapper, LngPricePurPngApp> implements IPricePurPngAppService {
|
||||
|
||||
private final LngPricePurPngAppSuMapper lngPricePurPngAppSuMapper;
|
||||
private final LngPricePurPngAppSuDtlMapper lngPricePurPngAppSuDtlMapper;
|
||||
private final IFileClient fileClient;
|
||||
|
||||
@Override
|
||||
public LngPricePurPngAppVo getInfoById(Long id) {
|
||||
LngPricePurPngApp lngPricePurPngApp = this.getById(id);
|
||||
if(lngPricePurPngApp == null) {
|
||||
throw new BusinessException(BusinessCode.of(10500,"找不到此数据"));
|
||||
}
|
||||
LngPricePurPngAppVo vo = BeanUtil.toBean(lngPricePurPngApp, LngPricePurPngAppVo.class);
|
||||
List<LngPricePurPngAppSuVo> lngPricePurPngAppSuVoList = lngPricePurPngAppSuMapper
|
||||
.selectListByPid(lngPricePurPngApp.getId());
|
||||
vo.setLngPricePurPngAppSuList(lngPricePurPngAppSuVoList);
|
||||
for (LngPricePurPngAppSuVo lngPricePurPngAppSuVo : lngPricePurPngAppSuVoList) {
|
||||
List<LngPricePurPngAppSuDtl> lngPricePurPngAppSuDtlList = lngPricePurPngAppSuDtlMapper
|
||||
.selectList(new LambdaQueryWrapper<LngPricePurPngAppSuDtl>()
|
||||
.eq(LngPricePurPngAppSuDtl::getPppasId, lngPricePurPngAppSuVo.getId()));
|
||||
lngPricePurPngAppSuVo.setLngPricePurPngAppSuDtlList(BeanUtil.copyToList(lngPricePurPngAppSuDtlList,
|
||||
LngPricePurPngAppSuDtlVo.class));
|
||||
}
|
||||
List<LngFileUploadVo> fileList = fileClient.getTableFiles("lng_price_pur_png_app",
|
||||
"lngFileUploadList", vo.getId());
|
||||
vo.setLngFileUploadList(fileList);
|
||||
return vo;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.xjrsoft.module.price.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.github.yulichang.base.MPJBaseServiceImpl;
|
||||
import com.pictc.enums.BusinessCode;
|
||||
import com.xjrsoft.common.exception.BusinessException;
|
||||
import com.xjrsoft.module.price.entity.LngPriceSalesPngApp;
|
||||
import com.xjrsoft.module.price.entity.LngPriceSalesPngAppCuDtl;
|
||||
import com.xjrsoft.module.price.mapper.LngPriceSalesPngAppCuDtlMapper;
|
||||
import com.xjrsoft.module.price.mapper.LngPriceSalesPngAppCuMapper;
|
||||
import com.xjrsoft.module.price.mapper.LngPriceSalesPngAppMapper;
|
||||
import com.xjrsoft.module.price.service.IPriceSalesPngAppService;
|
||||
import com.xjrsoft.module.price.vo.LngPriceSalesPngAppCuDtlVo;
|
||||
import com.xjrsoft.module.price.vo.LngPriceSalesPngAppCuVo;
|
||||
import com.xjrsoft.module.price.vo.LngPriceSalesPngAppVo;
|
||||
import com.xjrsoft.module.system.client.IFileClient;
|
||||
import com.xjrsoft.module.system.vo.LngFileUploadVo;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @title: service
|
||||
* @Author 管理员
|
||||
* @Date: 2026-03-03
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class PriceSalesPngAppServiceImpl extends MPJBaseServiceImpl<LngPriceSalesPngAppMapper, LngPriceSalesPngApp> implements IPriceSalesPngAppService {
|
||||
|
||||
private final LngPriceSalesPngAppCuMapper lngPriceSalesPngAppCuMapper;
|
||||
private final LngPriceSalesPngAppCuDtlMapper lngPriceSalesPngAppCuDtlMapper;
|
||||
private final IFileClient fileClient;
|
||||
|
||||
@Override
|
||||
public LngPriceSalesPngAppVo getInfoById(Long id) {
|
||||
LngPriceSalesPngApp lngPriceSalesPngApp = this.getById(id);
|
||||
if(lngPriceSalesPngApp == null) {
|
||||
throw new BusinessException(BusinessCode.of(10500,"找不到此数据"));
|
||||
}
|
||||
LngPriceSalesPngAppVo vo = BeanUtil.toBean(lngPriceSalesPngApp, LngPriceSalesPngAppVo.class);
|
||||
List<LngPriceSalesPngAppCuVo> lngPriceSalesPngAppCuVoList = lngPriceSalesPngAppCuMapper
|
||||
.selectListByPid(lngPriceSalesPngApp.getId());
|
||||
vo.setLngPriceSalesPngAppCuList(lngPriceSalesPngAppCuVoList);
|
||||
for (LngPriceSalesPngAppCuVo lngPriceSalesPngAppCuVo : lngPriceSalesPngAppCuVoList) {
|
||||
List<LngPriceSalesPngAppCuDtl> lngPriceSalesPngAppCuDtlList = lngPriceSalesPngAppCuDtlMapper
|
||||
.selectList(new LambdaQueryWrapper<LngPriceSalesPngAppCuDtl>()
|
||||
.eq(LngPriceSalesPngAppCuDtl::getPspacId, lngPriceSalesPngAppCuVo.getId()));
|
||||
lngPriceSalesPngAppCuVo.setLngPriceSalesPngAppCuDtlList(BeanUtil.copyToList(lngPriceSalesPngAppCuDtlList,
|
||||
LngPriceSalesPngAppCuDtlVo.class));
|
||||
}
|
||||
List<LngFileUploadVo> fileList = fileClient.getTableFiles("lng_price_sales_png_app",
|
||||
"lngFileUploadList", vo.getId());
|
||||
vo.setLngFileUploadList(fileList);
|
||||
return vo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user