Merge remote-tracking branch 'origin/zs'
This commit is contained in:
commit
c86e28a363
|
|
@ -14,7 +14,6 @@ import org.springframework.validation.annotation.Validated;
|
|||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.annotations.*;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
|
|
@ -73,4 +72,4 @@ public class TbConsInfoController {
|
|||
tbConsInfoService.stockInOut(resources);
|
||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public interface TbMShopUserMapper extends BaseMapper<TbMShopUser> {
|
|||
"SELECT " +
|
||||
"COUNT(*) userTotal, " +
|
||||
"ifnull(SUM( " +
|
||||
"IFNULL( b.charge_amount, 0 )), 0) chageTotal\n" +
|
||||
"IFNULL( b.charge_amount, 0 )), 0) chageTotal, ifnull(SUM( IFNULL( a.amount, 0 )), 0) balanceTotal " +
|
||||
"FROM\n" +
|
||||
"tb_shop_user AS a\n" +
|
||||
"LEFT JOIN tb_user_info AS b ON a.user_id = b.id\n" +
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public interface TbShopUserFlowMapper extends BaseMapper<TbShopUserFlow> {
|
|||
*/
|
||||
@Select("<script>" +
|
||||
"SELECT IFNULL(SUM(uf.amount), 0) FROM tb_shop_user_flow as uf " +
|
||||
"JOIN tb_shop_user su ON uf.shop_user_id = su.user_id " +
|
||||
"JOIN tb_shop_user su ON uf.shop_user_id = su.id " +
|
||||
"WHERE su.shop_id = #{shopId} " +
|
||||
"AND uf.create_time BETWEEN #{startTime} AND #{endTime} " +
|
||||
"AND uf.biz_code IN " +
|
||||
|
|
|
|||
Loading…
Reference in New Issue