Compare commits

..

No commits in common. "21f3c62a9d0f53175144dfbc6bc4e67bbd719e01" and "62ed225d2bb1bba7d78954f2a602f74652d30800" have entirely different histories.

4 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,7 @@ public class InventoryApplyController extends BaseController {
* 创建领用单并领用 * 创建领用单并领用
*/ */
@RequestMapping("/create") @RequestMapping("/create")
@Transactional(rollbackFor = Exception.class)
public Result create() { public Result create() {
List<Map> mapList = parmsUtil.getList("data",Map.class); List<Map> mapList = parmsUtil.getList("data",Map.class);
InventoryApply useInfo = parmsUtil.getObject("useInfo", InventoryApply.class); InventoryApply useInfo = parmsUtil.getObject("useInfo", InventoryApply.class);

View File

@ -132,6 +132,7 @@ public class InventoryController extends BaseController {
* @return * @return
*/ */
@RequestMapping("/update") @RequestMapping("/update")
@Transactional(rollbackFor = Exception.class)
public Result update() { public Result update() {
List<Inventory> list = parmsUtil.getList("list", Inventory.class); List<Inventory> list = parmsUtil.getList("list", Inventory.class);
inventoryService.updatePurchaseItem(list); inventoryService.updatePurchaseItem(list);

View File

@ -93,6 +93,7 @@ public class InventoryPurchaseController extends BaseController {
* @return * @return
*/ */
@RequestMapping("/addOneGoods") @RequestMapping("/addOneGoods")
@Transactional(rollbackFor = Exception.class)
public Result addOneGoods() { public Result addOneGoods() {
Inventory inventory = parmsUtil.getObject("data", Inventory.class); Inventory inventory = parmsUtil.getObject("data", Inventory.class);
if (inventory == null) { if (inventory == null) {
@ -111,6 +112,7 @@ public class InventoryPurchaseController extends BaseController {
* @return * @return
*/ */
@RequestMapping("/returnable") @RequestMapping("/returnable")
@Transactional(rollbackFor = Exception.class)
public Result returnable() { public Result returnable() {
List<Integer> list = parmsUtil.getIntList("idList"); List<Integer> list = parmsUtil.getIntList("idList");
if (list == null || list.isEmpty()) { if (list == null || list.isEmpty()) {

View File

@ -17,6 +17,7 @@ public class SocialPersonController extends BaseController {
@Autowired @Autowired
private SocialUserService socialUserService; private SocialUserService socialUserService;
@RequestMapping("getCustomSocialInfo") @RequestMapping("getCustomSocialInfo")
@Transactional(rollbackFor = Exception.class)
public Result<OM1101> getCustomSocialInfo() { public Result<OM1101> getCustomSocialInfo() {
IM1101 im1101 = parmsUtil.getObject("data", IM1101.class); IM1101 im1101 = parmsUtil.getObject("data", IM1101.class);
if (im1101 == null) { if (im1101 == null) {