md
This commit is contained in:
parent
209a22439c
commit
732678dd94
@ -127,6 +127,13 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
|
||||
throw new EmisBizError(EmisBizErrorType.FAIL,"关联单号不能为空");
|
||||
}
|
||||
|
||||
// 判断是否重复录入
|
||||
int cnt=emisTmsCostFeeMapper.checkUnique(emisTmsCostFee);
|
||||
if(cnt>0){
|
||||
throw new EmisBizError(EmisBizErrorType.FAIL,"费用录入重复");
|
||||
}
|
||||
|
||||
|
||||
String costNo = WaybillHelper.genCostNo();
|
||||
emisTmsCostFee.setCostNo(costNo);
|
||||
// 插入关联单号
|
||||
|
||||
@ -114,46 +114,8 @@
|
||||
<select id="checkUnique" parameterType="EmisTmsCostFee" resultType="int">
|
||||
select count(1) from emis_tms_cost_fee
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and cost_no = #{costNo}
|
||||
and cost_name = #{costName}
|
||||
and batch_no = #{batchNo}
|
||||
and fee_type = #{feeType}
|
||||
and split_type = #{splitType}
|
||||
and trans_type = #{transType}
|
||||
and trans_sign_no = #{transSignNo}
|
||||
and supplier_code = #{supplierCode}
|
||||
and supplier_name = #{supplierName}
|
||||
and send_place = #{sendPlace}
|
||||
and dest_place = #{destPlace}
|
||||
and cost_fee = #{costFee}
|
||||
and bill_month = #{billMonth}
|
||||
and trade_date = #{tradeDate}
|
||||
and send_piece_sum = #{sendPieceSum}
|
||||
and piece_number = #{pieceNumber}
|
||||
and total_weight = #{totalWeight}
|
||||
and total_volume = #{totalVolume}
|
||||
and bl_confirm_center = #{blConfirmCenter}
|
||||
and real_piece_number = #{realPieceNumber}
|
||||
and real_total_weight = #{realTotalWeight}
|
||||
and real_total_volume = #{realTotalVolume}
|
||||
and confirm_center_date = #{confirmCenterDate}
|
||||
and confirm_center_note = #{confirmCenterNote}
|
||||
and confirm_center_man_code = #{confirmCenterManCode}
|
||||
and confirm_center_code = #{confirmCenterCode}
|
||||
and bl_confirm_site = #{blConfirmSite}
|
||||
and confirm_site_date = #{confirmSiteDate}
|
||||
and confirm_site_man_code = #{confirmSiteManCode}
|
||||
and confirm_site_note = #{confirmSiteNote}
|
||||
and confirm_site_code = #{confirmSiteCode}
|
||||
and remark = #{remark}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user