Browse Source

11.21更新

dev
wangzhenglan 2 years ago
parent
commit
7f28570621
  1. 1
      textja/src/main/java/com/lan/textja/entity/Product.java
  2. 9
      textja/src/main/java/com/lan/textja/mapper/ProductMapper.java
  3. 1
      textja/src/main/java/com/lan/textja/service/HomeServiceImp.java
  4. 4
      textja/src/main/resources/com/lan/textja/mapper/InventoryMapper.xml
  5. 15
      textja/src/main/resources/com/lan/textja/mapper/ProductMapper.xml

1
textja/src/main/java/com/lan/textja/entity/Product.java

@ -22,4 +22,5 @@ public class Product implements Serializable {
private String productChannel; private String productChannel;
private Integer productSellingPrice; private Integer productSellingPrice;
private Integer productTypeNo; private Integer productTypeNo;
private Integer productSupplierNo;
} }

9
textja/src/main/java/com/lan/textja/mapper/ProductMapper.java

@ -6,6 +6,7 @@ import com.lan.textja.util.TreeResult;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import java.util.List; import java.util.List;
import java.util.Map;
public interface ProductMapper extends BaseMapper<Product> { public interface ProductMapper extends BaseMapper<Product> {
@ -24,7 +25,13 @@ public interface ProductMapper extends BaseMapper<Product> {
Product updateProuduct(Integer productNum); Product updateProuduct(Integer productNum);
List<Integer> selectSupplierNo(); List<Product> selectTree();
List<Product> selectTreePtn(Integer productSupplierNo);
List<Product> selectTreePn(Integer productTypeNo);
// @Update("pudate prouduct set name=#{name},type=#{type},state=#{state},size=#{size},alias=#{alias},brands=#{brands},num=#{num} where id=#{id}") // @Update("pudate prouduct set name=#{name},type=#{type},state=#{state},size=#{size},alias=#{alias},brands=#{brands},num=#{num} where id=#{id}")

1
textja/src/main/java/com/lan/textja/service/HomeServiceImp.java

@ -24,6 +24,7 @@ public class HomeServiceImp implements HomeService {
List<MenuResult>List2= homeMapper.selectList2(oneRights.getId()); List<MenuResult>List2= homeMapper.selectList2(oneRights.getId());
oneRights.setChildren(List2); oneRights.setChildren(List2);
} }
return oneList; return oneList;
} }

4
textja/src/main/resources/com/lan/textja/mapper/InventoryMapper.xml

@ -70,7 +70,7 @@
<update id="addQty" parameterType="integer"> <update id="addQty" parameterType="integer">
update product_inventory set update product_inventory set
Inventory_Remaining_Qty=#{inventoryRemainingQty} Inventory_Remaining_Qty=#{remainingQty}
where inventory_Product_Num=#{inventoryProductNum}; where inventory_Product_Num=#{productNum};
</update> </update>
</mapper> </mapper>

15
textja/src/main/resources/com/lan/textja/mapper/ProductMapper.xml

@ -13,7 +13,8 @@
product_Num AS "productNum", product_Num AS "productNum",
product_Channel AS "productChannel", product_Channel AS "productChannel",
product_Selling_Price AS "productSellingPrice", product_Selling_Price AS "productSellingPrice",
product_Type_No AS "productTypeNo" product_Type_No AS "productTypeNo",
product_Supplier_No AS "productSupplierNo"
</sql> </sql>
<select id="onSubmit" resultType="com.lan.textja.entity.Product"> <select id="onSubmit" resultType="com.lan.textja.entity.Product">
@ -56,7 +57,15 @@
select <include refid="productColumns"></include> from product where product_Num=#{productNum} select <include refid="productColumns"></include> from product where product_Num=#{productNum}
</select> </select>
<select id="selectSupplierNo" resultType="Integer"> <select id="selectTree" resultType="com.lan.textja.entity.Product">
select distinct product_Supplier_No from product select product_Name, product_Type, product_Type_No, product_Num, product_Supplier_No, product_Brands FROM product
</select>
<select id="selectTreePtn" resultType="com.lan.textja.entity.Product">
select product_Type, product_Type_No FROM product where product_Supplier_No =#{productSupplierNo}
</select>
<select id="selectTreePn" resultType="com.lan.textja.entity.Product">
select product_Name, product_Num FROM product where product_Type_No =#{productTypeNo}
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save