Commit c1b3d7e5 authored by 黄辉勇's avatar 黄辉勇

''

parent 5b6da055
......@@ -2,14 +2,23 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="d94c205f-9db6-41f8-b7b7-ea3e4a756ff8" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/domain/WmsProductAttribute.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/mapper/WmsProductAttributeMapper.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/jeethink-crm/src/main/resources/mapper/crm/WmsProductAttributeMapper.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/src/main/resources/static/jeethink/js/jt-ui.js" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/src/main/resources/static/jeethink/js/jt-ui.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/src/main/resources/templates/crm/orderPrice/edit.html" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/src/main/resources/templates/crm/orderPrice/edit.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/src/main/resources/templates/crm/product/add.html" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/src/main/resources/templates/crm/product/add.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/src/main/resources/templates/crm/product/edit.html" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/src/main/resources/templates/crm/product/edit.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/target/classes/templates/crm/order/edit.html" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/target/classes/templates/crm/order/edit.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/target/classes/static/jeethink/js/jt-ui.js" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/target/classes/static/jeethink/js/jt-ui.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/target/classes/templates/crm/orderPrice/edit.html" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/target/classes/templates/crm/orderPrice/edit.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/target/classes/templates/crm/product/add.html" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/target/classes/templates/crm/product/add.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-admin/target/classes/templates/crm/product/edit.html" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-admin/target/classes/templates/crm/product/edit.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/domain/WmsProduct.java" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/domain/WmsProduct.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/domain/CrmOrderPrice.java" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/domain/CrmOrderPrice.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/mapper/WmsProductAttributeMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/mapper/WmsProductAttributeMapper.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/service/impl/WmsProductServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/src/main/java/com/jeethink/crm/service/impl/WmsProductServiceImpl.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/src/main/resources/mapper/crm/CrmOrderPriceMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/src/main/resources/mapper/crm/CrmOrderPriceMapper.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/src/main/resources/mapper/crm/WmsProductAttributeMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/src/main/resources/mapper/crm/WmsProductAttributeMapper.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/target/classes/com/jeethink/crm/domain/CrmOrderPrice.class" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/target/classes/com/jeethink/crm/domain/CrmOrderPrice.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/target/classes/com/jeethink/crm/domain/WmsProduct.class" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/target/classes/com/jeethink/crm/domain/WmsProduct.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/target/classes/com/jeethink/crm/service/impl/WmsProductServiceImpl.class" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/target/classes/com/jeethink/crm/service/impl/WmsProductServiceImpl.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jeethink-crm/target/classes/mapper/crm/CrmOrderPriceMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/jeethink-crm/target/classes/mapper/crm/CrmOrderPriceMapper.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -121,7 +130,7 @@
<workItem from="1616980755086" duration="19162000" />
<workItem from="1617064670490" duration="25704000" />
<workItem from="1622697676535" duration="3822000" />
<workItem from="1622766554233" duration="4068000" />
<workItem from="1622766554233" duration="13862000" />
</task>
<servers />
</component>
......@@ -133,50 +142,50 @@
<screen x="0" y="0" width="1280" height="680" />
</state>
<state x="96" y="0" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1280.680@0.0.1280.680" timestamp="1622697992147" />
<state x="446" y="34" key="#com.intellij.ide.util.MemberChooser" timestamp="1622770665249">
<state x="446" y="34" key="#com.intellij.ide.util.MemberChooser" timestamp="1622784668810">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state x="446" y="34" key="#com.intellij.ide.util.MemberChooser/0.0.1280.680@0.0.1280.680" timestamp="1622770665249" />
<state width="537" height="444" key="DebuggerActiveHint" timestamp="1616637797905">
<state x="446" y="34" key="#com.intellij.ide.util.MemberChooser/0.0.1280.680@0.0.1280.680" timestamp="1622784668810" />
<state width="537" height="444" key="DebuggerActiveHint" timestamp="1622777276863">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="537" height="444" key="DebuggerActiveHint/0.0.1280.680@0.0.1280.680" timestamp="1616637797905" />
<state width="537" height="444" key="DebuggerActiveHint/0.0.1280.680@0.0.1280.680" timestamp="1622777276863" />
<state x="421" y="99" key="FileChooserDialogImpl" timestamp="1622702895038">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state x="421" y="99" key="FileChooserDialogImpl/0.0.1280.680@0.0.1280.680" timestamp="1622702895038" />
<state width="1222" height="143" key="GridCell.Tab.0.bottom" timestamp="1622767079874">
<state width="1222" height="394" key="GridCell.Tab.0.bottom" timestamp="1622785531119">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="1222" height="143" key="GridCell.Tab.0.bottom/0.0.1280.680@0.0.1280.680" timestamp="1622767079874" />
<state width="1222" height="143" key="GridCell.Tab.0.center" timestamp="1622767079874">
<state width="1222" height="394" key="GridCell.Tab.0.bottom/0.0.1280.680@0.0.1280.680" timestamp="1622785531119" />
<state width="1222" height="394" key="GridCell.Tab.0.center" timestamp="1622785531119">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="1222" height="143" key="GridCell.Tab.0.center/0.0.1280.680@0.0.1280.680" timestamp="1622767079874" />
<state width="1222" height="143" key="GridCell.Tab.0.left" timestamp="1622767079874">
<state width="1222" height="394" key="GridCell.Tab.0.center/0.0.1280.680@0.0.1280.680" timestamp="1622785531119" />
<state width="1222" height="394" key="GridCell.Tab.0.left" timestamp="1622785531119">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="1222" height="143" key="GridCell.Tab.0.left/0.0.1280.680@0.0.1280.680" timestamp="1622767079874" />
<state width="1222" height="143" key="GridCell.Tab.0.right" timestamp="1622767079874">
<state width="1222" height="394" key="GridCell.Tab.0.left/0.0.1280.680@0.0.1280.680" timestamp="1622785531119" />
<state width="1222" height="394" key="GridCell.Tab.0.right" timestamp="1622785531119">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="1222" height="143" key="GridCell.Tab.0.right/0.0.1280.680@0.0.1280.680" timestamp="1622767079874" />
<state width="1222" height="143" key="GridCell.Tab.1.bottom" timestamp="1622767079874">
<state width="1222" height="394" key="GridCell.Tab.0.right/0.0.1280.680@0.0.1280.680" timestamp="1622785531119" />
<state width="1222" height="394" key="GridCell.Tab.1.bottom" timestamp="1622785531031">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="1222" height="143" key="GridCell.Tab.1.bottom/0.0.1280.680@0.0.1280.680" timestamp="1622767079874" />
<state width="1222" height="143" key="GridCell.Tab.1.center" timestamp="1622767079874">
<state width="1222" height="394" key="GridCell.Tab.1.bottom/0.0.1280.680@0.0.1280.680" timestamp="1622785531031" />
<state width="1222" height="394" key="GridCell.Tab.1.center" timestamp="1622785531031">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="1222" height="143" key="GridCell.Tab.1.center/0.0.1280.680@0.0.1280.680" timestamp="1622767079874" />
<state width="1222" height="143" key="GridCell.Tab.1.left" timestamp="1622767079874">
<state width="1222" height="394" key="GridCell.Tab.1.center/0.0.1280.680@0.0.1280.680" timestamp="1622785531031" />
<state width="1222" height="394" key="GridCell.Tab.1.left" timestamp="1622785531031">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="1222" height="143" key="GridCell.Tab.1.left/0.0.1280.680@0.0.1280.680" timestamp="1622767079874" />
<state width="1222" height="143" key="GridCell.Tab.1.right" timestamp="1622767079874">
<state width="1222" height="394" key="GridCell.Tab.1.left/0.0.1280.680@0.0.1280.680" timestamp="1622785531031" />
<state width="1222" height="394" key="GridCell.Tab.1.right" timestamp="1622785531031">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state width="1222" height="143" key="GridCell.Tab.1.right/0.0.1280.680@0.0.1280.680" timestamp="1622767079874" />
<state width="1222" height="394" key="GridCell.Tab.1.right/0.0.1280.680@0.0.1280.680" timestamp="1622785531031" />
<state x="171" y="0" key="Maven.ArtifactSearchDialog" timestamp="1614735610492">
<screen x="0" y="0" width="1280" height="680" />
</state>
......@@ -189,10 +198,10 @@
<screen x="0" y="0" width="1280" height="680" />
</state>
<state x="163" y="80" key="com.intellij.xdebugger.impl.breakpoints.ui.BreakpointsDialogFactory$2/0.0.1280.680@0.0.1280.680" timestamp="1616720643055" />
<state x="307" y="21" width="948" height="548" key="find.popup" timestamp="1617009630481">
<state x="307" y="21" width="948" height="548" key="find.popup" timestamp="1622777823123">
<screen x="0" y="0" width="1280" height="680" />
</state>
<state x="307" y="21" width="948" height="548" key="find.popup/0.0.1280.680@0.0.1280.680" timestamp="1617009630481" />
<state x="307" y="21" width="948" height="548" key="find.popup/0.0.1280.680@0.0.1280.680" timestamp="1622777823123" />
<state x="28" y="48" key="new project wizard" timestamp="1614656470718">
<screen x="0" y="0" width="1280" height="680" />
</state>
......@@ -374,11 +383,6 @@
<line>73</line>
<option name="timeStamp" value="49" />
</line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>jar://$MAVEN_REPOSITORY$/org/thymeleaf/thymeleaf/3.0.12.RELEASE/thymeleaf-3.0.12.RELEASE.jar!/org/thymeleaf/processor/element/AbstractAttributeTagProcessor.class</url>
<line>54</line>
<option name="timeStamp" value="59" />
</line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>jar://$MAVEN_REPOSITORY$/com/github/theborakompanioni/thymeleaf-extras-shiro/2.0.0/thymeleaf-extras-shiro-2.0.0.jar!/at/pollux/thymeleaf/shiro/processor/ShiroFacade.class</url>
<line>87</line>
......
......@@ -1217,8 +1217,8 @@ var table = {
if (result.code == web_status.SUCCESS) {
var topWindow = $(window.parent.document);
var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-panel');
try{
var $contentWindow = $('.JeeThink_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow;
$.modal.close();
$contentWindow.$.modal.msgSuccess(result.msg);
$contentWindow.$(".layui-layer-padding").removeAttr("style");
if ($contentWindow.table.options.type == table_type.bootstrapTable) {
......@@ -1226,6 +1226,10 @@ var table = {
} else if ($contentWindow.table.options.type == table_type.bootstrapTreeTable) {
$contentWindow.$.treeTable.refresh();
}
}catch (e) {
console.log(e);
}
$.modal.close();
$.modal.closeTab();
} else if (result.code == web_status.WARNING) {
$.modal.alertWarning(result.msg)
......
......@@ -220,6 +220,82 @@
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">出口港:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="portOfLoading" th:value="${crmOrderPrice.portOfLoading}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">目的港:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="portOfDestination" th:value="${crmOrderPrice.portOfDestination}" class="form-control" type="text" required>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">运输方式:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="shippedVia" th:value="${crmOrderPrice.shippedVia}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">报价人:</label>
<div class="col-sm-8">
<input name="prcieBy" th:field="*{prcieBy}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">报价时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="prcieEndDate" th:value="${#dates.format(crmOrderPrice.prcieEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">报价有效截止时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="prcieEndDate" th:value="${#dates.format(crmOrderPrice.prcieEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label">备注:</label>
<div class="col-xs-10">
<textarea name="remark" maxlength="500" class="form-control" rows="3">[[*{remark}]]</textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......@@ -526,50 +602,6 @@
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">报价人:</label>
<div class="col-sm-8">
<input name="prcieBy" th:field="*{prcieBy}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">报价时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="prcieEndDate" th:value="${#dates.format(crmOrderPrice.prcieEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">报价有效截止时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="prcieEndDate" th:value="${#dates.format(crmOrderPrice.prcieEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label">备注:</label>
<div class="col-xs-10">
<textarea name="remark" maxlength="500" class="form-control" rows="3">[[*{remark}]]</textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......
......@@ -39,15 +39,15 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">进价(元):</label>
<label class="col-sm-3 control-label ">进价(元):</label>
<div class="col-sm-8">
<input name="incomePrice" class="form-control" type="text" required>
<input name="incomePrice" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">售价(元):</label>
<label class="col-sm-3 control-label ">售价(元):</label>
<div class="col-sm-8">
<input name="salePrice" class="form-control" type="text" required>
<input name="salePrice" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
......@@ -99,26 +99,16 @@
</tr>
</thead>
<tbody id="tbody">
<tr>
<td align="center">
<input type="text" name="NO[]" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7" />
</td>
<td align="center">
<input type="text" name="serial_number[]" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7" />
</td>
<td>
<input type="button" id="Button2" onClick="deltr(this)" value="删行">
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
//添加表格
function tableChange() {
var length = $("#tbody tr").length;
var tableHtml ="";
tableHtml += '<tr>'
+'<td align="center"><input type="text" name="NO[]" style="line-height: 24px;border:none;border-radius: 4px;border:1px solid #e5e6e7"/> </td>'
+'<td align="center"><input type="text" name="serial_number[]" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>'
+'<td align="center"><input type="text" name="wmsProductAttributes['+length+'].name" style="line-height: 24px;border:none;border-radius: 4px;border:1px solid #e5e6e7"/> </td>'
+'<td align="center"><input type="text" name="wmsProductAttributes['+length+'].attrVal" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>'
+'<td><input type="button" onClick="deltr(this)" value="删行"></td>'
+'</tr>';
$("#tbody").append(tableHtml) ; //在表格后面添加一行
......
......@@ -41,15 +41,15 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">进价(元):</label>
<label class="col-sm-3 control-label ">进价(元):</label>
<div class="col-sm-8">
<input name="incomePrice" th:field="*{incomePrice}" class="form-control" type="text" required>
<input name="incomePrice" th:field="*{incomePrice}" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">售价(元):</label>
<label class="col-sm-3 control-label ">售价(元):</label>
<div class="col-sm-8">
<input name="salePrice" th:field="*{salePrice}" class="form-control" type="text" required>
<input name="salePrice" th:field="*{salePrice}" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
......@@ -107,26 +107,21 @@
</tr>
</thead>
<tbody id="tbody">
<tr>
<td align="center">
<input type="text" name="NO[]" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7" />
</td>
<td align="center">
<input type="text" name="serial_number[]" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7" />
</td>
<td>
<input type="button" id="Button2" onClick="deltr(this)" value="删行">
</td>
<tr th:each="wmsProductAttribute,wmsProductAttributeStat : ${wmsProduct.wmsProductAttributes}" th:with="arrayIndex=${wmsProductAttributeStat.index}">
<td align="center"><input type="text" th:name="'wmsProductAttributes['+${arrayIndex}+'].name'" th:value="${wmsProductAttribute.name}" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/> </td>
<td align="center"><input type="text" th:name="'wmsProductAttributes['+${arrayIndex}+'].attrVal'" th:value="${wmsProductAttribute.attrVal}" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>
<td><input type="button" onClick="deltr(this)" value="删行"></td>
</tr>
</tbody>
</table>
<script type="text/javascript">
//添加表格
function tableChange() {
var length = $("#tbody tr").length;
var tableHtml ="";
tableHtml += '<tr>'
+'<td align="center"><input type="text" name="NO[]" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/> </td>'
+'<td align="center"><input type="text" name="serial_number[]" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>'
+'<td align="center"><input type="text" name="wmsProductAttributes['+length+'].name" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/> </td>'
+'<td align="center"><input type="text" name="wmsProductAttributes['+length+'].attrVal" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>'
+'<td><input type="button" onClick="deltr(this)" value="删行"></td>'
+'</tr>';
$("#tbody").append(tableHtml) ; //在表格后面添加一行
......
......@@ -1217,8 +1217,8 @@ var table = {
if (result.code == web_status.SUCCESS) {
var topWindow = $(window.parent.document);
var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-panel');
try{
var $contentWindow = $('.JeeThink_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow;
$.modal.close();
$contentWindow.$.modal.msgSuccess(result.msg);
$contentWindow.$(".layui-layer-padding").removeAttr("style");
if ($contentWindow.table.options.type == table_type.bootstrapTable) {
......@@ -1226,6 +1226,10 @@ var table = {
} else if ($contentWindow.table.options.type == table_type.bootstrapTreeTable) {
$contentWindow.$.treeTable.refresh();
}
}catch (e) {
console.log(e);
}
$.modal.close();
$.modal.closeTab();
} else if (result.code == web_status.WARNING) {
$.modal.alertWarning(result.msg)
......
......@@ -220,6 +220,82 @@
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">出口港:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="portOfLoading" th:value="${crmOrderPrice.portOfLoading}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">目的港:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="portOfDestination" th:value="${crmOrderPrice.portOfDestination}" class="form-control" type="text" required>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">运输方式:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="shippedVia" th:value="${crmOrderPrice.shippedVia}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">报价人:</label>
<div class="col-sm-8">
<input name="prcieBy" th:field="*{prcieBy}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">报价时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="prcieEndDate" th:value="${#dates.format(crmOrderPrice.prcieEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">报价有效截止时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="prcieEndDate" th:value="${#dates.format(crmOrderPrice.prcieEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label">备注:</label>
<div class="col-xs-10">
<textarea name="remark" maxlength="500" class="form-control" rows="3">[[*{remark}]]</textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......@@ -526,50 +602,6 @@
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">报价人:</label>
<div class="col-sm-8">
<input name="prcieBy" th:field="*{prcieBy}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">报价时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="prcieEndDate" th:value="${#dates.format(crmOrderPrice.prcieEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">报价有效截止时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="prcieEndDate" th:value="${#dates.format(crmOrderPrice.prcieEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label">备注:</label>
<div class="col-xs-10">
<textarea name="remark" maxlength="500" class="form-control" rows="3">[[*{remark}]]</textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......
......@@ -39,15 +39,15 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">进价(元):</label>
<label class="col-sm-3 control-label ">进价(元):</label>
<div class="col-sm-8">
<input name="incomePrice" class="form-control" type="text" required>
<input name="incomePrice" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">售价(元):</label>
<label class="col-sm-3 control-label ">售价(元):</label>
<div class="col-sm-8">
<input name="salePrice" class="form-control" type="text" required>
<input name="salePrice" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
......@@ -88,6 +88,42 @@
rows="3"></textarea>
</div>
</div>
<div>
<p onclick="tableChange()"><a href="javascript:;">添加</a></p>
<table class="table table-bordered" id="tables">
<thead>
<tr>
<th>名称</th>
<th></th>
<th>操作</th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
<script type="text/javascript">
//添加表格
function tableChange() {
var length = $("#tbody tr").length;
var tableHtml ="";
tableHtml += '<tr>'
+'<td align="center"><input type="text" name="wmsProductAttributes['+length+'].name" style="line-height: 24px;border:none;border-radius: 4px;border:1px solid #e5e6e7"/> </td>'
+'<td align="center"><input type="text" name="wmsProductAttributes['+length+'].attrVal" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>'
+'<td><input type="button" onClick="deltr(this)" value="删行"></td>'
+'</tr>';
$("#tbody").append(tableHtml) ; //在表格后面添加一行
}
function deltr(opp) {
var length = $("#tbody tr").length;
if (length <= 1) {
alert("至少保留一行");
} else {
$(opp).parent().parent().remove();//移除当前行
}
}
</script>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
......
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改产品')" />
</head>
<body class="white-bg">
......@@ -43,15 +41,15 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">进价(元):</label>
<label class="col-sm-3 control-label ">进价(元):</label>
<div class="col-sm-8">
<input name="incomePrice" th:field="*{incomePrice}" class="form-control" type="text" required>
<input name="incomePrice" th:field="*{incomePrice}" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">售价(元):</label>
<label class="col-sm-3 control-label ">售价(元):</label>
<div class="col-sm-8">
<input name="salePrice" th:field="*{salePrice}" class="form-control" type="text" required>
<input name="salePrice" th:field="*{salePrice}" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
......@@ -100,7 +98,6 @@
</div>
<div>
<p onclick="tableChange()"><a href="javascript:;">添加</a></p>
<!-- <button onclick="tableChange()">Copy Text</button>-->
<table class="table table-bordered" id="tables">
<thead>
<tr>
......@@ -110,26 +107,21 @@
</tr>
</thead>
<tbody id="tbody">
<tr>
<td align="center">
<input type="text" name="NO[]" size="2" />
</td>
<td align="center">
<input type="text" name="serial_number[]" />
</td>
<td>
<input type="button" id="Button2" onClick="deltr(this)" value="删行">
</td>
<tr th:each="wmsProductAttribute,wmsProductAttributeStat : ${wmsProduct.wmsProductAttributes}" th:with="arrayIndex=${wmsProductAttributeStat.index}">
<td align="center"><input type="text" th:name="'wmsProductAttributes['+${arrayIndex}+'].name'" th:value="${wmsProductAttribute.name}" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/> </td>
<td align="center"><input type="text" th:name="'wmsProductAttributes['+${arrayIndex}+'].attrVal'" th:value="${wmsProductAttribute.attrVal}" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>
<td><input type="button" onClick="deltr(this)" value="删行"></td>
</tr>
</tbody>
</table>
<script type="text/javascript">
//添加表格
function tableChange() {
var length = $("#tbody tr").length;
var tableHtml ="";
tableHtml += '<tr>'
+'<td align="center"><input type="text" name="NO[]" size="2" /> </td>'
+'<td align="center"><input type="text" name="serial_number[]"/></td>'
+'<td align="center"><input type="text" name="wmsProductAttributes['+length+'].name" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/> </td>'
+'<td align="center"><input type="text" name="wmsProductAttributes['+length+'].attrVal" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>'
+'<td><input type="button" onClick="deltr(this)" value="删行"></td>'
+'</tr>';
$("#tbody").append(tableHtml) ; //在表格后面添加一行
......
......@@ -455,6 +455,15 @@ public class CrmOrderPrice extends BaseEntity
@Excel(name = "净利(35%)")
private BigDecimal netProfitThirtyFive;
// 粗口港
private String portOfLoading;
//目的港
private String portOfDestination;
// 运输方式
private String shippedVia;
......@@ -1264,7 +1273,29 @@ public class CrmOrderPrice extends BaseEntity
this.profitThirtyFive = profitThirtyFive;
}
public String getPortOfLoading() {
return portOfLoading;
}
public void setPortOfLoading(String portOfLoading) {
this.portOfLoading = portOfLoading;
}
public String getPortOfDestination() {
return portOfDestination;
}
public void setPortOfDestination(String portOfDestination) {
this.portOfDestination = portOfDestination;
}
public String getShippedVia() {
return shippedVia;
}
public void setShippedVia(String shippedVia) {
this.shippedVia = shippedVia;
}
public BigDecimal getNetProfitThirtyFive() {
return netProfitThirtyFive;
......
......@@ -43,4 +43,11 @@ public interface WmsProductAttributeMapper {
* @return
*/
public int deleteWmsProductAttributeByProdId(Long prodId);
/***
* 查询产品属性
* @param prodId
* @return
*/
public List<WmsProductAttribute> selectWmsProductAttributeByProdId(Long prodId);
}
......@@ -2,6 +2,8 @@ package com.jeethink.crm.service.impl;
import java.util.List;
import com.jeethink.common.utils.DateUtils;
import com.jeethink.crm.domain.WmsProductAttribute;
import com.jeethink.crm.mapper.WmsProductAttributeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jeethink.crm.mapper.WmsProductMapper;
......@@ -20,6 +22,8 @@ public class WmsProductServiceImpl implements IWmsProductService
{
@Autowired
private WmsProductMapper wmsProductMapper;
@Autowired
private WmsProductAttributeMapper wmsProductAttributeMapper;
/**
* 查询产品
......@@ -30,7 +34,10 @@ public class WmsProductServiceImpl implements IWmsProductService
@Override
public WmsProduct selectWmsProductById(Long productId)
{
return wmsProductMapper.selectWmsProductById(productId);
WmsProduct wmsProduct = wmsProductMapper.selectWmsProductById(productId);
List<WmsProductAttribute> wmsProductAttributes = wmsProductAttributeMapper.selectWmsProductAttributeByProdId(productId);
wmsProduct.setWmsProductAttributes(wmsProductAttributes);
return wmsProduct;
}
/**
......@@ -56,7 +63,19 @@ public class WmsProductServiceImpl implements IWmsProductService
{
wmsProduct.setDelFlag("0");
wmsProduct.setCreateTime(DateUtils.getNowDate());
return wmsProductMapper.insertWmsProduct(wmsProduct);
int saveCount = wmsProductMapper.insertWmsProduct(wmsProduct);
Long productId = wmsProduct.getProductId();
wmsProductAttributeMapper.deleteWmsProductAttributeByProdId(productId);
List<WmsProductAttribute> wmsProductAttributes = wmsProduct.getWmsProductAttributes();
if(null != wmsProductAttributes
&& wmsProductAttributes.size()>0){
wmsProductAttributes.forEach(wmsProductAttribute -> {
wmsProductAttribute.setProductId(productId);
wmsProductAttribute.setDelFlag("0");
wmsProductAttributeMapper.insertWmsProductAttribute(wmsProductAttribute);
});
}
return saveCount;
}
/**
......@@ -69,6 +88,17 @@ public class WmsProductServiceImpl implements IWmsProductService
public int updateWmsProduct(WmsProduct wmsProduct)
{
wmsProduct.setUpdateTime(DateUtils.getNowDate());
Long productId = wmsProduct.getProductId();
wmsProductAttributeMapper.deleteWmsProductAttributeByProdId(productId);
List<WmsProductAttribute> wmsProductAttributes = wmsProduct.getWmsProductAttributes();
if(null != wmsProductAttributes
&& wmsProductAttributes.size()>0){
wmsProductAttributes.forEach(wmsProductAttribute -> {
wmsProductAttribute.setProductId(productId);
wmsProductAttribute.setDelFlag("0");
wmsProductAttributeMapper.insertWmsProductAttribute(wmsProductAttribute);
});
}
return wmsProductMapper.updateWmsProduct(wmsProduct);
}
......
......@@ -116,6 +116,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="managFeeThirtyFive" column="manag_fee_thirty_five" />
<result property="netProfitThirtyFive" column="net_profit_thirty_five" />
<!--end-->
<result property="portOfLoading" column="port_of_loading" />
<result property="portOfDestination" column="port_of_destination" />
<result property="shippedVia" column="shipped_via" />
<association property="customer" column="customer_id" javaType="CrmCustomer" resultMap="customerResult" />
</resultMap>
......@@ -127,7 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectCrmOrderPriceVo">
select p.order_id, p.order_code, p.customer_id,
p.order_name, p.total_price, p.cost_price,
p.order_name, p.total_price, p.cost_price,port_of_loading,port_of_destination,shipped_via,
p.freight,p.currency,p.net_profit,p.manag_fee,p.profit,p.dollar_val,p.fob,p.exch_rate,p.total_end_tax,p.invoice_amount,p.tax_rebates,p.profit_added_tax,
p.transport_added_tax,p.added_tax,p.total_payment_goods,p.cont_weight,p.cont_stand,p.total_weight,p.total_quantity,p.price,
p.prcie_date, p.prcie_by, p.prcie_end_date, p.order_date, p.order_status,p.weight,
......@@ -291,6 +294,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="managFeeThirtyFive != null">manag_fee_thirty_five,</if>
<if test="netProfitThirtyFive != null">net_profit_thirty_five,</if>
<!--end-->
<if test="portOfLoading != null">port_of_loading,</if>
<if test="portOfDestination != null">port_of_destination,</if>
<if test="shippedVia != null">shipped_via,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderCode != null and orderCode != ''">#{orderCode},</if>
......@@ -394,6 +400,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="managFeeThirtyFive != null">#{managFeeThirtyFive},</if>
<if test="netProfitThirtyFive != null">#{netProfitThirtyFive},</if>
<!--end-->
<if test="portOfLoading != null">#{portOfLoading},</if>
<if test="portOfDestination != null">#{portOfDestination},</if>
<if test="shippedVia != null">#{shippedVia},</if>
</trim>
</insert>
......@@ -501,6 +510,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="managFeeThirtyFive != null">manag_fee_thirty_five=#{managFeeThirtyFive},</if>
<if test="netProfitThirtyFive != null">net_profit_thirty_five=#{netProfitThirtyFive},</if>
<!--end-->
<if test="portOfLoading != null">port_of_loading=#{portOfLoading},</if>
<if test="portOfDestination != null">port_of_destination=#{portOfDestination},</if>
<if test="shippedVia != null">shipped_via=#{shippedVia},</if>
</trim>
where order_id = #{orderId}
</update>
......
......@@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null ">product_id,</if>
<if test="name != null ">name,</if>
<if test="attrVal != null and productName != ''">attr_val,</if>
<if test="attrVal != null and attrVal != ''">attr_val,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null ">create_time,</if>
......@@ -49,5 +49,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<delete id="deleteWmsProductAttributeByProdId" parameterType="Long">
delete from wms_product_attribute where product_id = #{prodId}
</delete>
<!--订单选择产品 -->
<select id="selectWmsProductAttributeByProdId" resultMap="WmsProductAttributeResult">
select pa.* from wms_product_attribute pa
<where>
pa.del_flag="0"
and pa.product_id = #{prodId}
</where>
order by pa.create_time desc
</select>
</mapper>
\ No newline at end of file
......@@ -116,6 +116,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="managFeeThirtyFive" column="manag_fee_thirty_five" />
<result property="netProfitThirtyFive" column="net_profit_thirty_five" />
<!--end-->
<result property="portOfLoading" column="port_of_loading" />
<result property="portOfDestination" column="port_of_destination" />
<result property="shippedVia" column="shipped_via" />
<association property="customer" column="customer_id" javaType="CrmCustomer" resultMap="customerResult" />
</resultMap>
......@@ -127,7 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectCrmOrderPriceVo">
select p.order_id, p.order_code, p.customer_id,
p.order_name, p.total_price, p.cost_price,
p.order_name, p.total_price, p.cost_price,port_of_loading,port_of_destination,shipped_via,
p.freight,p.currency,p.net_profit,p.manag_fee,p.profit,p.dollar_val,p.fob,p.exch_rate,p.total_end_tax,p.invoice_amount,p.tax_rebates,p.profit_added_tax,
p.transport_added_tax,p.added_tax,p.total_payment_goods,p.cont_weight,p.cont_stand,p.total_weight,p.total_quantity,p.price,
p.prcie_date, p.prcie_by, p.prcie_end_date, p.order_date, p.order_status,p.weight,
......@@ -291,6 +294,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="managFeeThirtyFive != null">manag_fee_thirty_five,</if>
<if test="netProfitThirtyFive != null">net_profit_thirty_five,</if>
<!--end-->
<if test="portOfLoading != null">port_of_loading,</if>
<if test="portOfDestination != null">port_of_destination,</if>
<if test="shippedVia != null">shipped_via,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderCode != null and orderCode != ''">#{orderCode},</if>
......@@ -394,6 +400,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="managFeeThirtyFive != null">#{managFeeThirtyFive},</if>
<if test="netProfitThirtyFive != null">#{netProfitThirtyFive},</if>
<!--end-->
<if test="portOfLoading != null">#{portOfLoading},</if>
<if test="portOfDestination != null">#{portOfDestination},</if>
<if test="shippedVia != null">#{shippedVia},</if>
</trim>
</insert>
......@@ -501,6 +510,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="managFeeThirtyFive != null">manag_fee_thirty_five=#{managFeeThirtyFive},</if>
<if test="netProfitThirtyFive != null">net_profit_thirty_five=#{netProfitThirtyFive},</if>
<!--end-->
<if test="portOfLoading != null">port_of_loading=#{portOfLoading},</if>
<if test="portOfDestination != null">port_of_destination=#{portOfDestination},</if>
<if test="shippedVia != null">shipped_via=#{shippedVia},</if>
</trim>
where order_id = #{orderId}
</update>
......
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jeethink.crm.mapper.WmsProductAttributeMapper">
<resultMap type="WmsProductAttribute" id="WmsProductAttributeResult">
<id property="attributeId" column="attribute_id" />
<result property="productId" column="product_id" />
<result property="name" column="name" />
<result property="attrVal" column="attr_val" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<insert id="insertWmsProductAttribute" parameterType="WmsProductAttribute" useGeneratedKeys="true" keyProperty="attributeId">
insert into wms_product_attribute
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null ">product_id,</if>
<if test="name != null ">name,</if>
<if test="attrVal != null and attrVal != ''">attr_val,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null ">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null ">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null ">#{productId},</if>
<if test="name != null ">#{name},</if>
<if test="attrVal != null and attrVal != ''">#{attrVal},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null ">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null ">#{updateTime},</if>
</trim>
</insert>
<delete id="deleteWmsProductAttributeById" parameterType="Long">
delete from wms_product_attribute where attribute_id = #{attributeId}
</delete>
<delete id="deleteWmsProductAttributeByIds" parameterType="String">
delete from wms_product_attribute where attribute_id in
<foreach item="attributeId" collection="array" open="(" separator="," close=")">
#{attributeId}
</foreach>
</delete>
<delete id="deleteWmsProductAttributeByProdId" parameterType="Long">
delete from wms_product_attribute where product_id = #{prodId}
</delete>
<!--订单选择产品 -->
<select id="selectWmsProductAttributeByProdId" resultMap="WmsProductAttributeResult">
select pa.* from wms_product_attribute pa
<where>
pa.del_flag="0"
and pa.product_id = #{prodId}
</where>
order by pa.create_time desc
</select>
</mapper>
\ No newline at end of file
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