|
|
@ -25,6 +25,7 @@ import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
|
import javax.sound.sampled.Port; |
|
|
import java.math.BigDecimal; |
|
|
import java.math.BigDecimal; |
|
|
import java.util.*; |
|
|
import java.util.*; |
|
|
import java.util.concurrent.TimeUnit; |
|
|
import java.util.concurrent.TimeUnit; |
|
|
@ -341,7 +342,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
if ("".equals(s)) { |
|
|
if ("".equals(s)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = LinkInterfaceUtil.FindUserById(ObjectFormatUtil.toInteger(s), userToken); |
|
|
UserByPort userByPort = PortConfig.findUserByPortByNumber(s); |
|
|
QyWxUid.append(userByPort.getWorkwechat()).append(","); |
|
|
QyWxUid.append(userByPort.getWorkwechat()).append(","); |
|
|
} |
|
|
} |
|
|
// 如果同意
|
|
|
// 如果同意
|
|
|
@ -511,7 +512,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
// 更新结果
|
|
|
// 更新结果
|
|
|
map.put("id", mainId); |
|
|
map.put("id", mainId); |
|
|
map.put("reviewTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
map.put("reviewTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
map.put("departmentManager", userToken.getId()); |
|
|
map.put("departmentManager", userToken.getNumber()); |
|
|
stockTakingMapper.updateStockTaking(map); |
|
|
stockTakingMapper.updateStockTaking(map); |
|
|
|
|
|
|
|
|
// 更新其他卡片
|
|
|
// 更新其他卡片
|
|
|
@ -541,7 +542,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
if("".equals(s)){ |
|
|
if("".equals(s)){ |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = LinkInterfaceUtil.FindUserById(ObjectFormatUtil.toInteger(s), null); |
|
|
UserByPort userByPort = PortConfig.findUserByPortByNumber(s); |
|
|
QyWxUid.append(userByPort.getWorkwechat()).append(","); |
|
|
QyWxUid.append(userByPort.getWorkwechat()).append(","); |
|
|
} |
|
|
} |
|
|
String s = QyWxUid.toString(); |
|
|
String s = QyWxUid.toString(); |
|
|
@ -589,7 +590,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
if ("".equals(s)) { |
|
|
if ("".equals(s)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = LinkInterfaceUtil.FindUserById(ObjectFormatUtil.toInteger(s), userToken); |
|
|
UserByPort userByPort = PortConfig.findUserByPortByNumber(s); |
|
|
QyWxUid.append(userByPort.getWorkwechat()).append(","); |
|
|
QyWxUid.append(userByPort.getWorkwechat()).append(","); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1318,7 +1319,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
map.put("state", 1); |
|
|
map.put("state", 1); |
|
|
String simpleTime = DateUtil.getSimpleTime(new Date()); |
|
|
String simpleTime = DateUtil.getSimpleTime(new Date()); |
|
|
map.put("completeTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
map.put("completeTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
map.put("departmentManager", userByPort.getId()); |
|
|
map.put("departmentManager", userByPort.getNumber()); |
|
|
stockTakingMapper.updateStockTaking(map); |
|
|
stockTakingMapper.updateStockTaking(map); |
|
|
|
|
|
|
|
|
// 开启一个线程用于发送抄送信息给负责人
|
|
|
// 开启一个线程用于发送抄送信息给负责人
|
|
|
@ -1335,7 +1336,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
if ("".equals(s)) { |
|
|
if ("".equals(s)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort userByPort1 = LinkInterfaceUtil.FindUserById(ObjectFormatUtil.toInteger(s), null); |
|
|
UserByPort userByPort1 = PortConfig.findUserByPortByNumber(s); |
|
|
QyWxUid.append(userByPort1.getWorkwechat()).append(","); |
|
|
QyWxUid.append(userByPort1.getWorkwechat()).append(","); |
|
|
} |
|
|
} |
|
|
String s = QyWxUid.toString(); |
|
|
String s = QyWxUid.toString(); |
|
|
@ -1398,7 +1399,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
if ("".equals(s)) { |
|
|
if ("".equals(s)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = LinkInterfaceUtil.FindUserById(ObjectFormatUtil.toInteger(s), null); |
|
|
UserByPort userByPort = PortConfig.findUserByPortByNumber(s); |
|
|
QyWxUid.append(userByPort.getWorkwechat()).append(","); |
|
|
QyWxUid.append(userByPort.getWorkwechat()).append(","); |
|
|
} |
|
|
} |
|
|
if ("2".equals(spStatus)) { |
|
|
if ("2".equals(spStatus)) { |
|
|
@ -1572,7 +1573,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
// 更新结果
|
|
|
// 更新结果
|
|
|
map.put("id", mainId); |
|
|
map.put("id", mainId); |
|
|
map.put("reviewTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
map.put("reviewTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
map.put("departmentManager", approver_user.getId()); |
|
|
map.put("departmentManager", approver_user.getNumber()); |
|
|
stockTakingMapper.updateStockTaking(map); |
|
|
stockTakingMapper.updateStockTaking(map); |
|
|
return result; |
|
|
return result; |
|
|
} else { |
|
|
} else { |
|
|
@ -2675,7 +2676,7 @@ public class StockTakingServiceImpl implements StockTakingService { |
|
|
map.put("departmentManagerState", departmentManagerState); |
|
|
map.put("departmentManagerState", departmentManagerState); |
|
|
|
|
|
|
|
|
map.put("reviewTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
map.put("reviewTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
map.put("departmentManager", userByPort.getId()); |
|
|
map.put("departmentManager", userByPort.getNumber()); |
|
|
stockTakingMapper.updateStockTaking(map); |
|
|
stockTakingMapper.updateStockTaking(map); |
|
|
} |
|
|
} |
|
|
return result; |
|
|
return result; |
|
|
|