Commit aae30e04 authored by Quxl's avatar Quxl

x

parent 743f6462
...@@ -19,6 +19,7 @@ public class ShopApplication { ...@@ -19,6 +19,7 @@ public class ShopApplication {
private static ApplicationContext applicationContext; private static ApplicationContext applicationContext;
public static void main(String[] args) { public static void main(String[] args) {
System.setProperty("java.io.tmpdir", "temp");
applicationContext = SpringApplication.run(ShopApplication.class, args); applicationContext = SpringApplication.run(ShopApplication.class, args);
} }
......
...@@ -543,7 +543,7 @@ public class UserServiceImpl implements UserService { ...@@ -543,7 +543,7 @@ public class UserServiceImpl implements UserService {
Map<String, Object> custMap = jdbcTemplate.queryForMap("select * from tCustomer where sCustNO = ?", custNo); Map<String, Object> custMap = jdbcTemplate.queryForMap("select * from tCustomer where sCustNO = ?", custNo);
String sMobile = (String)custMap.get("sMobile"); String sMobile = (String)custMap.get("sMobile");
jdbcTemplate.update("update tCustomer set sCustName = ?, nStoreCount = ? where sCustNO = ?", customerName, storeCount, custNo); jdbcTemplate.update("update tCustomer set sCustName = ?, nStoreCount = ? where sCustNO = ?", customerName, storeCount, custNo);
jdbcTemplate.update("update tShop set nTag = nTag^8|4 where sShopNO = ? and nTag&2 = 0", shopNo); jdbcTemplate.update("update tShop set nTag = (nTag|8-8)|4 where sShopNO = ? and nTag&2 = 0", shopNo);
jdbcTemplate.update("update tShop set sShopName = ?, sMainBusiness = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sProvince = ?, sCity = ?, sDistrict = ?, sAddress = ?, sEmail = ?, sSalesmanNO1 = ?, sMemo = ? where sShopNO = ?", shopName, mainBusiness, provinceId, cityId, districtId, provinceName, cityName, districtName, address, email, salesmanNO1, memo, shopNo); jdbcTemplate.update("update tShop set sShopName = ?, sMainBusiness = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sProvince = ?, sCity = ?, sDistrict = ?, sAddress = ?, sEmail = ?, sSalesmanNO1 = ?, sMemo = ? where sShopNO = ?", shopName, mainBusiness, provinceId, cityId, districtId, provinceName, cityName, districtName, address, email, salesmanNO1, memo, shopNo);
Integer count = jdbcTemplate.queryForInt("select count(*) from tShopkeeperShop where sShopNO = ? and sSalesmanNO = ?", shopNo, salesmanNO1); Integer count = jdbcTemplate.queryForInt("select count(*) from tShopkeeperShop where sShopNO = ? and sSalesmanNO = ?", shopNo, salesmanNO1);
......
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