增加 location解绑

master
wangh 6 months ago
parent 8cae52943e
commit 47aac729d2

@ -16,19 +16,11 @@ import java.util.List;
/**
* Created by wangh on 2020/7/17-15:18
*/
@Controller
@RestController
@RequestMapping("/api")
public class ApiController {
@Autowired
ApiService service;
@GetMapping("/test")
public String stockLedger()
{
return "base/location/stockLedger";
}
@PostMapping("/bindingSubmit")
public AjaxResult bindingSubmit(@RequestBody BindingSubmitBeen submitBeen) {
List<String> watBills = submitBeen.getWatBills();
@ -66,6 +58,12 @@ public class ApiController {
if (i == 1) return AjaxResult.success("运单:" + code + "解绑成功");
return AjaxResult.error();
}
@PostMapping("/deleteLocationCode")
public AjaxResult deleteLocationCode(String dbCode, String hkCode) {
int i = service.delectLocationInfoRemarkByDbCode(dbCode, hkCode);
if (i == 1) return AjaxResult.success();
return AjaxResult.error();
}
@PostMapping("/blueToothSubmit")
public AjaxResult blueToothSubmit(String locationCode, String hkCode) {

@ -0,0 +1,20 @@
package com.bgs.webapi.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author wanghao
* @date 2024/7/30 14:19
*/
@Controller
@RequestMapping("/api")
public class BroadController {
@GetMapping("/test")
public String stockLedger()
{
return "base/location/stockLedger";
}
}

@ -25,6 +25,7 @@ public interface ApiMapper {
int deleteBindingItem(String epc, String code);
int delectLocationInfoRemarkByDbCode(String locationCode);
int blueToothSubmit(String locationCode, String hkCode);
List<String> jionSelect(String user);

@ -42,6 +42,7 @@ public class ApiService {
}
public int blueToothSubmit(String locationCode, String hkCode) {
mapper.delectLocationInfoRemarkByDbCode(locationCode);
return mapper.blueToothSubmit(locationCode,hkCode);
}
@ -56,4 +57,8 @@ public class ApiService {
public int joinSelectByUser(JoinSubmitBeen been) {
return mapper.joinSelectByUser(been);
}
public int delectLocationInfoRemarkByDbCode(String dbCode, String hkCode) {
return mapper.delectLocationInfoRemarkByDbCode(dbCode);
}
}

@ -20,9 +20,11 @@
delete from ledger_instant_binding WHERE cargo_frame_epc = #{param1} and waybill_number = #{param2}
</delete>
<update id="blueToothSubmit">
UPDATE base_location_info SET remark = null WHERE remark = #{param2};
UPDATE base_location_info SET remark = #{param2} WHERE location_code = #{param1}
</update>
<update id="delectLocationInfoRemarkByDbCode">
UPDATE base_location_info SET remark = null WHERE location_code = #{locationCode};
</update>
<select id="jionSelect" resultType="string">
select cargo_frame_epc from ledger_instant_binding where create_by = #{user} group by cargo_frame_epc;
@ -37,7 +39,7 @@
</update>
<select id="joinSelectByUser" parameterType="com.bgs.webapi.doman.JoinSubmitBeen">
<select id="joinSelectByUser" parameterType="com.bgs.webapi.doman.JoinSubmitBeen" resultType="java.lang.Integer">
select count(1) from ledger_instant_binding
<where>
cargo_frame_epc in

Loading…
Cancel
Save