Commit 3f2a592e authored by 季圣华's avatar 季圣华
Browse files

给报表里面增加规格展示

parent 56bc53c2
...@@ -350,8 +350,6 @@ public class MaterialCategoryService { ...@@ -350,8 +350,6 @@ public class MaterialCategoryService {
/** /**
* create by: qiankunpingtai * create by: qiankunpingtai
* website:https://qiankunpingtai.cn
* description:
* 正常删除,要考虑数据完整性,进行完整性校验 * 正常删除,要考虑数据完整性,进行完整性校验
* create time: 2019/4/11 9:26 * create time: 2019/4/11 9:26
* @Param: ids * @Param: ids
......
...@@ -182,8 +182,6 @@ public class MsgService { ...@@ -182,8 +182,6 @@ public class MsgService {
/** /**
* create by: qiankunpingtai * create by: qiankunpingtai
* website:https://qiankunpingtai.cn
* description:
* 逻辑删除角色信息 * 逻辑删除角色信息
* create time: 2019/3/28 15:44 * create time: 2019/3/28 15:44
* @Param: ids * @Param: ids
......
...@@ -224,8 +224,6 @@ public class PersonService { ...@@ -224,8 +224,6 @@ public class PersonService {
} }
/** /**
* create by: qiankunpingtai * create by: qiankunpingtai
* website:https://qiankunpingtai.cn
* description:
* 正常删除,要考虑数据完整性,进行完整性校验 * 正常删除,要考虑数据完整性,进行完整性校验
* create time: 2019/4/10 15:14 * create time: 2019/4/10 15:14
* @Param: ids * @Param: ids
......
...@@ -177,8 +177,6 @@ public class RoleService { ...@@ -177,8 +177,6 @@ public class RoleService {
} }
/** /**
* create by: qiankunpingtai * create by: qiankunpingtai
* website:https://qiankunpingtai.cn
* description:
* 逻辑删除角色信息 * 逻辑删除角色信息
* create time: 2019/3/28 15:44 * create time: 2019/3/28 15:44
* @Param: ids * @Param: ids
......
...@@ -515,8 +515,6 @@ public class SerialNumberService { ...@@ -515,8 +515,6 @@ public class SerialNumberService {
} }
/** /**
* create by: qiankunpingtai * create by: qiankunpingtai
* website:https://qiankunpingtai.cn
* description:
* 逻辑删除序列号信息 * 逻辑删除序列号信息
* create time: 2019/3/27 17:43 * create time: 2019/3/27 17:43
* @Param: ids * @Param: ids
......
...@@ -379,8 +379,6 @@ public class SupplierService { ...@@ -379,8 +379,6 @@ public class SupplierService {
} }
/** /**
* create by: qiankunpingtai * create by: qiankunpingtai
* website:https://qiankunpingtai.cn
* description:
*正常删除,要考虑数据完整性,进行完整性校验 *正常删除,要考虑数据完整性,进行完整性校验
* create time: 2019/4/10 14:48 * create time: 2019/4/10 14:48
* @Param: ids * @Param: ids
......
...@@ -188,8 +188,6 @@ public class UnitService { ...@@ -188,8 +188,6 @@ public class UnitService {
/** /**
* create by: qiankunpingtai * create by: qiankunpingtai
* website:https://qiankunpingtai.cn
* description:
* 正常删除,要考虑数据完整性,进行完整性校验 * 正常删除,要考虑数据完整性,进行完整性校验
* create time: 2019/4/11 10:20 * create time: 2019/4/11 10:20
* @Param: ids * @Param: ids
......
...@@ -450,8 +450,6 @@ public class UserService { ...@@ -450,8 +450,6 @@ public class UserService {
/** /**
* create by: qiankunpingtai * create by: qiankunpingtai
* create time: 2019/4/9 18:00 * create time: 2019/4/9 18:00
* website:https://qiankunpingtai.cn
* description:
* 多次创建事务,事物之间无法协同,应该在入口处创建一个事务以做协调 * 多次创建事务,事物之间无法协同,应该在入口处创建一个事务以做协调
*/ */
if(BusinessConstants.DEFAULT_MANAGER.equals(ue.getLoginName())) { if(BusinessConstants.DEFAULT_MANAGER.equals(ue.getLoginName())) {
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<result column="Number" jdbcType="VARCHAR" property="Number" /> <result column="Number" jdbcType="VARCHAR" property="Number" />
<result column="MName" jdbcType="VARCHAR" property="MName" /> <result column="MName" jdbcType="VARCHAR" property="MName" />
<result column="Model" jdbcType="VARCHAR" property="Model" /> <result column="Model" jdbcType="VARCHAR" property="Model" />
<result column="standard" jdbcType="VARCHAR" property="standard" />
<result column="unit_price" jdbcType="DECIMAL" property="UnitPrice" /> <result column="unit_price" jdbcType="DECIMAL" property="UnitPrice" />
<result column="oper_number" jdbcType="DECIMAL" property="OperNumber" /> <result column="oper_number" jdbcType="DECIMAL" property="OperNumber" />
<result column="all_price" jdbcType="DECIMAL" property="AllPrice" /> <result column="all_price" jdbcType="DECIMAL" property="AllPrice" />
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
<result column="MaterialId" jdbcType="BIGINT" property="MaterialId" /> <result column="MaterialId" jdbcType="BIGINT" property="MaterialId" />
<result column="mName" jdbcType="VARCHAR" property="mName" /> <result column="mName" jdbcType="VARCHAR" property="mName" />
<result column="Model" jdbcType="VARCHAR" property="Model" /> <result column="Model" jdbcType="VARCHAR" property="Model" />
<result column="standard" jdbcType="VARCHAR" property="standard" />
<result column="categoryName" jdbcType="VARCHAR" property="categoryName" /> <result column="categoryName" jdbcType="VARCHAR" property="categoryName" />
<result column="numSum" jdbcType="DECIMAL" property="numSum" /> <result column="numSum" jdbcType="DECIMAL" property="numSum" />
<result column="priceSum" jdbcType="DECIMAL" property="priceSum" /> <result column="priceSum" jdbcType="DECIMAL" property="priceSum" />
...@@ -136,7 +138,7 @@ ...@@ -136,7 +138,7 @@
</select> </select>
<select id="findByAll" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultWithInfoExMap"> <select id="findByAll" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultWithInfoExMap">
select dh.number,m.`name` MName,m.model,di.unit_price,di.oper_number,di.all_price,s.supplier SName,d.dName DName, select dh.number,m.`name` MName,m.model,m.standard,di.unit_price,di.oper_number,di.all_price,s.supplier SName,d.dName DName,
date_format(dh.oper_time, '%Y-%m-%d') OperTime, concat(dh.sub_type,dh.type) as NewType date_format(dh.oper_time, '%Y-%m-%d') OperTime, concat(dh.sub_type,dh.type) as NewType
from jsh_depot_head dh from jsh_depot_head dh
inner join jsh_depot_item di on di.header_id=dh.id and ifnull(di.delete_flag,'0') !='1' inner join jsh_depot_item di on di.header_id=dh.id and ifnull(di.delete_flag,'0') !='1'
...@@ -188,8 +190,7 @@ ...@@ -188,8 +190,7 @@
</select> </select>
<select id="findInOutMaterialCount" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultInOutMaterialCount"> <select id="findInOutMaterialCount" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultInOutMaterialCount">
select di.material_id, m.mName,m.Model,m.categoryName, select di.material_id, m.mName,m.Model,m.standard,m.categoryName,
(select sum(jdi.basic_number) numSum from jsh_depot_head jdh (select sum(jdi.basic_number) numSum from jsh_depot_head jdh
INNER JOIN jsh_depot_item jdi on jdh.id=jdi.header_id and ifnull(jdi.delete_flag,'0') !='1' INNER JOIN jsh_depot_item jdi on jdh.id=jdi.header_id and ifnull(jdi.delete_flag,'0') !='1'
where jdi.material_id=di.material_id where jdi.material_id=di.material_id
...@@ -223,7 +224,7 @@ ...@@ -223,7 +224,7 @@
) priceSum ) priceSum
from jsh_depot_head dh from jsh_depot_head dh
INNER JOIN jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1' INNER JOIN jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1'
INNER JOIN (SELECT jsh_material.id,jsh_material.name mName, Model,jsh_material_category.`Name` categoryName INNER JOIN (SELECT jsh_material.id,jsh_material.name mName, Model, standard, jsh_material_category.`Name` categoryName
from jsh_material from jsh_material
LEFT JOIN jsh_material_category on jsh_material.category_id=jsh_material_category.Id and ifnull(jsh_material_category.status,'0') !='2' LEFT JOIN jsh_material_category on jsh_material.category_id=jsh_material_category.Id and ifnull(jsh_material_category.status,'0') !='2'
where ifnull(jsh_material.delete_Flag,'0') !='1' where ifnull(jsh_material.delete_Flag,'0') !='1'
...@@ -239,7 +240,7 @@ ...@@ -239,7 +240,7 @@
and di.depot_id in (${dids}) and di.depot_id in (${dids})
</if> </if>
and ifnull(dh.delete_flag,'0') !='1' and ifnull(dh.delete_flag,'0') !='1'
GROUP BY di.material_id,m.mName,m.Model,m.categoryName GROUP BY di.material_id,m.mName,m.Model,m.standard,m.categoryName
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
limit #{offset},#{rows} limit #{offset},#{rows}
</if> </if>
...@@ -247,9 +248,9 @@ ...@@ -247,9 +248,9 @@
<select id="findInOutMaterialCountTotal" resultType="java.lang.Integer"> <select id="findInOutMaterialCountTotal" resultType="java.lang.Integer">
select count(1) from select count(1) from
(select di.material_id, m.mName,m.Model,m.categoryName from jsh_depot_head dh (select di.material_id, m.mName,m.Model,m.standard,m.categoryName from jsh_depot_head dh
INNER JOIN jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1' INNER JOIN jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1'
INNER JOIN (SELECT jsh_material.id,jsh_material.name mName, Model,jsh_material_category.`Name` categoryName INNER JOIN (SELECT jsh_material.id,jsh_material.name mName, Model,standard,jsh_material_category.`Name` categoryName
from jsh_material from jsh_material
LEFT JOIN jsh_material_category on jsh_material.category_id=jsh_material_category.Id and ifnull(jsh_material_category.status,'0') !='2' LEFT JOIN jsh_material_category on jsh_material.category_id=jsh_material_category.Id and ifnull(jsh_material_category.status,'0') !='2'
where ifnull(jsh_material.delete_Flag,'0') !='1' where ifnull(jsh_material.delete_Flag,'0') !='1'
...@@ -264,7 +265,7 @@ ...@@ -264,7 +265,7 @@
and di.depot_id in (${dids}) and di.depot_id in (${dids})
</if> </if>
and ifnull(dh.delete_flag,'0') !='1' and ifnull(dh.delete_flag,'0') !='1'
GROUP BY di.material_id,m.mName,m.Model,m.categoryName) a GROUP BY di.material_id,m.mName,m.Model,m.standard,m.categoryName) a
</select> </select>
<select id="findStatementAccount" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultStatementAccount"> <select id="findStatementAccount" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultStatementAccount">
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<result column="MName" jdbcType="VARCHAR" property="MName" /> <result column="MName" jdbcType="VARCHAR" property="MName" />
<result column="MMfrs" jdbcType="VARCHAR" property="MMfrs" /> <result column="MMfrs" jdbcType="VARCHAR" property="MMfrs" />
<result column="MModel" jdbcType="VARCHAR" property="MModel" /> <result column="MModel" jdbcType="VARCHAR" property="MModel" />
<result column="MStandard" jdbcType="VARCHAR" property="MStandard" />
<result column="MaterialUnit" jdbcType="VARCHAR" property="MaterialUnit" /> <result column="MaterialUnit" jdbcType="VARCHAR" property="MaterialUnit" />
<result column="unit_name" jdbcType="VARCHAR" property="unitName" /> <result column="unit_name" jdbcType="VARCHAR" property="unitName" />
<result column="MColor" jdbcType="VARCHAR" property="MColor" /> <result column="MColor" jdbcType="VARCHAR" property="MColor" />
...@@ -48,6 +49,7 @@ ...@@ -48,6 +49,7 @@
<resultMap id="ResultStockWarningCount" type="com.jsh.erp.datasource.vo.DepotItemStockWarningCount"> <resultMap id="ResultStockWarningCount" type="com.jsh.erp.datasource.vo.DepotItemStockWarningCount">
<result column="MaterialName" jdbcType="VARCHAR" property="MaterialName" /> <result column="MaterialName" jdbcType="VARCHAR" property="MaterialName" />
<result column="MaterialModel" jdbcType="VARCHAR" property="MaterialModel" /> <result column="MaterialModel" jdbcType="VARCHAR" property="MaterialModel" />
<result column="MaterialStandard" jdbcType="VARCHAR" property="MaterialStandard" />
<result column="categoryName" jdbcType="VARCHAR" property="categoryName" /> <result column="categoryName" jdbcType="VARCHAR" property="categoryName" />
<result column="MaterialOther" jdbcType="VARCHAR" property="MaterialOther" /> <result column="MaterialOther" jdbcType="VARCHAR" property="MaterialOther" />
<result column="MaterialUnit" jdbcType="VARCHAR" property="MaterialUnit" /> <result column="MaterialUnit" jdbcType="VARCHAR" property="MaterialUnit" />
...@@ -155,7 +157,7 @@ ...@@ -155,7 +157,7 @@
</select> </select>
<select id="findByAll" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultByMaterial"> <select id="findByAll" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultByMaterial">
select m.id MId, m.name MName, m.mfrs MMfrs, m.model MModel, select m.id MId, m.name MName, m.mfrs MMfrs, m.model MModel, m.standard MStandard,
m.unit MaterialUnit, m.color MColor, u.name unit_name, m.unit MaterialUnit, m.color MColor, u.name unit_name,
(select purchase_decimal from jsh_material_extend me (select purchase_decimal from jsh_material_extend me
where me.material_id=m.id and me.default_flag=1 and ifnull(me.delete_Flag,'0') !='1' limit 0,1) where me.material_id=m.id and me.default_flag=1 and ifnull(me.delete_Flag,'0') !='1' limit 0,1)
...@@ -366,6 +368,7 @@ ...@@ -366,6 +368,7 @@
SELECT SELECT
m.name MaterialName, m.name MaterialName,
m.model MaterialModel, m.model MaterialModel,
m.standard MaterialStandard,
mc.`Name` categoryName, mc.`Name` categoryName,
CONCAT( CONCAT(
'(', '(',
......
Supports Markdown
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