修改 实时绑定界面

master
wangh 6 months ago
parent 47aac729d2
commit 4d24ddfbee

@ -6,12 +6,12 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
# url: jdbc:mysql://175.27.215.92:3306/bgs_wms_2024?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://175.27.215.92:3306/bgs_wms_2024?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: root
# password: haiwei@123
url: jdbc:mysql://10.32.128.150:6606/bgs-rfid-track?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
username: root username: root
password: Haiwei@123 #150 password: haiwei@123
# url: jdbc:mysql://10.32.128.150:6606/bgs-rfid-track?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
# username: root
# password: Haiwei@123 #150
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭

@ -20,13 +20,17 @@
</li> </li>
<li class="select-time"> <li class="select-time">
<label>绑定时间:</label> <label>绑定时间:</label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCrateTime]"/> <input type="text" class="time-input" id="startTime" placeholder="开始时间"
name="params[beginCrateTime]"/>
<span>-</span> <span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCrateTime]"/> <input type="text" class="time-input" id="endTime" placeholder="结束时间"
name="params[endCrateTime]"/>
</li> </li>
<li> <li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a> <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a> class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
class="fa fa-refresh"></i>&nbsp;重置</a>
</li> </li>
</ul> </ul>
</div> </div>
@ -37,10 +41,12 @@
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:LedgerInstant:add"> <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:LedgerInstant:add">
<i class="fa fa-plus"></i> 添加 <i class="fa fa-plus"></i> 添加
</a> </a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:LedgerInstant:edit"> <a class="btn btn-primary single disabled" onclick="$.operate.edit()"
shiro:hasPermission="base:LedgerInstant:edit">
<i class="fa fa-edit"></i> 修改 <i class="fa fa-edit"></i> 修改
</a> </a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:LedgerInstant:remove"> <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"
shiro:hasPermission="base:LedgerInstant:remove">
<i class="fa fa-remove"></i> 删除 <i class="fa fa-remove"></i> 删除
</a> </a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:LedgerInstant:export"> <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:LedgerInstant:export">
@ -83,6 +89,9 @@
title: '运单号' title: '运单号'
}, },
{ {
field: 'createBy',
title: '绑定人'
}, {
field: 'crateTime', field: 'crateTime',
title: '绑定时间' title: '绑定时间'
}, },

@ -44,9 +44,9 @@ public class LedgerInstantBindingServiceImpl implements ILedgerInstantBindingSer
@Override @Override
public List<LedgerInstantBinding> selectLedgerInstantBindingList(LedgerInstantBinding ledgerInstantBinding) public List<LedgerInstantBinding> selectLedgerInstantBindingList(LedgerInstantBinding ledgerInstantBinding)
{ {
if(StringUtils.isEmpty(ledgerInstantBinding.getCargoFrameEpc())){ // if(StringUtils.isEmpty(ledgerInstantBinding.getCargoFrameEpc())){
return new ArrayList<LedgerInstantBinding>(); // return new ArrayList<LedgerInstantBinding>();
} // }
return ledgerInstantBindingMapper.selectLedgerInstantBindingList(ledgerInstantBinding); return ledgerInstantBindingMapper.selectLedgerInstantBindingList(ledgerInstantBinding);
} }

@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="crateTime" column="crate_time" /> <result property="crateTime" column="crate_time" />
<result property="locationCode" column="location_code" /> <result property="locationCode" column="location_code" />
<result property="basketCode" column="basket_code" /> <result property="basketCode" column="basket_code" />
<result property="createBy" column="create_by" />
</resultMap> </resultMap>
<sql id="selectLedgerInstantBindingVo"> <sql id="selectLedgerInstantBindingVo">
@ -18,9 +19,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectLedgerInstantBindingList" parameterType="LedgerInstantBinding" resultMap="LedgerInstantBindingResult"> <select id="selectLedgerInstantBindingList" parameterType="LedgerInstantBinding" resultMap="LedgerInstantBindingResult">
select t2.objid, t2.cargo_frame_epc, t1.basket_code, t3.location_code, t2.waybill_number, t2.crate_time select t2.objid, t2.cargo_frame_epc, t1.basket_code, t3.location_code, t2.waybill_number, t2.crate_time,t2.create_by
from base_basket_info t1 from base_basket_info t1
left join ledger_instant_binding t2 on t1.basket_epc = t2.cargo_frame_epc right join ledger_instant_binding t2 on t1.basket_epc = t2.cargo_frame_epc
left join base_location_info t3 on t1.basket_epc = t3.remark left join base_location_info t3 on t1.basket_epc = t3.remark
<where> <where>
<if test="cargoFrameEpc != null and cargoFrameEpc != ''"> and t1.basket_code = #{cargoFrameEpc}</if> <if test="cargoFrameEpc != null and cargoFrameEpc != ''"> and t1.basket_code = #{cargoFrameEpc}</if>

Loading…
Cancel
Save