Merge branch 'dev' of http://47.94.165.164:13000/geg-gas/geg-gas-pcitc into dev
This commit is contained in:
@ -1,6 +1,18 @@
|
||||
package com.xjrsoft.module.contract.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
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.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.google.api.client.util.Lists;
|
||||
import com.pictc.datalog.DataOperationContent;
|
||||
import com.pictc.datalog.DataOperationListener;
|
||||
@ -17,13 +29,11 @@ import com.xjrsoft.module.contract.dto.UpdateLngContractSalesPngPointDto;
|
||||
import com.xjrsoft.module.contract.service.IContractSalesService;
|
||||
import com.xjrsoft.module.datalog.service.DatalogService;
|
||||
import com.xjrsoft.module.datalog.vo.DataChangeLogVo;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
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: 国内管道气销售
|
||||
|
||||
@ -0,0 +1,133 @@
|
||||
package com.xjrsoft.module.contract.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
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.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.pictc.datalog.DataOperationContent;
|
||||
import com.pictc.datalog.DataOperationListener;
|
||||
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.contract.dto.LngContractSalesPngPointPageDto;
|
||||
import com.xjrsoft.module.contract.dto.UpdateLngContractSalesPngPointDto;
|
||||
import com.xjrsoft.module.contract.entity.LngContractSalesPngPoint;
|
||||
import com.xjrsoft.module.contract.service.IContractSalesPngPointService;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointPageVo;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointVo;
|
||||
import com.xjrsoft.module.datalog.service.DatalogService;
|
||||
import com.xjrsoft.module.datalog.vo.DataChangeLogVo;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
||||
/**
|
||||
* @title: 采运销关联
|
||||
* @Author 管理员
|
||||
* @Date: 2026-04-02
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/contract" + "/contractSalesPngPur")
|
||||
@Api(value = "/contract" + "/contractSalesPngPur",tags = "采运销关联代码")
|
||||
@AllArgsConstructor
|
||||
public class ContractSalesPngPointController {
|
||||
|
||||
|
||||
private final IContractSalesPngPointService contractSalesPngPointService;
|
||||
private final DatalogService dataService;
|
||||
|
||||
@GetMapping(value = "/page")
|
||||
@ApiOperation(value="LngContractSalesPngPoint列表(分页)")
|
||||
@SaCheckPermission("contractSalesPngPur:list")
|
||||
public R page(@Valid LngContractSalesPngPointPageDto dto){
|
||||
|
||||
LambdaQueryWrapper<LngContractSalesPngPoint> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper
|
||||
.eq(ObjectUtil.isNotNull(dto.getId()),LngContractSalesPngPoint::getId,dto.getId())
|
||||
.orderByDesc(LngContractSalesPngPoint::getId)
|
||||
.select(LngContractSalesPngPoint.class,x -> VoToColumnUtil.fieldsToColumns(LngContractSalesPngPointPageVo.class).contains(x.getProperty()));
|
||||
IPage<LngContractSalesPngPoint> page = contractSalesPngPointService.page(ConventPage.getPage(dto), queryWrapper);
|
||||
PageOutput<LngContractSalesPngPointPageVo> pageOutput = ConventPage.getPageOutput(page, LngContractSalesPngPointPageVo.class);
|
||||
return R.ok(pageOutput);
|
||||
}
|
||||
|
||||
@GetMapping(value = "/info")
|
||||
@ApiOperation(value="根据id查询LngContractSalesPngPoint信息")
|
||||
@SaCheckPermission("contractSalesPngPur:detail")
|
||||
public R info(@RequestParam Long id){
|
||||
LngContractSalesPngPointVo lngContractSalesPngPoint = contractSalesPngPointService.getInfoById(id);
|
||||
|
||||
return R.ok(lngContractSalesPngPoint);
|
||||
}
|
||||
|
||||
@GetMapping(value = "/datalog")
|
||||
@ApiOperation(value="根据id查询LngContractSalesPngPoint数据详细日志")
|
||||
@SaCheckPermission("contractSalesPngPur:datalog")
|
||||
public R datalog(@RequestParam Long id){
|
||||
List<DataChangeLogVo> logs = dataService.findLogsByEntityId(UpdateLngContractSalesPngPointDto.class,id);
|
||||
return R.ok(logs);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation(value = "新增LngContractSalesPngPoint")
|
||||
@SaCheckPermission("contractSalesPngPur:add")
|
||||
public R add(@Valid @RequestBody UpdateLngContractSalesPngPointDto dto){
|
||||
return R.ok( dataService.insert(dto, new DataOperationListener<UpdateLngContractSalesPngPointDto>() {
|
||||
@Override
|
||||
public UpdateLngContractSalesPngPointDto before(DataOperationContent<UpdateLngContractSalesPngPointDto> content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateLngContractSalesPngPointDto after(DataOperationContent<UpdateLngContractSalesPngPointDto> content) {
|
||||
|
||||
return null;
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation(value = "修改LngContractSalesPngPoint")
|
||||
@SaCheckPermission("contractSalesPngPur:edit")
|
||||
public R update(@Valid @RequestBody UpdateLngContractSalesPngPointDto dto){
|
||||
return R.ok( dataService.updateById(dto, new DataOperationListener<UpdateLngContractSalesPngPointDto>() {
|
||||
@Override
|
||||
public UpdateLngContractSalesPngPointDto before(DataOperationContent<UpdateLngContractSalesPngPointDto> content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateLngContractSalesPngPointDto after(DataOperationContent<UpdateLngContractSalesPngPointDto> content) {
|
||||
|
||||
return null;
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation(value = "删除")
|
||||
@SaCheckPermission("contractSalesPngPur:delete")
|
||||
public R delete(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(dataService.deleteByIds(UpdateLngContractSalesPngPointDto.class, ids));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,172 @@
|
||||
package com.xjrsoft.module.contract.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.Version;
|
||||
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.LocalTime;
|
||||
import java.time.LocalDateTime;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @title: 采运销关联
|
||||
* @Author 管理员
|
||||
* @Date: 2026-04-02
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("lng_contract_sales_png_point_pur")
|
||||
@ApiModel(value = "采运销关联对象", description = "采运销关联")
|
||||
public class LngContractSalesPngPointPur implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 合同-档案主键(管道气销售合同lng_contract.id)
|
||||
*/
|
||||
@ApiModelProperty("合同-档案主键(管道气销售合同lng_contract.id)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ksId;
|
||||
|
||||
/**
|
||||
* 合同-国内销售-管道气-交割点主键(lng_contract_sales_png_point.id)
|
||||
*/
|
||||
@ApiModelProperty("合同-国内销售-管道气-交割点主键(lng_contract_sales_png_point.id)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ksppId;
|
||||
|
||||
/**
|
||||
* 交割点编码(从合同-国内销售-管道气-交割点表带过来)
|
||||
*/
|
||||
@ApiModelProperty("交割点编码(从合同-国内销售-管道气-交割点表带过来)")
|
||||
private String pointDelyCode;
|
||||
|
||||
/**
|
||||
* 自主托运(Y-是,N-否;从合同-国内销售-管道气-交割点表带过来;可编辑)
|
||||
*/
|
||||
@ApiModelProperty("自主托运(Y-是,N-否;从合同-国内销售-管道气-交割点表带过来;可编辑)")
|
||||
private String transSign;
|
||||
|
||||
/**
|
||||
* 合同-档案主键(管道气采购合同;自有资源为空)
|
||||
*/
|
||||
@ApiModelProperty("合同-档案主键(管道气采购合同;自有资源为空)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long kpId;
|
||||
|
||||
/**
|
||||
* 合同-国内采购-管道气-上载点主键
|
||||
*/
|
||||
@ApiModelProperty("合同-国内采购-管道气-上载点主键")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long kpppId;
|
||||
|
||||
/**
|
||||
* 供应商编码
|
||||
*/
|
||||
@ApiModelProperty("供应商编码")
|
||||
private String suCode;
|
||||
|
||||
/**
|
||||
* 上载点编码
|
||||
*/
|
||||
@ApiModelProperty("上载点编码")
|
||||
private String pointUpCode;
|
||||
|
||||
/**
|
||||
* 有效期开始
|
||||
*/
|
||||
@ApiModelProperty("有效期开始")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime dateFrom;
|
||||
|
||||
/**
|
||||
* 有效期结束
|
||||
*/
|
||||
@ApiModelProperty("有效期结束")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime dateTo;
|
||||
|
||||
/**
|
||||
* 顺序
|
||||
*/
|
||||
@ApiModelProperty("顺序")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Short sort;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@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,191 @@
|
||||
package com.xjrsoft.module.contract.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.Version;
|
||||
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.LocalTime;
|
||||
import java.time.LocalDateTime;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @title: 采运销关联
|
||||
* @Author 管理员
|
||||
* @Date: 2026-04-02
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("lng_contract_sales_png_point_trans")
|
||||
@ApiModel(value = "采运销关联对象", description = "采运销关联")
|
||||
public class LngContractSalesPngPointTrans implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 合同-档案主键(lng_contract.id)
|
||||
*/
|
||||
@ApiModelProperty("合同-档案主键(lng_contract.id)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ksId;
|
||||
|
||||
/**
|
||||
* 合同-国内销售管道气-交割点主键(lng_contract_sales_png_point.id)
|
||||
*/
|
||||
@ApiModelProperty("合同-国内销售管道气-交割点主键(lng_contract_sales_png_point.id)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ksppId;
|
||||
|
||||
/**
|
||||
* 合同-国内销售管道气-交割点-上载主键(lng_contract_sales_png_point_pur.id)
|
||||
*/
|
||||
@ApiModelProperty("合同-国内销售管道气-交割点-上载主键(lng_contract_sales_png_point_pur.id)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long kspppId;
|
||||
|
||||
/**
|
||||
* 交割点编码(lng_contract_sales_png_point_pur.point_dely_code)
|
||||
*/
|
||||
@ApiModelProperty("交割点编码(lng_contract_sales_png_point_pur.point_dely_code)")
|
||||
private String pointDelyCode;
|
||||
|
||||
/**
|
||||
* 资源上载点编码(lng_contract_sales_png_point_pur.point_up_code)
|
||||
*/
|
||||
@ApiModelProperty("资源上载点编码(lng_contract_sales_png_point_pur.point_up_code)")
|
||||
private String pointUpCode;
|
||||
|
||||
/**
|
||||
* 自主托运(Y-是,N-否;缺省Y;隐藏;lng_contract_sales_png_point_pur.trans_sign)
|
||||
*/
|
||||
@ApiModelProperty("自主托运(Y-是,N-否;缺省Y;隐藏;lng_contract_sales_png_point_pur.trans_sign)")
|
||||
private String transSign;
|
||||
|
||||
/**
|
||||
* 合同-档案主键(lng_contract.id)
|
||||
*/
|
||||
@ApiModelProperty("合同-档案主键(lng_contract.id)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ktId;
|
||||
|
||||
/**
|
||||
* 合同-管输-上下载点主键(lng_contract_trans_png.id)
|
||||
*/
|
||||
@ApiModelProperty("合同-管输-上下载点主键(lng_contract_trans_png.id)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Long ktpId;
|
||||
|
||||
/**
|
||||
* 托运商编码(从管输合同带出来;只读)
|
||||
*/
|
||||
@ApiModelProperty("托运商编码(从管输合同带出来;只读)")
|
||||
private String suCode;
|
||||
|
||||
/**
|
||||
* 管输上载点编码(从管输合同带出来;只读)
|
||||
*/
|
||||
@ApiModelProperty("管输上载点编码(从管输合同带出来;只读)")
|
||||
private String pointUpTransCode;
|
||||
|
||||
/**
|
||||
* 管输交割点编码(从管输合同带出来;只读)
|
||||
*/
|
||||
@ApiModelProperty("管输交割点编码(从管输合同带出来;只读)")
|
||||
private String pointDelyTransCode;
|
||||
|
||||
/**
|
||||
* 有效期开始(从管输合同带出来;可编辑)
|
||||
*/
|
||||
@ApiModelProperty("有效期开始(从管输合同带出来;可编辑)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime dateFrom;
|
||||
|
||||
/**
|
||||
* 有效期结束(从管输合同带出来;可编辑)
|
||||
*/
|
||||
@ApiModelProperty("有效期结束(从管输合同带出来;可编辑)")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private LocalDateTime dateTo;
|
||||
|
||||
/**
|
||||
* 顺序
|
||||
*/
|
||||
@ApiModelProperty("顺序")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private Short sort;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@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;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1,9 +1,13 @@
|
||||
package com.xjrsoft.module.contract.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.contract.entity.LngContractSalesPngPoint;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointVo;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
@ -14,4 +18,15 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
@Mapper
|
||||
public interface LngContractSalesPngPointMapper extends MPJBaseMapper<LngContractSalesPngPoint>, BaseMapper<LngContractSalesPngPoint> {
|
||||
|
||||
@Select("SELECT kspp.*, bspd.full_name AS point_dely_Name,ks.k_no AS ks_no, ks.k_name AS ks_name, " +
|
||||
" NVL(com.short_name,com.name) AS com_name,cu.cu_sname AS cu_name"+
|
||||
" FROM lng_contract_sales_png_point kspp" +
|
||||
" JOIN lng_contract ks ON ks.id=kspp.k_id" +
|
||||
" LEFT JOIN lng_customer cu ON cu.cu_code=ks.cp_code"+
|
||||
" LEFT JOIN xjr_department com ON com.id=ks.com_id"+
|
||||
" LEFT JOIN lng_b_station_png bspd ON bspd.code=kspp.point_dely_code" +
|
||||
" WHERE kspp.id = #{ksppId}")
|
||||
LngContractSalesPngPointVo queryLngContractSalesPngPointById(@Param("ksppId") Long ksppId);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
package com.xjrsoft.module.contract.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.contract.entity.LngContractSalesPngPointPur;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointPurVo;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
* @Author 管理员
|
||||
* @Date: 2026-04-02
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface LngContractSalesPngPointPurMapper extends MPJBaseMapper<LngContractSalesPngPointPur> , BaseMapper<LngContractSalesPngPointPur> {
|
||||
|
||||
@Select("SELECT ksppp.*, bspu.full_name AS point_up_name, kp.k_name AS kp_name, " +
|
||||
" su.su_sname AS su_name"+
|
||||
" FROM lng_contract_sales_png_point_pur ksppp" +
|
||||
" LEFT JOIN lng_contract kp ON kp.id=ksppp.kp_id" +
|
||||
" LEFT JOIN lng_supplier su ON su.su_code=ksppp.su_code"+
|
||||
" LEFT JOIN lng_b_station_png bspu ON bspu.code=ksppp.point_up_code" +
|
||||
" WHERE ksppp.kspp_id = #{ksppId}")
|
||||
List<LngContractSalesPngPointPurVo> queryLngContractSalesPngPointPurList(@Param("ksppId") Long ksppId);
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.xjrsoft.module.contract.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.xjrsoft.module.contract.entity.LngContractSalesPngPointPur;
|
||||
import com.xjrsoft.module.contract.entity.LngContractSalesPngPointTrans;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointTransVo;
|
||||
|
||||
/**
|
||||
* @title: mapper
|
||||
* @Author 管理员
|
||||
* @Date: 2026-04-02
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface LngContractSalesPngPointTransMapper extends MPJBaseMapper<LngContractSalesPngPointTrans> , BaseMapper<LngContractSalesPngPointTrans> {
|
||||
|
||||
@Select("SELECT ksppt.*, su_ys.su_sname AS su_ys_name, kt.k_name AS kt_name, " +
|
||||
" bspd.full_name AS point_dely_name,bspu.full_name AS point_up_name, " +
|
||||
" bput.full_name AS point_up_trans_name,bpdt.full_name AS point_dely_trans_name " +
|
||||
" FROM lng_contract_sales_png_point_trans ksppt" +
|
||||
" LEFT JOIN lng_contract kt ON kt.id=ksppt.kt_id" +
|
||||
" LEFT JOIN lng_b_station_png bspd ON bspd.code=ksppt.point_dely_code"+
|
||||
" LEFT JOIN lng_b_station_png bspu ON bspu.code=ksppt.point_up_code"+
|
||||
" LEFT JOIN lng_b_station_png bput ON bput.code=ksppt.point_up_trans_code"+
|
||||
" LEFT JOIN lng_b_station_png bpdt ON bpdt.code=ksppt.point_dely_trans_code"+
|
||||
" LEFT JOIN lng_supplier su_ys ON su_ys.su_code=ksppt.su_code" +
|
||||
" WHERE ksppt.ksppp_id = #{kspppId}")
|
||||
List<LngContractSalesPngPointTransVo> queryLngContractSalesPngPointTransList(@Param("kspppId") Long kspppId);
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.xjrsoft.module.contract.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.contract.entity.LngContractSalesPngPoint;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointVo;
|
||||
|
||||
/**
|
||||
* @title: service
|
||||
* @Author 管理员
|
||||
* @Date: 2026-04-02
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
public interface IContractSalesPngPointService extends MPJBaseService<LngContractSalesPngPoint>, MPJDeepService<LngContractSalesPngPoint>, MPJRelationService<LngContractSalesPngPoint> {
|
||||
|
||||
LngContractSalesPngPointVo getInfoById(Long id);
|
||||
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
package com.xjrsoft.module.contract.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseServiceImpl;
|
||||
import com.xjrsoft.common.model.result.R;
|
||||
import com.xjrsoft.module.contract.entity.LngContractSalesPngPoint;
|
||||
import com.xjrsoft.module.contract.mapper.LngContractSalesPngPointMapper;
|
||||
import com.xjrsoft.module.contract.mapper.LngContractSalesPngPointPurMapper;
|
||||
import com.xjrsoft.module.contract.mapper.LngContractSalesPngPointTransMapper;
|
||||
import com.xjrsoft.module.contract.service.IContractSalesPngPointService;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointPurVo;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointTransVo;
|
||||
import com.xjrsoft.module.contract.vo.LngContractSalesPngPointVo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
|
||||
/**
|
||||
* @title: service
|
||||
* @Author 管理员
|
||||
* @Date: 2026-04-02
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class ContractSalesPngPointServiceImpl extends MPJBaseServiceImpl<LngContractSalesPngPointMapper, LngContractSalesPngPoint> implements IContractSalesPngPointService {
|
||||
|
||||
private LngContractSalesPngPointMapper cspPointMapper;
|
||||
|
||||
private LngContractSalesPngPointPurMapper cspPointPurMapper;
|
||||
|
||||
private LngContractSalesPngPointTransMapper cspPointTransMapper;
|
||||
|
||||
@Override
|
||||
public LngContractSalesPngPointVo getInfoById(Long id) {
|
||||
LngContractSalesPngPointVo cspPointVo = cspPointMapper.queryLngContractSalesPngPointById(id);
|
||||
if (cspPointVo == null) {
|
||||
return null;
|
||||
}
|
||||
List<LngContractSalesPngPointPurVo> cspPointPurVoList = cspPointPurMapper.queryLngContractSalesPngPointPurList(id);
|
||||
if(cspPointPurVoList != null && cspPointPurVoList.size() >0) {
|
||||
cspPointVo.setLngContractSalesPngPointPurList(cspPointPurVoList);
|
||||
for(LngContractSalesPngPointPurVo cspPointPur:cspPointPurVoList) {
|
||||
List<LngContractSalesPngPointTransVo> cspPointTransVoList = cspPointTransMapper.queryLngContractSalesPngPointTransList(cspPointPur.getId());
|
||||
cspPointPur.setLngContractSalesPngPointTransList(cspPointTransVoList);
|
||||
}
|
||||
}
|
||||
return cspPointVo;
|
||||
}
|
||||
|
||||
}
|
||||
@ -150,7 +150,7 @@ public class MeaPurIntController {
|
||||
|
||||
@Override
|
||||
public UpdateLngMeaPurIntDto after(DataOperationContent<UpdateLngMeaPurIntDto> content) {
|
||||
String sql = StringUtils.format("{? = call pc_{0}.f_save(?,?)}",
|
||||
String sql = StringUtils.format("{? = call pc_{0}.f_save(?,?)}",
|
||||
content.getTableName());
|
||||
List<JdbcParam> params = Lists.newArrayList();
|
||||
JdbcParam outParam = JdbcParam.ofString(null).setOut(true);
|
||||
|
||||
Reference in New Issue
Block a user