Commit b5bc504f authored by hubaoshan's avatar hubaoshan

1

parent 1d3a3636
......@@ -3,16 +3,7 @@ package org.rcisoft.bus.bpnsypn.entity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import org.rcisoft.core.entity.CyIdEntity;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.rcisoft.core.entity.CyIdIncreEntity;
/**
......@@ -40,6 +31,17 @@ public class BPnSypn extends CyIdIncreEntity<BPnSypn> {
@Excel(name = "sypn", orderNum = "1", width = 20)
private String sypn;
@Excel(name = "jlpm", orderNum = "2", width = 20)
private String jlpm;
@Excel(name = "sizes", orderNum = "3", width = 20)
private String sizes;
@Excel(name = "product", orderNum = "4", width = 20)
private String product;
@Excel(name = "pn2", orderNum = "5", width = 20)
private String pn2;
/**
* 月度信息pn查询
* **/
......
......@@ -160,9 +160,9 @@ spring:
#---------SQL SERVER-------------
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://${cy_db.ip}:${cy_db.port};DatabaseName=${cy_db.db};encrypt=false
username: ${cy_db.username}
password: ${cy_db.password}
url: jdbc:sqlserver://106.3.99.36:20002;DatabaseName=dbo;encrypt=false
username: sa
password: zdwd519@zdw
type: com.zaxxer.hikari.HikariDataSource
hikari:
minimum-idle: 50
......
......@@ -12,52 +12,83 @@
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="remarks" jdbcType="VARCHAR" property="remarks"/>
<result column="del_flag" jdbcType="NCHAR" property="delFlag"/>
<result column="jlpm" jdbcType="VARCHAR" property="jlpm"/>
<result column="sizes" jdbcType="VARCHAR" property="sizes"/>
<result column="product" jdbcType="VARCHAR" property="product"/>
<result column="pn2" jdbcType="VARCHAR" property="pn2"/>
</resultMap>
<select id="queryBPnSypns" resultMap="BaseResultMap">
select * from b_pn_sypn
where 1=1
<if test="entity.delFlag !=null and entity.delFlag != '' ">
and del_flag = #{entity.delFlag}
</if>
<if test="entity.flag !=null and entity.flag != '' ">
and flag = #{entity.flag}
</if>
<if test="entity.pn !=null and entity.pn != '' ">
and pn like concat('%',#{entity.pn},'%')
</if>
<if test="entity.copyPn!=null and entity.copyPn != '' ">
and pn = #{entity.copyPn}
</if>
<if test="entity.sypn !=null and entity.sypn != '' ">
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if test="entity.delFlag !=null and entity.delFlag != '' ">
and del_flag = #{entity.delFlag}
</if>
<if test="entity.flag !=null and entity.flag != '' ">
and flag = #{entity.flag}
</if>
<if test="entity.pn !=null and entity.pn != '' ">
and pn like concat('%',#{entity.pn},'%')
</if>
<if test="entity.copyPn!=null and entity.copyPn != '' ">
and pn = #{entity.copyPn}
</if>
<if test="entity.sypn !=null and entity.sypn != '' ">
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if test="entity.jlpm !=null and entity.jlpm != '' ">
and jlpm like concat('%',#{entity.jlpm},'%')
</if>
<if test="entity.sizes !=null and entity.sizes != '' ">
and sizes like concat('%',#{entity.sizes},'%')
</if>
<if test="entity.product !=null and entity.product != '' ">
and product like concat('%',#{entity.product},'%')
</if>
<if test="entity.pn2 !=null and entity.pn2 != '' ">
and pn2 like concat('%',#{entity.pn2},'%')
</if>
</select>
<select id="queryBPnSypnsPaged" resultMap="BaseResultMap">
select * from b_pn_sypn
where 1=1
and del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' ">
and flag = #{entity.flag}
</if>
<if test="entity.pn !=null and entity.pn != '' ">
and pn like concat('%',#{entity.pn},'%')
</if>
<if test="entity.sypn !=null and entity.sypn != '' ">
and sypn like concat('%',#{entity.sypn},'%')
</if>
and del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' ">
and flag = #{entity.flag}
</if>
<if test="entity.pn !=null and entity.pn != '' ">
and pn like concat('%',#{entity.pn},'%')
</if>
<if test="entity.sypn !=null and entity.sypn != '' ">
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if test="entity.jlpm !=null and entity.jlpm != '' ">
and jlpm like concat('%',#{entity.jlpm},'%')
</if>
<if test="entity.sizes !=null and entity.sizes != '' ">
and sizes like concat('%',#{entity.sizes},'%')
</if>
<if test="entity.product !=null and entity.product != '' ">
and product like concat('%',#{entity.product},'%')
</if>
<if test="entity.pn2 !=null and entity.pn2 != '' ">
and pn2 like concat('%',#{entity.pn2},'%')
</if>
</select>
<select id="querySomePn" resultType="java.lang.Integer">
SELECT
count(*)
count(*)
FROM
b_pn_sypn
b_pn_sypn
where
del_flag = 0
and pn = #{pn}
<if test="businessId != null and businessId != ''">
and business_id != #{businessId}
</if>
del_flag = 0
and pn = #{pn}
<if test="businessId != null and businessId != ''">
and business_id != #{businessId}
</if>
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment