Commit b5463c3d authored by liangyb's avatar liangyb

#261 评标管理新增的本地用户删除失效

#252 并表办法-价格指标-关联要计算得分的投标报价,首次点击下拉框总报价(含税)字段重复(中)
#160 开标工具bug (监督人相关)
#159 推荐组长及失信被执行人查询卡顿
#158 初审时否决相关意见
#157 报表生成失败问题
#156 专家签到时,被抽取专业以及姓名错乱
parent f8b304d2
...@@ -626,7 +626,7 @@ public class BidPriceResultServiceImpl extends ServiceImpl<BidPriceResultMapper, ...@@ -626,7 +626,7 @@ public class BidPriceResultServiceImpl extends ServiceImpl<BidPriceResultMapper,
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean updateBidPriceResultOrSum(BidPriceResult bidPriceResult) { public boolean updateBidPriceResultOrSum(BidPriceResult bidPriceResult) {
if (updateAssignProperty(bidPriceResult, new String[]{"finalBidPrice", "evaluationPrice", "modifyReason"})) { if (updateAssignProperty(bidPriceResult, new String[]{"finalBidPrice", "evaluationPrice", "modifyReason"})) {
if (supplierOpeningResultService.updateSupplierSumPrice(bidPriceResult.getTenderId(), bidPriceResult.getSupplierId(), true, true) > 0) { if (supplierOpeningResultService.updateSupplierPrice(bidPriceResult, new String[]{"finalBidPrice", "evaluationPrice", "bidPrice"}) > 0) {
return supplierOpeningResultService.updateSumModifyReason(bidPriceResult.getTenderId(), bidPriceResult.getSupplierId()); return supplierOpeningResultService.updateSumModifyReason(bidPriceResult.getTenderId(), bidPriceResult.getSupplierId());
} }
} }
......
...@@ -24,7 +24,8 @@ public interface SupplierEvaluationResultMapper extends BaseMapper<SupplierEvalu ...@@ -24,7 +24,8 @@ public interface SupplierEvaluationResultMapper extends BaseMapper<SupplierEvalu
Integer updateObeSupplierEvaluationResultBatchList (@Param("ObeSupplierEvaluationResultList")List<SupplierEvaluationResult> ObeSupplierEvaluationResultList); Integer updateObeSupplierEvaluationResultBatchList (@Param("ObeSupplierEvaluationResultList")List<SupplierEvaluationResult> ObeSupplierEvaluationResultList);
Integer updateUnqObeSupplierEvaluationResultBatchList(@Param("ObeSupplierEvaluationResultList")List<SupplierEvaluationResult> ObeSupplierEvaluationResultList);
String getCreateSupplierEvaluationResultId(@Param("tenderId")String tenderId,@Param("supplierId") String supplierId); String getCreateSupplierEvaluationResultId(@Param("tenderId")String tenderId,@Param("supplierId") String supplierId);
......
package com.gx.obe.server.management.supplier.dao; package com.gx.obe.server.management.supplier.dao;
import com.gx.obe.server.management.evaluation.entity.BidPriceResult;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -44,6 +45,9 @@ public interface SupplierOpeningResultMapper extends BaseMapper<SupplierOpeningR ...@@ -44,6 +45,9 @@ public interface SupplierOpeningResultMapper extends BaseMapper<SupplierOpeningR
* @return * @return
*/ */
Integer updateSupplierSumPrice(@Param("tenderId") String tenderId, @Param("supplierId") String supplierId, @Param("bidPrice") boolean bidPrice, @Param("evalPrice") boolean evalPrice); Integer updateSupplierSumPrice(@Param("tenderId") String tenderId, @Param("supplierId") String supplierId, @Param("bidPrice") boolean bidPrice, @Param("evalPrice") boolean evalPrice);
Integer updateSupplierPrice(@Param("ObeBidPriceResult") BidPriceResult ObeBidPriceResult, @Param("attributes")String[] attributes);
/** /**
* @Description: * @Description:
......
...@@ -2,6 +2,7 @@ package com.gx.obe.server.management.supplier.service; ...@@ -2,6 +2,7 @@ package com.gx.obe.server.management.supplier.service;
import java.util.List; import java.util.List;
import com.gx.obe.server.management.evaluation.entity.BidPriceResult;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
...@@ -67,6 +68,9 @@ public interface SupplierOpeningResultService extends IService<SupplierOpeningRe ...@@ -67,6 +68,9 @@ public interface SupplierOpeningResultService extends IService<SupplierOpeningRe
* @param evalPrice * @param evalPrice
*/ */
Integer updateSupplierSumPrice(String tenderId, String supplierId, boolean bidPrice, boolean evalPrice); Integer updateSupplierSumPrice(String tenderId, String supplierId, boolean bidPrice, boolean evalPrice);
Integer updateSupplierPrice(BidPriceResult ObeBidPriceResult, String[] attributes);
/** /**
* @Description: 获取投标人开标结果 * @Description: 获取投标人开标结果
......
...@@ -79,6 +79,7 @@ public class SupplierEvaluationResultServiceImpl extends ServiceImpl<SupplierEva ...@@ -79,6 +79,7 @@ public class SupplierEvaluationResultServiceImpl extends ServiceImpl<SupplierEva
} }
iCount += insertByBatch(instrtEditPriceItemResultListTemp); iCount += insertByBatch(instrtEditPriceItemResultListTemp);
iCount += supplierEvaluationResultMapper.updateObeSupplierEvaluationResultBatchList(UpdateeditPriceItemResultListTemp); iCount += supplierEvaluationResultMapper.updateObeSupplierEvaluationResultBatchList(UpdateeditPriceItemResultListTemp);
supplierEvaluationResultMapper.updateUnqObeSupplierEvaluationResultBatchList(UpdateeditPriceItemResultListTemp);
return iCount; return iCount;
} }
...@@ -121,7 +122,6 @@ public class SupplierEvaluationResultServiceImpl extends ServiceImpl<SupplierEva ...@@ -121,7 +122,6 @@ public class SupplierEvaluationResultServiceImpl extends ServiceImpl<SupplierEva
* @Description: 统计初审通过(不通过)的供应商数量 * @Description: 统计初审通过(不通过)的供应商数量
* @author wangxaing * @author wangxaing
* @param tenderId * @param tenderId
* @param type
* @return * @return
*/ */
@Override @Override
......
...@@ -12,6 +12,7 @@ import com.gx.obe.server.management.evaluation.service.BidPriceResultService; ...@@ -12,6 +12,7 @@ import com.gx.obe.server.management.evaluation.service.BidPriceResultService;
import com.gx.obe.server.management.supplier.dao.SupplierOpeningResultMapper; import com.gx.obe.server.management.supplier.dao.SupplierOpeningResultMapper;
import com.gx.obe.server.management.supplier.entity.SupplierOpeningResult; import com.gx.obe.server.management.supplier.entity.SupplierOpeningResult;
import com.gx.obe.server.management.supplier.service.SupplierOpeningResultService; import com.gx.obe.server.management.supplier.service.SupplierOpeningResultService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -126,6 +127,11 @@ public class SupplierOpeningResultServiceImpl extends ServiceImpl<SupplierOpenin ...@@ -126,6 +127,11 @@ public class SupplierOpeningResultServiceImpl extends ServiceImpl<SupplierOpenin
return supplierOpeningResultMapper.updateSupplierSumPrice(tenderId, supplierId, bidPrice, evalPrice); return supplierOpeningResultMapper.updateSupplierSumPrice(tenderId, supplierId, bidPrice, evalPrice);
} }
@Override
public Integer updateSupplierPrice(BidPriceResult ObeBidPriceResult,String[] attributes) {
return supplierOpeningResultMapper.updateSupplierPrice(ObeBidPriceResult, attributes);
}
/** /**
* @Description: 获取投标人开标结果 * @Description: 获取投标人开标结果
* @author wangxiang * @author wangxiang
......
...@@ -243,8 +243,8 @@ ...@@ -243,8 +243,8 @@
<!-- 更新用户状态 --> <!-- 更新用户状态 -->
<update id="updateUsestatus"> <update id="updateUsestatus">
UPDATE auth_user UPDATE auth_user
USE_STATUS = #{useStatus} SET USE_STATUS = #{useStatus}
WHERE WHERE
USER_ID = #{id} USER_ID = #{id}
</update> </update>
......
...@@ -88,6 +88,20 @@ ...@@ -88,6 +88,20 @@
</where> </where>
</foreach> </foreach>
</update> </update>
<update id="updateUnqObeSupplierEvaluationResultBatchList" parameterType="java.util.List">
<foreach collection="ObeSupplierEvaluationResultList" item="ObeSupplierEvaluationResult" index="index" open="" close="" separator=";">
UPDATE obe_supplier_evaluation_result
<set>
EVALUATION_OPINION = #{ObeSupplierEvaluationResult.evaluationOpinion} ,
BIDDING_REQUEST = #{ObeSupplierEvaluationResult.biddingRequest },
</set>
<where>
EVALUATION_RESULT_ID = #{ObeSupplierEvaluationResult.id}
AND ACCESSMENT = '01'
</where>
</foreach>
</update>
<!-- 批量插入--> <!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List"> <insert id="insertByBatch" parameterType="java.util.List">
......
...@@ -286,6 +286,53 @@ ...@@ -286,6 +286,53 @@
AND s.SUPPLIER_ID = #{supplierId} AND s.SUPPLIER_ID = #{supplierId}
</if> </if>
</update> </update>
<update id="updateSupplierPrice">
UPDATE OBE_SUPPLIER_OPENING_RESULT
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'priceContent'">
PRICE_CONTENT = #{ObeBidPriceResult.priceContent}
</if>
<if test="attribute == 'currencyCode'">
CURRENCY_CODE = #{ObeBidPriceResult.currencyCode}
</if>
<if test="attribute == 'currencyName'">
CURRENCY_NAME = #{ObeBidPriceResult.currencyName}
</if>
<if test="attribute == 'priceUnit'">
PRICE_UNIT = #{ObeBidPriceResult.priceUnit}
</if>
<if test="attribute == 'finalBidPrice'">
FINAL_BID_PRICE = #{ObeBidPriceResult.finalBidPrice}
</if>
<if test="attribute == 'bidPrice'">
BID_PRICE = #{ObeBidPriceResult.bidPrice}
</if>
<if test="attribute == 'evaluationPrice'">
EVALUATION_PRICE = #{ObeBidPriceResult.evaluationPrice}
</if>
<if test="attribute == 'evaluationPriceOriginal'">
EVALUATION_PRICE_ORIGINAL = #{ObeBidPriceResult.evaluationPriceOriginal}
</if>
<if test="attribute == 'evaluationPriceCorrectRecord'">
EVALUATION_PRICE_CORRECT_RECORD = #{ObeBidPriceResult.evaluationPriceCorrectRecord}
</if>
<if test="attribute == 'modifyReason'">
MODIFY_REASON = #{ObeBidPriceResult.modifyReason}
</if>
<if test="attribute == 'bidPriceName'">
BID_PRICE_NAME = #{ObeBidPriceResult.bidPriceName}
</if>
<if test="attribute == 'createTime'">
CREATE_TIME = #{ObeBidPriceResult.createTime}
</if>
</foreach>
</set>
WHERE TENDER_ID = #{ObeBidPriceResult.tenderId}
AND SUPPLIER_ID = #{ObeBidPriceResult.supplierId}
</update>
<update id="updateEvaluationPriceAndEvaluationPriceOriginal"> <update id="updateEvaluationPriceAndEvaluationPriceOriginal">
UPDATE obe_supplier_opening_result UPDATE obe_supplier_opening_result
......
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