Bladeren bron

修改驾意险的参数信息,添加人力成本表的查询

hxl13994548489 2 jaren geleden
bovenliggende
commit
ca1281448b

+ 19 - 1
sql/Online.sql

@@ -19,4 +19,22 @@ CREATE TABLE `pingan_api_log`  (
                                    `response_body` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '响应数据',
                                    `response_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '响应类型',
                                    PRIMARY KEY (`id`) USING BTREE
-) ENGINE = InnoDB AUTO_INCREMENT = 583 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '平安日志' ROW_FORMAT = Dynamic;
+) ENGINE = InnoDB AUTO_INCREMENT = 583 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '平安日志' ROW_FORMAT = Dynamic;
+
+-- add by  hxl   20524-07-31  添加人力成本表
+DROP TABLE IF EXISTS `ins_labor_cost`;
+CREATE TABLE `ins_labor_cost`  (
+                                   `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
+                                   `year_month` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '年',
+                                   `labor_cost` decimal(10, 2) NULL DEFAULT NULL COMMENT '人力成本',
+                                   `fixed_cost` decimal(10, 2) NULL DEFAULT NULL COMMENT '固定成本',
+                                   `variable_cost` decimal(10, 2) NULL DEFAULT NULL COMMENT '变动成本',
+                                   `operating_profit` decimal(10, 2) NULL DEFAULT NULL COMMENT '经营利润',
+                                   `taxation` decimal(10, 2) NULL DEFAULT NULL COMMENT '税费',
+                                   `net_profit` decimal(10, 2) NULL DEFAULT NULL COMMENT '净利润',
+                                   `create_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建人',
+                                   `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
+                                   `update_user` datetime NULL DEFAULT NULL COMMENT '修改人',
+                                   `update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
+                                   PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '人力成本表' ROW_FORMAT = Dynamic;

+ 66 - 0
src/main/java/com/ydtech/modules/ins/controller/InsLaborCostController.java

@@ -0,0 +1,66 @@
+package com.ydtech.modules.ins.controller;
+
+
+import com.ydtech.core.page.HttpResult;
+import com.ydtech.modules.base.controller.BaseController;
+import com.ydtech.modules.ins.model.InsLaborCost;
+import com.ydtech.modules.ins.model.vo.InsLaborCostAddVo;
+import com.ydtech.modules.ins.model.vo.InsLaborCostIdsVo;
+import com.ydtech.modules.ins.model.vo.InsLaborCostVo;
+import com.ydtech.modules.ins.service.InsLaborCostService;
+import com.ydtech.modules.order.entity.BasePageResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@Api(tags = "年度成本利润管理")
+@RequestMapping("/insLaborCost")
+@RestController
+public class InsLaborCostController extends BaseController {
+
+
+    @Autowired
+    private InsLaborCostService insLaborCostService;
+
+    @PostMapping("queryPage")
+    @ApiOperation(value = "分页")
+    public HttpResult<BasePageResult<InsLaborCost>> queryPage(@RequestBody InsLaborCostVo insLaborCostVo) {
+
+        try{
+            BasePageResult<InsLaborCost> result = insLaborCostService.queryPage(insLaborCostVo);
+            return HttpResult.ok("查询数据成功", result);
+        }catch (Exception e){
+            return HttpResult.error("查询错误"+e.getMessage());
+        }
+    }
+
+    @PostMapping("addOrUpdate")
+    @ApiOperation("添加修改")
+    public HttpResult<Object> addOrUpdate(@RequestBody InsLaborCostAddVo insLaborCostAddVo) {
+        try{
+            insLaborCostService.addOrUpdate(insLaborCostAddVo,getUser());
+            return HttpResult.ok("操作成功");
+        }catch (Exception e){
+            return HttpResult.error("操作失败"+e.getMessage());
+        }
+
+    }
+
+    @PostMapping("delete")
+    @ApiOperation("删除对象")
+    public HttpResult<Object> delete(@RequestBody InsLaborCostIdsVo idsVo) {
+        if(idsVo.getIds()==null || idsVo.getIds().size()==0){
+            return HttpResult.error("ids集合不能为空");
+        }
+        try{
+            insLaborCostService.deleteByIds(idsVo.getIds());
+            return HttpResult.ok("删除成功");
+        }catch (Exception e){
+            return HttpResult.error("删除失败"+e.getMessage());
+        }
+    }
+}

+ 27 - 0
src/main/java/com/ydtech/modules/ins/dao/InsLaborCostMapper.java

@@ -0,0 +1,27 @@
+package com.ydtech.modules.ins.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ydtech.modules.admin.model.dto.SysUserLinkPtlAgreementDto;
+import com.ydtech.modules.ins.model.InsLaborCost;
+import com.ydtech.modules.ins.model.vo.InsLaborCostVo;
+
+/**
+* @author Administrator
+* @description 针对表【ins_labor_cost(人力成本表)】的数据库操作Mapper
+* @createDate 2024-07-31 14:13:07
+* @Entity generator.domain.InsLaborCost
+*/
+public interface InsLaborCostMapper extends BaseMapper<InsLaborCost> {
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/7/31 15:00
+     *  @Description: 分页查询
+     */
+    Page<InsLaborCost> queryPage(Page<SysUserLinkPtlAgreementDto> page, InsLaborCostVo insLaborCostVo);
+}
+
+
+
+

+ 152 - 0
src/main/java/com/ydtech/modules/ins/model/InsLaborCost.java

@@ -0,0 +1,152 @@
+package com.ydtech.modules.ins.model;
+
+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 lombok.Data;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * 人力成本表
+ * @TableName ins_labor_cost
+ */
+@TableName(value ="ins_labor_cost")
+@Data
+public class InsLaborCost implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId(type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 年-月
+     */
+    private String yearMonth;
+
+
+    /**
+     * 人力成本
+     */
+    private BigDecimal laborCost;
+
+    /**
+     * 固定成本
+     */
+    private BigDecimal fixedCost;
+
+    /**
+     * 变动成本
+     */
+    private BigDecimal variableCost;
+
+    /**
+     * 经营利润
+     */
+    private BigDecimal operatingProfit;
+
+    /**
+     * 税费
+     */
+    private BigDecimal taxation;
+
+    /**
+     * 净利润
+     */
+    private BigDecimal netProfit;
+
+    /**
+     * 创建人
+     */
+    private String createUser;
+
+    /**
+     * 创建时间
+     */
+    private Date createDate;
+
+    /**
+     * 修改人
+     */
+    private Date updateUser;
+
+    /**
+     * 修改时间
+     */
+    private Date updateDate;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        InsLaborCost other = (InsLaborCost) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getYearMonth() == null ? other.getYearMonth() == null : this.getYearMonth().equals(other.getYearMonth()))
+            && (this.getLaborCost() == null ? other.getLaborCost() == null : this.getLaborCost().equals(other.getLaborCost()))
+            && (this.getFixedCost() == null ? other.getFixedCost() == null : this.getFixedCost().equals(other.getFixedCost()))
+            && (this.getVariableCost() == null ? other.getVariableCost() == null : this.getVariableCost().equals(other.getVariableCost()))
+            && (this.getOperatingProfit() == null ? other.getOperatingProfit() == null : this.getOperatingProfit().equals(other.getOperatingProfit()))
+            && (this.getTaxation() == null ? other.getTaxation() == null : this.getTaxation().equals(other.getTaxation()))
+            && (this.getNetProfit() == null ? other.getNetProfit() == null : this.getNetProfit().equals(other.getNetProfit()))
+            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
+            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
+            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
+            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getYearMonth() == null) ? 0 : getYearMonth().hashCode());
+        result = prime * result + ((getLaborCost() == null) ? 0 : getLaborCost().hashCode());
+        result = prime * result + ((getFixedCost() == null) ? 0 : getFixedCost().hashCode());
+        result = prime * result + ((getVariableCost() == null) ? 0 : getVariableCost().hashCode());
+        result = prime * result + ((getOperatingProfit() == null) ? 0 : getOperatingProfit().hashCode());
+        result = prime * result + ((getTaxation() == null) ? 0 : getTaxation().hashCode());
+        result = prime * result + ((getNetProfit() == null) ? 0 : getNetProfit().hashCode());
+        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
+        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
+        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
+        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", yearMonth=").append(yearMonth);
+        sb.append(", laborCost=").append(laborCost);
+        sb.append(", fixedCost=").append(fixedCost);
+        sb.append(", variableCost=").append(variableCost);
+        sb.append(", operatingProfit=").append(operatingProfit);
+        sb.append(", taxation=").append(taxation);
+        sb.append(", netProfit=").append(netProfit);
+        sb.append(", createUser=").append(createUser);
+        sb.append(", createDate=").append(createDate);
+        sb.append(", updateUser=").append(updateUser);
+        sb.append(", updateDate=").append(updateDate);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 65 - 0
src/main/java/com/ydtech/modules/ins/model/vo/InsLaborCostAddVo.java

@@ -0,0 +1,65 @@
+package com.ydtech.modules.ins.model.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+/**
+ * 人力成本表 添加对象
+ * @TableName ins_labor_cost
+ */
+@Data
+@ApiModel("人力成本添加对象")
+public class InsLaborCostAddVo implements Serializable {
+    /**
+     * 主键
+     */
+    @ApiModelProperty("id")
+    private Long id;
+
+    /**
+     * 年-月
+     */
+    @ApiModelProperty("年-月")
+    private String yearMonth;
+
+
+    /**
+     * 人力成本
+     */
+    @ApiModelProperty("人力成本")
+    private BigDecimal laborCost;
+
+    /**
+     * 固定成本
+     */
+    @ApiModelProperty("固定成本")
+    private BigDecimal fixedCost;
+
+    /**
+     * 变动成本
+     */
+    @ApiModelProperty("变动成本")
+    private BigDecimal variableCost;
+
+    /**
+     * 经营利润
+     */
+    @ApiModelProperty("经营利润")
+    private BigDecimal operatingProfit;
+
+    /**
+     * 税费
+     */
+    @ApiModelProperty("税费")
+    private BigDecimal taxation;
+
+    /**
+     * 净利润
+     */
+    @ApiModelProperty("净利润")
+    private BigDecimal netProfit;
+}

+ 21 - 0
src/main/java/com/ydtech/modules/ins/model/vo/InsLaborCostIdsVo.java

@@ -0,0 +1,21 @@
+package com.ydtech.modules.ins.model.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 人力成本表 添加对象
+ */
+@Data
+@ApiModel("人力成本删除对象")
+public class InsLaborCostIdsVo implements Serializable {
+    /**
+     * 主键
+     */
+    @ApiModelProperty("ids集合")
+    private List<Long> ids;
+}

+ 30 - 0
src/main/java/com/ydtech/modules/ins/model/vo/InsLaborCostVo.java

@@ -0,0 +1,30 @@
+package com.ydtech.modules.ins.model.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * 人力成本表
+ * @TableName ins_labor_cost
+ */
+@Data
+@ApiModel("人力成本查询对象")
+public class InsLaborCostVo {
+    /**
+     * 年-月
+     */
+    @ApiModelProperty("年月")
+    private String yearMonth;
+
+    /**
+     * 当前页码
+     */
+    @ApiModelProperty("当前页码")
+    private int pageNum;
+    /**
+     * 每页数量
+     */
+    @ApiModelProperty("每页数量")
+    private int pageSize;
+}

+ 40 - 0
src/main/java/com/ydtech/modules/ins/service/InsLaborCostService.java

@@ -0,0 +1,40 @@
+package com.ydtech.modules.ins.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ydtech.modules.admin.model.SysUser;
+import com.ydtech.modules.ins.model.InsLaborCost;
+import com.ydtech.modules.ins.model.vo.InsLaborCostAddVo;
+import com.ydtech.modules.ins.model.vo.InsLaborCostVo;
+import com.ydtech.modules.order.entity.BasePageResult;
+
+import java.util.List;
+
+
+/**
+* @author Administrator
+* @description 针对表【ins_labor_cost(人力成本表)】的数据库操作Service
+* @createDate 2024-07-31 14:13:07
+*/
+public interface InsLaborCostService extends IService<InsLaborCost> {
+     /**
+      *  @version
+      *  @author: hxl
+      *  @Date: \ 14:58
+      *  @Description:  分页查询
+      */
+    BasePageResult<InsLaborCost> queryPage(InsLaborCostVo insLaborCostVo);
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/7/31 15:04
+     *  @Description: 添加或者修改
+     */
+    void addOrUpdate(InsLaborCostAddVo insLaborCostAddVo, SysUser user);
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/7/31 15:07
+     *  @Description:  删除
+     */
+    void deleteByIds(List<Long> ids);
+}

+ 85 - 0
src/main/java/com/ydtech/modules/ins/service/impl/InsLaborCostServiceImpl.java

@@ -0,0 +1,85 @@
+package com.ydtech.modules.ins.service.impl;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ydtech.modules.admin.model.SysUser;
+import com.ydtech.modules.admin.model.dto.SysUserLinkPtlAgreementDto;
+import com.ydtech.modules.ins.dao.InsLaborCostMapper;
+import com.ydtech.modules.ins.model.InsLaborCost;
+import com.ydtech.modules.ins.model.vo.InsLaborCostAddVo;
+import com.ydtech.modules.ins.model.vo.InsLaborCostVo;
+import com.ydtech.modules.ins.service.InsLaborCostService;
+import com.ydtech.modules.order.entity.BasePageResult;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+* @author Administrator
+* @description 针对表【ins_labor_cost(人力成本表)】的数据库操作Service实现
+* @createDate 2024-07-31 14:13:07
+*/
+@Service
+public class InsLaborCostServiceImpl extends ServiceImpl<InsLaborCostMapper, InsLaborCost>
+    implements InsLaborCostService {
+
+
+    @Autowired
+    private InsLaborCostMapper insLaborCostMapper;
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/7/31 15:05
+     *  @Description: 分页查询
+     */
+    @Override
+    public BasePageResult<InsLaborCost> queryPage(InsLaborCostVo insLaborCostVo) {
+        Page<SysUserLinkPtlAgreementDto> page = new Page<>(insLaborCostVo.getPageNum(),
+                insLaborCostVo.getPageSize());
+        Page<InsLaborCost> sysUserLinkPtlAgreementDtoBasePageResult = insLaborCostMapper.queryPage(page, insLaborCostVo);
+        return  new BasePageResult<>(insLaborCostVo.getPageNum(), page.getSize(), sysUserLinkPtlAgreementDtoBasePageResult.getTotal(), page.getPages(),
+                sysUserLinkPtlAgreementDtoBasePageResult.getRecords());
+    }
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/7/31 15:05
+     *  @Description: 添加修改
+     */
+    @Override
+    public void addOrUpdate(InsLaborCostAddVo insLaborCostAddVo, SysUser user) {
+        Long id = insLaborCostAddVo.getId();
+        if(id==null){
+            InsLaborCost vo = new InsLaborCost();
+            BeanUtils.copyProperties(insLaborCostAddVo, vo);
+            vo.setCreateUser(user.getId());
+            vo.setCreateDate(new Date());
+            vo.setCreateUser(user.getId());
+            vo.setCreateDate(new Date());
+            insLaborCostMapper.insert(vo);
+        }else{
+            InsLaborCost vo = insLaborCostMapper.selectById(insLaborCostAddVo.getId());
+            BeanUtils.copyProperties(insLaborCostAddVo, vo);
+            vo.setCreateUser(user.getId());
+            vo.setCreateDate(new Date());
+            insLaborCostMapper.updateById(vo);
+        }
+    }
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/7/31 15:09
+     *  @Description: 删除数据
+     */
+    @Override
+    public void deleteByIds(List<Long> ids) {
+        this.removeByIds(ids);
+    }
+}
+
+
+
+

+ 2 - 1
src/main/java/com/ydtech/modules/order/entity/api/pingan/request/QuoteRequest.java

@@ -13,6 +13,7 @@ import com.ydtech.modules.order.entity.config.PingAnConfigureParameters;
 import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
 import com.ydtech.modules.order.entity.vo.pingan.InsDrivingIntentionInsuranceSonVo;
 import lombok.Data;
+import org.apache.commons.lang3.StringUtils;
 
 import java.io.Serializable;
 import java.util.ArrayList;
@@ -783,7 +784,7 @@ public class QuoteRequest extends PingAnBaseRequest {
     public QuoteRequest transYJPingAnRequestMsg(InsDrivingIntentionInsuranceSonVo vo, QuoteRequest quoteRequest, String type) {
         //处理
         List<UnAutoListInfoDTO>  unAutoListInfoList=new ArrayList<>();
-        if(vo!=null){
+        if(vo!=null && StringUtils.isNotBlank(vo.getProductCode()) ){
               UnAutoListInfoDTO  unAutoListInfoDTO =new  UnAutoListInfoDTO(vo.getProductCode(),vo.getCode(),"1");
               unAutoListInfoList.add(unAutoListInfoDTO);
         }

+ 1 - 7
src/main/java/com/ydtech/modules/order/service/impl/InsOrdersServiceImpl.java

@@ -26,8 +26,6 @@ import com.ydtech.modules.admin.dao.SysUserLinkPtlAgreementMapper;
 import com.ydtech.modules.admin.dao.SysUserMapper;
 import com.ydtech.modules.admin.model.*;
 import com.ydtech.modules.admin.model.dto.SysUserLinkPtlAgreementDto;
-import com.ydtech.modules.admin.model.po.SysUserAccount;
-import com.ydtech.modules.admin.model.po.SysUserBankCard;
 import com.ydtech.modules.admin.model.po.SysUserIsDial;
 import com.ydtech.modules.admin.service.*;
 import com.ydtech.modules.base.controller.BaseController;
@@ -48,7 +46,6 @@ import com.ydtech.modules.ins.model.vo.RiskInfoVo;
 import com.ydtech.modules.ins.model.ya.CarModelDTO;
 import com.ydtech.modules.ins.model.ya.ExtendInfoDto;
 import com.ydtech.modules.ins.model.ya.ResponseDataC2;
-import com.ydtech.modules.inv.model.excel.InvDisburseExcel;
 import com.ydtech.modules.inv.utils.EasyExcelUtils;
 import com.ydtech.modules.order.constants.JqInsuranceType;
 import com.ydtech.modules.order.dao.InsOrdersMapper;
@@ -88,9 +85,6 @@ import org.springframework.util.ObjectUtils;
 import javax.validation.constraints.NotBlank;
 import java.io.File;
 import java.math.BigDecimal;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
 import java.time.LocalDateTime;
 import java.time.format.DateTimeFormatter;
 import java.time.temporal.ChronoUnit;
@@ -1633,7 +1627,7 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
                 StringUtils.isEmpty(orders.getSystartdate()) ? "" : orders.getSystartdate(),
                 StringUtils.isEmpty(orders.getSyenddate()) ? "" : orders.getSyenddate(),
                 StringUtils.isEmpty(carinfo.getString("modelcname")) ? "" : carinfo.getString("modelcname")
-                );
+        );
         return insOrderVo;
     }
 

+ 39 - 0
src/main/resources/mapper/modules/ins/InsLaborCostMapper.xml

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ydtech.modules.ins.dao.InsLaborCostMapper">
+
+    <resultMap id="BaseResultMap" type="com.ydtech.modules.ins.model.InsLaborCost">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="yearMonth" column="year_month" jdbcType="VARCHAR"/>
+            <result property="laborCost" column="labor_cost" jdbcType="DECIMAL"/>
+            <result property="fixedCost" column="fixed_cost" jdbcType="DECIMAL"/>
+            <result property="variableCost" column="variable_cost" jdbcType="DECIMAL"/>
+            <result property="operatingProfit" column="operating_profit" jdbcType="DECIMAL"/>
+            <result property="taxation" column="taxation" jdbcType="DECIMAL"/>
+            <result property="netProfit" column="net_profit" jdbcType="DECIMAL"/>
+            <result property="createUser" column="create_user" jdbcType="VARCHAR"/>
+            <result property="createDate" column="create_date" jdbcType="TIMESTAMP"/>
+            <result property="updateUser" column="update_user" jdbcType="TIMESTAMP"/>
+            <result property="updateDate" column="update_date" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,year,month,
+        labor_cost,fixed_cost,variable_cost,
+        operating_profit,taxation,net_profit,
+        create_user,create_date,update_user,
+        update_date
+    </sql>
+    <select id="queryPage" resultType="com.ydtech.modules.ins.model.InsLaborCost">
+        select
+        <include refid="Base_Column_List"/>
+        from ins_labor_cost
+        <where>
+            <if test="yearMonth !=null  and  yearMonth !=''">
+                year_month =#{yearMonth}
+            </if>
+        </where>
+    </select>
+</mapper>